E
E
Evgeny Zapunny2021-04-07 14:13:43
cmd/bat
Evgeny Zapunny, 2021-04-07 14:13:43

How to stream on ffmpeg with video capture?

I have a nms server which says how can I stream with pure ffmpeg xgBEO0GES4s.jpg?size=694x315&quality=96&sign=943667dd716b41ea1921cd0cb13e364a&type=album
Also 10 minutes of searching and I can find how to record screen with ffmpeg
But when I try to link the first command from the first source to the screen recording I get an error

[flv @ 000002607d95aa40] Video codec bmp not compatible with flv
Could not write header for output file #0 (incorrect codec parameters ?): Function not implemented

Without hesitation, we understand that the problem is with the file, and we take the second piece of code, and in this case it becomes possible to successfully establish a connection, but in the folder where chunks should be stored, and other files for hls are not created, and the server itself disconnects, as do a screen recording and send it directly to the rtmp server?

The command itself looks like this:
ffmpeg -f gdigrab -framerate 30 -offset_x 1-offset_y 1-video_size 640x480 -show_region 1 -re -i desktop -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://localhost/live/newStream

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question