mbebenita / Broadway

A JavaScript H.264 decoder.
Other
2.73k stars 426 forks source link

The good command ffmpeg stream #222

Closed Pierre89 closed 4 years ago

Pierre89 commented 4 years ago

hello, I made a nodejs server that receives the frame from ffmpeg, but I can't find the right ffmpeg command that works with BroadWay to stream my /dev/video0

ffmpeg -i /dev/video0 -c:v h264 -preset fast -profile:v baseline -f rawvideo http://mywebsocketserver:8081

almost works but it gives : https://ibb.co/8M8f81f

how can I do ?

soliton4 commented 4 years ago

https://github.com/mbebenita/Broadway#encoding-video

this should work

Pierre89 commented 4 years ago

doesn't work for /dev/video0