How to Transcode to H.264 MP4 format videos in 480x320

Need help? Post your questions here.

Moderator: moderators

How to Transcode to H.264 MP4 format videos in 480x320

Postby jammer » Mon Jul 25, 2011 12:48 am

My android phone is unable to play flash video (it's a 6th generation cpu). Does anyone know a replacement transcoding statement for videos that would yield H.264 MP4 format in 480x320? & would the real time trancoding to this format be possible without the latest and greatest hardware?

Also, there must be a trick in the setup to let the android app know it is not trying to play a flash file? I wasn't able to get even files that play OK with other players on my phone, to play through the subsonic client because it thinks its trying to play a flash file.

For music, subsonic is the best! I love it, just got a license. It would be fantastic if I could also get some videos to play...

Others here seem to understand the video codecs a lot better than I do. I spent a long time looking through old posts and could not tell if others have already solved this problem.... :roll:
jammer
 
Posts: 9
Joined: Mon Jul 25, 2011 12:26 am

Postby tgrhp » Sat Jul 30, 2011 5:50 am

changing the transcoding statement so that the file is mp4 is easy, for all video transcoding settings just change
"-f flv" to "-f mp4"
To change the resolution add "-s 480x320" after ffmpeg.
To encode to H.264 i think you add "-vcodec libx264" but usually to use this option requires you to compile 2 things from source code...

Transcoding in real time doesnt need the latest, hardware, but your cpu needs to be reasonably powerful. If you need it to run faster you can look to compile a transcoder from source code with multithreading support [same code needed to be compiled as above]. Realtime speed really depends what your transcoding from and to. If you have a small library you might want to consider pre-transcoding all of your files, but find this impractical.

However, I have been unable to get the android app to play mp4 videos, and my phone has flash. As far as I can tell the app plays flv videos in the browser using the jwplayer, which needs flash. There should be browsers on the android market which can watch flash videos without flash. I suggest try a different browser with the default transcoding settings.



If anyone can get the android app to play mp4 videos or to use a different player, please assist. I am interested in this too!
tgrhp
 
Posts: 16
Joined: Wed Jul 13, 2011 3:54 pm

Postby jammer » Sun Jul 31, 2011 2:19 pm

Thank you for help with the ffmpeg flags to do the transcoding.

After spending a while adding the flags, I still had no luck getting the android app to play any mp4 videos. It launches a browser that says it needs flash.

For now, I am trying to get the subsonic app to launch a different browser. I will post here if I have any luck. Thanks again for your help with the transcoding part!
jammer
 
Posts: 9
Joined: Mon Jul 25, 2011 12:26 am


Return to Help

Who is online

Users browsing this forum: No registered users and 27 guests