Skip to content

Instantly share code, notes, and snippets.

@shamun
Created December 12, 2011 15:51
Show Gist options
  • Save shamun/1467975 to your computer and use it in GitHub Desktop.
Save shamun/1467975 to your computer and use it in GitHub Desktop.
$ export DISPLAY=:0.0 && gst-launch -v souphttpsrc location=http://192.168.1.102:7007/video/filmfr2.avi ! queue ! decodebin2 ! xvimagesink sync=false
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstTypeFindElement:typefind.GstPad:src: caps = video/x-msvideo
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstAviDemux:avidemux0.GstPad:sink: caps = video/x-msvideo
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0: max-size-buffers = 5
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0: max-size-time = 0
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0: max-size-bytes = 2097152
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0.GstPad:sink0: caps = video/mpeg, mpegversion=(int)4, framerate=(fraction)50/1, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0.GstPad:sink1: caps = audio/mpeg, mpegversion=(int)1, layer=(int)2, rate=(int)44100, channels=(int)2, codec_data=(buffer)020000fa000001000000010010000000000000000000
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0.GstPad:sink1: caps = audio/mpeg, mpegversion=(int)1, layer=(int)2, rate=(int)44100, channels=(int)2, codec_data=(buffer)020000fa000001000000010010000000000000000000
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0.GstPad:src1: caps = audio/mpeg, mpegversion=(int)1, layer=(int)2, rate=(int)44100, channels=(int)2, codec_data=(buffer)020000fa000001000000010010000000000000000000
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMpegAudioParse:mpegaudioparse0.GstPad:sink: caps = audio/mpeg, mpegversion=(int)1, layer=(int)2, rate=(int)44100, channels=(int)2, codec_data=(buffer)020000fa000001000000010010000000000000000000
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMpeg4VParse:mpeg4vparse0.GstPad:src: caps = video/mpeg, mpegversion=(int)4, framerate=(fraction)50/1, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, systemstream=(boolean)false, parsed=(boolean)true, profile=(string)simple, level=(string)1, codec_data=(buffer)000001b001000001b58913000001000000012000c48d88019528045a1463000001b24c61766335322e37322e32
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMpegAudioParse:mpegaudioparse0.GstPad:src: caps = audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)2, rate=(int)44100, channels=(int)2, parsed=(boolean)true
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0: max-size-buffers = 5
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0: max-size-time = 0
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0: max-size-bytes = 2097152
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMad:mad0.GstPad:sink: caps = audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)2, rate=(int)44100, channels=(int)2, parsed=(boolean)true
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstDecodePad:src1: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)32, depth=(int)32, rate=(int)44100, channels=(int)2
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMad:mad0.GstPad:src: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)32, depth=(int)32, rate=(int)44100, channels=(int)2
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/ffdec_mpeg4:ffdec_mpeg40.GstPad:sink: caps = video/mpeg, mpegversion=(int)4, framerate=(fraction)50/1, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, systemstream=(boolean)false, parsed=(boolean)true, profile=(string)simple, level=(string)1, codec_data=(buffer)000001b001000001b58913000001000000012000c48d88019528045a1463000001b24c61766335322e37322e32
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstDecodePad:src0: caps = video/x-raw-yuv, width=(int)1280, height=(int)720, framerate=(fraction)50/1, format=(fourcc)I420, interlaced=(boolean)false, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/ffdec_mpeg4:ffdec_mpeg40.GstPad:src: caps = video/x-raw-yuv, width=(int)1280, height=(int)720, framerate=(fraction)50/1, format=(fourcc)I420, interlaced=(boolean)false, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0.GstPad:sink: caps = video/x-raw-yuv, width=(int)1280, height=(int)720, framerate=(fraction)50/1, format=(fourcc)I420, interlaced=(boolean)false, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstDecodePad:src0.GstProxyPad:proxypad4: caps = video/x-raw-yuv, width=(int)1280, height=(int)720, framerate=(fraction)50/1, format=(fourcc)I420, interlaced=(boolean)false, pixel-aspect-ratio=(fraction)1/1
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.632975986 28902 0x195a5f0 ERROR ffmpeg :0:: header damaged
0:00:00.695320555 28902 0x194e5e0 ERROR ffmpeg :0:: header damaged
0:00:00.717566558 28902 0x1959ca0 ERROR ffmpeg :0:: header damaged
0:00:00.728715521 28902 0x7fe8f81c3350 ERROR ffmpeg :0:: header damaged
0:00:00.740505199 28902 0x1958d50 ERROR ffmpeg :0:: header damaged
0:00:00.752547366 28902 0x194d410 ERROR ffmpeg :0:: header damaged
0:00:00.805435262 28902 0x198a2c0 ERROR ffmpeg :0:: header damaged
0:00:00.834451816 28902 0x7fe8f82a8470 ERROR ffmpeg :0:: header damaged
0:00:00.867054430 28902 0x1958d50 ERROR ffmpeg :0:: header damaged
0:00:00.877000769 28902 0x195a5f0 ERROR ffmpeg :0:: header damaged
0:00:00.887196070 28902 0x194d410 ERROR ffmpeg :0:: header damaged
0:00:00.898024108 28902 0x194e5e0 ERROR ffmpeg :0:: header damaged
0:00:00.908927188 28902 0x1959ca0 ERROR ffmpeg :0:: header damaged
0:00:00.931763054 28902 0x198a2c0 ERROR ffmpeg :0:: header damaged
0:00:00.964626863 28902 0x1958d50 ERROR ffmpeg :0:: header damaged
0:00:00.996578256 28902 0x194e5e0 ERROR ffmpeg :0:: header damaged
0:00:01.028313642 28902 0x7fe8f81c3350 ERROR ffmpeg :0:: header damaged
0:00:01.038891009 28902 0x195a5f0 ERROR ffmpeg :0:: header damaged
0:00:01.061549728 28902 0x198a2c0 ERROR ffmpeg :0:: header damaged
0:00:01.073010328 28902 0x7fe8f82a8470 ERROR ffmpeg :0:: header damaged
0:00:01.120591449 28902 0x194e5e0 ERROR ffmpeg :0:: header damaged
0:00:01.132762113 28902 0x1959ca0 ERROR ffmpeg :0:: header damaged
0:00:01.166899274 28902 0x195a5f0 ERROR ffmpeg :0:: header damaged
0:00:01.204139766 28902 0x7fe8f82a8470 ERROR ffmpeg :0:: header damaged
0:00:01.257688995 28902 0x194e5e0 ERROR ffmpeg :0:: header damaged
0:00:01.299985706 28902 0x195a5f0 ERROR ffmpeg :0:: header damaged
0:00:01.334411199 28902 0x7fe8f82a8470 ERROR ffmpeg :0:: header damaged
0:00:01.372814794 28902 0x1958d50 ERROR ffmpeg :0:: header damaged
0:00:01.407424206 28902 0x194e5e0 ERROR ffmpeg :0:: header damaged
0:00:01.484729845 28902 0x7fe8f82a8470 ERROR ffmpeg :0:: header damaged
0:00:01.521539334 28902 0x7fe8f81c3350 ERROR ffmpeg :0:: header damaged
0:00:01.562437024 28902 0x195a5f0 ERROR ffmpeg :0:: header damaged
0:00:01.584315273 28902 0x198a2c0 ERROR ffmpeg :0:: header damaged
0:00:01.627852202 28902 0x1958d50 ERROR ffmpeg :0:: header damaged
0:00:01.715577710 28902 0x195a5f0 ERROR ffmpeg :0:: header damaged
0:00:01.740801414 28902 0x198a2c0 ERROR ffmpeg :0:: header damaged
0:00:01.753674139 28902 0x194e5e0 ERROR ffmpeg :0:: header damaged
0:00:01.766935256 28902 0x7fe8f82a8470 ERROR ffmpeg :0:: header damaged
0:00:01.796090089 28902 0x7fe8f81c3350 ERROR ffmpeg :0:: header damaged
0:00:01.863166265 28902 0x1958d50 ERROR ffmpeg :0:: header damaged
0:00:01.910423908 28902 0x194e5e0 ERROR ffmpeg :0:: header damaged
0:00:01.923638141 28902 0x7fe8f82a8470 ERROR ffmpeg :0:: header damaged
0:00:01.934165484 28902 0x1959ca0 ERROR ffmpeg :0:: header damaged
0:00:01.958003249 28902 0x195a5f0 ERROR ffmpeg :0:: header damaged
0:00:02.058351148 28902 0x194e5e0 ERROR ffmpeg :0:: header damaged
0:00:02.070494327 28902 0x7fe8f82a8470 ERROR ffmpeg :0:: header damaged
0:00:02.123246329 28902 0x195a5f0 ERROR ffmpeg :0:: header damaged
0:00:02.163258224 28902 0x1959ca0 ERROR ffmpeg :0:: header damaged
0:00:02.206143723 28902 0x194d410 ERROR ffmpeg :0:: header damaged
0:00:02.245112445 28902 0x7fe8f82a8470 ERROR ffmpeg :0:: header damaged
0:00:02.286955520 28902 0x195a5f0 ERROR ffmpeg :0:: header damaged
0:00:02.321959975 28902 0x1959ca0 ERROR ffmpeg :0:: header damaged
0:00:02.364817070 28902 0x194d410 ERROR ffmpeg :0:: header damaged
0:00:02.405162392 28902 0x7fe8f82a8470 ERROR ffmpeg :0:: header damaged
0:00:02.419459125 28902 0x7fe8f81c3350 ERROR ffmpeg :0:: header damaged
0:00:02.446751562 28902 0x195a5f0 ERROR ffmpeg :0:: header damaged
0:00:02.458486980 28902 0x198a2c0 ERROR ffmpeg :0:: header damaged
0:00:02.524937216 28902 0x194e5e0 ERROR ffmpeg :0:: header damaged
0:00:02.547476109 28902 0x1959ca0 ERROR ffmpeg :0:: header damaged
^CCaught interrupt -- 0:00:02.559583271 28902 0x7fe8f81c3350 ERROR ffmpeg :0:: header damaged
0:00:02.572418296 28902 0x1958d50 ERROR ffmpeg :0:: header damaged
0:00:02.593517209 28902 0x194d410 ERROR ffmpeg :0:: header damaged
# git grep http
gstgio.c: /* - Filter http/https as we can't support the icy stuff with GIO.
gstgio.c: * Use souphttpsrc if you need that.
gstgio.c: if (strcmp (schemes[i], "http") == 0 || strcmp (schemes[i], "https") == 0
gstgiosrc.c: * the GIO library or it's VFS backends. Common protocols are 'file', 'http',
gstgiosrc.c: * gst-launch -v giosrc location=http://music.foobar.com/demo.mp3 ! mad ! audioconvert ! audioresample ! alsasink
gstgiosrc.c: * web server using the http protocol.
gstgiosrc.c: } else if (strcmp (scheme, "http") == 0 || strcmp (scheme, "https") == 0) {
--- do not work with latest
$ export DISPLAY=:0.0 && gst-launch -v giosrc location=http://192.168.1.102:7007/video/filmfr2.avi ! queue ! decodebin2 ! xvimagesink sync=false
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstGioSrc:giosrc0: Could not open resource for reading.
Additional debug info:
gstgiosrc.c(324): gst_gio_src_get_stream (): /GstPipeline:pipeline0/GstGioSrc:giosrc0:
Could not open location http://192.168.1.102:7007/video/filmfr2.avi for reading: Operation not supported
Setting pipeline to NULL ...
Freeing pipeline ...
--- works in fedora
$ gst-launch -v giosrc location=http://192.168.1.102:7007/video/filmfr2.avi ! queue ! decodebin2 ! xvimagesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstTypeFindElement:typefind.GstPad:src: caps = video/x-msvideo
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstAviDemux:avidemux0.GstPad:sink: caps = video/x-msvideo
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0: max-size-buffers = 5
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0: max-size-time = 0
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0: max-size-bytes = 2097152
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0.GstPad:sink0: caps = video/mpeg, mpegversion=(int)4, framerate=(fraction)50/1, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0.GstPad:sink1: caps = audio/mpeg, mpegversion=(int)1, layer=(int)2, rate=(int)44100, channels=(int)2, codec_data=(buffer)020000fa000001000000010010000000000000000000
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0.GstPad:src1: caps = audio/mpeg, mpegversion=(int)1, layer=(int)2, rate=(int)44100, channels=(int)2, codec_data=(buffer)020000fa000001000000010010000000000000000000
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMpegAudioParse:mpegaudioparse0.GstPad:sink: caps = audio/mpeg, mpegversion=(int)1, layer=(int)2, rate=(int)44100, channels=(int)2, codec_data=(buffer)020000fa000001000000010010000000000000000000
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMpegAudioParse:mpegaudioparse0.GstPad:src: caps = audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)2, rate=(int)44100, channels=(int)2, parsed=(boolean)true
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0: max-size-buffers = 5
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0: max-size-time = 0
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0: max-size-bytes = 2097152
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0.GstPad:src0: caps = video/mpeg, mpegversion=(int)4, framerate=(fraction)50/1, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMad:mad0.GstPad:sink: caps = audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)2, rate=(int)44100, channels=(int)2, parsed=(boolean)true
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstDecodePad:src1: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)32, depth=(int)32, rate=(int)44100, channels=(int)2
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMad:mad0.GstPad:src: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)32, depth=(int)32, rate=(int)44100, channels=(int)2
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/ffdec_mpeg4:ffdec_mpeg40.GstPad:sink: caps = video/mpeg, mpegversion=(int)4, framerate=(fraction)50/1, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstDecodePad:src0: caps = video/x-raw-yuv, width=(int)1280, height=(int)720, framerate=(fraction)50/1, format=(fourcc)I420, interlaced=(boolean)false, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/ffdec_mpeg4:ffdec_mpeg40.GstPad:src: caps = video/x-raw-yuv, width=(int)1280, height=(int)720, framerate=(fraction)50/1, format=(fourcc)I420, interlaced=(boolean)false, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0.GstPad:sink: caps = video/x-raw-yuv, width=(int)1280, height=(int)720, framerate=(fraction)50/1, format=(fourcc)I420, interlaced=(boolean)false, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstDecodePad:src0.GstProxyPad:proxypad3: caps = video/x-raw-yuv, width=(int)1280, height=(int)720, framerate=(fraction)50/1, format=(fourcc)I420, interlaced=(boolean)false, pixel-aspect-ratio=(fraction)1/1
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Output window was closed
Additional debug info:
xvimagesink.c(1311): gst_xvimagesink_handle_xevents (): /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0
Execution ended after 1433347357 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstDecodePad:src1: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20.GstDecodePad:src0: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMad:mad0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMad:mad0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMpegAudioParse:mpegaudioparse0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMpegAudioParse:mpegaudioparse0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/ffdec_mpeg4:ffdec_mpeg40.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/ffdec_mpeg4:ffdec_mpeg40.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0.GstPad:sink1: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0.GstPad:src1: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0.GstPad:sink0: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstMultiQueue:multiqueue0.GstPad:src0: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstAviDemux:avidemux0.GstPad:audio_00: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstAviDemux:avidemux0.GstPad:video_00: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstAviDemux:avidemux0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstDecodeBin2:decodebin20/GstTypeFindElement:typefind.GstPad:src: caps = NULL
Setting pipeline to NULL ...
Freeing pipeline ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment