How to specify mappings when capturing the MPEG TS.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to specify mappings when capturing the MPEG TS.

wl2776
Administrator
I am trying to capture a live MPEG-2 Transport stream from a DVB-S device.
Moreover, I have to save only two particular PIDs out of 60 that are in the
stream.

ffmpeg -i /dev/asirx0
gives me the listing of programs, carried in the stream.

The problem is that the situation always changes, and one particular elementary
PID has different stream numbers, assigned by the FFmpeg from run to run.

Therefore I am limited in using -map switch. This switch requires stream
numbers, which are unknown before ffmpeg run. Ffmpeg writes these numbers, but
they valid only in this particular run and cannot be used in subsequent runs.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: How to specify mappings when capturing the MPEG TS.

Nico Sabbi
On Tuesday 20 May 2008 11:24:49 Vladimir Eremeev wrote:

> I am trying to capture a live MPEG-2 Transport stream from a DVB-S
> device. Moreover, I have to save only two particular PIDs out of 60
> that are in the stream.
>
> ffmpeg -i /dev/asirx0
> gives me the listing of programs, carried in the stream.
>
> The problem is that the situation always changes, and one
> particular elementary PID has different stream numbers, assigned by
> the FFmpeg from run to run.
>
> Therefore I am limited in using -map switch. This switch requires
> stream numbers, which are unknown before ffmpeg run. Ffmpeg writes
> these numbers, but they valid only in this particular run and
> cannot be used in subsequent runs.
>

if you just want to capture one or more programs you can use
more easily dvbstream from www.sf.net, although you may
still ffmpeg to convert it.
Example:

$ dvbstream -f 11766 -p v -s 27500 -prog -o:R1.ts RaiUno -o:R2.ts
RaiDue .... and on

dvbstream will read and list the names of the programs from the SDT,
so you won't have to parse tables manually
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user