[FFmpeg-devel] [PATCH] lavf: add textdata virtual demuxer and demuxer
Stefano Sabatini
stefasab at gmail.com
Tue Aug 30 13:31:27 EEST 2016
On date Tuesday 2016-08-23 16:53:28 +0200, Nicolas George encoded:
> Le septidi 7 fructidor, an CCXXIV, Stefano Sabatini a écrit :
> > Bump.
> >
> > So, basically, what are the features that you want to add?
> > I can list a few:
> >
> > - have multiple streams (with media type and optionally encoding,
> > assumes base64 by default) in a dedicated header
> >
> > - specify codec parameters: this could be done serializing
> > AVCodecParameters. This is the part which would be less robust.
> >
> > The important point to keep in mind is that this is meant to be an
> > internal format, so it should be used internally (e.g. to mux data)
> > coming from an external source, and we give no guarantee that the
> > format will be robust to changes in libavformat/libavcodec (e.g. in
> > case AVCodecParameter is extended).
> >
> > My main objection to the ffprobe format is that it's not easily
> > parseable, but I can reconsider it in case there is a strong request
> > for that.
>
> Sorry for the delay. Here is the patch; as you can see it is two and a half
> years old. IIRC, it used to work with the output of "ffprobe -show_format
> -show_streams -show_packets -show_data", provided the output was edited to
> put the sections in the required order.
>
> The benefit from using ffprobe instead of a custom format is to not have yet
> another variant of text format.
Sure.
I rebased the patch, and performed two simple changes in ffprobe (see
attachment), and it's almost working.
I think supporting the show_compact_data mode should simplify the
format in case the format is generated programmatically/through
scripting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-lavf-add-ffprobe-demuxer.patch
Type: text/x-diff
Size: 12278 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160830/e2014343/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-ffprobe-add-show_headers_first-option.patch
Type: text/x-diff
Size: 2838 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160830/e2014343/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-ffprobe-add-show_compact_data-option.patch
Type: text/x-diff
Size: 2075 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160830/e2014343/attachment-0002.patch>
More information about the ffmpeg-devel
mailing list