5/30/2023 0 Comments Idisplay for arch linux$ ffmpeg -f alsa -i pulse -f v4l2 -s 640x480 -i /dev/video0 output.mpgįor a higher quality capture, try encoding the output using higher quality codecs: $ ffmpeg -f alsa -i default -f v4l2 -s 640x480 -i /dev/video0 output.mpg The following command will include a stream from the default ALSA recording device into the video: It is also possible to include audio sources from a microphone. $ ffmpeg -f v4l2 -s 640x480 -i /dev/video0 output.mpg The following command will record a video from the webcam, assuming that the webcam is correctly recognized under /dev/video0: See the manpage for the synopsis.įFmpeg supports grabbing input from Video4Linux2 devices. Without context the meaning of the parameters may seem ambigious. You may want to adjust the parameters (left-to-right): input format, size, frame rate, input (in this case display, but could be a file too), input format, input, codec: video, bitrate: video, size of output. To implicitely encode to a shareable size use : Check the FFmpeg manual for examples of how to change the screen or position of the capture area. Where -video_size specifies the size of the area to capture. $ ffmpeg -f x11grab -video_size 1920x1080 -i $DISPLAY -f alsa -i default -c:v ffvhuff -c:a flac test.mkv It includes libavcodec - the leading audio/video codec library. 原因:Last updated in 2015 ( 375921), out of sync with English page(在 Talk:FFmpeg# 中讨论)įFmpeg is a complete, cross-platform solution to record, convert and stream audio and video.
0 Comments
Leave a Reply. |