Navigation of this series of articles
FFmpeg Quick Start in Windows
Ffmpeg parameter description
Detailed description of mencoder and ffmpeg parameters (Java video processing)
Java generates video thumbnails (ffmpeg)
Use ffmpeg to convert video files to FLV
Java video processing mencoder
Java video processing ffmped + mencoder
Mencoder to flv
Mencoder-ffourcc FLV1-lavfopts protocol-of lavf-oac mp3lame-lameopts aq = 9: cbr: br = 64: vol = 2-ovc lavc-lavcopts vcodec = flv: vbitrate = 200: acodec = mp3: abitrate = 56-vf scale = 320: 270, expand = 320: 270: 1, crop = 320: 270: 0: 0-ofps 18-srate 22050 input. xxx-o output. flv
Conversion from Mencoder to avi
Mencoder.exe-oac mp3lame-lameopts aq = 7: cbr: br = 64-srate 32000-vf scale = 220: 176-ovc lavc-ffourcc DX50-lavcopts vcodec = mpeg4: vbitrate = 320 "input. xxx "-o" output. avi"
Mencoder .. /v/wmv. wmv-o .. /v/wmv-3.flv-of lavf-oac mp3lame-lameopts abr: br = 56-srate 22050-ovc lavc-lavcopts vcodec = flv: vbitrate = 500: mbd = 2: mv0: trell: v4mv: White: last_pred = 3
Mencoder-oac mp3lame-lameopts aq = 7: cbr: br = 64-srate 32000-vf scale = 220: 176-ovc lavc-ffourcc DX50-lavcopts vcodec = mpeg4: vbitrate = 320 "input. xxx "-o" output. avi"
Mencoder-oac mp3lame-lameopts aq = 7: cbr: br = 64-srate 22050-vf scale = 320:-3-ovc xvid-xvidencopts bitrate = 600 "wmv. wmv "-o" wmv. avi"
Mencoder-oac lavc-lavcopts acodec = mp2: abitrate = 64-srate 22050-vf scale = 320:-3-ofps 15-ovc xvid-xvidencopts bitrate = 400 rmvb. rmvb-o rmvb. avi
Mencoder 1. rmvb-oac mp3lame-lameopts preset = 64-ovc xvid-xvidencopts bitrate = 600-of avi-o rmvb. avi
RMVB to FLVCODE
Mencoder-vf scale = 320: 240-ffourcc FLV1-of lavf-lavfopts I _certify_that_my_video_stream_does_not_use_ B _frames-ovc lavc-lavcopts vcodec = flv: vbitrate = 200-srate 22050-oac lavc-lavcopts acodec = mp3: abitrate = 56 OK/1. rmvb-o OK/rmvb. flv
The two ffmpeg parameters allow ffmpeg to split a large video into several small pieces of independently played files.
-Ss time_off set the start time offset
-T duration set the recording time
Mencoder segment parameters:
-Ss 0
-Endpos 120
FFmpeg to 3gp:
Ffmpeg-y-I **. **-ac 1-acodec amr_nb-ar 8000-AB 24-s 128x96 [-vcodec mpeg4]-B 40 k-r 8 **. 3gp
FFmpeg to flv:
Ffmpeg-I inputfile. xxx-AB 56-ar 22050-qmin 2-qmax 16-B 320 k-r 15-s 320x240 outputfile. flv
FFmpeg Parameters
For video files:
FFmpeg-I XXX. XXX-y-F image2-SS 8-T 0.001-s 350x240 xxx.jpg
For existing FLV:
FFmpeg-I XXX. FLV-y-F image2-SS 8-T 0.001-s 350x240 xxx.jpg
Convert the first 30 frames of a video into a GIF:
FFmpeg-I XXX. XXX-vframes 30-y-F GIF xxx.gif
Captures a clip that lasts for 10 seconds from 10 seconds.
FFmpeg watermark parameters:
FFmpeg-I inputfile. xxx-tagpict ": 220: 210"-AB 56-ar 22050-qmin 2-Qmax 16-B 320 k-R 15-s 320x240 outputfile. FLV
Watermark parameter description:
-Tagpict ": 220: 210"
(Find 0002 in the directory where FFmpeg is located. mjpg, mask. two image files used as watermarks for processing are then added to each clip of the video file during transcoding at the specified coordinates, for example, 220: 210)
Add the avisynth watermark:
First, FFMPEG/mencoder requires -- enable-avisynth;
Conversion parameters: FFMPEG-y-I 1.avs-B 320 k rmvb-avs.flv
1. AVS format:
Video = directshowsource ("rmvb. rmvb", 15). bilinearresize (320,240)
Logo = imagesource ("logo2.jpg ")
Logomask = imagesource ("mask2.jpg ")
Overlay (video, logo, mask = logomask)
Add subtitle watermarks when converting mencoder to FLV
I tried it and can add it, but some parameters are not well set. For example, Chinese subtitles are only displayed "_____".
CD mencoder
Mencoder ../file/test. mov-o ../FLV/zbzbzb. FLV-of lavf-OAC mp3lame-lameopts ABR: Br = 56
-OVC lavc-lavcopts vcodec = FLV: vbitrate = 500: mbd = 2: mv0: v4mv: last_pred = 3-subpos 5-subfont
-Text-scale 10-Unicode-font c:/Arial. TTF-sub ../file/test. srt-lavfopts
I _certify_that_my_video_stream_does_not_use_ B _frames-srate 22050
Pause
The above is executed in a batch file, so it is written as this
Subpos indicates the position of the subtitle. The larger the vertical direction is, the lower the vertical direction is. the horizontal direction parameter is not found. The minimum value is 0 and the maximum value is 100.
Subfont-text-scale: Set the font size
-Unicode text encoding method. Others have not been tried.
-Font font file
-Sub: Your subtitle file
Blog Source: http://www.cnblogs.com/wucf2004/archive/2007/10/10/919523.html