0

I'm trying to use vlc to transcode a mjpeg stream from a USB camera connected to a raspberry pi 3B+, however VLC seems unable to read the mjpeg video stream from the camera, I already checked the v4l2-ctl formats output and the camera can deliver mjpeg, indeed, I tested the camera over a laptop running Linux and it works pretty well, but not on the raspberry pi, a simple command like

vlc v4l2:///dev/video0:chroma=MJPG

Will open VLC and it will recognize the I put stream as mjpeg but will just show a black screen on the raspberry pi

Searching a bit seems like vlc doesn't like the mjpeg output from the RPi, but the worksaround as using a different demux (avformat or mjpeg), haven't worked for me.

Any suggestions?, How can I stream something acceptable for VLC?, I must clarify that using a raspberry pi camera module is not an option for me.

More information, even using ffmpeg to record the mjpeg makes it unable to play over VLC, and I'm sticking to VLC as my final goal is to transcode it to h264, and I know is possible as mjpg_streamer (https://github.com/jacksonliam/mjpg-streamer), can stream to http and vlc is able to read it, but I don't like to use it as I will need to record and after encode it to h264.

Raspberry pi is a model 3B+ running raspbian stretch and with VLC just installed with apt, nothing else installed

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.