[FFmpeg-user] Need help encoding a specific video for HTML5
    Antony Peiris 
    acct_reg at fireslug.com
       
    Thu Feb 14 11:02:30 CET 2013
    
    
  
Hi Everyone,
I have the following video to encode into the 3 video formats required 
by HTML5:
===
  ffmpeg -i test_h264_3000Kbps_480p.mov
ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers
   built on Apr 13 2012 18:39:51 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3)
   configuration:
   libavutil      51. 35.100 / 51. 35.100
   libavcodec     53. 61.100 / 53. 61.100
   libavformat    53. 32.100 / 53. 32.100
   libavdevice    53.  4.100 / 53.  4.100
   libavfilter     2. 61.100 /  2. 61.100
   libswscale      2.  1.100 /  2.  1.100
   libswresample   0.  6.100 /  0.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test_h264_3000Kbps_480p.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 537199360
     compatible_brands: qt
     creation_time   : 2013-02-02 19:09:54
   Duration: 00:26:49.67, start: 0.000000, bitrate: 2960 kb/s
     Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 171 kb/s
     Metadata:
       creation_time   : 2013-02-02 19:09:54
       handler_name    : ?Apple Alias Data Handler
     Stream #0:1(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 638x476 [SAR 1:1 DAR 319:238], 2800 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 59.94 tbc
     Metadata:
       creation_time   : 2013-02-02 19:09:54
       handler_name    : ?Apple Alias Data Handler
===
I want to create a .mp4, .ogv and .webm suitable for playing on the web, 
and especially mobile devices running Apple iOS (iPad). I was 
recommended the following command for the .mp4, but I need help with the 
others as well:
ffmpeg-y-i in.mov-filter:v scale=640:360  \
        -c:v libx264-preset:v slow-profile:v baseline \
        -x264opts level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1  \
        -b:v 500k-r:v25/1  -force_fps-movflags faststart \
        -c:a libfaac-b:a 80k-pass x out.mp4
Is the above command the best solution for what I am trying to 
accomplish (Apple iOS compatibility and mobile support)? Also, what 
commands should I run for webm and ogv?
Your assistance is greatly appreciated! Thank you in advance!
Best Regards,
Tony
    
    
More information about the ffmpeg-user
mailing list