I'm using ffmpeg to get info about a video file and I don't want to save the info into a file. ffmpeg is returning all the video info, but it's returning as an error because I'm not specifying an output file. The command I'm using is:
ffmpeg -i C:\Test\3FA8D0E6-BD61-D160-98BB41304D63FAE3.mp4
The error I get is "At least one output file must be specified"
I'm calling this in ColdFusion using <cfexecute>
, and the output is being stored in a local variable, which is why I don't want to specify a file... I just don't need to store this in a file.
If it makes any difference, I'm running this on Windows.
Audio can be re-encoded from from its original format to another one by using the -vn option which tells FFmpeg to ignore the video stream if any. Encoding happens simply by using the desired format's file extension.
ffmpeg is a command-line tool that converts audio or video formats. It can also capture and encode in real-time from various hardware and software sources such as a TV capture card. ffplay is a simple media player utilizing SDL and the FFmpeg libraries.
It's giving an error because FFmpeg requires that an output file be specified. Using it just to get information about a file isn't its intended use.
Option 1: Ignore the error. FFmpeg prints the file information first, so you can simply get the information you need and ignore the error.
Option 2: Use ffprobe instead. FFprobe is another tool usually packaged with FFmpeg that's designed for getting information about media files. It can even output the information in a variety of easily parsed formats so you don't have to mess around parsing FFmpeg's output.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With