Using and configuring ffmpeg

Hello
I Installed ffmpeg on openwrt, connected usb camera and wrote this command
ffmpeg -f v4l2 -input_format yuyv422 -framerate 30 -video_size 640x480 -i /dev/video0 -f mpegts udp://192.168.5.1:5000?pkt_size=1316
but i can't access the stream from network stream in vlc when i type this i
udp://192.168.5.1:5000?pkt_size=1316
or this
udp://@192.168.5.1:5000?pkt_size=1316
how can i fix it and access stream ?

Maybe try setting it up as an rtsp stream (rtsp://192.168.5.1)?

does it need packages to be installed ?

Ffmpeg should already have this functionality.

I typed as you said and here is the output

Input #0, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 22055.949951, bitrate: 147456 kb/s
  Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456 kb/s, 30 fps, 30 tbr, 1000k tbn
rtsp://192.168.5.1: Protocol not found

Did you consult the ffmpeg documentation?

2 Likes

Not yet i will consult it.
Thank you.