LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 12-11-2007, 06:42 AM   #1
fireblade_spark
Member
 
Registered: Oct 2007
Location: Lucknow, Uttar Pradesh, India.
Distribution: I ador(A) MY Fedor(A)-Really Reaching to INFINTY,Or most probably ive already reached there!
Posts: 49

Rep: Reputation: 15
Exclamation How to convert flv files?


can any one suggest a way or any software by which i can convert flv files to any other format.
I am using fedora 8 and will prefer using a rpm package for any kind of software installation.
 
Old 12-11-2007, 12:21 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
mplayer/mencoder should be able to assist with that request.



Cheers,
Tink
 
Old 12-11-2007, 12:54 PM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
ffmpeg can convert some flash movies. I found that it did not work for all, but works for most.

ffmpeg is a command line tool. To use it, open a terminal and cd to the directory where you have your video file. For example, lets say you have a vido in flv format in your Videos sub-directory in your home directory called "myvideo.flv". To convert it to mpeg open a terminal and enter these commands:
Code:
cd Videos
ffmpeg -i myvideo.flv myvideo.mpg
ffmpeg has many options for changing the encoding and doing all sorts of operations like scaling, cutting and so on. For example, to encode using the mpeg4 codec in an AVI container:
Code:
ffmpeg -i myvideo.flv -f avi -vcodec mpeg4 myvideo.avi
See the ffmpeg man page for more information.
 
Old 02-19-2008, 11:56 PM   #4
rohitblr19
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
Smile VLC Player on linux can play .flv files

I just downloaded a video from youtube and hit with same question.
VLC player on linux rescued me ;-)
Enjoy

Rohit
 
Old 02-23-2008, 06:13 PM   #5
ComputerGreek
Member
 
Registered: Sep 2007
Posts: 152

Rep: Reputation: 30
Try something like this:

mencoder -of lavf -ovc lavc -lavcopts vcodec=flv:vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -oac mp3lame -lameopts abr:br=56 -o movie.flv movie.avi

Oops, I read the question wrong. I thought you wanted to encode to .flv

Last edited by ComputerGreek; 02-23-2008 at 06:16 PM.
 
Old 02-23-2008, 06:37 PM   #6
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 475

Rep: Reputation: 73
Here's a script I use to convert flv to divx or xvid:
Code:
#!/bin/sh

if [ -z "$1" ]; then
  echo "Usage: $0 {-divx|-xvid} list_of_flv_files"
  exit 1
fi

# video encoding bit rate
V_BITRATE=768

while [ "$1" ]; do
  case "$1" in
    -divx)
      MENC_OPTS="-ovc lavc -lavcopts \
        vcodec=mpeg4:vbitrate=$V_BITRATE:mbd=2:v4mv:autoaspect"
      ;;
    -xvid)
      MENC_OPTS="-ovc xvid -xvidencopts bitrate=$V_BITRATE:autoaspect"
      ;;
    *)
      if file "$1" | grep -q "Macromedia Flash Video"; then
        mencoder "$1" $MENC_OPTS -vf pp=lb -oac mp3lame \
          -lameopts fast:preset=standard -o \
          "`basename $1 .flv`.avi"
      else
        echo "$1 is not Flash Video. Skipping"
      fi
      ;;
  esac
  shift
done
 
1 members found this post helpful.
Old 05-23-2013, 12:13 PM   #7
litzel
Member
 
Registered: May 2013
Location: Athens, Greece
Distribution: Xubuntu 12.04, Linux Mint 13
Posts: 80

Rep: Reputation: 5
This script ran, but I can't find the transcoded video file, it's not in the original .flv folder, it's not in Videos folder and locate '...' command doesn't seem to be able to locate it.

Any thoughts?

Thanks!
 
Old 05-23-2013, 01:08 PM   #8
Soapm
Member
 
Registered: Dec 2012
Posts: 169

Rep: Reputation: Disabled
You did better then me, I could never get it to run. I guess I didn't know the command line syntax it needed.

