LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-07-2013, 12:11 PM   #1
sadikemre
LQ Newbie
 
Registered: Nov 2012
Location: Istanbul
Distribution: Mint 14 Nadia
Posts: 14

Rep: Reputation: Disabled
Wink How to convert a video from mp4/flv to mpeg/mpg


I download videos in mp4 or flv format but I need to convert them to mpeg 1/2/3 so that I can watch them on my special gadget.

I think I need a program.

any suggestion thanks

I run Mint 14 Ubuntu

Last edited by sadikemre; 03-07-2013 at 12:14 PM.
 
Old 03-07-2013, 01:28 PM   #2
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
install ffmpeg
and command is same ffmpeg filename.mp4 filename.flv

there are many flags you can also use in this command.

man ffmpeg
 
Old 03-07-2013, 01:28 PM   #3
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
install ffmpeg
and command is same ffmpeg filename.mp4 filename.flv

there are many flags you can also use in this command.

man ffmpeg
 
Old 03-10-2013, 10:40 PM   #4
rokytnji
Senior Member
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 13 , Various Puppys (MacPup,Slack0),MX-14
Posts: 2,562
Blog Entries: 16

Rep: Reputation: 819Reputation: 819Reputation: 819Reputation: 819Reputation: 819Reputation: 819Reputation: 819
Edited

Last edited by rokytnji; 03-13-2013 at 05:27 PM.
 
Old 03-11-2013, 12:50 AM   #5
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 50
Alternatively
If you want to do this using UI
You can do this with avidemux or kdenlive.
 
Old 03-11-2013, 02:16 PM   #6
codergeek
Member
 
Registered: Dec 2012
Posts: 52

Rep: Reputation: 7
Code:
ffmpeg -i input.xxx -sameq output.mpg
This is a simple syntax. The xxx is extension of the input file. The -sameq will preserve the aspect and quality of the input file.

Ffmpeg is an awesome tool with many variations to converting video files. A google/youtube search with ffmpeg examples and tutorial are available.

Other utilities to try are avconv and melt

Last edited by codergeek; 03-11-2013 at 02:22 PM.
 
  


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
need help with command bulk convert/rename .flv to .mpg ejames82 Linux - General 10 05-17-2012 03:00 PM
[SOLVED] no thumbnail for flv file though present for mpg,avi & mp4 files sumeet inani Ubuntu 7 05-07-2010 04:53 AM
Trying to convert from flv to mp4 (for iPod) using mencoder. alkos333 Slackware 6 11-03-2007 02:36 PM


All times are GMT -5. The time now is 06:47 AM.

Main Menu
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