[Libav-user] av_read_frame not discarding streams and/or programs from mpegts marked as AVDISCARD_ALL

Carl Eugen Hoyos ceffmpeg at gmail.com
Sun Oct 23 21:25:35 EEST 2016


2016-10-23 14:46 GMT+02:00 Piotr Woźniak <woziosek at gmail.com>:

> I have a problem with remuxing mpegts output from DVB DVR device
> to mpegts with selected streams only.

(Related to the subject, I did not read much further)
AV_DISCARD only affects decoding, remuxing rules out
decoding, so the flags cannot have effect on
remuxing.

> DVR file contains while transport stream from transponder and I want
> to remux it to transport stream containing only selected service.

There should be tools (dvbtools??) that are much (!) better suited for
this than FFmpeg:
FFmpeg has to create a "new" mpegts stream and since our mpegts
muxer is not perfect (standard-conforming) the new stream may or
may not be what you want.
A tool that has no (or little) idea about codecs, filters and other formats
but knows transport streams should be able to only discard the unwanted
streams but keep what you need, this is not possible with (current)
FFmpeg.

Carl Eugen


More information about the Libav-user mailing list