FFmpeg Common command line

Source: Internet
Author: User

http://blog.csdn.net/lius1984/article/details/4367150

Organize common ffmpeg commands so that you find them easily.

1. avi to FLV

Ffmpeg-i video_origine.avi-acodec libmp3lame-ab 56k-ar 44100-b 200k-r 15-s 320x240-f flv video_finale.flv

2.AVI turn DivX encoded MPEG4 avi

Ffmpeg-i video_origine.avi-s 320x240-vcodec MSMPEG4 Video_finale.avi

3. Save the audio in AVI to MP3 file

Ffmpeg-i source_video.avi-vn-ar 44100-acodec libmp3lame-ac 2-ab 192k-f mp3 Sound.mp3

4. Convert to 3GP

Ffmpeg-y-I test.mpeg-bitexact-vcodec h263-b 128-r 15-s 176x144
-acodec aac-ac 2-ar 22500-ab 24-f 3gp test.3gp
Or


Ffmpeg-y-I test.wmv-ac 1-acodec libamr_nb-ar 8000-ab 12200-s 176x144-b 128-r

5. Convert to MP4

Ffmpeg-i source_video.avi-b 300k-s 320x240-vcodec xvid-ab 32k-ar 24000-acodec AAC Final_video.mp4

6. Dump M4V from 3GP (direct copy does not re-encode)

Ffmpeg.exe-i Test.3gp-vcodec copy-f M4V test.m4v

Or

Ffmpeg.exe-i test.3gp-f m4v test.m4v (recode)

7. transcoding Convert. F4V to. asf

Ffmpeg.exe-i tf2_trailer2.f4v-vcodec copy-acodec copy-f asf 1.asf

8. Completely lossless Intermediate video format

Ffmpeg-i T_needss_e309_excl_hd.mov-vcodec Huffyuv-acodec Pcm_s16le 2.avi

FFmpeg conversion involves more options, can refer to ffmpeg options in detail


Note:

TS Multiplexing Video:

Ffmpeg-i Test.ts-vcodec copy-f M4V test.264

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.