Michel Bardiaux <[EMAIL PROTECTED]> writes:
> It is the original (input to your program) or output (of your program).
> Cant be both.
Well, again, from very beginning. :)
My program captures the MPEG Transport Stream from a DVB-S card. It works under
MS Windows and uses the card's specific API. I cannot open this stream with
ffmpeg.exe (command line utility) directly.
I can either dump the stream to a file and open this with ffmpeg -i, or define
ByteIOContext and use libav* functions.
I post the output of ffmpeg on the stream dump below, as it is rather long.
Using ffmpeg, I save the parts of the stream to files. For example, one user
defined video stream from a user defined program and one accompanying audio
stream.
The file p8211<etc>.mpg is one of such files. It is the output of my program.
It stores the program 8211, pids 2221 (0x08AD) and 2231 (0x08b7)
> So please post (again)! ffmpeg -i p8211<etc>.mpg, ffmpeg -vcodec copy
> p8.mpg, ffmpeg -i p8.mpg, *and* ffmpeg -i on the *output* of your program.
The result of ffmpeg -i <input for my program> is given below at the bottom of
my message.
Now, file p8211_2221_2231_2008-04-04-14-25-00_2008-04-04-14-35-00.mpg is the
*output* for my program
Here it is.
$ ffmpeg -i p8211_2221_2231_2008-04-04-14-25-00_2008-04-04-14-35-00.mpg
FFmpeg version SVN-r12661, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-memalign-hack --disable-shared --enable-static --
enable-pthreads --disable-stripping --prefix=/home/wl
libavutil version: 49.6.0
libavcodec version: 51.54.0
libavformat version: 52.13.0
libavdevice version: 52.0.0
built on Apr 2 2008 10:26:52, gcc: 4.2.1 (Ubuntu 4.2.1-5ubuntu4)
Input #0, mpeg, from 'p8211_2221_2231_2008-04-04-14-25-00_2008-04-04-14-35-
00.mpg':
Duration: 00:10:01.0, start: 84077.479689, bitrate: 3312 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR
4:3], 3165 kb/s, 25.00 tb(r)
Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Then
$ ffmpeg -i p8211_2221_2231_2008-04-04-14-25-00_2008-04-04-14-35-00.mpg -acodec
copy -vcodec copy -f dvd p8.mpg
$ ffmpeg -i p8.mpg
FFmpeg version SVN-r12661, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-memalign-hack --disable-shared --enable-static --
enable-pthreads --disable-stripping --prefix=/home/wl
libavutil version: 49.6.0
libavcodec version: 51.54.0
libavformat version: 52.13.0
libavdevice version: 52.0.0
built on Apr 2 2008 10:26:52, gcc: 4.2.1 (Ubuntu 4.2.1-5ubuntu4)
Input #0, mpeg, from 'p8.mpg':
Duration: 00:10:01.0, start: 0.500000, bitrate: 3311 kb/s
Stream #0.0[0x1c0]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Stream #0.1[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR
4:3], 3165 kb/s, 25.00 tb(r)
> And please post what durations VLC reports for all 3 mpg files too.
Unfortunately, I cannot store the original transport stream during the
recording (the computer runs out of resources).
VLC (0.8.6c) displays two different numbers, but they are the same for both
files (p8211_2221_2231_2008-04-04-14-25-00_2008-04-04-14-35-00.mpg, written
with my program, and p8.mpg, written with ffmpeg after processing
p8211<etc>.mpg)
It shows 0:00:04 in the lower left corner of the video window, and 0:10:00 in
View->Stream and media info->Advanced information.
VLC (0.8.6a) displays 4sec everywhere.
Kaffeine also shows 4 sec for both files.
> On reflexion, let's use the strategy that is usually best in this list:
> let us rehearse what you want using ffmpeg CLI. So post what I asked
> above, omitting what concerns the file output by your program.
>
> Greetings,
Output for the MPEG2 TS dump, saved in file 'ab.mpegts'
$ ffmpeg -i ab.mpegts
FFmpeg version SVN-r12661, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-memalign-hack --disable-shared --enable-static --
enable-pthreads --disable-stripping --prefix=/home/wl
libavutil version: 49.6.0
libavcodec version: 51.54.0
libavformat version: 52.13.0
libavdevice version: 52.0.0
built on Apr 2 2008 10:26:52, gcc: 4.2.1 (Ubuntu 4.2.1-5ubuntu4)
Input #0, mpegts, from 'ab.mpegts':
Duration: 19:23:01.3, start: 21295.218344, bitrate: 176 kb/s
Program 8201 Planeta Sport
Stream #0.20[0x50]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR
4:3], 3409 kb/s, 25.00 tb(r)
Stream #0.21[0x51]: Audio: mp2, 48000 Hz, stereo, 192 kb/s
Program 8202 KTO
Stream #0.33[0x54]: Audio: mp2, 48000 Hz, stereo, 128 kb/s
Stream #0.34[0xa1]: Video: mpeg2video, yuv420p, 544x576 [PAR 24:17 DAR
4:3], 15000 kb/s, 25.00 tb(r)
Program 8203 BET
Program 8204 BBC World
Stream #0.7[0x5c]: Audio: mp2, 48000 Hz, stereo, 256 kb/s
Stream #0.8[0xa3]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3],
15000 kb/s, 25.00 tb(r)
Program 8208 1TVRUS Europe
Stream #0.4[0x6c]: Audio: mp2, 48000 Hz, stereo, 192 kb/s
Stream #0.5[0xa7]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3],
15000 kb/s, 25.00 tb(r)
Program 8209 CNNi
Stream #0.0[0x70]: Audio: mp3
Stream #0.1[0x71]: Audio: mp3
Stream #0.2[0xa8]: Video: mpeg2video, 90000.00 tb(r)
Program 8211 Euronews
Stream #0.23[0x8ad]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR
4:3], 3165 kb/s, 25.00 tb(r)
Stream #0.24[0x8b7](fra): Audio: mp2, 48000 Hz, mono, 64 kb/s
Stream #0.25[0x8b8](eng): Audio: mp2, 48000 Hz, mono, 64 kb/s
Stream #0.26[0x8b9](deu): Audio: mp2, 48000 Hz, mono, 64 kb/s
Stream #0.27[0x8ba](ita): Audio: mp2, 48000 Hz, mono, 64 kb/s
Stream #0.28[0x8bb](spa): Audio: mp2, 48000 Hz, mono, 64 kb/s
Stream #0.29[0x8bc](por): Audio: mp2, 48000 Hz, mono, 64 kb/s
Stream #0.30[0x8bd](rus): Audio: mp2, 48000 Hz, mono, 64 kb/s
Stream #0.31[0x8be]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Program 8213 JSTV1
Stream #0.50[0x7d0]: Video: mpeg2video, 90000.00 tb(r)
Stream #0.51[0x7d1](jpn): Audio: mp3
Stream #0.52[0x7d2](eng): Audio: mp2, 48000 Hz, stereo, 128 kb/s
Stream #0.53[0x7d3](nat): Audio: mp3
Stream #0.54[0x7d4](dut): Audio: mp3
Program 8214 JSTV2
Stream #0.55[0x7db]: Video: mpeg2video, 90000.00 tb(r)
Stream #0.56[0x7dc](jpn): Audio: mp3
Stream #0.57[0x7dd](eng): Audio: mp3
Program 8215 WRN Russkij
Stream #0.32[0x835]: Audio: mp2, 48000 Hz, mono, 96 kb/s
Program 8216 WRN English
Stream #0.40[0x837]: Audio: mp2, 48000 Hz, mono, 96 kb/s
Program 8217 WRN Deutsch
Stream #0.11[0x839]: Audio: mp2, 48000 Hz, mono, 96 kb/s
Program 8218 WRN Francais
Stream #0.44[0x83b]: Audio: mp2, 48000 Hz, mono, 96 kb/s
Program 8219 GBTS2
Stream #0.37[0x87d]: Audio: mp2, 48000 Hz, mono, 48 kb/s
Stream #0.38[0x87e]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Program 8220 RCI 3
Stream #0.39[0x83f]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Program 8221 Family Europe
Stream #0.35[0x841]: Audio: mp2, 48000 Hz, stereo, 128 kb/s
Program 8222 RCI 2
Stream #0.15[0x843]: Audio: mp2, 48000 Hz, mono, 96 kb/s
Program 8223 RCI 1
Stream #0.19[0x846]: Audio: mp2, 48000 Hz, mono, 96 kb/s
Program 8224 RTE
Stream #0.18[0x848]: Audio: mp2, 48000 Hz, mono, 96 kb/s
Program 8225 IBC TAMIL RADIO
Stream #0.47[0x84a]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Program 8226 Sedayelran
Stream #0.36[0x84c]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Program 8227 PRA Radio
Stream #0.41[0x84e]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Program 8228 The Voice
Stream #0.22[0x850]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Program 8229 GBTS1
Stream #0.42[0x852]: Audio: mp2, 48000 Hz, mono, 48 kb/s
Stream #0.43[0x853]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Program 8230 WRN Eng AAP
Stream #0.48[0x854]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Program 8231 Radio New Hope
Stream #0.45[0x7e5]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Program 8232 PEC 3 RRI 3
Stream #0.16[0x7e7]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Program 8233 Family Int 1
Stream #0.46[0x7e9]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Program 8234 Family Int 2
Stream #0.10[0x7eb]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Program 8235 VTCSW1
Stream #0.17[0x7ed]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Program 8236 AWR Radio 128Kbit
Stream #0.9[0x7ef]: Audio: mp2, 48000 Hz, mono, 96 kb/s
Program 8237 YLESAT 1
Stream #0.6[0x7f1]: Audio: mp2, 48000 Hz, mono, 96 kb/s
Program 8238 YLESAT 2
Stream #0.12[0x7f3]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Program 8239 WRN Mul AAP
Stream #0.3[0x7f5]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Program 8240 WRN Sawt Al Alam
Stream #0.49[0x7f7]: Audio: mp2, 48000 Hz, mono, 96 kb/s
Program 8241 WRN Events
Stream #0.13[0x7f9](eng): Audio: mp2, 48000 Hz, stereo, 128 kb/s
Stream #0.14[0x7fa]: Audio: mp2, 48000 Hz, mono, 64 kb/s
Program 8292 Quadriga
Thank you for your time and for so long reading.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user