[FFmpeg-user] Converting to h264

Cecil Westerhof Cecil at Decebal.nl
Mon May 9 15:17:58 CEST 2011


I was told to make mp4 files. I did, but now at the client I find out
that the format is wrong.

My files have the following format:
    Stream #0.0(und): Video: mpeg4,       yuv420p, 1028x795 [PAR 1:1 DAR 1028:795], 1085 kb/s, 15 fps, 15 tbr, 15 tbn,  15 tbc
but what they need is:
    Stream #0.0(eng): Video: h264 (High), yuv420p,  640x480 [PAR 1:1 DAR 4:3],        30 kb/s, 10 fps, 10 tbr, 10k tbn, 20 tbc

I tried several things, but until now with no avail.

I tried for example:
ffmpeg -i afspraak.mp4 -vcodec copy -vbsf h264_mp4toannexb -an of.h264

Which gives:
Output #0, h264, to 'of.h264':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf52.108.0
    Stream #0.0(und): Video: mpeg4, yuv420p, 1028x795 [PAR 1:1 DAR 1028:795], q=2-31, 1085 kb/s, 90k tbn, 15 tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
[NULL @ 0x80981c0] Warning: SPS NALU missing or invalid. The resulting stream may not play.
[NULL @ 0x80981c0] Warning: PPS NALU missing or invalid. The resulting stream may not play.                                                    
h264_mp4toannexb failed for stream 0, codec copy: Invalid data found when processing input                                                     
frame= 2384 fps=  0 q=-1.0 Lsize=   20947kB time=158.93 bitrate=1079.7kbits/s    
video:21068kB audio:0kB global headers:0kB muxing overhead -0.571794%

Does anyone have a pointer for me where to find the info I need?

-- 
Cecil Westerhof


More information about the ffmpeg-user mailing list