On Sun, 12 Nov 2023 20:17:03 +0100 Diederik de Haas <didi.deb...@cknow.org> wrote: > On 15 Dec 2022 16:05:03 +0100 Matthias Urlichs <sm...@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 ...
Hi, Looking at the docs, you can use -of or -print_format like follows for a nice json file. ffprobe -v quiet -of json -show_format -show_streams "Critical.ogg" > "Critical.ogg.json" Your needs may require some changes. Regards Phil -- Playing the game for the games sake. * Debian Maintainer Web: * Debian Wiki: https://wiki.debian.org/PhilWyett * Website: https://kathenas.org Social: * Instagram: kathenasorg * Threads: @kathenasorg
signature.asc
Description: This is a digitally signed message part