[FFmpeg-user] Automatic encoding of .ts files gives an inexplicable delay after muxing

marsupilami streamin at elitemail.org
Fri Oct 24 11:27:30 CEST 2014


Carl Eugen Hoyos wrote
> marsupilami 
> <streamin <at>
>  elitemail.org> writes:
> 
> What's wrong with the following?
> $ ffmpeg -i file.ts -vf yadif -vcodec libx264 -acodec ac3 out.mkv
> (You have to add the remaining options you need.)

The main reason why I didn't try this sooner was because I was worried
ffmpeg wouldn't include the latest version of x264 or it would maybe be too
slow. However after trying out your command line I realised I was wrong and
maybe I was thinking too complex when there was a cleaner and simpler
solution available.

Encoding with my command line produces the following output:

E:\enc>ffmpeg -ss 00:00:10 -i input.ts -vf "framestep=2,scale=720x404"
-sws_flags lanczos -f yuv4mpegpipe -pix_fmt yuv420p - | x264_64.exe --stdin
y4m --level 3.1 --preset slow --crf 19.0 --deblo
ck -2:-2 --aq-strength 0.8 --sar 1:1 --output output.mkv -
ffmpeg version N-66742-gf6777ce Copyright (c) 2000-2014 the FFmpeg
developers
  built on Oct  8 2014 22:01:47 with gcc 4.9.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libblu
ray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme
--enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinger --enable-libsoxr --enable-libspeex
--enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvo-aacenc --
enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs
--enable-libxvid --enable-zlib
  libavutil      54. 10.100 / 54. 10.100
  libavcodec     56.  4.101 / 56.  4.101
  libavformat    56.  9.100 / 56.  9.100
  libavdevice    56.  1.100 / 56.  1.100
  libavfilter     5.  1.103 /  5.  1.103
  libswscale      3.  1.100 /  3.  1.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  1.100 / 53.  1.100
[h264 @ 029df000] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 029df000] decode_slice_header error
[h264 @ 029df000] no frame!
[h264 @ 029df000] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 029df000] decode_slice_header error
[h264 @ 029df000] no frame!
[h264 @ 029df000] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 029df000] decode_slice_header error
[h264 @ 029df000] no frame!
[h264 @ 029df000] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 029df000] decode_slice_header error
[h264 @ 029df000] no frame!
[h264 @ 029df000] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 029df000] decode_slice_header error
[h264 @ 029df000] no frame!
[h264 @ 029df000] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 029df000] decode_slice_header error
[h264 @ 029df000] no frame!
[NULL @ 0426d300] start time for stream 8 is not set in
estimate_timings_from_pts
[mpegts @ 0426e300] PES packet size mismatch
    Last message repeated 3 times
