[FFmpeg-trac] #2313(FFmpeg:new): -metadata option puts null characters in, confusing iTunes.

FFmpeg trac at avcodec.org
Fri Mar 1 03:23:20 CET 2013


#2313: -metadata option puts null characters in, confusing iTunes.
-------------------------------------+-------------------------------------
             Reporter:  STrRedWolf   |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  FFmpeg       |                  Version:
             Keywords:               |  unspecified
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------
 Summary of the bug:  If you use the -metadata option while converting
 video to an iTunes playable M4V, iTunes will refuse to recognize the file;
 it'll just ignore it.  It will do a bit of analysis if you load a bulk of
 them up, but then ignore the whole batch if they all use the -metadata
 option.

 A check with AtomicParsley says that many of the atoms in the M4V have
 null-terminated values... which is not allowed and causes iTunes to think
 the file is bad.

 How to reproduce:
 {{{
 % ffmpeg -i input -acodec libfaac -ac 2 -ab 160k -c:v libx264 -vprofile
 main -preset slow -tune film -level 3.1 -crf 28 -threads 0 -metadata
 media_type=10 -metadata network=FakeNetwork -metadata "show=Convention
 Archive" -metadata "title=ComicCon Cotham City" -metadata season_number=1
 -metadata episode_sort=1 -metadata "track=1/1" -metadata episode_id=output
 output

 ffmpeg version 1.1.2 Copyright (c) 2000-2013 the FFmpeg developers
   built on Feb 17 2013 18:35:29 with gcc 4.6.3 (Gentoo 4.6.3 p1.11,
 pie-0.5.2)
   configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc
 --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2
 -pipe -march=native' --extra-cflags='-O2 -pipe -march=native' --extra-
 cxxflags='-O2 -pipe -march=native' --disable-static --enable-gpl --enable-
 version3 --enable-postproc --enable-avfilter --disable-stripping
 --disable-debug --disable-doc --disable-network --disable-vaapi --disable-
 runtime-cpudetect --enable-libmp3lame --enable-libvo-aacenc --enable-
 libtheora --enable-libx264 --enable-libxvid --enable-libfaac --enable-
 nonfree --enable-libdc1394 --disable-indev=oss --enable-x11grab --enable-
 libpulse --disable-outdev=oss --enable-libfreetype --enable-pthreads
 --enable-libvorbis --enable-libopenjpeg --disable-altivec --disable-avx
 --disable-vis --disable-neon --cpu=host --enable-hardcoded-tables
   libavutil      52. 13.100 / 52. 13.100
   libavcodec     54. 86.100 / 54. 86.100
   libavformat    54. 59.106 / 54. 59.106
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 32.100 /  3. 32.100
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100

 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2313>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list