[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1026164: ffprobe: "-of json" doesn't report anything



On 15 Dec 2022 16:05:03 +0100 Matthias Urlichs <smurf@smurf.noris.de> wrote:
> Package: ffmpeg
> Version: 7:5.1.2-1
> 
> $ ffprobe -of json ./01.ogg >/tmp/ff.stdout 2>/tmp/ff.stderr
> $ cat /tmp/ff.stderr
> [only header, but no json output]
> $ cat /tmp/ff.stdout
> {
> 
> }
> 
> I'm fairly sure that this is not the intended behavior.
> 
> Upstream says that this works for them.
> https://trac.ffmpeg.org/ticket/10104

I can reproduce your findings, but ...

$ ffprobe -hide_banner -of json Critical.ogg 
{
Input #0, ogg, from 'Critical.ogg':
  Duration: 00:00:00.63, start: 0.000000, bitrate: 129 kb/s
  Stream #0:0: Audio: vorbis, 48000 Hz, mono, fltp, 86 kb/s

}
$ ffprobe -hide_banner -of json Critical.ogg 2>/dev/null
{

}

So it looks like `2>/dev/null` 'hides' the output.
I don't know if without it, is valid json though.
Using 'xml' as output_format gives an interesting result ...

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: