![perl imageheight exiftool perl imageheight exiftool](https://media.geeksforgeeks.org/wp-content/uploads/20210201184244/thismin-660x452.png)
![perl imageheight exiftool perl imageheight exiftool](https://i2.wp.com/pentaroot.com/wp-content/uploads/2017/11/1.-Move-Bart.png)
$success = $exifTool->WriteInfo($srcfile, $dstfile) $group = $exifTool->GetGroup($tag, $family) # Get the group name associated with this tag $description = $exifTool->GetDescription($tag) $value = $exifTool->GetValue($tag, $type) # Get list of tags in the order they were found in the = $exifTool->GetFoundTags('File') $exifTool->ExtractInfo($file, \%options)
![perl imageheight exiftool perl imageheight exiftool](https://media.geeksforgeeks.org/wp-content/uploads/20210201184645/tar-660x461.png)
![perl imageheight exiftool perl imageheight exiftool](https://img-blog.csdnimg.cn/20190410100406402.png)
# Get hash of meta information tag names/values from an image And we print the fourth field (since Image, Size and : are the first three fields).Image::ExifTool - Read and write meta information SYNOPSIS use Image::ExifTool qw(:Public).By matching the line's beginning ( ^) to Image Size, we get the correct line.By default, awk uses whitespace to split fields, so Image, Size, : and 1242x480 are all different fields.You can do this using regular expressions and ffmpeg, but I'd prefer to use exiftool, part of the libimage-exiftool-perl package: $ exiftool some/video.ogv | awk -F' *: *' '$1 = "Image Size"'
#PERL IMAGEHEIGHT EXIFTOOL HOW TO#
I imagine I have to pipe the output to, and perform, a regular expression? No idea how to do that. If I were only interested in the command outputting "640x480", how might I do that? I get an output such as this: ffmpeg version git-6a7980e Copyright (c) 2000-2013 the FFmpeg develop ersīuilt on 12:06:32 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)Ĭonfiguration: -prefix=/home/user/ffmpeg_build -extra-cflags=-I/home/user/ffmpeg_build/include -extra-ldflags=-L/home/user/ffmpeg_build/lib -b indir=/home/user/bin -extra-libs=-ldl -enable-gpl -enable-libass -enable -libfdk- aac -enable-libmp3lame -enable-libtheora -enable-libvorbis -enable-l ibx264 -enable- nonfreeĭuration: 00:23:07.68, start: 0.000000, bitrate: 2390 kb/s I'm not really well versed in the command line so hopefully this isn't too stupid of a question.