[FFmpeg-user] Remux TS to MPG: spedify stream order

Dmpfbck xbtw0hx96ql8t8aj_ffmpeg at freenet.de
Fri Feb 26 12:38:21 CET 2016


Am 26.02.2016 um 07:04 schrieb Moritz Barsnick:
> Hi Dumpfbacke(?),

Yes.

> Please, please, *please* always show us the used command line and the
> complete, uncut console output. It holds lots of valuable information
> (if not for you, at least for us)!

I read the other answers, too, but reply only to this on for now.

Posting the whole output is confusing and doesn't change the behavior.. ;) Ok, here it is:


C:\Program Files (x86)\NoSetup\FFmpeg\ffmpeg-20160204-git-37db3e8-win64-static\bin>ffmpeg -i "D:\TV\Aktuell\TS\20160225_1844 RTL Television, Exclusiv - Das Starmagazin.ts" -map 0:v -map 0:a -vcodec copy -acodec copy "D:\TV\Aktuell\mpeg\20160225_1844 RTL T
elevision, Exclusiv - Das Starmagazin.mpg"
ffmpeg version N-78304-g37db3e8 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcade
c --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enab
le-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 17.100 / 55. 17.100
  libavcodec     57. 24.101 / 57. 24.101
  libavformat    57. 24.100 / 57. 24.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 28.100 /  6. 28.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[mpeg2video @ 0000000000539660] Invalid frame dimensions 0x0.
    Last message repeated 4 times
[NULL @ 0000000000516ec0] start time for stream 3 is not set in estimate_timings_from_pts
[NULL @ 0000000000518620] start time for stream 5 is not set in estimate_timings_from_pts
[mpegts @ 0000000000512fc0] PES packet size mismatch
    Last message repeated 1 times
[mpegts @ 0000000000512fc0] Could not find codec parameters for stream 2 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0000000000512fc0] Could not find codec parameters for stream 6 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0000000000512fc0] Could not find codec parameters for stream 7 (Unknown: none ([12][0][0][0] / 0x000C)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'D:\TV\Aktuell\TS\20160225_1844 RTL Television, Exclusiv - Das Starmagazin.ts':
  Duration: 00:25:46.19, start: 78117.369578, bitrate: 4780 kb/s
  Program 12003
    Stream #0:0[0xa3]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x68](ger): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s (clean effects)
    Stream #0:2[0x6c]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:3[0x69](ger): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
    Stream #0:4[0x6a](ger): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 384 kb/s (clean effects)
    Stream #0:5[0x6e](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:6[0x6f]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:7[0x70]: Unknown: none ([12][0][0][0] / 0x000C)
[mpeg @ 00000000005a89c0] VBV buffer size not set, using default size of 130KB
If you want the mpeg file to be compliant to some specification
Like DVD, VCD or others, make sure you set the correct buffer size
[mpeg @ 00000000005a89c0] ac3 in MPEG-1 system streams is not widely supported, consider using the vob or the dvd muxer to force a MPEG-2 program stream.
Output #0, mpeg, to 'D:\TV\Aktuell\mpeg\20160225_1844 RTL Television, Exclusiv - Das Starmagazin.mpg':
  Metadata:
    encoder         : Lavf57.24.100
    Stream #0:0: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
    Stream #0:1(ger): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 192 kb/s (clean effects)
    Stream #0:2(ger): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, 384 kb/s (clean effects)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:4 -> #0:2 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0000000000512fc0] PES packet size mismatch5:32.83 bitrate=4672.8kbits/s speed=37.2x
    Last message repeated 1 times
frame=38645 fps=930 q=-1.0 Lsize=  881794kB time=00:25:46.11 bitrate=4672.1kbits/s speed=37.2x
video:768434kB audio:108683kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.533144%


Checking the .mpg file:

C:\Program Files (x86)\NoSetup\FFmpeg\ffmpeg-20160204-git-37db3e8-win64-static\bin>ffmpeg -i "D:\TV\Aktuell\mpeg\20160225_1844 RTL Television, Exclusiv - Das Starmagazin.mpg"
ffmpeg version N-78304-g37db3e8 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcade
c --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enab
le-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 17.100 / 55. 17.100
  libavcodec     57. 24.101 / 57. 24.101
  libavformat    57. 24.100 / 57. 24.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 28.100 /  6. 28.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mpeg, from 'D:\TV\Aktuell\mpeg\20160225_1844 RTL Television, Exclusiv - Das Starmagazin.mpg':
  Duration: 00:25:46.19, start: 0.500000, bitrate: 4671 kb/s
    Stream #0:0[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 384 kb/s
    Stream #0:2[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
At least one output file must be specified


I do know the stream order /might/ be a problem of the other programs I'm using, but if there's a way to support them by changing the remuxing process, I was trying to do so.

Thanks.



More information about the ffmpeg-user mailing list