Hi all!
Attached you could find a little SDL application to render the next pipeline using OpenGL.
gst-launch-1.0 filesrc location=attract.avi ! avidemux ! vaapimpeg2dec ! glimagesink
The application plays the video file in a loop and you can press ESC to abort playing. When the EOS is detected if the pipeline is set to GST_STATE_NULL I get:
X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)
Major opcode of failed request: 155 () Minor opcode of failed request: 8 Resource id in failed request: 0x420001e Serial number of failed request: 21 Current serial number in output stream: 75
I've set some traces in the state-changed messages to see that going to PAUSE and READY is ok, but going to NULL there is some problem...
message: state-changed (glcolorbalance0) -- on_sync_message - glcolorbalance0 changed: PLAYING -> PAUSED
message: state-changed (glcolorconvertelement0) -- on_sync_message - glcolorconvertelement0 changed: PLAYING -> PAUSED message: state-changed (gluploadelement0) -- on_sync_message - gluploadelement0 changed: PLAYING -> PAUSED message: state-changed (vaapidecode_mpeg2-0) -- on_sync_message - vaapidecode_mpeg2-0 changed: PLAYING -> PAUSED message: state-changed (avidemux0) -- on_sync_message - avidemux0 changed: PLAYING -> PAUSED message: state-changed (filesrc) -- on_sync_message - filesrc changed: PLAYING -> PAUSED message: state-changed (pipeline) -- on_sync_message - pipeline changed: PLAYING -> PAUSED message: state-changed (sink) -- on_sync_message - sink changed: PLAYING -> PAUSED message: state-changed (sink) -- on_sync_message - sink changed: PLAYING -> READY message: state-changed (glcolorbalance0) -- on_sync_message - glcolorbalance0 changed: PAUSED -> READY message: state-changed (glcolorconvertelement0) -- on_sync_message - glcolorconvertelement0 changed: PAUSED -> READY message: state-changed (gluploadelement0) -- on_sync_message - gluploadelement0 changed: PAUSED -> READY message: state-changed (glimagesinkbin0) -- on_sync_message - glimagesinkbin0 changed: PLAYING -> READY message: state-changed (vaapidecode_mpeg2-0) -- on_sync_message - vaapidecode_mpeg2-0 changed: PAUSED -> READY message: stream-status (sink) -- message: state-changed (avidemux0) -- on_sync_message - avidemux0 changed: PAUSED -> READY message: state-changed (filesrc) -- on_sync_message - filesrc changed: PAUSED -> READY message: state-changed (pipeline) -- on_sync_message - pipeline changed: PAUSED -> READY message: state-changed (sink) -- on_sync_message - sink changed: READY -> NULL message: state-changed (glcolorbalance0) -- on_sync_message - glcolorbalance0 changed: READY -> NULL message: state-changed (glcolorconvertelement0) -- on_sync_message - glcolorconvertelement0 changed: READY -> NULL message: state-changed (gluploadelement0) -- on_sync_message - gluploadelement0 changed: READY -> NULL message: state-changed (glimagesinkbin0) -- on_sync_message - glimagesinkbin0 changed: READY -> NULL message: state-changed (vaapidecode_mpeg2-0) -- on_sync_message - vaapidecode_mpeg2-0 changed: READY -> NULL message: state-changed (avidemux0) -- on_sync_message - avidemux0 changed: READY -> NULL message: state-changed (filesrc) -- on_sync_message - filesrc changed: READY -> NULL
Anybody can help me? I'm using gstreamer 1.12.2. I'm trying to develop a little video player using VAAPI, gstreamer and rendering in a OpenGL texture.
Regards
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi,
The same error I get running the next pipeline:
$ gst-launch-1.0 filesrc location=attract.mp4 ! qtdemux ! vaapih264dec ! glupload ! video/x-raw\(memory:GLMemory\),width=1366,height=768,format=RGBA ! glfilterapp ! fakesink sync=true
libva info: VA-API version 0.36.0
libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so libva info: Found init function __vaDriverInit_0_35 libva info: va_openDriver() returns 0 Setting pipeline to PAUSED ... libva info: VA-API version 0.36.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so libva info: Found init function __vaDriverInit_0_35 libva info: va_openDriver() returns 0 Pipeline is PREROLLING ... Got context from element 'glfilterapp0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0"; Got context from element 'vaapidecode_h264-0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayGLX\)\ vaapidisplayglx1"; Redistribute latency... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock Got EOS from element "pipeline0". Execution ended after 0:00:14.600032149 Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... X Error of failed request: BadDrawable (invalid Pixmap or Window parameter) Major opcode of failed request: 155 () Minor opcode of failed request: 8 Resource id in failed request: 0x420000b Serial number of failed request: 17 Current serial number in output stream: 1329
Regards Jorge De: gstreamer-devel <[hidden email]> en nombre de Jorge Fernandez Monteagudo <[hidden email]>
Enviado: jueves, 31 de agosto de 2017 12:54:06 Para: [hidden email] Asunto: [SENDER UNVERIFIED]Error destroying pipeline in vaapi Hi all!
Attached you could find a little SDL application to render the next pipeline using OpenGL.
gst-launch-1.0 filesrc location=attract.avi ! avidemux ! vaapimpeg2dec ! glimagesink
The application plays the video file in a loop and you can press ESC to abort playing. When the EOS is detected if the pipeline is set to GST_STATE_NULL I get:
X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)
Major opcode of failed request: 155 () Minor opcode of failed request: 8 Resource id in failed request: 0x420001e Serial number of failed request: 21 Current serial number in output stream: 75
I've set some traces in the state-changed messages to see that going to PAUSE and READY is ok, but going to NULL there is some problem...
message: state-changed (glcolorbalance0) -- on_sync_message - glcolorbalance0 changed: PLAYING -> PAUSED
message: state-changed (glcolorconvertelement0) -- on_sync_message - glcolorconvertelement0 changed: PLAYING -> PAUSED message: state-changed (gluploadelement0) -- on_sync_message - gluploadelement0 changed: PLAYING -> PAUSED message: state-changed (vaapidecode_mpeg2-0) -- on_sync_message - vaapidecode_mpeg2-0 changed: PLAYING -> PAUSED message: state-changed (avidemux0) -- on_sync_message - avidemux0 changed: PLAYING -> PAUSED message: state-changed (filesrc) -- on_sync_message - filesrc changed: PLAYING -> PAUSED message: state-changed (pipeline) -- on_sync_message - pipeline changed: PLAYING -> PAUSED message: state-changed (sink) -- on_sync_message - sink changed: PLAYING -> PAUSED message: state-changed (sink) -- on_sync_message - sink changed: PLAYING -> READY message: state-changed (glcolorbalance0) -- on_sync_message - glcolorbalance0 changed: PAUSED -> READY message: state-changed (glcolorconvertelement0) -- on_sync_message - glcolorconvertelement0 changed: PAUSED -> READY message: state-changed (gluploadelement0) -- on_sync_message - gluploadelement0 changed: PAUSED -> READY message: state-changed (glimagesinkbin0) -- on_sync_message - glimagesinkbin0 changed: PLAYING -> READY message: state-changed (vaapidecode_mpeg2-0) -- on_sync_message - vaapidecode_mpeg2-0 changed: PAUSED -> READY message: stream-status (sink) -- message: state-changed (avidemux0) -- on_sync_message - avidemux0 changed: PAUSED -> READY message: state-changed (filesrc) -- on_sync_message - filesrc changed: PAUSED -> READY message: state-changed (pipeline) -- on_sync_message - pipeline changed: PAUSED -> READY message: state-changed (sink) -- on_sync_message - sink changed: READY -> NULL message: state-changed (glcolorbalance0) -- on_sync_message - glcolorbalance0 changed: READY -> NULL message: state-changed (glcolorconvertelement0) -- on_sync_message - glcolorconvertelement0 changed: READY -> NULL message: state-changed (gluploadelement0) -- on_sync_message - gluploadelement0 changed: READY -> NULL message: state-changed (glimagesinkbin0) -- on_sync_message - glimagesinkbin0 changed: READY -> NULL message: state-changed (vaapidecode_mpeg2-0) -- on_sync_message - vaapidecode_mpeg2-0 changed: READY -> NULL message: state-changed (avidemux0) -- on_sync_message - avidemux0 changed: READY -> NULL message: state-changed (filesrc) -- on_sync_message - filesrc changed: READY -> NULL
Anybody can help me? I'm using gstreamer 1.12.2. I'm trying to develop a little video player using VAAPI, gstreamer and rendering in a OpenGL texture.
Regards
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |