Tag Info

New answers tagged

0

I use two scripts for this it uses handbreak to do the conversion, but could be modified to user ffmpeg (but remember ffmpeg is depricated). I run process.sh and it finds then loops through, running encode.sh for each file. process.sh if [ "$1" != "" ]; then dir="$1" else dir="/Data/Movies" fi if [ -e /tmp/process.lock ] ; then echo ...


1

You should be fine if you stick to the Bourne shell syntax, the most import of this for your application should be the for loop. #/bin/ash for filename in *.avi do ffmeg parameters "$filename" done


0

ffmpeg -i input.file -vf "scale=(iw*sar)*max(720/(iw*sar)\,480/ih):ih*max(720/(iw*sar)\,480/ih), crop=720:480" -c:v mpeg4 -vtag XVID -q:v 4 -c:a libmp3lame -q:a 4 output.avi Replace "input.file" with the name of your input file.


1

I'm no ffmpeg guru, but this should do the trick. First of all, you can get the size of input video like this: ffprobe -v error -of flat=s=_ -select_streams v:0 -show_entries stream=height,width in.mp4 With a reasonably recent ffmpeg, you can resize your video with these options: ffmpeg -i in.mp4 -vf scale=720:480 out.mp4 You can set the width or ...



Top 50 recent answers are included