FFmpeg commands in Windows

Source: Internet
Author: User

    • Print a list of supported devices for DirectShow
-list_devices true -f dshow -i dummy
    • Turn on the camera, save the video in Out.mp4.
 ffmpeg -f dshow -i video="Lenovo EasyCamera" out.mp4
    • Turn on the microphone and save the recording in Out.mp3
ffmpeg -f dshow -i audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{7DB78E33-271D-431B-9E43-F4A54BD675BD}" out.mp4
    • 1
    • Turn on the camera, turn on the mic, save the recording in Out.mp4
ffmpeg -f dshow -i video="Lenovo EasyCamera":audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{7DB78E33-271D-431B-9E43-F4A54BD675BD}" out.mp4
    • Turn on the camera, turn on the mic, record the video 10s, save it in Out.mp4
-t 10 -f dshow -i video="Lenovo EasyCamera":audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{7DB78E33-271D-431B-9E43-F4A54BD675BD}" out.mp4
    • Turn on camera, frame rate 25,h264 video encoding, push video stream to remote RTP address
-r 25 -f dshow -i video="Lenovo EasyCamera" -vcodec libx264 -preset:v ultrafast -tune:v zerolatency -f h264 rtp://192.168.1.10:6666 
    • Turn on the microphone and push the audio stream to the remote RTP address
-f dshow -i audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{7DB78E33-271D-431B-9E43-F4A54BD675BD}" -f mp2 udp://192.168.1.103:6666
    • Watch a stream over UDP, with a max reordering delay of 0.5 seconds:
-max_delay 500000 -rtsp_transport udp rtsp://server/video.mp4
    • Watch a stream tunneled over HTTP:
-rtsp_transport http rtsp://server/video.mp4
    • Send a stream in realtime to a RTSP server, for others to watch:
-re -i input -f rtsp -muxdelay 0.1 rtsp://server/live.sdp
    • Receive a stream in realtime:
-rtsp_flags listen -i rtsp://ownaddress/live.sdp output
    • Use the FFmpeg to stream over UDP to a remote endpoint:
-i input -f format udp://hostname:port
    • Use the FFmpeg to stream in MPEGTS format over UDP using 188 sized UDP packets, using a large input buffer:
-i input -f mpegts udp://hostname:port?pkt_size=188&buffer_size=65535
    • Use FFmpeg to receive over UDP from a remote endpoint:
...
    • FFmpeg forwarding
-i "e:\tt.sdp" -vcodec flv -acodec aac -ab 8000 -f flv rtmp://192.168.0.201:1935/live/stream3 
    • FFmpeg forwarding
-i "vlc.sdp" -vcodec flv -acodec aac -ab 8000 -f flv rtp://192.168.1.103:5004 
    • Push the stream when you want to push the audio and video separately to be able to VLC.SDP playback
-fflags +genpts -re -i 4.ts -an -vcodec copy -f rtp rtp://192.168.1.103:5004 -vn -acodec copy -f rtp rtp://192.168.1.103:5005 > vlc.sdpffplay rtp://192.168.1.101:5004/test.sdp
    • The following command implements the sending of the bare stream "chunwan.h264" to the address of H. rtp://233.233.233.223:6666
-re -i 4.ts -vcodec copy -f rtp rtp://192.168.1.103:6666 > test0207.sdp 

FFmpeg commands in Windows

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.