vlc 3.0.21 failing to create mjpeg stream on RPi5

*nix specific usage questions
martinx
New Cone
New Cone
Posts: 1
Joined: 31 Aug 2024 16:19

vlc 3.0.21 failing to create mjpeg stream on RPi5

Postby martinx » 31 Aug 2024 17:03

Hey guys,

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

This command fails on my RPi5 :

Code: Select all

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?

skpacman
New Cone
New Cone
Posts: 3
Joined: 22 Apr 2023 07:09

Re: vlc 3.0.21 failing to create mjpeg stream on RPi5

Postby skpacman » 07 Oct 2024 21:54

I read elsewhere that there isn't hardware accelerated encoding support for MJPEG on the RPi5, so I bought a new RPi4B(8GB) and got literally the same result. Keeping an eye on this thread in case someone comes up with a solution.

I'm doing something similar, but a bit more complicated. I'm trying to stream a loop of a .mp4 file to both MJPEG and RTSP H.264 at the same time on two different ports using cvlc.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 8 guests