[FFmpeg-user] Warning "Starting new cluster due to timestamp" on muxing two input streams and resulting movie with muted audio at some locations

Georgi D. Sotirov gdsotirov at dir.bg
Mon Apr 24 12:22:59 EEST 2017


On 24/04/2017 at 11:39, Cley Faye wrote:
> 2017-04-24 9:58 GMT+02:00 Georgi D. Sotirov <gdsotirov at dir.bg>:
>
>> Anyone? Meanwhile I've done the muxing with mkvmerge from MKVToolNix <
>> https://mkvtoolnix.download/> package without any problem and muxed other
>> movies with FFmpeg successfully.
> ​Could you give us the full command line and output from ffmpeg?​
Hello,

Sure, the steps to reproduce were the following (i.e. the same that was 
done here <http://ffmpeg.gusari.org/viewtopic.php?f=11&t=2713>):

1. Download Sintel movie from https://durian.blender.org/download/ :

    ffmpeg -i Sintel.2010.1080p.mkv
    ffmpeg version 3.3 Copyright (c) 2000-2017 the FFmpeg developers
       built with gcc 5.3.0 (GCC)
       configuration: --arch=x86_64 --target-os=linux --prefix=/usr
    --libdir=/usr/lib64 --mandir=/usr/man --docdir=/usr/doc/ffmpeg-3.3
    --enable-gpl --enable-version3 --disable-static --enable-shared
    --enable-runtime-cpudetect --enable-ffmpeg --enable-ffplay
    --enable-ffprobe --enable-ffserver --enable-doc --enable-avdevice
    --enable-avcodec --enable-avformat --enable-swresample
    --enable-swscale --enable-postproc --enable-avfilter
    --enable-avresample --enable-pthreads --enable-bzlib
    --enable-chromaprint --enable-gmp --enable-frei0r --enable-gnutls
    --enable-iconv --enable-ladspa --enable-libass --enable-libbluray
    --enable-libbs2b --enable-libcaca --enable-libcdio
    --enable-libdc1394 --enable-libflite --enable-libfontconfig
    --enable-libfreetype --enable-libfribidi --enable-libgme
    --enable-libgsm --enable-libiec61883 --enable-libilbc
    --enable-libkvazaar --enable-libmodplug --enable-libmp3lame
    --enable-libopencore-amrnb --enable-libopencore-amrwb
    --enable-libopenjpeg --enable-libopenmpt --enable-libopus
    --enable-libpulse --enable-librubberband --enable-librtmp
    --enable-libschroedinger --enable-libsmbclient --enable-libsnappy
    --enable-libsoxr --enable-libspeex --enable-libssh
    --enable-libtesseract --enable-libtheora --enable-libtwolame
    --enable-libv4l2 --enable-libvidstab --enable-libvorbis
    --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265
    --enable-libxcb --enable-libxvid --enable-libzvbi --enable-lzma
    --enable-netcdf --enable-openal --enable-opengl --enable-zlib
    --enable-vaapi --enable-vdpau --enable-videotoolbox --disable-debug
       libavutil      55. 58.100 / 55. 58.100
       libavcodec     57. 89.100 / 57. 89.100
       libavformat    57. 71.100 / 57. 71.100
       libavdevice    57.  6.100 / 57.  6.100
       libavfilter     6. 82.100 /  6. 82.100
       libavresample   3.  5.  0 /  3.  5.  0
       libswscale      4.  6.100 /  4.  6.100
       libswresample   2.  7.100 /  2.  7.100
       libpostproc    54.  5.100 / 54.  5.100
    Input #0, matroska,webm, from 'Sintel.2010.1080p.mkv':
       Metadata:
         encoder         : libebml v1.0.0 + libmatroska v1.0.0
         creation_time   : 2011-04-25T12:57:46.000000Z
       Duration: 00:14:48.03, start: 0.000000, bitrate: 10562 kb/s
         Chapter #0:0: start 0.000000, end 103.125000
         Metadata:
           title           : Chapter 01
         Chapter #0:1: start 103.125000, end 148.667000
         Metadata:
           title           : Chapter 02
         Chapter #0:2: start 148.667000, end 349.792000
         Metadata:
           title           : Chapter 03
         Chapter #0:3: start 349.792000, end 437.208000
         Metadata:
           title           : Chapter 04
         Chapter #0:4: start 437.208000, end 472.075000
         Metadata:
           title           : Chapter 05
         Chapter #0:5: start 472.075000, end 678.833000
         Metadata:
           title           : Chapter 06
         Chapter #0:6: start 678.833000, end 744.083000
         Metadata:
           title           : Chapter 07
         Chapter #0:7: start 744.083000, end 888.032000
         Metadata:
           title           : Chapter 08
         Stream #0:0(eng): Video: h264 (High), yuv420p(tv,
    bt709/unknown/unknown, progressive), 1920x818, SAR 1:1 DAR 960:409,
    24 fps, 24 tbr, 1k tbn, 48 tbc
         Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
         Metadata:
           title           : AC3 5.1 @ 640 Kbps
         Stream #0:2(ger): Subtitle: subrip
         Stream #0:3(eng): Subtitle: subrip
         Stream #0:4(spa): Subtitle: subrip
         Stream #0:5(fre): Subtitle: subrip
         Stream #0:6(ita): Subtitle: subrip
         Stream #0:7(dut): Subtitle: subrip
         Stream #0:8(pol): Subtitle: subrip
         Stream #0:9(por): Subtitle: subrip
         Stream #0:10(rus): Subtitle: subrip
         Stream #0:11(vie): Subtitle: subrip

