Use Baseline Profile Encoding

Archived from the Transloadit support forum. Originally posted on January 5, 2012; details may be outdated, see our docs for current behavior. Original thread

Hi,

I am trying to encode some videos that were recorded with different iPhones into MP4 formats to make them playable on mobile web browsers like iPhone 3GS, iPhone 4 and Android.

Based on our testing, we found out that the videos Transloadit encodes are using the High video profile which makes them unplayable on the iPhone 3GS mobile web browser.

I have tried several things to lower the profile to Normal but I unfortunately couldn’t get it to work. Some things I tried:

Based on:
http://avp.stackexchange.com/questions/2634/how-do-i-specify-baseline-h264-profile-using-ffmbc

I tried putting an vprofile baseline argument in the ffmpeg settings but it resulted in an error:
https://transloadit.com/assemblies/view/REDACTED

Also based on:
http://wiki.maemo.org/Manual_video_encoding

I tried putting a coder=0 in the ffmpeg settings in the iphone-high preset but again, it didn’t seem to help.

So my question is how can I use baseline profile encoding for my videos so that they play fine on iPhone 3GS Safari?

Note:
You can see some of the mediainfo outputs in this gist:
https://gist.github.com/1566942

Hey cduruk,

please try

"vpre": [
           "slow",
           "baseline"
         ],

and let me know if that helps.

Kind regards,
Tim

Hey Tim,

Thanks for the response!

Should I try that in ffmpeg settings or the encoding settings itself?

Also, I’m assuming that vpre setting being an array instead of a dict is intentional.

Hey Can,

for your encoding step you can supply the “ffmpeg” parameter just like I suggested.

Please check this demo to see how you can supply custom ffmpeg settings: http://transloadit.com/demos/video-encode/change-bitrate-to-2000k

Kind regards
Tim

Closing this.