Convert .FLV to .AVI in Linux with FFMPEG


Convert .FLV to .AVI and vice versa in Linux with FFMPEG
(and vice versa)


$ ffmpeg -i input.flv -sameq output.avi

or


$ ffmpeg -i input.avi -sameq output.flv

*NOTES:
- Where input is the source file and output the outcome file.
- the $ sign at the start of the command is to signify the terminal's prompt, no need to type this in.



Convert .MPG to .AVI in Linux with Transcode:


Convert .MPG to .AVI (divx/xvid) in Linux with Transcode:

$ transcode -i input.mpg -o output.avi -y divx

or 

$ transcode -i input.mpg -o output.avi -y xvid


*NOTES:
- Where input is the source file and output the outcome file.
- the $ sign at the start of the command is to signify the terminal's prompt, no need to type this in.

Convert .AVI to .MP4 in Linux with Mencoder


Convert .AVI to .MP4 in Linux with Mencoder:

$ mencoder input.avi -o output.mp4 -oac copy -ovc lavc -lavcopts vcodec=mpeg1video -of mpeg

*NOTES:
- where input.avi is the avi file you want to convert and output.mp4 your desired mp4 file name.
- the $ sign at the start of the command is to signify the terminal's prompt, no need to type this in.


Convert .VOB files to .AVI in Linux with Mencoder

Convert .VOB files to .AVI in Linux with Mencoder:

$ mencoder -vf harddup -vf-add smartblur=.6:-.5:0,unsharp=l5x5:.8:c5x5:.4 -xvidencopts fixed_quant=4:profile=dxnhtntsc -lameopts cbr:br=128:aq=0:vol=1 -oac mp4lame -ovc xvid input.vob -o output.avi

*NOTES:
- where input.vob is the vob file you want to convert and output.avi your desired avi file name.
- the $ sign at the start of the command is to signify the terminal's prompt, no need to type this in.

Convert .VOB files to .AVI in Linux with FFMPEG


Convert .VOB files to .AVI in Linux with FFMPEG:

$ ffmpeg -i input.vob -f avi -vcodec mpeg4 -b 800k -g 300 -bf 2 -acodec libmp3lame -ab 128k output.avi

*NOTES:
- where input.vob is the vob file you want to convert and output.avi your desired avi file name.
- the $ sign at the start of the command is to signify the terminal's prompt, no need to type this in.

Extract Audio .MP3 from Flash Videos in Linux with FFMPEG

Extract .mp3 music/audio from .mp4/flv flash videos using FFMPEG:
(like files from youtube)

$ ffmpeg -i input.flv -ab 128 -ar 44100 nodame_theme.mp3

/or

$ ffmpeg -i input.mp4 -ab 128 -ar 44100 nodame_theme.mp3



NOTES:
- where input is the flash file you want to extract the audio from,  and nodame_theme.mp3 the mp3 output file you want.
- the $ sign at the start of the command is to signify the terminal's prompt, no need to type this in.
- rename nodame_theme.mp3 to the title you want after executing the command above.

3 Ways to Create an ISO image file from a Directory in Linux with Genisoimage

3 Ways to Create an ISO image file from a Directory in Linux:

*NOTES:

- Where output.iso is the iso image file name you want to name your iso to be, and input_directory/ your folder to create the iso from.

- the $ sign at the start of the command is to signify the terminal's prompt, no need to type this in.




1.) Creating an ISO image file from a Directory in Linux with Genisoimage:

Navigate in your CLI to the desired path where your directory you want to create an image file out of is:

$ genisoimage -r -J -o output.iso input_directory/


- You need to have genisoimage installed. 


2.) Creating an ISO image file from a Directory in Linux with Mkisofs:

$ mkisofs -J -o output.iso input_directory/

- You need to have mkisofs installed. 


3.) Creating an ISO image file from a directory in Linux with dd/diskdump:

$ dd if=/path-to-dir/ of=path-to-output/file.iso


* Though, I do prefer using genisoimage for this task.