Answer the question
In order to leave comments, you need to log in
Streaming webm video via ffmpeg?
Good afternoon!
I'm trying to transcode streaming video from a webcam to webm format using ffmpeg
ffmpeg -f dshow -i video="USB2.0 HD UVC WebCam" -pix_fmt yuyv422 ^
-c:v libvpx -b:v 3000k -keyint_min 30 -g 30 -speed 6 ^
-tile-columns 4 -frame-parallel 1 -threads 8 -static-thresh 0 ^
-max-intra-rate 300 -deadline realtime -lag-in-frames 0 ^
-error-resilient 0 -f webm_chunk -header live.hdr ^
-chunk_start_index 0 live_%d.chk
ffmpeg.exe -f dshow -s 1280x720 -r 30 -vcodec mjpeg -i video="USB2.0 HD UVC WebCam" -c:v ^
libx264 -preset ultrafast ^
-crf 20 -maxrate 3000 -bufsize 100 -intra-refresh 1 -slice-max-size 1500 ^
-tune zerolatency ^
-flags -global_header ^
-fflags flush_packets ^
-hls_time 1 ^
-hls_list_size 3 ^
-hls_wrap 3 ^
-hls_flags delete_segments ^
-start_number 0 webcamstream.m3u8
Answer the question
In order to leave comments, you need to log in
Regarding delays, there are a couple of good articles:
part one ,
part two
, in your case, rtsp, rtmp, mpegts will come out with the least delays in order of increasing delay.
HLS is in principle segmented and the delay will be high.
If you need to show in the browser with a low latency, then either professional products, or picking in WebRTC, MSE-ld and other wss.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question