[mpegts @ 0426e300] Could not find codec parameters for stream 0 (Unknown:
none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
[mpegts @ 0426e300] PES packet size mismatch
    Last message repeated 10 times
Input #0, mpegts, from 'input.ts':
  Duration: 01:15:01.04, start: 42121.255633, bitrate: 10866 kb/s
  Program 10301
  Program 10302
    Stream #0:0[0x4f6]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:1[0x13f7]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0:2[0x13f8](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 190 kb/s
    Stream #0:3[0x13f9](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 190 kb/s
    Stream #0:4[0x13fa](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
    Stream #0:5[0x13fb](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
(hearing impaired)
    Stream #0:6[0x13fc](mul): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz,
5.1(side), fltp, 448 kb/s
    Stream #0:7[0x13fd](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 190 kb/s
    Stream #0:8[0x13fe](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:9[0x13ff](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
  Program 10303
  Program 10304
Output #0, yuv4mpegpipe, to 'pipe:':
  Metadata:
    encoder         : Lavf56.9.100
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x404 [SAR
404:405 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.4.101 rawvideo
Stream mapping:
  Stream #0:1 -> #0:0 (h264 (native) -> rawvideo (native))
Press [q] to stop, [?] for help
[yuv4mpegpipe @ 05140060] Encoder did not produce proper pts, making some
up.
y4m [info]: 720x404p 404:405 @ 25/1 fps (cfr)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2
FMA3 LZCNT BMI2
x264 [info]: profile High, level 3.1
frame=112275 fps=121 q=0.0 Lsize=47840334kB time=01:14:51.00
bitrate=87265.2kbits/s dup=14 drop=0
video:7017kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 681659.375000%
x264 [info]: frame I:954   Avg QP:15.72  size: 32986
x264 [info]: frame P:30208 Avg QP:18.51  size:  7304
x264 [info]: frame B:81113 Avg QP:21.12  size:  1656
x264 [info]: consecutive B-frames:  1.7%  2.9%  9.3% 86.1%
x264 [info]: mb I  I16..4: 11.9% 64.1% 24.0%
x264 [info]: mb P  I16..4:  2.0%  4.7%  1.2%  P16..4: 41.1% 17.5% 11.5% 
0.0%  0.0%    skip:22.0%
x264 [info]: mb B  I16..4:  0.1%  0.3%  0.1%  B16..8: 32.9%  4.2%  0.9% 
direct: 2.1%  skip:59.4%  L0:40.8% L1:49.1% BI:10.0%
x264 [info]: 8x8 transform intra:59.6% inter:75.6%
x264 [info]: direct mvs  spatial:100.0% temporal:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 59.1% 66.7% 38.4% inter: 13.5% 16.9%
1.1%
x264 [info]: i16 v,h,dc,p: 46% 21%  9% 25%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18%  9% 15%  8% 11% 12% 10% 10% 
9%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29%  9%  5%  7% 11% 12% 10%  9% 
9%
x264 [info]: i8c dc,h,v,p: 42% 23% 24% 11%
x264 [info]: Weighted P-Frames: Y:2.0% UV:0.8%
x264 [info]: ref P L0: 53.6% 10.7% 19.6%  8.4%  7.1%  0.7%  0.0%
x264 [info]: ref B L0: 80.3% 13.2%  4.5%  1.9%
x264 [info]: ref B L1: 95.8%  4.2%
x264 [info]: kb/s:688.38

encoded 112275 frames, 121.31 fps, 688.39 kb/s

For the sake of speed I omitted the -re switch.

Audio encoding produces this output:

E:\enc>ffmpeg -ss 00:00:10 -i input.ts -map 0:6 -b:a 384k output.ac3
ffmpeg version N-66742-gf6777ce Copyright (c) 2000-2014 the FFmpeg
developers
  built on Oct  8 2014 22:01:47 with gcc 4.9.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libblu
ray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme
--enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinger --enable-libsoxr --enable-libspeex
--enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvo-aacenc --
enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs
--enable-libxvid --enable-zlib
  libavutil      54. 10.100 / 54. 10.100
  libavcodec     56.  4.101 / 56.  4.101
  libavformat    56.  9.100 / 56.  9.100
  libavdevice    56.  1.100 / 56.  1.100
  libavfilter     5.  1.103 /  5.  1.103
  libswscale      3.  1.100 /  3.  1.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  1.100 / 53.  1.100
[h264 @ 0412b620] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0412b620] decode_slice_header error
[h264 @ 0412b620] no frame!
[h264 @ 0412b620] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0412b620] decode_slice_header error
[h264 @ 0412b620] no frame!
[h264 @ 0412b620] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0412b620] decode_slice_header error
[h264 @ 0412b620] no frame!
[h264 @ 0412b620] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0412b620] decode_slice_header error
[h264 @ 0412b620] no frame!
[h264 @ 0412b620] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0412b620] decode_slice_header error
[h264 @ 0412b620] no frame!
[h264 @ 0412b620] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0412b620] decode_slice_header error
[h264 @ 0412b620] no frame!
[NULL @ 0410f820] start time for stream 8 is not set in
estimate_timings_from_pts
[mpegts @ 040fdf60] PES packet size mismatch
    Last message repeated 3 times
