Page 1 of 1

VLCj Screen RTPS Streaming issue

Posted: 28 Dec 2010 13:10
by kajos
Hello boardmembers of VLC,

I'm using VLCj and everything is working like a charm, except the streaming.

I'm using the following code to stream the screen with RTSP but for some reason it won't transcode:

Code: Select all

mediaPlayer.playMedia("screen://", "screen-fps=30","screen-caching=50","clock-jitter=0", ":sout=#transcode{vcodec=h264,vb=800,scale=0.25,fps=10}", ":sout=#rtp{dst=230.0.0.1,port=5555}", ":no-sout-rtp-sap", ":no-sout-standard-sap", ":sout-all", ":sout-keep" );
Throws the following errors:

Code: Select all

[0677d5c4] stream_out_rtp stream out error: cannot add this stream (unsupported codec: RV32) [069b4ac4] main decoder error: cannot create packetizer output (RV32)
Any ideas are very much welcome, have been looking for this for hours!

Thanks,
Kajos

Re: VLCj Screen RTPS Streaming issue

Posted: 28 Dec 2010 14:27
by sherington

Code: Select all

[0677d5c4] stream_out_rtp stream out error: cannot add this stream (unsupported codec: RV32) [069b4ac4] main decoder error: cannot create packetizer output (RV32)
Are you using the direct rendering media player?

I ask that particular question because RV32 jumps out from your error report and vlcj currently has hard-coded the video format as RV32 in the direct rendering player.

If this is what you're doing, then for the time being you will need to edit the vlcj source code yourself to replace RV32 with something else. The next release of vlcj (not available for a little while) allows you to specify the video format.

If this is not what you're doing, I have no idea.

Re: VLCj Screen RTPS Streaming issue

Posted: 28 Dec 2010 14:38
by kajos
Thanks for the quick reply. I'm using the headless player. However, I might resolve this another way if I can get it to work from the commandline. This works, but I wan't to capture a part of the screen, because the entire display is cleary too much.

Without the screen top,left,width,height settings it works:

Code: Select all

vlc screen:// :screen-fps=30 :screen-caching=50 :sout-udp-caching=0 :udp-caching=0 :rtsp-caching=0 :tcp-caching=0 --sout=#transcode{vcodec=mp4v,vb=8800,scale=1,fps=30}:rtp{mux=ts,dst=127.0.0.1,port=4444,sdp=rtsp://localhost:8080/test.sdp
Without however I get no video and an error:

Code: Select all

vlc screen:// :screen-fps=30 :screen-caching=50 :screen-top=0 :screen-left=0 :screen-width=720 :screen-height=480 :sout-udp-caching=0 :udp-caching=0 :rtsp-caching=0 :tcp-caching=0 --sout=#transcode{vcodec=mp4v,vb=8800,scale=1,fps=30}:rtp{mux=ts,dst=127.0.0.1,port=4444,sdp=rtsp://localhost:8080/test.sdp

Code: Select all

libdvbpsi error (PSI decoder): TS discontinuity (received 12, expected 0) for PID 0 libdvbpsi error (PSI decoder): TS discontinuity (received 12, expected 0) for PID 66 [0512da84] ts demux error: MPEG-4 descriptor not found

Re: VLCj Screen RTPS Streaming issue

Posted: 28 Dec 2010 15:47
by kajos
vlc screen:// :screen-fps=20 :screen-caching=50 :screen-top=600 :screen-left=400 :screen-width=320 :screen-height=240 :sout-udp-caching=0 :udp-caching=0 :rtsp-caching=0 :tcp-caching=0 --sout=#transcode{vcodec=H264,vb=1800,scale=1,fps=20,width=320,height=240}:rtp{mux=ts,dst=127.0.0.1,port=4444,sdp=rtsp://localhost:8080/test.sdp

Got it working, or it was working all along :). However I still need a fast codec or a way to speed up H264 or MPEG4 (is doesn't seem to use the whole CPU power).

Please help, almost there :)

Re: VLCj Screen RTPS Streaming issue

Posted: 29 Dec 2010 18:01
by RĂ©mi Denis-Courmont
RV32 is a raw video format: RGB 24-bits plus 8-bits padding. VLC cannot stream that over RTP, at least not currently.