LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-14-2008, 07:44 AM   #1
mia_tech
Member
 
Registered: Dec 2007
Location: FL, USA
Distribution: CentOS 5.3, Ubuntu 9.04
Posts: 245

Rep: Reputation: 16
converting multiple flv to avi..


guys how could I automate the process of converting severals flv files to avi, without having to enter it manually in the shell....

I'm using ffmpeg... I could use something like:
Code:
ffmpeg -i *.flv out.avi
but that would convert all the flv's to one big avi, and I would like to create separate avi's
 
Old 10-14-2008, 08:16 AM   #2
Vit77
Member
 
Registered: Jun 2008
Location: Toronto, Canada
Distribution: SuSE, RHEL, Mageia
Posts: 132

Rep: Reputation: 17
Try a script like this:
Code:
for if in *.flv
do
  of=`basename $if .flv`
  ffmpeg -i $if  ${of}.avi
done
 
Old 10-15-2008, 01:52 PM   #3
mia_tech
Member
 
Registered: Dec 2007
Location: FL, USA
Distribution: CentOS 5.3, Ubuntu 9.04
Posts: 245

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Vit77 View Post
Try a script like this:
Code:
for if in *.flv
do
  of=`basename $if .flv`
  ffmpeg -i $if  ${of}.avi
done
thanks it worked just great!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting flash video (FLV) to AVI, MOV, others? daihard Linux - Software 12 05-06-2009 11:44 AM
Conversion of mpg,avi,mov,wmv formats to flv manu82 Linux - Software 6 07-30-2008 04:31 AM
converting all kind of videos to flash ( FLV zafar466 Linux - General 1 07-25-2008 05:17 AM
Converting flv to Mpg with Audio and ffmpeg btbx Linux - Software 7 06-12-2008 02:41 PM
Converting avi to mpg OR creating an SVCD from an avi MasterC Linux - Software 5 03-28-2003 05:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration