Skip to content

Streaming output MJPEG encoder fails on VLC 3.0.21

Hey guys,

I am trying to publish an mjpeg stream from an Raspberry Pi5 to the local network.

This command fails on my RPi5 :

vlc -vvv v4l2:///dev/video0 --sout "#transcode{vcodec=mjpg,scale=1.0,acodec=none}:standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:8080/stream}"

Error log: Code: Select all

.... [mjpeg @ 0x7ffe88038fe0] Non full-range YUV is non-standard, set strict_std_compliance to at most unofficial to use it. [00007ffe88001230] avcodec encoder error: cannot open MJPG video encoder ....

VLC version 3.0.21 Vetinari (3.0.21-0-gdd8bfdbabe8) Debian GNU/Linux 12 (bookworm) libavcodec59

On my PC the same command works perfectly fine: VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2) Ubuntu 22.04.4 LTS libavcodec58

Any ideas how to fix it? e.g. How to set strict_std_compliance?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information