[mpegts @ 040fdf60] Could not find codec parameters for stream 0 (Unknown:
none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
[mpegts @ 040fdf60] PES packet size mismatch
    Last message repeated 10 times
Input #0, mpegts, from 'input.ts':
  Duration: 01:15:01.04, start: 42121.255633, bitrate: 10866 kb/s
  Program 10301
  Program 10302
    Stream #0:0[0x4f6]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:1[0x13f7]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0:2[0x13f8](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 190 kb/s
    Stream #0:3[0x13f9](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 190 kb/s
    Stream #0:4[0x13fa](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
    Stream #0:5[0x13fb](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
(hearing impaired)
    Stream #0:6[0x13fc](mul): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz,
5.1(side), fltp, 448 kb/s
    Stream #0:7[0x13fd](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 190 kb/s
    Stream #0:8[0x13fe](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:9[0x13ff](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
  Program 10303
  Program 10304
Output #0, ac3, to 'output.ac3':
  Metadata:
    encoder         : Lavf56.9.100
    Stream #0:0(mul): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Metadata:
      encoder         : Lavc56.4.101 ac3
Stream mapping:
  Stream #0:6 -> #0:0 (ac3 (native) -> ac3 (native))
Press [q] to stop, [?] for help
[mpegts @ 040fdf60] PES packet size mismatch4.0kbits/s
[ac3 @ 04654440] incomplete frame
size=  210456kB time=01:14:49.72 bitrate= 384.0kbits/s
video:0kB audio:210456kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.000000%

Encoding with your provided command line (altered to match my needs)
produces the following output:

E:\enc>ffmpeg -i input.ts -vf "framestep=2,scale=720x404" -sws_flags lanczos
-vcodec libx264 -map 0:v -preset slow -level 3.1 -crf 19 -sar 1:1 -deblock
-2:-2 -aq-strength 0.8 -acodec ac3 -map 0:6
 -b:a 384k output2.mkv
ffmpeg version N-66742-gf6777ce Copyright (c) 2000-2014 the FFmpeg
developers
  built on Oct  8 2014 22:01:47 with gcc 4.9.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libblu
ray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme
--enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinger --enable-libsoxr --enable-libspeex
--enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvo-aacenc --
enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs
--enable-libxvid --enable-zlib
  libavutil      54. 10.100 / 54. 10.100
  libavcodec     56.  4.101 / 56.  4.101
  libavformat    56.  9.100 / 56.  9.100
  libavdevice    56.  1.100 / 56.  1.100
  libavfilter     5.  1.103 /  5.  1.103
  libswscale      3.  1.100 /  3.  1.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  1.100 / 53.  1.100
[h264 @ 0423c600] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0423c600] decode_slice_header error
[h264 @ 0423c600] no frame!
[h264 @ 0423c600] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0423c600] decode_slice_header error
[h264 @ 0423c600] no frame!
[h264 @ 0423c600] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0423c600] decode_slice_header error
[h264 @ 0423c600] no frame!
[h264 @ 0423c600] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0423c600] decode_slice_header error
[h264 @ 0423c600] no frame!
[h264 @ 0423c600] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0423c600] decode_slice_header error
[h264 @ 0423c600] no frame!
[h264 @ 0423c600] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0423c600] decode_slice_header error
[h264 @ 0423c600] no frame!
[NULL @ 02aaab40] start time for stream 8 is not set in
estimate_timings_from_pts
[mpegts @ 0420e000] PES packet size mismatch
    Last message repeated 3 times
