[mythtv-users] output from ffprobe

Darac Marjal mailinglist at darac.org.uk
Thu Jan 7 11:58:39 UTC 2021


On 07/01/2021 03:37, James Linder wrote:
> I tried to catch the output of mythffprobe. Failure.
> A quick browse os stack-exchange revealed one of their rare rubish sprouts
> (ffprobe does NOT write to stdout or stderr so trying to redirect those streams will fail)

I'm not sure what version of ffprobe you're using, but here on Debian:

❯ annotate-output ffprobe VID_20200720_204748.mp4
11:55:03 I: Started ffprobe VID_20200720_204748.mp4
11:55:03 E: ffprobe version 4.3.1-5 Copyright (c) 2007-2020 the FFmpeg developers
11:55:03 E:   built with gcc 10 (Debian 10.2.0-15)
11:55:03 E:   configuration: --prefix=/usr --extra-version=5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --disable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
11:55:03 E:   libavutil      56. 51.100 / 56. 51.100
11:55:03 E:   libavcodec     58. 91.100 / 58. 91.100
11:55:03 E:   libavformat    58. 45.100 / 58. 45.100
11:55:03 E:   libavdevice    58. 10.100 / 58. 10.100
11:55:03 E:   libavfilter     7. 85.100 /  7. 85.100
11:55:03 E:   libavresample   4.  0.  0 /  4.  0.  0
11:55:03 E:   libswscale      5.  7.100 /  5.  7.100
11:55:03 E:   libswresample   3.  7.100 /  3.  7.100
11:55:03 E:   libpostproc    55.  7.100 / 55.  7.100
11:55:03 E: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'VID_20200720_204748.mp4':
11:55:03 E:   Metadata:
11:55:03 E:     major_brand     : mp42
11:55:03 E:     minor_version   : 512

and so on ... The "E:" indicates  that the output is on stderr, so you
should be able to capture the output by "ffprobe YOURFILE.mp4 2>&1" to
copy the stderr stream to stdout.


>
> /store/Movies [1025]% (mythffprobe Myth-G/The\ Grand\ Budapest\ Hotel.mp4) | less
>
> looked promising (ie worked as expected)
>
> but
>
> /store/Movies [1025]% (mythffprobe Myth-G/The\ Grand\ Budapest\ Hotel.mp4) | cat > ~/probe
>
> did not.
> Hours spent pouring over the manual (for a -o file type option) were fruitless.
> Anybody please . . .
> James
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20210107/1edbf5f6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20210107/1edbf5f6/attachment.sig>


More information about the mythtv-users mailing list