Instalação correta do gstreamer1.0-vaapi

0

Okey pessoal aqui é o meu problema para as últimas semanas eu estou tentando usar o vaapi.Eu tenho intel i5 processador (Wayland), que suporta vaapi mas por algum motivo estranho eu não posso fazê-lo funcionar também eu corro 14.10 64-bit versão.

Lista de pacotes instalados dpkg --get-selections | grep va :

gstreamer1.0-vaapi:amd64            install
i965-va-driver:amd64                install
i965-va-driver-dbg:amd64            install
libva-dev:amd64                     install
libva-drm1:amd64                    install
libva-egl1:amd64                    install
libva-glx1:amd64                    install
libva-intel-vaapi-driver            install
libva-tpi1:amd64                    install
libva-wayland1:amd64                install
libva-x11-1:amd64                   install
libva1:amd64                        install
libvdpau-va-gl1:amd64               install
libgstreamer-vaapi1.0-0:amd64       install
libgstreamer-vaapi1.0-dev           install
libavahi-client3:amd64              install
libavahi-client3:i386               install
libavahi-common-data:amd64          install
libavahi-common-data:i386           install
libavahi-common3:amd64              install
libavahi-common3:i386               install
libavahi-core7:amd64                install
libavahi-glib1:amd64                install
libavahi-gobject0:amd64             install

Saída de vainfo:

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/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_35
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.36 (libva 1.4.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Desktop - 1.3.2
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD

com um pipeline simples de gstreamer como este:

gst-launch-1.0 playbin video-sink=vaapisink uri=rtsp://ip_of_my_camera/

Eu recebo isso como saída:

New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
Got context from element 'vaapidecode0': gst.vaapi.Display=context, display=(GstVaapiDisplay)NULL;
0:00:03.405005415 27214 0x7f2560023370 ERROR                  vaapi ../../../../gst-libs/gst/vaapi/gstvaapidecoder_h264.c:1351:ensure_context: unsupported profile_idc 66
0:00:03.405029986 27214 0x7f2560023370 ERROR            vaapidecode ../../../gst/vaapi/gstvaapidecode.c:284:gst_vaapidecode_decode_frame: decode error 9
ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSrc:udpsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2943): gst_base_src_loop (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source/GstUDPSrc:udpsrc0:
streaming task paused, reason not-supported (-6)
Execution ended after 0:00:02.567426400
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Eu tentei reproduzir o mp4 simples depois disso:

gst-launch-1.0 playbin video-sink=vaapisink uri=file:///home/user/test.mp4

Eu recebo isso como saída:

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/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_35
libva info: va_openDriver() returns 0
Pipeline is PREROLLING ...
Got context from element 'vaapidecode0': gst.vaapi.Display=context, display=(GstVaapiDisplay)NULL;
0:00:00.082428099 27226 0x7fb268008c00 ERROR                  vaapi ../../../../gst-libs/gst/vaapi/gstvaapidecoder_h264.c:1351:ensure_context: unsupported profile_idc 66
0:00:00.082457191 27226 0x7fb268008c00 ERROR            vaapidecode ../../../gst/vaapi/gstvaapidecode.c:284:gst_vaapidecode_decode_frame: decode error 9
ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0: GStreamer encountered a general stream error.
Additional debug info:
qtdemux.c(4432): gst_qtdemux_loop (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0:
streaming stopped, reason not-supported
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
    
por harisk92 20.01.2015 / 14:27

2 respostas

0

Por favor, conte-nos mais sobre a sua fonte?

Tente despejar para arquivo e carregá-lo usando ferramentas diferentes, como vlc, informações interessantes podem aparecer

Você pode se adaptar:

location=/tmp/tmp.ts
uri="file://${location}"    
gst-launch-1.0 udpsrc port=${port} ! filesink location=$location

gst-launch-1.0 playbin uri=$uri 
#| Got EOS from element "playbin0".

gst-launch-1.0 playbin  --gst-debug-level=3  uri=$uri audio-sink=fakesink

#| 0:00:00.062872448  1532 0xb5002060 ERROR                  vaapi gstvaapidecoder_h264.c:1351:ensure_context: unsupported profile_idc 66
#| 0:00:00.062892542  1532 0xb5002060 ERROR            vaapidecode gstvaapidecode.c:284:gst_vaapidecode_decode_frame: decode error 9


gst-launch-1.0 playbin  --gst-debug-level=3  uri=$uri 
vlc $location
#| [0x7f25e0c826d8] ts demux error: MPEG-4 descriptor not found

mediainfo $location | grep Codec
#| Format/Info                              : Advanced Video Codec
#| Codec ID                                 : 27
    
por rzr 11.08.2015 / 12:27
0

Eu resolvi isso escolhendo a versão correta da versão gstreamer1.0-vaapi. Você pode obter o arquivo aqui: link

como instalar:  - ./configure  - faço  - faça a instalação

Quando não é a versão correta (erro ainda ocorre) use -make uninstall para desinstalá-lo e continue a tentar a próxima versão

(Você deve ter desinstalado completamente a versão que você instalou do sudo -apt get

    
por Tj Yeo 25.02.2017 / 14:50