[PD] pdgst and videoloopback

Benjamin ~ b01 benjah at free.fr
Mon Nov 16 13:19:57 CET 2015


Hello,

we successfully managed to get video stream into Gem/pix_video with
v4l2loopback booth with gstreamer and ffmpeg, we used ffmpeg at the end,
maybe some help by there :
http://wiki.labomedia.org/index.php/AstroFluxTechnique#Pour_Debug
http://wiki.labomedia.org/index.php/AstroFluxTechnique#Minicaster_Stream
we used a compiled version of v4l2loopback
https://github.com/umlaeute/v4l2loopback to get the latest version
and a static version of ffmpeg or a self compiled version of ffmpeg in
function of the codec needs

++
b

Le 12/11/2015 18:42, Jack a écrit :
> Hello,
>
> I would like to use pdgst to play a video stream in Gem.
>
> I tried with the vlc plugin :
> device tcp://192.168.1.101:5555
>
> ... but like with :
> $ vlc tcp://192.168.1.101:5555
>
> ... i got a black screen.
>
> I tried with gstreamer :
> $ gst-launch-1.0 tcpclientsrc host=192.168.1.102 port=5555 ! h264parse !
> avdec_h264 ! xvimagesink
>
> ... and i get the stream and everything is OK :)
>
>
> So, I decided to use v4l2loopback to get the stream on /dev/video1, but
> after :
> # modprobe v4l2loopback
> $ gst-launch-1.0 tcpclientsrc host=192.168.1.102 port=5555 ! h264parse !
> avdec_h264 ! v4l2sink device=/dev/video1
>
> ... i got :
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> ERROR: from element
> /GstPipeline:pipeline0/GstTCPClientSrc:tcpclientsrc0: Internal data flow
> error.
> Additional debug info:
> gstbasesrc.c(2943): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstTCPClientSrc:tcpclientsrc0:
> streaming task paused, reason not-negotiated (-4)
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
> So I can't use pdgst nor pix_video to read the stream.
>
> I also tried with :
> $ gst-launch-0.10 tcpclientsrc host=192.168.1.102 port=5555 ! h264parse
> ! avdec_h264 ! xvimagesink
>
> but gstreamer (gst-launch-0.10) can't find the module "avdec_h264" (and
> i can't get ffdec_h264 on my system, dont't know why yet).
> Any suggestion to get the stream in Pd/Gem ?
> Thanx.
> ++
>
> Jack
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list




More information about the Pd-list mailing list