I get this error;

Quote:
No video encoder (-ovc) selected. Select one (see -ovc help).
 
Old 05-23-2013, 01:16 PM   #9
litzel
Member
 
Registered: May 2013
Location: Athens, Greece
Distribution: Xubuntu 12.04, Linux Mint 13
Posts: 80

Rep: Reputation: 5
basically after copy-paste to gedit, all I did was to type: sh [path of script] -xvid [path of .flv]

But I just got the conversion problem fixed with WinFF, a pre-installed app on Xubuntu.
 
Old 05-23-2013, 01:54 PM   #10
Soapm
Member
 
Registered: Dec 2012
Posts: 169

Rep: Reputation: Disabled
Quote:
Originally Posted by litzel View Post
basically after copy-paste to gedit, all I did was to type: sh [path of script] -xvid [path of .flv]

But I just got the conversion problem fixed with WinFF, a pre-installed app on Xubuntu.
Hey, thanks, I've been having this script for a while but never could get it to work. -xvid seemed so simple, kind of wish scripts came with instructions but I appreciate the work just the same.

Thanks for the tip...
 
Old 05-23-2013, 02:02 PM   #11
litzel
Member
 
Registered: May 2013
Location: Athens, Greece
Distribution: Xubuntu 12.04, Linux Mint 13
Posts: 80

Rep: Reputation: 5
yeah, scripts and man are chaotic sometimes...

glad to have helped!
 
Old 05-23-2013, 02:15 PM   #12
Soapm
Member
 
Registered: Dec 2012
Posts: 169

Rep: Reputation: Disabled
Quote:
Originally Posted by litzel View Post
yeah, scripts and man are chaotic sometimes...

glad to have helped!
Now I'm where you started when you posted, where is the output file? I'm using Debian so not sure about the application you used. Did you use it to find the video or did you use it to convert them?
 
Old 05-23-2013, 02:19 PM   #13
litzel
Member
 
Registered: May 2013
Location: Athens, Greece
Distribution: Xubuntu 12.04, Linux Mint 13
Posts: 80

Rep: Reputation: 5
I'm not sure if Debian can use apt-get to install new packages (they probably can, since Ubuntu are Debian based and they work this way), if so, then execute:

sudo apt-get install winff

it's a GUI frontend for video transcoding.
 
Old 05-23-2013, 06:08 PM   #14
Soapm
Member
 
Registered: Dec 2012
Posts: 169

Rep: Reputation: Disabled
Quote:
Originally Posted by litzel View Post
I'm not sure if Debian can use apt-get to install new packages (they probably can, since Ubuntu are Debian based and they work this way), if so, then execute:

sudo apt-get install winff

it's a GUI frontend for video transcoding.
I see winff in the debian repository but it doesn't do me much good since my video server is headless. I was looking for a way to recode them while on the server. I use a windows machine to transcode them now.
 
Old 05-25-2013, 03:22 AM   #15
bloodstreetboy
Member
 
Registered: May 2012
Posts: 195
Blog Entries: 3

Rep: Reputation: 37
In easy questions (which is well answered by moderators & senior members) why everyone tries to give the answer and OP does not reply second time?
I think issue had been solved till post #3
Even there was no need to put this comment too but I couldn't stop myself to write.
If moderators doesn't find it suitable, please remove it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to convert from flv to mp4 (for iPod) using mencoder. alkos333 Slackware 6 11-03-2007 03:36 PM
LXer: Convert .flv (Google Videos) to .mpg using ffmpeg LXer Syndicated Linux News 0 07-25-2007 07:31 AM
How to convert flv to ipod format? depam Linux - Software 1 10-25-2006 09:21 AM
A/V out-of-sync while convert a rmvb to flv using mencoder tclwp Linux - Software 0 08-08-2006 10:29 AM
how do i convert wmv to flv using ffmpeg? farmerjoe Linux - Software 0 11-15-2005 03:20 PM


All times are GMT -5. The time now is 09:00 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration