I am trying to write my first semi-advanced bash script that will accept the input as a file name related to the video avi, send it in ffmpegfor conversion to mp4(keeping the original name), and then pass it to MP4Box.
Below is what I am doing ...
#!/usr/bin/bash
ffmpeg -i $0 -acodec libfaac -ab 128k -ac 2 -vcodec libx264 -vpre hq -crf 22 -threads 0 ($0).mp4
MP4Box -inter 500 ($0).mp4
- Is there some kind of / catch attempt that I can make for the first call of the program to make sure that the MP4Box is getting healthy input?
- Should I even worry about the error? Should I instead rely on the programs themselves to do this for me?
source
share