Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 2104  / 3 Years ago, sun, june 20, 2021, 1:13:36

I am looking for a tool or group of tools that combined can read recursively from a folder and output the Name of the folder, name of the movie file, resolution of movie and other info.



For example, an output of it would be:



(1997) Titanic, Titanicmovie, 1280x720, 720p  
(2001) Matrix 2, Matrix2, 1280x1080, 1080p
(2012) Titan, Titanmovie, 1280x720, 720p

More From » video

 Answers
1

awk & grep + exiftool



http://www.sno.phy.queensu.ca/~phil/exiftool/



should be able to get everything you need info wise.



mp4:



$ exiftool big_buck_bunny_480p_surround-fix.avi 
ExifTool Version Number : 9.02
File Name : big_buck_bunny_480p_surround-fix.avi
Directory : .
File Size : 210 MB
File Modification Date/Time : 2012:09:19 09:43:12-04:00
File Access Date/Time : 2012:09:19 09:43:22-04:00
File Permissions : rw-rw-r--
File Type : AVI
MIME Type : video/x-msvideo
Frame Rate : 24
Max Data Rate : 0 kB/s
Frame Count : 14315
Stream Count : 2
Stream Type : Video
Video Codec : FMP4
Video Frame Rate : 24
Video Frame Count : 14315
Quality : 0
Sample Size : Variable
Image Width : 854
Image Height : 480
Planes : 1
Bit Depth : 24
Compression : FMP4
Image Length : 1229760
Pixels Per Meter X : 0
Pixels Per Meter Y : 0
Num Colors : Use BitDepth
Num Important Colors : All
Audio Codec :
Audio Sample Rate : 56000
Audio Sample Count : 33401088
Encoding : FAST Multimedia DVM
Num Channels : 6
Sample Rate : 48000
Avg Bytes Per Sec : 56000
Bits Per Sample : 16
Duration : 0:09:56
Image Size : 854x480


mkv



   $ exiftool hddvd_demo_1080p.mkv 
ExifTool Version Number : 9.02
File Name : hddvd_demo_1080p.mkv
Directory : .
File Size : 278 MB
File Modification Date/Time : 2012:09:19 10:09:51-04:00
File Access Date/Time : 2012:09:19 10:08:43-04:00
File Permissions : rw-rw-r--
File Type : MKV
MIME Type : video/x-matroska
Doc Type : matroska
Doc Type Version : 1
Doc Type Read Version : 1
Timecode Scale : 1 ms
Muxing App : libebml v0.7.7 + libmatroska v0.8.1
Writing App : mkvmerge v2.0.2 ('You're My Flame') built on Feb 21 2007 23:40:55
Duration : 0:02:01
Date/Time Original : 2007:04:07 03:28:47Z
Video Codec ID : V_MS/VFW/FOURCC
Image Width : 1920
Image Height : 1080
Video Scan Type : Progressive
Display Width : 1920
Display Height : 1080
Default Duration : 32 ms
Track Number : 3
Track Type : Audio
Track Used : Yes
Track Default : No
Track Forced : No
Track Timecode Scale : 1
Audio Codec ID : A_EAC3
Codec Decode All : Yes
Track Language : eng
Track Name : Dolby Digital Plus 5.1 640kbps
Audio Sample Rate : 48000
Audio Channels : 6
Image Size : 1920x1080


So what you could do is something along the lines of



find . -name "*.ogg" -o -name "*.avi" -exec exiftool {} ;


adding



-o -name "*.videoFormat"


for each additional video format. Also this is just a base to get you started. You could also do



exiftool ~/Videos


and it will print out one giant sheet of info for each file. You will want to dump it to a file and then you can grep and awk accordingly. Hope that helps.


[#35464] Sunday, June 20, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
losbu

Total Points: 71
Total Questions: 124
Total Answers: 106

Location: Honduras
Member since Sat, Jul 24, 2021
3 Years ago
losbu questions
Mon, Jan 31, 22, 21:41, 2 Years ago
Tue, Nov 22, 22, 01:27, 1 Year ago
Wed, Jan 25, 23, 00:28, 1 Year ago
Wed, May 11, 22, 08:41, 2 Years ago
;