[FFmpeg-devel] [PATCH] ffprobe: add compact and compactnk writers

Alexander Strasser eclipse7 at gmx.net
Sun Sep 25 16:47:00 CEST 2011


Stefano Sabatini wrote:
> On date Sunday 2011-09-25 15:39:29 +0200, Nicolas George encoded:
> > Le quartidi 4 vendémiaire, an CCXX, Stefano Sabatini a écrit :
> > > Output looks like this:
> > > [...]
> > > PACKET: audio|1|238080|238.080000|238080|238.080000|26|0.026000|26.000000|9866826|K
> > 
> > This does not work very well with awk: to separate the fields, it needs
> > FS="|", but then, the first field is not separated from the label.
> > 
> > Maybe "PACKET:|audio|..."?
> I can remove the leading " ", but then "|" is really meant as a
> separator, and the section "PACKET:" should be used for filtering the
> relevant sections (which should be easy enough with awk).

  The problem is that the first field would contains the header
("<bla>: ") or am I missing something?

  In that case, do we have hierarchies like nested sections and
therefore nested headers? If not a fix like proposed by Clement
which simply drops the ": " and uses the separator would be
enough. In awk you could then easily know that the first of the
fields is the one containing the section name.

  On the other hand if we have/want hierarchies then some other
mechanism needs to be chosen/designed/worked out to store them
in flat data formats like CSV, passwd-style etc.



More information about the ffmpeg-devel mailing list