New submission from Artem Belyaev <[email protected]>:
I am trying to remuxing video with many audio and subtitle streams from
vob (mpeg2ps) into mpeg2ts transport with exact stream id for each
stream.
It Processed OK, but stream id as i want set only for two first stream.
I mean "-streamid" parametor does not work for streams after second, e.g
for treed, forth and more ...
---- terminal log ---------
a...@odin:~/ff_preset/perl$ ffmpeg -v 9 -loglevel 99 -y -i
"./sample.vob" -dts_delta_threshold 2000 -streamid 0:400 -streamid
1:128 -streamid 2:129 -streamid 3:32 -vcodec copy -acodec copy -alang
rus -f mpegts "./sample.ts" -acodec copy -alang fra -newaudio -
scodec copy -slang rus -newsubtitle
FFmpeg version SVN-r26159, Copyright (c) 2000-2010 the FFmpeg developers
built on Dec 30 2010 02:10:35 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --
enable-postproc --enable-libfaac --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264
--enable-libxvid --enable-x11grab
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 0 / 0.16. 0
libavcodec 52.101. 0 / 52.101. 0
libavformat 52.91. 0 / 52.91. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.72. 0 / 1.72. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
[NULL @ 0xac044c0] Probed with size=8192 and score=52
[mpeg @ 0xac044c0] probing stream 0
Last message repeated 16 times
[mpeg @ 0xac044c0] Probe with size=34412, packets=17 detected mpegvideo
with score=51
[mpeg @ 0xac044c0] probed stream 0
[mpeg @ 0xac044c0] max_analyze_duration reached
Input #0, mpeg, from './sample.vob':
Duration: 00:25:04.96, start: 0.280000, bitrate: 6741 kb/s
Stream #0.0[0x1e0], 127, 1/90000: Video: mpeg2video, yuv420p,
720x576 [PAR 16:15 DAR 4:3], 1/50, 8500 kb/s, 25 fps, 25 tbr, 90k tbn,
50 tbc
Stream #0.1[0x20], 2, 1/90000: Subtitle: dvdsub
Stream #0.2[0x80], 133, 1/90000: Audio: ac3, 48000 Hz, stereo, s16,
192 kb/s
Stream #0.3[0x81], 133, 1/90000: Audio: ac3, 48000 Hz, stereo, s16,
192 kb/s
[mpegts @ 0xac19d80] muxrate VBR, pcr every 2 pkts, sdt every 200,
pat/pmt every 40 pkts
Output #0, mpegts, to './sample.ts':
Metadata:
encoder : Lavf52.91.0
Stream #0.0, 0, 1/90000: Video: mpeg2video, yuv420p, 720x576 [PAR
16:15 DAR 4:3], 1/25, q=2-31, 8500 kb/s, 90k tbn, 25 tbc
Stream #0.1(rus), 0, 1/90000: Audio: ac3, 48000 Hz, stereo, 192 kb/s
Stream #0.2(fra), 0, 1/90000: Audio: ac3, 48000 Hz, stereo, 192 kb/s
Stream #0.3(rus), 0, 1/90000: Subtitle: dvdsub
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.2 -> #0.1
Stream #0.3 -> #0.2
Stream #0.1 -> #0.3
Press [q] to stop encoding
timestamp discontinuity -600000, new offset= 320000
frame=37640 fps=1574 q=-1.0 Lsize= 1316576kB time=1467.64
bitrate=7348.8kbits/s
video:1143366kB audio:70546kB global headers:0kB muxing overhead
8.457220%
a...@odin:~/ff_preset/perl$
----- Check result TS file -------
a...@odin:~/ff_preset/perl$ ffprobe ./sample.ts
FFprobe version SVN-r26159, Copyright (c) 2007-2010 the FFmpeg
developers
built on Dec 30 2010 02:10:35 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --
enable-postproc --enable-libfaac --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264
--enable-libxvid --enable-x11grab
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 0 / 0.16. 0
libavcodec 52.101. 0 / 52.101. 0
libavformat 52.91. 0 / 52.91. 0
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.72. 0 / 1.72. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
[mpegts @ 0xaa45fc0] max_analyze_duration reached
[NULL @ 0xaa61b50] start time is not set in av_estimate_timings_from_pts
Input #0, mpegts, from './sample.ts':
Duration: 00:25:05.48, start: 1.480000, bitrate: 7164 kb/s
Program 1 Service01
Metadata:
name : Service01
provider_name : FFmpeg
Stream #0.0[0x190]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15
DAR 4:3], 8500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x80](rus): Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0.2[0x102](fra): Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0.3[0x103](rus): Subtitle: dvbsub
----------
messages: 13118
priority: normal
status: new
substatus: new
title: streamid parametor does not work for streams after
type: bug
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2465>
________________________________________________