[FFmpeg-user] How to get the good type of mp4

Cecil Westerhof Cecil at decebal.nl
Mon May 16 11:02:56 CEST 2011


I made a mp4 file for someone. A file they can play is:
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/WinTransfer/blog.mp4':
      Metadata:
        major_brand     : mp42
        minor_version   : 1
        compatible_brands: M4V mp42isom
        creation_time   : 2010-10-27 22:48:19
      Duration: 00:01:17.27, start: 0.000000, bitrate: 86 kb/s
        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
        Metadata:
          creation_time   : 2010-10-27 22:48:19
        Stream #0.1(eng): Audio: aac, 22050 Hz, stereo, s16, 54 kb/s
        Metadata:
          creation_time   : 2010-10-27 22:48:19

I managed to make a file like:
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'huiswerkIQCoaches02.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        creation_time   : 1970-01-01 00:00:00
        encoder         : Lavf52.108.0
      Duration: 00:12:36.04, start: 0.000000, bitrate: 78 kb/s
        Stream #0.0(und): Video: h264 (High), yuv420p, 640x480 [PAR 1:1 DAR 4:3], 29 kb/s, 20 fps, 20 tbr, 20 tbn, 40 tbc
        Metadata:
          creation_time   : 1970-01-01 00:00:00
        Stream #0.1(und): Audio: aac, 22050 Hz, stereo, s16, 45 kb/s
        Metadata:
          creation_time   : 1970-01-01 00:00:00

They told me it worked. But now it turns out they only tested it in
Windows Media player. They need to give a demo of there website with
the video's integrated and now they find they do not play in there
website. (Why they did not test this is beyond me.)

When looking at it, I think the problem is the Metadata. I tried
working with vtag and metadata, but to no avail. What would be a way
to get the video playing?

For the curious, these are the parameters I use:
    -strict experimental -acodec aac -ar 22050 -ab 64k -vcodec libx264 -vpre slow -level 41 -vtag mp42 -crf 20 -bufsize 20000k -maxrate 25000k -g 250 -r 20 -s vga -metadata major_brand="mp42" -ss 0 -t 30 -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 7 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -rc_eq 'blurCplx^(1-qComp)' -bf 16 -b_strategy 1 -bidir_refine 1 -refs 6 -deblockalpha 0 -deblockbeta 0

By the way: why is creation_time not set?
-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


More information about the ffmpeg-user mailing list