I'm trying to do some testing with dtnstream. as far as I understand it, dtnstream uses stdout to send and stdin to receive bundles in order.
I want to make a transmission using a webcam (USB) using gstreamer. I'm trying this:
gst-launch v4l2src device=/dev/video1 ! video/x-raw-yuv, width=320,height=240,framerate=10/1 ! ffmpegcolorspace ! smokeenc keyframe=8 qmax=40 ! fdsink fd=1 | ./dtnstream -d dtn://nc1.dtn/video
./dtnstream -s video | gst-launch fdsrc ! smokedec ! ffmpegcolorspace ! fakesink dump=true async=false
dtnd receives data from stream but the second command does not play the video.
Any help or examples of a working pipe(preferably webcam) is welcome. *---------------------*
# Luís Octávio Zimmermann de Borba Maia # Pesquisador na área de redes - GCAP - IFC # Acadêmico do 5° período em Sistemas de Informação - Instituto Federal Catarinense # http://about.me/luis.zimmermann
Hi Luís.
If I try your statements on my computer, I get an gstreamer error. This may be the result of a mission codec.
However, a good way to prove that the issue isn't related to the gstreamer usage would be to plug both ends directly together without a DTN in between.
Am 21.03.2012 13:10, schrieb Luís Octávio Zimmemann de Borba Maia:
gst-launch v4l2src device=/dev/video1 ! video/x-raw-yuv, width=320,height=240,framerate=10/1 ! ffmpegcolorspace ! smokeenc keyframe=8 qmax=40 ! fdsink fd=1 | ./dtnstream -d dtn://nc1.dtn/video
./dtnstream -s video | gst-launch fdsrc ! smokedec ! ffmpegcolorspace ! fakesink dump=true async=false
Your statement would look like this...
gst-launch v4l2src device=/dev/video1 ! video/x-raw-yuv, \ width=320,height=240,framerate=10/1 ! ffmpegcolorspace ! smokeenc \ keyframe=8 qmax=40 ! fdsink fd=1 | \ gst-launch fdsrc ! smokedec ! ffmpegcolorspace ! fakesink dump=true \ async=false
If this isn't working, you should solve that first. Maybe a gstreamer Mailinglist is a better place to ask for those questions, since I think there is no video expert on this list.
Kind regards, Johannes
participants (2)
-
Johannes Morgenroth
-
Luís Octávio Zimmemann de Borba Maia