Tuesday, May 7, 2024
82
rated 0 times [  82] [ 0]  / answers: 1 / hits: 111105  / 2 Years ago, tue, november 30, 2021, 1:38:46

I need a command to quickly see in terminal essential information about an audio or video file.



(Then I'll consider adding that to Thunar's custom actions, etc.)


More From » command-line

 Answers
7

avprobe from the package libav-tools is pretty good.



Sample output avprobe somefile.mp4



avprobe version 0.8.4-4:0.8.4-0ubuntu0.12.04.1, Copyright (c) 2007-2012 the Libav developers
built on Nov 6 2012 16:51:33 with gcc 4.6.3
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'somefile.mp4':
Metadata:
major_brand : avc1
minor_version : 0
compatible_brands: isomavc1
creation_time : 2012-08-10 15:01:14
Duration: 00:01:02.55, start: 0.000000, bitrate: 682 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1904x1040 [PAR 1:1 DAR 119:65], 680 kb/s, 19.18 fps, 20 tbr, 20 tbn, 40 tbc
Metadata:
creation_time : 2012-08-10 15:01:14


To add to Thunar custom action, in relation to what was suggested here, the analog formula to add would be:



gnome-terminal --window-with-profile=new1 -e "avprobe %f"

[#32901] Wednesday, December 1, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fishutt

Total Points: 391
Total Questions: 137
Total Answers: 106

Location: Mexico
Member since Tue, Aug 11, 2020
4 Years ago
fishutt questions
Thu, Nov 17, 22, 07:36, 2 Years ago
Mon, Mar 28, 22, 15:09, 2 Years ago
Wed, Feb 8, 23, 06:50, 1 Year ago
Thu, Aug 25, 22, 13:26, 2 Years ago
Fri, Apr 22, 22, 00:08, 2 Years ago
;