dimanche 5 avril 2015

FFmpeg script to convert all existing files in directory


Vote count:

0




I have a video website where many of the videos have both an .flv and .mp4 version but not all of them, for example



/files/videos/video1.flv
/files/videos/video1.mp4


I need a script that will convert all .flv files in to .mp4 files . I have about lets say 50k videos called with random numbers and digits so its not possible to convert them 1 by 1 Here is a command that I useed and it works just fine.



ffmpeg -i /videos/14277419524e6bd.flv -f mp4 -vcodec libx264 -preset slow -r 30 -b:v 300000 -s 1280x720 -aspect 1.7777777777778 -vf pad=0:0:0:0:black -acodec libfaac -ab 128000 -ar 22050 /videos/14277419524e6bd.mp4


The script must process the conversations one by one and if possible to give me some input so I can know what is going on.



asked 1 min ago







FFmpeg script to convert all existing files in directory

Aucun commentaire:

Enregistrer un commentaire