[mpegts @ 0420e000] Could not find codec parameters for stream 0 (Unknown:
none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize'
options
Input #0, mpegts, from 'input.ts':
  Duration: 01:15:01.04, start: 42121.255633, bitrate: 10866 kb/s
  Program 10301
  Program 10302
    Stream #0:0[0x4f6]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:1[0x13f7]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0:2[0x13f8](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 190 kb/s
    Stream #0:3[0x13f9](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 190 kb/s
    Stream #0:4[0x13fa](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
    Stream #0:5[0x13fb](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
(hearing impaired)
    Stream #0:6[0x13fc](mul): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz,
5.1(side), fltp, 448 kb/s
    Stream #0:7[0x13fd](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz,
stereo, s16p, 190 kb/s
    Stream #0:8[0x13fe](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:9[0x13ff](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
  Program 10303
  Program 10304
[libx264 @ 05469e80] using SAR=404/405
[libx264 @ 05469e80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
AVX2 FMA3 LZCNT BMI2
[libx264 @ 05469e80] profile High, level 3.1
[libx264 @ 05469e80] 264 - core 142 r2479 dd79a61 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1
ref=5 deblock=1:-2:-2 analyse=0x3:0x113 me=umh su
bme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12
lookahead_threads=2 sliced_threads=0 nr=0 decimate=
1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2
b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=50
 rc=crf mbtree=1 crf=19.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:0.80
Output #0, matroska, to 'output2.mkv':
  Metadata:
    encoder         : Lavf56.9.100
    Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 720x404
[SAR 404:405 DAR 16:9], q=-1--1, 25 fps, 1k tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.4.101 libx264
    Stream #0:1(mul): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side),
fltp, 384 kb/s
    Metadata:
      encoder         : Lavc56.4.101 ac3
Stream mapping:
  Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:6 -> #0:1 (ac3 (native) -> ac3 (native))
Press [q] to stop, [?] for help
[mpegts @ 0420e000] PES packet size mismatchtime=01:14:57.65
bitrate=1076.2kbits/s
[ac3 @ 055b6500] incomplete frame
frame=112493 fps=110 q=-1.0 Lsize=  591301kB time=01:15:00.80
bitrate=1076.2kbits/s
video:378608kB audio:210918kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.301056%
[libx264 @ 05469e80] frame I:958   Avg QP:15.73  size: 33004
[libx264 @ 05469e80] frame P:30266 Avg QP:18.51  size:  7312
[libx264 @ 05469e80] frame B:81269 Avg QP:21.13  size:  1658
[libx264 @ 05469e80] consecutive B-frames:  1.7%  2.9%  9.3% 86.1%
[libx264 @ 05469e80] mb I  I16..4: 11.9% 64.1% 24.0%
[libx264 @ 05469e80] mb P  I16..4:  2.0%  4.7%  1.2%  P16..4: 41.1% 17.5%
11.5%  0.0%  0.0%    skip:21.9%
[libx264 @ 05469e80] mb B  I16..4:  0.1%  0.2%  0.1%  B16..8: 32.9%  4.2% 
0.9%  direct: 2.1%  skip:59.3%  L0:40.9% L1:49.1% BI:10.1%
[libx264 @ 05469e80] 8x8 transform intra:59.3% inter:75.6%
[libx264 @ 05469e80] direct mvs  spatial:100.0% temporal:0.0%
[libx264 @ 05469e80] coded y,uvDC,uvAC intra: 59.2% 66.8% 38.5% inter: 13.5%
17.0% 1.1%
[libx264 @ 05469e80] i16 v,h,dc,p: 46% 21%  9% 25%
[libx264 @ 05469e80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18%  9% 15%  8% 11% 12%
10% 10%  9%
[libx264 @ 05469e80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28%  9%  6%  7% 11% 12%
10%  9%  9%
[libx264 @ 05469e80] i8c dc,h,v,p: 42% 23% 24% 11%
[libx264 @ 05469e80] Weighted P-Frames: Y:2.0% UV:0.8%
[libx264 @ 05469e80] ref P L0: 53.5% 10.7% 19.6%  8.4%  7.1%  0.7%  0.0%
[libx264 @ 05469e80] ref B L0: 80.3% 13.2%  4.5%  2.0%
[libx264 @ 05469e80] ref B L1: 95.8%  4.2%
[libx264 @ 05469e80] kb/s:689.28

It seems to need the -map 0:v switch or it won't encode the video stream.
I've tested your command line with multiple files and it seems to work like
a charm. I'll test some more later but for your assistance I offer you a big
virtual cup of coffee and my thanks. However, it's still strange why
separate encoding of video and audio would result in this delay.

Cheerio!



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Automatic-encoding-of-ts-files-gives-an-inexplicable-delay-after-muxing-tp4667828p4667836.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list