[FFmpeg-trac] #7169(undetermined:new): First chapter of MP4 is always at 0.0

FFmpeg trac at avcodec.org
Sun Apr 29 03:45:00 EEST 2018


#7169: First chapter of MP4 is always at 0.0
-------------------------------------+-------------------------------------
             Reporter:  jonata       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:  mov          |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by jonata):

 Yes, using the last version from github:

 {{{
 ffmpeg version 3.4.git-tessus Copyright (c) 2000-2018 the FFmpeg
 developers
 built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
 configuration: --extra-version=tessus --enable-avisynth --enable-
 fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-
 libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus
 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora
 --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-
 libwavpack --enable-libx264 --enable-libx265 --enable-libxvid --enable-
 libzmq --enable-libzvbi --enable-version3
 libavutil      56. 17.100 / 56. 17.100
 libavcodec     58. 19.100 / 58. 19.100
 libavformat    58. 13.100 / 58. 13.100
 libavdevice    58.  4.100 / 58.  4.100
 libavfilter     7. 20.100 /  7. 20.100
 libswscale      5.  2.100 /  5.  2.100
 libswresample   3.  2.100 /  3.  2.100
 libpostproc    55.  2.100 / 55.  2.100
 }}}

 Applying chapters:
 {{{
 ffmpeg -i mov_bbb.mp4 -i chapters.txt -map_chapters 1 -c:a copy -c:v copy
 mov_bbb_with_chapters.mp4
 }}}

 or even specifying Apple text:
 {{{
 ffmpeg -i mov_bbb.mp4 -i chapters.txt -map_chapters 1 -c:a copy -c:v copy
 -c:s mov_text mov_bbb_with_chapters.mp4
 }}}

 returns
 {{{
 ffmpeg version 3.4.git-tessus Copyright (c) 2000-2018 the FFmpeg
 developers
   built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
   configuration: --extra-version=tessus --enable-avisynth --enable-
 fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-
 libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus
 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora
 --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-
 libwavpack --enable-libx264 --enable-libx265 --enable-libxvid --enable-
 libzmq --enable-libzvbi --enable-version3
   libavutil      56. 17.100 / 56. 17.100
   libavcodec     58. 19.100 / 58. 19.100
   libavformat    58. 13.100 / 58. 13.100
   libavdevice    58.  4.100 / 58.  4.100
   libavfilter     7. 20.100 /  7. 20.100
   libswscale      5.  2.100 /  5.  2.100
   libswresample   3.  2.100 /  3.  2.100
   libpostproc    55.  2.100 / 55.  2.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mov_bbb.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: mp42isomavc1
     creation_time   : 2012-03-13T08:58:06.000000Z
     encoder         : HandBrake 0.9.6 2012022800
   Duration: 00:00:10.03, start: 0.000000, bitrate: 629 kb/s
     Chapter #0:0: start 0.000000, end 10.000000
     Metadata:
       title           : Chapter 1
     Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv,
 smpte170m/smpte170m/bt709), 320x176, 300 kb/s, 25 fps, 25 tbr, 90k tbn,
 180k tbc (default)
     Metadata:
       creation_time   : 2012-03-13T08:58:06.000000Z
       encoder         : JVT/AVC Coding
     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
 stereo, fltp, 160 kb/s (default)
     Metadata:
       creation_time   : 2012-03-13T08:58:06.000000Z
     Stream #0:2(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
 stereo, fltp, 160 kb/s
     Metadata:
       creation_time   : 2012-03-13T08:58:06.000000Z
     Stream #0:3(und): Data: bin_data (text / 0x74786574), 0 kb/s
     Metadata:
       creation_time   : 2012-03-13T08:58:06.000000Z
 Input #1, ffmetadata, from 'chapters.txt':
   Duration: 00:00:08.65, start: 0.000000, bitrate: 0 kb/s
     Chapter #1:0: start 2.153000, end 3.100000
     Metadata:
       title           : First chapter should start at 2 sec
     Chapter #1:1: start 3.100000, end 5.550000
     Metadata:
       title           : Second chapter
     Chapter #1:2: start 5.550000, end 8.653600
     Metadata:
       title           : Final chapter
 Output #0, mp4, to 'mov_bbb_with_chapters.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: mp42isomavc1
     encoder         : Lavf58.13.100
     Chapter #0:0: start 2.153000, end 3.100000
     Metadata:
       title           : First chapter should start at 2 sec
     Chapter #0:1: start 3.100000, end 5.550000
     Metadata:
       title           : Second chapter
     Chapter #0:2: start 5.550000, end 8.653600
     Metadata:
       title           : Final chapter
     Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv,
 smpte170m/smpte170m/bt709), 320x176, q=2-31, 300 kb/s, 25 fps, 25 tbr, 90k
 tbn, 90k tbc (default)
     Metadata:
       creation_time   : 2012-03-13T08:58:06.000000Z
       encoder         : JVT/AVC Coding
     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
 stereo, fltp, 160 kb/s (default)
     Metadata:
       creation_time   : 2012-03-13T08:58:06.000000Z
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 frame=  250 fps=0.0 q=-1.0 Lsize=     573kB time=00:00:10.00 bitrate=
 469.1kbits/s speed= 480x
 video:367kB audio:197kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 1.682873%
 }}}

 checking with ffprobe:

 {{{
 ffprobe -show_chapters mov_bbb_with_chapters.mp4
 }}}

 {{{
 ffprobe version 3.4.git-tessus Copyright (c) 2007-2018 the FFmpeg
 developers
   built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
   configuration: --extra-version=tessus --enable-avisynth --enable-
 fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-
 libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus
 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora
 --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-
 libwavpack --enable-libx264 --enable-libx265 --enable-libxvid --enable-
 libzmq --enable-libzvbi --enable-version3
   libavutil      56. 17.100 / 56. 17.100
   libavcodec     58. 19.100 / 58. 19.100
   libavformat    58. 13.100 / 58. 13.100
   libavdevice    58.  4.100 / 58.  4.100
   libavfilter     7. 20.100 /  7. 20.100
   libswscale      5.  2.100 /  5.  2.100
   libswresample   3.  2.100 /  3.  2.100
   libpostproc    55.  2.100 / 55.  2.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mov_bbb_with_chapters.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf58.13.100
   Duration: 00:00:10.03, start: 0.000000, bitrate: 468 kb/s
     Chapter #0:0: start 0.000000, end 3.100000
     Metadata:
       title           : First chapter should start at 2 sec
     Chapter #0:1: start 3.100000, end 5.550000
     Metadata:
       title           : Second chapter
     Chapter #0:2: start 5.550000, end 8.654000
     Metadata:
       title           : Final chapter
     Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv,
 smpte170m/smpte170m/bt709), 320x176, 300 kb/s, 25 fps, 25 tbr, 90k tbn,
 180k tbc (default)
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
 stereo, fltp, 160 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
     Stream #0:2(eng): Data: bin_data (text / 0x74786574), 0 kb/s
     Metadata:
       handler_name    : SubtitleHandler
 Unsupported codec with id 100359 for input stream 2
 [CHAPTER]
 id=0
 time_base=1/1000
 start=0
 start_time=0.000000
 end=3100
 end_time=3.100000
 TAG:title=First chapter should start at 2 sec
 [/CHAPTER]
 [CHAPTER]
 id=1
 time_base=1/1000
 start=3100
 start_time=3.100000
 end=5550
 end_time=5.550000
 TAG:title=Second chapter
 [/CHAPTER]
 [CHAPTER]
 id=2
 time_base=1/1000
 start=5550
 start_time=5.550000
 end=8654
 end_time=8.654000
 TAG:title=Final chapter
 [/CHAPTER]
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7169#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list