2. Extract audio (FFMpeg banner and Input #0 stripped, same as in step 1):

    ffmpeg -i Sintel.2010.1080p.mkv -vn -map 0:1 -map_chapters -1 -c:a
    copy Sintel.2010.1080p.audio.mkv
    ...
    Output #0, matroska, to 'Sintel.2010.1080p.audio.mkv':
       Metadata:
         encoder         : Lavf57.71.100
         Stream #0:0(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz,
    5.1(side), fltp, 640 kb/s
         Metadata:
           title           : AC3 5.1 @ 640 Kbps
    Stream mapping:
       Stream #0:1 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    size=   69572kB time=00:14:48.00 bitrate= 641.8kbits/s speed=1.54e+03x
    video:0kB audio:69378kB subtitle:0kB other streams:0kB global
    headers:0kB muxing overhead: 0.280049%

3. Re-mux video from first stream and audio from second (FFmpeg banner 
and Input #0 stripped, same as in step 1):

    ffmpeg -i Sintel.2010.1080p.mkv -i Sintel.2010.1080p.audio.mkv -map
    0:0 -map 1:0 -c copy Sintel.2010.1080p.new.mkv
    ...
    Input #1, matroska,webm, from 'Sintel.2010.1080p.audio.mkv':
       Metadata:
         ENCODER         : Lavf57.71.100
       Duration: 00:14:48.03, start: 0.000000, bitrate: 641 kb/s
         Stream #1:0(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640
    kb/s (default)
         Metadata:
           title           : AC3 5.1 @ 640 Kbps
           DURATION        : 00:14:48.032000000
    Output #0, matroska, to 'Sintel.2010.1080p.new.mkv':
       Metadata:
         encoder         : Lavf57.71.100
         Chapter #0:0: start 0.000000, end 103.125000
         Metadata:
           title           : Chapter 01
         Chapter #0:1: start 103.125000, end 148.667000
         Metadata:
           title           : Chapter 02
         Chapter #0:2: start 148.667000, end 349.792000
         Metadata:
           title           : Chapter 03
         Chapter #0:3: start 349.792000, end 437.208000
         Metadata:
           title           : Chapter 04
         Chapter #0:4: start 437.208000, end 472.075000
         Metadata:
           title           : Chapter 05
         Chapter #0:5: start 472.075000, end 678.833000
         Metadata:
           title           : Chapter 06
         Chapter #0:6: start 678.833000, end 744.083000
         Metadata:
           title           : Chapter 07
         Chapter #0:7: start 744.083000, end 888.032000
         Metadata:
           title           : Chapter 08
         Stream #0:0(eng): Video: h264 (High) (H264 / 0x34363248),
    yuv420p(tv, bt709/unknown/unknown, progressive), 1920x818 [SAR 1:1
    DAR 960:409], q=2-31, 24 fps, 24 tbr, 1k tbn, 1k tbc
         Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz,
    5.1(side), fltp, 640 kb/s (default)
         Metadata:
           title           : AC3 5.1 @ 640 Kbps
           DURATION        : 00:14:48.032000000
    Stream mapping:
       Stream #0:0 -> #0:0 (copy)
       Stream #1:0 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=21312 fps=5847 q=-1.0 Lsize= 1145090kB time=00:14:48.00
    bitrate=10563.7kbits/s speed= 244x
    video:1075348kB audio:69378kB subtitle:0kB other streams:0kB global
    headers:0kB muxing overhead: 0.031822%

But strange enough and as clear from the output above I do not have the 
warning now. It's the same if I re-encode the audio to AAC for example 
(i.e. run ffmpeg -i Sintel.2010.1080p.mkv -vn -map 0:1 -map_chapters -1 
-c:a aac Sintel.2010.1080p.audio.mkv in step 2 instead). I'll try again 
with the streams that first caused this warning to appear for me and 
write back later.

What is the general reason for warning "Starting new cluster due to 
timestamp" to appear anyway?


Regards,

--

Georgi D. Sotirov



More information about the ffmpeg-user mailing list