Opened 7 years ago
Last modified 6 months ago
#7169 open defect
First chapter of MP4 is always at 0.0
Reported by: | Jonatã Bolzan Loss | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | unspecified | Keywords: | mov |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug: MP4 files produced on ffmpeg with chapter marks being applied using ffmetadata always have the first chapter at 0.0
How to reproduce:
Test movie file:
https://archive.org/download/mov-bbb/mov_bbb.mp4
Chapters information (chapters.txt):
;FFMETADATA1 [CHAPTER] START=2153000000 END=3100000000 title=First chapter should start at 2 sec [CHAPTER] START=3100000000 END=5550000000 title=Second chapter [CHAPTER] START=5550000000 END=8653600000 title=Final chapter
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 this output, confirming it is understanding the first chapter as 2sec:
... Chapter #0:0: start 2.153000, end 3.100000 Metadata: title : First chapter should start at 2 sec ...
but running ffprobe -show_chapters:
ffprobe -show_chapters mov_bbb_with_chapters.mp4
confirms that in some way ffmpeg is setting the first chapter as 0.0:
... Chapter #0:0: start 0.000000, end 3.100000 Metadata: title : First chapter should start at 2 sec ... [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] ...
VLC reads the correct information (it shows the first chapter correctly). Other players like MPV, MPC, QT, reads it as 0.0.
Change History (9)
comment:1 by , 7 years ago
Summary: | First chapter of MP4 is always 0 → First chapter of MP4 is always at 0.0 |
---|
comment:2 by , 7 years ago
Component: | ffmpeg → undetermined |
---|---|
Keywords: | mov added; chapters removed |
Version: | 3.4 → unspecified |
comment:3 by , 7 years ago
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]
follow-up: 6 comment:4 by , 7 years ago
Where did you get this binary? I thought tessus builds are for OS X...
comment:5 by , 7 years ago
using https://git.ffmpeg.org/ just to make sure:
ffmpeg -i mov_bbb.mp4 -i chapters.txt -map_chapters 1 -c:a copy -c:v copy mov_bbb_with_chapters.mp4
ffmpeg version N-90883-g29fd44adf1-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= 781x video:367kB audio:197kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.682873%
ffprobe
ffprobe -show_chapters mov_bbb_with_chapters.mp4
ffprobe version N-90883-g29fd44adf1-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]
comment:6 by , 7 years ago
Replying to cehoyos:
Where did you get this binary? I thought tessus builds are for OS X...
You are correct, I mistakenly used the option extra-version tessus. I build it on Ubuntu 18.04, the first time using github and the following using git.ffmpeg.org. I will build it again, but in any case, does the OS matter on this issue?
comment:8 by , 7 years ago
Applying chapters:
ffmpeg -i mov_bbb.mp4 -i chapters.txt -map_chapters 1 -c:a copy -c:v copy mov_bbb_with_chapters.mp4
ffmpeg version N-90883-g29fd44adf1 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --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= 335x video:367kB audio:197kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.682873%
checking:
ffprobe -show_chapters mov_bbb_with_chapters.mp4
ffprobe version N-90883-g29fd44adf1 Copyright (c) 2007-2018 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) configuration: --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]
comment:9 by , 6 months ago
Status: | new → open |
---|
This is indeed a cosmetic issue, as VLC reads second chapter after 2 second, not from the start.
Please confirm that the issue is reproducible with current FFmpeg git head (nothing else is supported here) and provide the command line that allows to reproduce the issue together with the complete, uncut console output.