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"' 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.
0 Comments
Leave a Reply. |