The correct command would be: ffmpeg -ss 0 -i in.mp4 -filter:v scale=640:480 -b:v
21504 -t 5 test.mpg. The -t option should come just before the output specifier.
The scale output format is w:h (and not wxh ). -b:21504 is ...
Make sure that the dateStr variable does not have a "/" (forward slash), as it is not
possible to save files with this character. Wrong: let dateStr = "10/26/2020". Right:
let dateStr = "26-10-2020". Let me know if you solved it.
You are probably missing double quotes around the -i parameter. Try this way:
ffmpeg -user_agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5)
AppleWebKit/601.7.8 (KHTML, like Gecko) Version/9.1.3 Safari/537.86.7" -i ...
The -c option requires a value, but yours has none. Also, you should use a
stream specifier with the -c option, such as -c:v for video, and -c:a for the audio.
The exception is when you want to stream copy all stream types, but ...
Just like the error message says, you need to give it an output file. The basic
syntax would be ffmpeg -i Alice_In_Wonderland.mp4 Alice_In_Wonderland.avi.
You can (and probably should) add options such as in this: ffmpeg -i ...
Try using the command without the backslashes ( \ ), as these may be causing
issues on the command line of your shell. The backslashes are used to denote
command continuation onto another line, but if you are copying ...