Article 5QK89 [SOLVED] How to customise output from mediainfo?

[SOLVED] How to customise output from mediainfo?

by
GPGAgent
from LinuxQuestions.org on (#5QK89)
Hi Folks

I only want a few lines from a mediainfo command, for example:Code:jonke@charlie:/media/jonke/SEAG_8TB/FILES/XHAM/1950-60-70s-Movies$ mediainfo 77\ Miss\ Bikini\ 1951.mp4
General
Complete name : 77 Miss Bikini 1951.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (isom/iso2/avc1/mp41)
File size : 75.6 MiB
Duration : 8 min 24 s
Overall bit rate : 1 257 kb/s
Encoded date : UTC 2021-07-07 19:18:15
Tagged date : UTC 2021-07-07 19:18:15
Writing application : HandBrake 1.3.1 2020032300

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 8 min 24 s
Bit rate : 1 123 kb/s
Width : 704 pixels
Height : 576 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 25.000 FPS
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bitsI only want these lines only:Code:Complete name : 77 Miss Bikini 1951.mp4
Format : MPEG-4
File size : 75.6 MiB
Duration : 8 min 24 s
Overall bit rate : 1 257 kb/s
Bit rate : 1 123 kb/s
Width : 704 pixels
Height : 576 pixels
Display aspect ratio : 4:3I know I can add Code:--Inform="Video;%DisplayAspectRatio%"to show the aspect ratio, but that's ll it does it report 1.333, I want the whole line

I'm sure I've seen this done before, but I cannot find it.

TIAlatest?d=yIl2AUoC8zA latest?i=EBudp2YKVyE:l3X4x1orCi4:F7zBnMy latest?i=EBudp2YKVyE:l3X4x1orCi4:V_sGLiP latest?d=qj6IDK7rITs latest?i=EBudp2YKVyE:l3X4x1orCi4:gIN9vFwEBudp2YKVyE
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments