Black screen with ximagesrc
Arnaud Loonstra
arnaud at sphaero.org
Wed Nov 26 01:46:47 PST 2014
What version of gstreamer?
Does something this work?
gst-launch-1.0 ximagesrc use-damage=false ! glimagesink (or ximagesink)
Does this work?
gst-launch-1.0 ximagesrc use-damage=false ! videoconvert ! x264enc !
av_h264dec ! glimagesink
Does this work?
gst-launch-1.0 ximagesrc use-damage=false ! videoconvert ! x264enc !
rtph264pay ! udpsink host=127.0.0.1 port=5000
gst-launch-1.0 udpsrc port=5000 !
application/x-rtp,encoding-name=H264,payload=96 ! rtph264depay !
avdec_h264 ! glimagesink
I don't know specifics about rtmp or flash muxing but if these above are
working you know where to look...
Rg,
Arnaud
On 11/25/2014 07:29 AM, grijalvaromero wrote:
> i try to stream my screen to a rtmp server, but only appears a black screen:
> this is my script:
>
> gst-launch-1.0 -v ximagesrc endx=1919 endy=1079 use-damage=false
> show-pointer=true ! video/x-raw,framerate=15/1 ! \
> videoconvert ! queue ! x264enc bitrate=1228 ! mux. \
> flvmux name=mux ! \
> rtmpsink location="rtmp://127.0.0.1:1935/live1/live live=1"
>
> this is the console:
>
> /GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:sink: caps = video/x-raw,
> width=(int)2806, height=(int)900, framerate=(fraction)15/1,
> pixel-aspect-ratio=(fraction)1/1, format=(string)Y444
> /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps =
> video/x-raw, format=(string)BGRx, width=(int)2806, height=(int)900,
> framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1
> /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps =
> video/x-raw, format=(string)BGRx, width=(int)2806, height=(int)900,
> framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1
> Redistribute latency...
> /GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:src: caps = video/x-h264,
> codec_data=(buffer)01f40032ffe1001b67f40032919b28058039f171b80880000003008000000f478c18cb01000668ebec448440,
> stream-format=(string)avc, alignment=(string)au, level=(string)5,
> profile=(string)high-4:4:4, width=(int)2806, height=(int)900,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)15/1
> /GstPipeline:pipeline0/GstFlvMux:mux.GstPad:video: caps = video/x-h264,
> codec_data=(buffer)01f40032ffe1001b67f40032919b28058039f171b80880000003008000000f478c18cb01000668ebec448440,
> stream-format=(string)avc, alignment=(string)au, level=(string)5,
> profile=(string)high-4:4:4, width=(int)2806, height=(int)900,
> pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)15/1
> /GstPipeline:pipeline0/GstFlvMux:mux: streamable = true
> /GstPipeline:pipeline0/GstFlvMux:mux.GstPad:src: caps = video/x-flv,
> streamheader=(buffer)< 464c5601010000000900000000,
> 120000de0000000000000002000a6f6e4d657461446174610800000009000c766964656f636f646563696400401c000000000000000577696474680040a5ec0000000000000668656967687400408c200000000000000c417370656374526174696f58003ff0000000000000000c417370656374526174696f59003ff000000000000000096672616d657261746500402e000000000000000f6d6574616461746163726561746f720200134753747265616d657220464c56206d75786572000c6372656174696f6e64617465020017547565204e6f7620323520373a31383a32322032303134000009000000e9,
> 0900003100000000000000170000000001f40032ffe1001b67f40032919b28058039f171b80880000003008000000f478c18cb01000668ebec4484400000003c
>>
>
> i think it's because no specific width or height but when I put it appears:
> "video/x-raw,width=640,height=480,framerate=15/1" !
>
> WARNING: erroneous pipeline: could not link ximagesrc0 to videoconvert0
>
> also i try this:
>
> gst-launch-1.0 -v ximagesrc endx=1919 endy=1079 use-damage=false
> show-pointer=true ! video/x-raw,framerate=15/1 ! \
> #videoscale method=1 ! \
> #video/x-raw,width=1400,height=1050,framerate=15/1 ! \
> videoconvert ! queue ! x264enc bitrate=1228 ! mux. \
> flvmux name=mux ! \
> rtmpsink location="rtmp://127.0.0.1:1935/live1/live live=1"
>
> gst-launch-1.0 -v ximagesrc endx=1919 endy=1079 use-damage=false
> show-pointer=true ! video/x-raw,framerate=15/1 ! \
> queue ! videorate ! video/x-raw,framerate=15/1 ! videoscale method=1 ! \
> video/x-raw-yuv,width=1400,height=1050,framerate=15/1 ! \
> videoconvert ! queue ! x264enc bitrate=1228 ! mux. \
> flvmux name=mux ! \
> rtmpsink location="rtmp://127.0.0.1:1935/live1/live live=1"
>
> suggestions or am I doing wrong?
>
>
>
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Black-screen-with-ximagesrc-tp4669658.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
--
w: http://www.sphaero.org
t: http://twitter.com/sphaero
g: http://github.com/sphaero
i: freenode: sphaero_z25
More information about the gstreamer-devel
mailing list