LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to convert a video from mp4/flv to mpeg/mpg (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-convert-a-video-from-mp4-flv-to-mpeg-mpg-4175453143/)

sadikemre 03-07-2013 12:11 PM

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

sharadchhetri 03-07-2013 01:28 PM

install ffmpeg
and command is same ffmpeg filename.mp4 filename.flv

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

man ffmpeg

sharadchhetri 03-07-2013 01:28 PM

install ffmpeg
and command is same ffmpeg filename.mp4 filename.flv

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

man ffmpeg

rokytnji 03-10-2013 10:40 PM

Edited

fortran 03-11-2013 12:50 AM

Alternatively
If you want to do this using UI
You can do this with avidemux or kdenlive.

codergeek 03-11-2013 02:16 PM

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


All times are GMT -5. The time now is 03:36 AM.