Revision 24003419

View differences:

doc/ffmpeg.texi
36 36
option on the command line multiple times. Each occurrence is
37 37
then applied to the next input or output file.
38 38

  
39
* To set the video bitrate of the output file to 64kbit/s:
39
@itemize
40
@item
41
To set the video bitrate of the output file to 64kbit/s:
40 42
@example
41 43
ffmpeg -i input.avi -b 64k output.avi
42 44
@end example
43 45

  
44
* To force the frame rate of the output file to 24 fps:
46
@item
47
To force the frame rate of the output file to 24 fps:
45 48
@example
46 49
ffmpeg -i input.avi -r 24 output.avi
47 50
@end example
48 51

  
49
* To force the frame rate of the input file (valid for raw formats only)
52
@item
53
To force the frame rate of the input file (valid for raw formats only)
50 54
to 1 fps and the frame rate of the output file to 24 fps:
51 55
@example
52 56
ffmpeg -r 1 -i input.m2v -r 24 output.avi
53 57
@end example
58
@end itemize
54 59

  
55 60
The format option may be needed for raw input files.
56 61

  
......
835 840

  
836 841
@section Video and Audio file format conversion
837 842

  
838
* FFmpeg can use any supported file format and protocol as input:
843
FFmpeg can use any supported file format and protocol as input:
839 844

  
840 845
Examples:
841

  
842
* You can use YUV files as input:
846
@itemize
847
@item
848
You can use YUV files as input:
843 849

  
844 850
@example
845 851
ffmpeg -i /tmp/test%d.Y /tmp/out.mpg
......
856 862
decoders. You must specify the size of the image with the @option{-s} option
857 863
if FFmpeg cannot guess it.
858 864

  
859
* You can input from a raw YUV420P file:
865
@item
866
You can input from a raw YUV420P file:
860 867

  
861 868
@example
862 869
ffmpeg -i /tmp/test.yuv /tmp/out.avi
......
866 873
of the Y plane followed by the U and V planes at half vertical and
867 874
horizontal resolution.
868 875

  
869
* You can output to a raw YUV420P file:
876
@item
877
You can output to a raw YUV420P file:
870 878

  
871 879
@example
872 880
ffmpeg -i mydivx.avi hugefile.yuv
873 881
@end example
874 882

  
875
* You can set several input files and output files:
883
@item
884
You can set several input files and output files:
876 885

  
877 886
@example
878 887
ffmpeg -i /tmp/a.wav -s 640x480 -i /tmp/a.yuv /tmp/a.mpg
......
881 890
Converts the audio file a.wav and the raw YUV video file a.yuv
882 891
to MPEG file a.mpg.
883 892

  
884
* You can also do audio and video conversions at the same time:
893
@item
894
You can also do audio and video conversions at the same time:
885 895

  
886 896
@example
887 897
ffmpeg -i /tmp/a.wav -ar 22050 /tmp/a.mp2
......
889 899

  
890 900
Converts a.wav to MPEG audio at 22050 Hz sample rate.
891 901

  
892
* You can encode to several formats at the same time and define a
902
@item
903
You can encode to several formats at the same time and define a
893 904
mapping from input stream to output streams:
894 905

  
895 906
@example
......
900 911
file:index' specifies which input stream is used for each output
901 912
stream, in the order of the definition of output streams.
902 913

  
903
* You can transcode decrypted VOBs:
914
@item
915
You can transcode decrypted VOBs:
904 916

  
905 917
@example
906 918
ffmpeg -i snatch_1.vob -f avi -vcodec mpeg4 -b 800k -g 300 -bf 2 -acodec libmp3lame -ab 128k snatch.avi
......
917 929

  
918 930
NOTE: To see the supported input formats, use @code{ffmpeg -formats}.
919 931

  
920
* You can extract images from a video, or create a video from many images:
932
@item
933
You can extract images from a video, or create a video from many images:
921 934

  
922 935
For extracting images from a video:
923 936
@example
......
942 955
number. It is the same syntax supported by the C printf function, but
943 956
only formats accepting a normal integer are suitable.
944 957

  
945
* You can put many streams of the same type in the output:
958
@item
959
You can put many streams of the same type in the output:
946 960

  
947 961
@example
948 962
ffmpeg -i test1.avi -i test2.avi -vcodec copy -acodec copy -vcodec copy -acodec copy test12.avi -newvideo -newaudio
......
955 969
The @code{-newvideo}, @code{-newaudio} and @code{-newsubtitle}
956 970
options have to be specified immediately after the name of the output
957 971
file to which you want to add them.
972

  
973
@end itemize
958 974
@c man end EXAMPLES
959 975

  
960 976
@include eval.texi

Also available in: Unified diff