FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Mass File Conversions





Possum
Hi

I just learnt how to use ffmpeg to convert a flv file to a mp4 file.

Code:
ffmpeg -i oldfilename.flv -c:v libx264 -crf 19 -strict experimental newfilename.mp4


This works great..


But how would I bulk convert 20 files at a time..


I am using the Linux terminal..


Thank You...
badai
i've done it before.

just use PHP to do it. put all files in 1 folder then do loop to convert it.

run php from command line, not web browser.
amagard
You don't need php for this, it can be done with native bash:

Code:
for f in *.flv; do ffmpeg -i $f -c:v libx264 -crf 19 -strict experimental ${f%.*}.mp4; done


Note: Here the mp4 file will have the same file name than the flv file. To give it some 'newfilename' you have to come up with some extra code to determine that.
Possum
Now I have to learn Bash.... Challenge Accepted..

I did however discover a Wrapper app for ffmpeg called WinFF so I'm OK..

But thx for Bashscript example.. I am now at the http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
Da Rossa
When it comes to converters I'd love a fully-terminal-operated solution. Let's talk about video, audio or image files. I have IrFanView which does a great job with batch image conversion... but I'd love an app in which I could just bring up the cmd window and type:

> program_name convert -to.jpg C:\Dropbox\images\*.bmp C:\Dropbox\images\output

or

> program_name -resize 50% -preserve_aspect_ratio C:\Dropbox\images\*.png

Does anyone know anything like it?
Possum
You can with ffmpeg

https://www.youtube.com/watch?v=iIalNEW-LQ8
Da Rossa
Nice beautiful girl teaching there Very Happy
Related topics
about file limit
can i upload a rar file to ftp?
File upload with PHP, Build an upload database for your site
File Size Limit
Transport yourself over the Net
US Supreme Court rules against file swapping
Capturing multiple USB cams to an AVI or MPEG file.
SLOW UPLOADING AN SQL FILE
emo/screa? the used, coheed and cambria, my chemical romance
File size
foobar or winamp?
Mass Installer: install all of your firefox extensions @once
Can music file sharing be stopped??
extracting a zipped file
FREE SOFTWARE
Reply to topic    Frihost Forum Index -> Computers -> Software

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.