[READ-ONLY] Mirror of https://github.com/mrgnw/scripts.
0

Configure Feed

Select the types of activity you want to include in your feed.

probe - summarize ffprobe as json

+13
+13
probe
··· 1 + #!/usr/bin/env zsh 2 + 3 + ffprobe -loglevel quiet -sexagesimal -print_format json=compact=1 -show_entries error:stream:format "$1" | jq '{ 4 + filename: (.format.filename), 5 + size_mb: (.format.size | tonumber / 1024 / 1024 | round), 6 + v_codec: (.streams[0].codec_name), 7 + v_codec_tag: (.streams[0].codec_tag_string), 8 + width: (.streams[0].width), 9 + height: (.streams[0].height), 10 + duration: (.streams[0].duration), 11 + a_codec: (.streams[1].codec_name), 12 + a_codec_tag: (.streams[1].codec_tag_string), 13 + }'