Raspian h.264 to mjpg problems

About encoding, codec settings, muxers and filter usage
k1rk
New Cone
New Cone
Posts: 3
Joined: 14 Jan 2017 16:39

Raspian h.264 to mjpg problems

Postby k1rk » 14 Jan 2017 18:29

Hi together,

it´s my first post here. I tried the search and also found some threads but nothing helped so far.

I run a Raspian as a virtual machine on an i7 system (I reserve 1 core and 1,5GB Ram).
VLC is installed.
To convert the stream from my Ubiquiti Unifi G3 dome camera with the following settings:
RTSP URL:
rtsp://10.0.0.xx:554/s2
Width:1024
Height:576
Bitrate:2000 kbps
FPS:30
I use the following command:

Code: Select all

cvlc -I dummy -v -R rtsp://10.0.0.xx/s2 --sout='#transcode{threads=2,acodec=none,vcodec=MJPG,vb=2000,width=1024,height=576,fps=20}:standard{mux=mpjpeg,access=http{user=xxx,pwd=xxx,mime=multipart/x-mixed-replace; boundary=--7b3cc56e5f51db803f790dad720ed50a},dst=:8080/cam.mjpg}' --sout-keep
and get the following errors:
VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89)
[0000000001d2a5c8] pulse audio output error: PulseAudio server connection failure: Connection refused
[0000000001d18c58] core interface error: no suitable interface module
[0000000001c50118] core libvlc error: interface "globalhotkeys,none" initialization failed
[0000000001d18c58] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0000000001d18c58] core interface error: no suitable interface module
[0000000001c50118] core libvlc error: interface "dbus,none" initialization failed
[0000000001d18c58] dummy interface: using the dummy interface module...
[00007fb0f04c97a8] stream_out_transcode stream out error: cannot find audio encoder (module:any fourcc:none). Take a look few lines earlier to see possible reason.
[00007fb100000c28] core input error: ES_OUT_RESET_PCR called
[00007fb0f04c97a8] stream_out_transcode stream out error: cannot create audio chain
[00007fb0f04d8968] core decoder error: cannot create packetizer output (mp4a)
[00007fb100000c28] core input error: ES_OUT_RESET_PCR called
[mjpeg @ 0x7fb0f801d540] ignoring invalid SAR: 0/0
[00007fb0f04c97a8] stream_out_transcode stream out: input interval 33333 (base 2)
[00007fb0f04c97a8] stream_out_transcode stream out: output interval 50000 (base 1)
[00007fb0f04c8f48] core mux warning: late buffer for mux input (38175)
[00007fb0f04c97a8] stream_out_transcode stream out warning: Reseting video sync
[mjpeg @ 0x7fb0f8226b40] rc buffer underflow
[mjpeg @ 0x7fb0f8226b40] rc buffer underflow
[mjpeg @ 0x7fb0f8226b40] rc buffer underflow
[mjpeg @ 0x7fb0f8226b40] rc buffer underflow
[mjpeg @ 0x7fb0f8226b40] rc buffer underflow
[mjpeg @ 0x7fb0f8226b40] rc buffer underflow
[mjpeg @ 0x7fb0f8226b40] rc buffer underflow
[mjpeg @ 0x7fb0f8226b40] rc buffer underflow
[mjpeg @ 0x7fb0f8226b40] rc buffer underflow
[mjpeg @ 0x7fb0f8226b40] rc buffer underflow
^C[00007fb0f04c8f48] core mux warning: no more input streams for this mux
Anyone an Idea what I´m doing wrong and how to fix the problem?
I already played around with some settings but so far no solution...

Thanks in advance!
K1rk

k1rk
New Cone
New Cone
Posts: 3
Joined: 14 Jan 2017 16:39

Re: Raspian h.264 to mjpg problems

Postby k1rk » 14 Jan 2017 19:00

interesting thing... with setting vb=2200 or above it seems to work.
lets see how long :)

k1rk
New Cone
New Cone
Posts: 3
Joined: 14 Jan 2017 16:39

Re: Raspian h.264 to mjpg problems

Postby k1rk » 16 Jan 2017 07:19

the rc buffer underflow error is gone and the stream works for around a minute. after that it stops and the message appears:

[00007f1e7c000d18] core stream output warning: trying to send non-dated packet to stream output!
[00007f1e7c000d18] core stream output warning: trying to send non-dated packet to stream output!
[00007f1e7c000d18] core stream output warning: trying to send non-dated packet to stream output!
[00007f1e8c000c28] core input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 1000 ms)
[00007f1e8c000c28] core input error: ES_OUT_RESET_PCR called

Please help! :(

prasadoraskar
New Cone
New Cone
Posts: 1
Joined: 04 Nov 2017 12:56

Re: Raspian h.264 to mjpg problems

Postby prasadoraskar » 05 Nov 2017 16:32

I am also facing same issue while streaming H.264 over RTP on VLC player version 2.1.6
[00007f1e8c000c28] core input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 3004 ms)
[00007f1e8c000c28] core input error: ES_OUT_RESET_PCR called


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 19 guests