I need an utility that can receive a complete mpeg transport stream on one
multicast address, select one particular program and stream it to another
multicast address. For example, this works perfectly for me:
It obviously lacks information about the picture size.
Increasing -probesize and -analyzeduration wont help, but in fact, this is
not what I wish to do. I want ffmpeg just extract a given program and
generate a new mpegts without touching the contents. There is no problem
with completely unknown streams. I want the video and auto streams to be
handled in the same way. The end device can play the program, so there is
no point in trying to add information about picture size, which for some
reason cannot be successfully extracted.
In other words I need something like the famed getstream, which was just
demultiplexer/remultiplexer and nothing else without any deeper analysis of
the streams' content.
Is there any switch to force all streams being handled as unknown?
> I need an utility that can receive a complete mpeg transport stream on one
> multicast address, select one particular program and stream it to another
> multicast address. For example, this works perfectly for me:
> ffmpeg -copy_unknown -i udp:/126.96.36.199:20001 -map 0:p:3001 -c copy -f
> mpegts udp://188.8.131.52:20001
(I am not convinced that ffmpeg is the right tool for this kind of
retransmission, just in case this isn't obvious: A new output stream
is created with new properties, FFmpeg is unable to just strip the
unwanted parts of an mpeg stream.)
> Program #3001 is a standard SD channel with MPEG2 video and MP2 audio.
> However, when I try to stream program #3003, which is a HD channel with H264
> video, I get the following error:
Command line and complete, uncut console output missing.