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
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@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hello,
iirc to get ffdev_h264 I have to install some ffmpeg package (which are no more in the official ubuntu repository) there is a ppa for that, see : https://groups.google.com/forum/#!topic/clementine-player/JnGgRyUEuc4
and I've done less than a year ago to stream an RPi camera to GEM, see http://antoine.villeret.free.fr/?p=846
++ a
-- do it yourself http://antoine.villeret.free.fr
2015-11-16 13:19 GMT+01:00 Benjamin ~ b01 benjah@free.fr:
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@lists.iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 2015-11-16 14:06, Antoine Villeret wrote:
iirc to get ffdev_h264 I have to install some ffmpeg package (which are no more in the official ubuntu repository)
btw, "ffmpeg" is now shipped in Debian again (as opposed to the "libav" fork), so i guess it will eventually reappear in ubuntu as well. dunno about ffdev_h264 though.
fgmadf IOhannes
You can get it on Ubuntu with the 15.04 main version (it is working fine on 15.10) : http://ppa.launchpad.net/mc3man/gstffmpeg-keep/ubuntu ++
Jack
Le 16/11/2015 15:08, IOhannes m zmoelnig a écrit :
On 2015-11-16 14:06, Antoine Villeret wrote:
iirc to get ffdev_h264 I have to install some ffmpeg package (which are no more in the official ubuntu repository)
btw, "ffmpeg" is now shipped in Debian again (as opposed to the "libav" fork), so i guess it will eventually reappear in ubuntu as well. dunno about ffdev_h264 though.
fgmadf IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hello Benjamin,
Yes, I tried with ffdec_h264 but it is very, very slow compared to avdec_h264 which, if i am right, is only available with gst-launch-1.0. And, if i am right (again), v4l2sink doesn't work with gst-launch-1.0. So I have to imagine a workaround, like a pipe : gst-launch-1.0 -> gst-launch-0.10 -> v4l2sink. If someone have a recommandation ? Thanx. ++
Jack
Le 16/11/2015 13:19, Benjamin ~ b01 a écrit :
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@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Le 16/11/2015 16:19, Jack a écrit :
Hello Benjamin,
Yes, I tried with ffdec_h264 but it is very, very slow compared to avdec_h264 which, if i am right, is only available with gst-launch-1.0. And, if i am right (again), v4l2sink doesn't work with gst-launch-1.0.
why not using only ffmpeg which is able to write to a virtual v4l2 device ? I had good result when decoding a h264 stream from those minicaster devices
So I have to imagine a workaround, like a pipe : gst-launch-1.0 -> gst-launch-0.10 -> v4l2sink. If someone have a recommandation ? Thanx. ++
Jack
Le 16/11/2015 13:19, Benjamin ~ b01 a écrit :
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@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Thank you very much Benjamin, you make my day. I just install ffmpeg and it is working very nice where avconv couldn't decode the stream !!! ++
Jack
Le 16/11/2015 17:08, Benjamin ~ b01 a écrit :
Le 16/11/2015 16:19, Jack a écrit :
Hello Benjamin,
Yes, I tried with ffdec_h264 but it is very, very slow compared to avdec_h264 which, if i am right, is only available with gst-launch-1.0. And, if i am right (again), v4l2sink doesn't work with gst-launch-1.0.
why not using only ffmpeg which is able to write to a virtual v4l2 device ? I had good result when decoding a h264 stream from those minicaster devices
- possible to send the audio to Pd with jackd
So I have to imagine a workaround, like a pipe : gst-launch-1.0 -> gst-launch-0.10 -> v4l2sink. If someone have a recommandation ? Thanx. ++
Jack
Le 16/11/2015 13:19, Benjamin ~ b01 a écrit :
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@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list