[MEncoder-users] encode to h264 (flash support)

Ing. Branislav Gerzo 2ge at 2ge.us
Mon Mar 3 11:40:29 CET 2008


Hello all,

after recent flash player update
http://www.adobe.com/devnet/flashplayer/articles/hd_video_flash_player.html
http://labs.adobe.com/wiki/index.php/Flash_Player:9:Update:H.264

I am trying using mencoder to encode video to h264 and audio to aac.
Firt, I am working with video, so I want make be sure, audio is not
problem.

I am using this command:
mencoder amy1.flv -oac mp3lame -srate 44100 -lameopts \
vbr=2:q=8:aq=0:mode=1:lowpassfreq=16000 -ovc x264 -x264encopts \
threads=auto:subq=5:partitions=4x4:8x8dct:frameref=3:me=hex:bframes=4:b_pyramid:psnr:bitrate=348\
-of lavf -lavfopts format=mov -o amy1.mp4

I am doing certainly something wrong. I downloaded youtube mp4 and
analyze it a little bit, here are main differencies between my and
youtube mp4, which plays in flash:

YOUTUBE mp4:

Playing video.mp4.
ISO: File Type Major Brand: ISO/IEC 14496-1 (MPEG-4 system) v2
Quicktime/MOV file format detected.
ID_AUDIO_ID=0
[mov] Audio stream found, -aid 0
ID_VIDEO_ID=1
[mov] Video stream found, -vid 1
VIDEO:  [avc1]  320x240  24bpp  15.000 fps    0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=video.mp4
ID_DEMUXER=mov
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=320
ID_VIDEO_HEIGHT=240
ID_VIDEO_FPS=15.000
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=mp4a
ID_AUDIO_BITRATE=99896
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
ID_LENGTH=75.33
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
ID_VIDEO_CODEC=ffh264
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 99.9 kbit/7.08% (ratio: 12487->176400)
ID_AUDIO_BITRATE=99896
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
AO: [dsound] 44100Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=faad
Starting playback...
===============================================================================

ISO: File Type Major Brand: Original QuickTime
Quicktime/MOV file format detected.
ID_VIDEO_ID=0
[mov] Video stream found, -vid 0
ID_AUDIO_ID=1
[mov] Audio stream found, -aid 1
VIDEO:  [avc1]  512x384  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=amy1.mp4
ID_DEMUXER=mov
ID_VIDEO_FORMAT=avc1
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=512
ID_VIDEO_HEIGHT=384
ID_VIDEO_FPS=29.970
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=.mp3
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
ID_LENGTH=115.55
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
ID_VIDEO_CODEC=ffh264
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 40.0 kbit/2.83% (ratio: 5000->176400)
ID_AUDIO_BITRATE=40000
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [dsound] 44100Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=mp3
Starting playback...


from my point problem is with different ISO, but I don't know how to
put h264 in mov cointainter properly. Any hint please ?

Thank you very much

/Brano


More information about the MEncoder-users mailing list