Community
cancel
Showing results for 
Search instead for 
Did you mean: 
CMatt3
Novice
1,430 Views

FFMPEG Webcam stream

Jump to solution

Helo everyone,

i am trying to stream my webcam video via rtp to my computer.

I got the edi-cam already running, now i am trying to do it via rtp instead of http.

I am running this command on the Intel Edion (Yocto):

/home/root/bin/ffmpeg/ffmpeg -re -r 30 -s 320x240 -f video4linux2 -i /dev/video0 -f mpegts -f rtp rtp://127.0.0.1:1234

While sending an audio via rtp is already working, the VLC player on my client computer (windows 10) does not want to play the sdp file.

Althoud it is poened correctly, the VLC player dos not show any video.

What am I doing wrong?

Kind regards, Chriss

1 Solution
Pedro_M_Intel
Employee
86 Views

Hello dev_passion,

Have you tried to stream any kind of video with RTP? I mean, you should test the RTP stream with a sample video instead of trying to do all at once, that's a good way to check that everything is working properly. Once you know that you are setting up the RTP stream correctly, then you can add the recording of the webcam to the RTP stream, but trying to accomplish everything at the same time can sometimes produce a lot of issues (at least that's what happen to me).

You could try to do the example in http://lucabe72.blogspot.com/2010/04/rtp-streaming-with-ffmpeg.html RTP streaming with ffmpeg maybe you'll find there the difference between what's missing and what's not. I hope it helps, let us know.

Peter.

View solution in original post

1 Reply
Pedro_M_Intel
Employee
87 Views

Hello dev_passion,

Have you tried to stream any kind of video with RTP? I mean, you should test the RTP stream with a sample video instead of trying to do all at once, that's a good way to check that everything is working properly. Once you know that you are setting up the RTP stream correctly, then you can add the recording of the webcam to the RTP stream, but trying to accomplish everything at the same time can sometimes produce a lot of issues (at least that's what happen to me).

You could try to do the example in http://lucabe72.blogspot.com/2010/04/rtp-streaming-with-ffmpeg.html RTP streaming with ffmpeg maybe you'll find there the difference between what's missing and what's not. I hope it helps, let us know.

Peter.

View solution in original post

Reply