hooray4me 52 Posted June 23, 2017 Posted June 23, 2017 I am having some issues getting hardware transcoding to work properly with Emby Server on Centos 7.2.1511. I have successfully installed Media Server Server Studio and build the necessary custom ffmpeg. When I try to play something that should get transcoded I get an error. What is strange is when I run vainfo as seen above, it trys libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so But the emby transcoding logs show it trying libva info: Trying to open /usr/lib64/dri/i965_drv_video.so How do I make emby use the version that shows from vainfo? The analyzer tests pass: [media-admin@DFES ~]$ ./sys_analyzer_linux.py -------------------------- Hardware readiness checks: -------------------------- [ OK ] Processor name: Intel® Core i7-6700K CPU @ 4.00GHz -------------------------- OS readiness checks: -------------------------- [ OK ] GPU visible to OS -------------------------- Intel® Media Server Studio Install: -------------------------- [ OK ] user in video group [ OK ] libva.so.1 found [ OK ] vainfo reports valid codec entry points [ OK ] /dev/dri/renderD128 connects to Intel i915 -------------------------- Media SDK Plugins available: (for more info see /opt/intel/mediasdk/plugins/plugins.cfg) -------------------------- H264LA Encoder = 588f1185d47b42968dea377bb5d0dcb4 VP8 Decoder = f622394d8d87452f878c51f2fc9b4131 HEVC Decoder = 33a61c0b4c27454ca8d85dde757c6f8e HEVC Encoder = 6fadc791a0c2eb479ab6dcd5ea9da347 -------------------------- Component Smoke Tests: -------------------------- [ OK ] Media SDK HW API level:1.21 [ OK ] Media SDK SW API level:1.21 [ OK ] OpenCL check:platform:Intel® OpenCL GPU OK CPU OK This is ffmpeg version: ffmpeg version N-86566-g067e42b Copyright © 2000-2017 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4) configuration: --extra-cflags=-I/home/media-admin/ffmpeg_build/include --extra-ldflags='-L/home/media-admin/ffmpeg_build/lib -ldl' --bindir=/home/media-admin/bin --pkg-config-flags=--static --enable-shared --enable-libmfx --enable-nonfree --enable-gpl --enable-decoder=aac --enable-demuxer=mov --enable-libxcb --enable-zlib --enable-protocol=http --enable-filter=aformat --enable-filter=volume --enable-filter=aresample --prefix=/usr libavutil 55. 66.100 / 55. 66.100 libavcodec 57. 99.100 / 57. 99.100 libavformat 57. 73.100 / 57. 73.100 libavdevice 57. 7.100 / 57. 7.100 libavfilter 6. 94.100 / 6. 94.100 libswscale 4. 7.101 / 4. 7.101 libswresample 2. 8.100 / 2. 8.100 libpostproc 54. 6.100 / 54. 6.100 configuration: --extra-cflags=-I/home/media-admin/ffmpeg_build/include --extra-ldflags='-L/home/media-admin/ffmpeg_build/lib -ldl' --bindir=/home/media-admin/bin --pkg-config-flags=--static --enable-shared --enable-libmfx --enable-nonfree --enable-gpl --enable-decoder=aac --enable-demuxer=mov --enable-libxcb --enable-zlib --enable-protocol=http --enable-filter=aformat --enable-filter=volume --enable-filter=aresample --prefix=/usr and my vainfo: [media-admin@DFES usr]$ vainfo error: can't connect to X server! libva info: VA-API version 0.99.0 libva info: va_getDriverName() returns 0 libva info: User requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so libva info: Found init function __vaDriverInit_0_32 libva info: va_openDriver() returns 0 vainfo: VA-API version: 0.99 (libva 1.67.0.pre1) vainfo: Driver version: 16.5.1.59511-ubit vainfo: Supported profile and entrypoints VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264ConstrainedBaseline: <unknown entrypoint> VAProfileH264ConstrainedBaseline: <unknown entrypoint> VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264Main : <unknown entrypoint> VAProfileH264Main : <unknown entrypoint> VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileH264High : <unknown entrypoint> VAProfileH264High : <unknown entrypoint> VAProfileMPEG2Simple : VAEntrypointEncSlice VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointEncSlice VAProfileMPEG2Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileJPEGBaseline : VAEntrypointVLD VAProfileJPEGBaseline : VAEntrypointEncPicture VAProfileVP8Version0_3 : VAEntrypointEncSlice VAProfileVP8Version0_3 : VAEntrypointVLD VAProfileVP8Version0_3 : <unknown entrypoint> VAProfileHEVCMain : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointEncSlice VAProfileVP9Profile0 : <unknown entrypoint> <unknown profile> : VAEntrypointVideoProc VAProfileNone : VAEntrypointVideoProc VAProfileNone : <unknown entrypoint> Here is the rest of the transcoding log. https://tv-internal.securefamily.cloud:8920/emby/videos/7199a462b0d7e08b46eae2b629b4cf01/hls1/main/0.ts?DeviceId=51c87acac428fadb310d4701d8a7176608e4963e&MediaSourceId=7199a462b0d7e08b46eae2b629b4cf01&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=0&VideoBitrate=808001&AudioBitrate=192000&Level=51&Profile=high&PlaySessionId=6f952a1b69bf48b8bfbc9fdfba527d0c&api_key=e3d6cf64fb104da49a7b946daa01a008&CopyTimestamps=false&TranscodingMaxAudioChannels=6&EnableSubtitlesInManifest=false&Tag=709d00d94b625e4115acb8c1940e5ec4&RequireAvc=true&RequireNonAnamorphic=false&DeInterlace=true&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=False{"Protocol":"File","Id":"7199a462b0d7e08b46eae2b629b4cf01","Path":"/storage/TV Shows/Paw Patrol/Season 2/Paw Patrol - S02E04-05 - Pups Save the Penguins + Pups Save a Dolphin Pup WEBDL-720p.mkv","Type":"Default","Container":"mkv","Name":"720P/H264/AAC","IsRemote":false,"ETag":"709d00d94b625e4115acb8c1940e5ec4","RunTimeTicks":14025279488,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"RequiresLooping":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"aac","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1/48000","DisplayTitle":"Eng AAC stereo Default","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":192000,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"LC","Type":"Audio","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false},{"Codec":"h264","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"125/5994","NalLengthSize":"4","IsInterlaced":false,"IsAVC":true,"BitRate":4211058,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":716,"Width":1280,"AverageFrameRate":23.976,"RealFrameRate":23.976,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":31,"IsAnamorphic":false},{"Codec":"subrip","TimeBase":"1/1000","CodecTimeBase":"0/1","DisplayTitle":"Und Default","IsInterlaced":false,"IsDefault":true,"IsForced":false,"Type":"Subtitle","Index":2,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Level":0,"IsAnamorphic":false}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":4403058,"RequiredHttpHeaders":{}}/home/media-admin/bin/ffmpeg -c:v h264_qsv -i file:"/storage/TV Shows/Paw Patrol/Season 2/Paw Patrol - S02E04-05 - Pups Save the Penguins + Pups Save a Dolphin Pup WEBDL-720p.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:1 -map 0:0 -map -0:s -codec:v:0 h264_qsv -preset 7 -look_ahead 0 -b:v 808001 -maxrate 808001 -bufsize 1616002 -profile:v high -level 4.1 -force_key_frames "expr:gte(t,n_forced*3)" -vf "scale=trunc(min(max(iw\,ih*dar)\,720)/2)*2:trunc(ow/dar/2)*2" -copyts -vsync -1 -codec:a:0 copy -copypriorss:a:0 0 -f segment -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -segment_time 3 -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "/transcoding/transcoding-temp/27a5187f4519d6b8cd458ce2826b887e.m3u8" -y "/transcoding/transcoding-temp/27a5187f4519d6b8cd458ce2826b887e%d.ts"ffmpeg version N-86566-g067e42b Copyright © 2000-2017 the FFmpeg developersbuilt with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)configuration: --extra-cflags=-I/home/media-admin/ffmpeg_build/include --extra-ldflags='-L/home/media-admin/ffmpeg_build/lib -ldl' --bindir=/home/media-admin/bin --pkg-config-flags=--static --enable-shared --enable-libmfx --enable-nonfree --enable-gpl --enable-decoder=aac --enable-demuxer=mov --enable-libxcb --enable-zlib --enable-protocol=http --enable-filter=aformat --enable-filter=volume --enable-filter=aresample --prefix=/usrlibavutil 55. 66.100 / 55. 66.100libavcodec 57. 99.100 / 57. 99.100libavformat 57. 73.100 / 57. 73.100libavdevice 57. 7.100 / 57. 7.100libavfilter 6. 94.100 / 6. 94.100libswscale 4. 7.101 / 4. 7.101libswresample 2. 8.100 / 2. 8.100libpostproc 54. 6.100 / 54. 6.100Input #0, matroska,webm, from 'file:/storage/TV Shows/Paw Patrol/Season 2/Paw Patrol - S02E04-05 - Pups Save the Penguins + Pups Save a Dolphin Pup WEBDL-720p.mkv':Metadata:encoder : libebml v1.3.0 + libmatroska v1.4.1creation_time : 2014-12-21T18:31:30.000000ZDuration: 00:23:22.53, start: 0.000000, bitrate: 4211 kb/sStream #0:0(eng): Audio: aac (LC), 48000 Hz, stereo, fltp (default)Metadata:BPS : 135217BPS-eng : 135217DURATION : 00:23:22.496000000DURATION-eng : 00:23:22.496000000NUMBER_OF_FRAMES: 65742NUMBER_OF_FRAMES-eng: 65742NUMBER_OF_BYTES : 23705260NUMBER_OF_BYTES-eng: 23705260_STATISTICS_WRITING_APP: mkvmerge v7.3.0 ('Nouages') 64bit built on Oct 22 2014 18:53:34_STATISTICS_WRITING_APP-eng: mkvmerge v7.3.0 ('Nouages') 64bit built on Oct 22 2014 18:53:34_STATISTICS_WRITING_DATE_UTC: 2014-12-21 18:31:30_STATISTICS_WRITING_DATE_UTC-eng: 2014-12-21 18:31:30_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTESStream #0:1(eng): Video: h264 (High), yuv420p(tv, bt709, progressive), 1280x716 [sAR 1:1 DAR 320:179], 23.98 fps, 23.98 tbr, 1k tbn, 2k tbc (default)Metadata:BPS : 4073248BPS-eng : 4073248DURATION : 00:23:22.528000000DURATION-eng : 00:23:22.528000000NUMBER_OF_FRAMES: 33627NUMBER_OF_FRAMES-eng: 33627NUMBER_OF_BYTES : 714105596NUMBER_OF_BYTES-eng: 714105596_STATISTICS_WRITING_APP: mkvmerge v7.3.0 ('Nouages') 64bit built on Oct 22 2014 18:53:34_STATISTICS_WRITING_APP-eng: mkvmerge v7.3.0 ('Nouages') 64bit built on Oct 22 2014 18:53:34_STATISTICS_WRITING_DATE_UTC: 2014-12-21 18:31:30_STATISTICS_WRITING_DATE_UTC-eng: 2014-12-21 18:31:30_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTESStream #0:2: Subtitle: subrip (default)Metadata:BPS : 97BPS-eng : 97DURATION : 00:22:53.237000000DURATION-eng : 00:22:53.237000000NUMBER_OF_FRAMES: 499NUMBER_OF_FRAMES-eng: 499NUMBER_OF_BYTES : 16666NUMBER_OF_BYTES-eng: 16666_STATISTICS_WRITING_APP: mkvmerge v7.3.0 ('Nouages') 64bit built on Oct 22 2014 18:53:34_STATISTICS_WRITING_APP-eng: mkvmerge v7.3.0 ('Nouages') 64bit built on Oct 22 2014 18:53:34_STATISTICS_WRITING_DATE_UTC: 2014-12-21 18:31:30_STATISTICS_WRITING_DATE_UTC-eng: 2014-12-21 18:31:30_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTESlibva info: VA-API version 0.99.0libva info: va_getDriverName() returns 0libva info: Trying to open /usr/lib64/dri/i965_drv_video.solibva info: va_openDriver() returns -1[AVHWDeviceContext @ 0xf6c580] Failed to initialise VAAPI connection: -1 (unknown libva error).Device creation failed: -5.[h264_qsv @ 0xf8cc00] No device available for decoder (device type qsv for codec h264_qsv).Stream mapping:Stream #0:1 -> #0:0 (h264 (h264_qsv) -> h264 (h264_qsv))Stream #0:0 -> #0:1 (copy)Press [q] to stop, [?] for help[NULL @ 0xfa69e0] non-existing SPS 0 referenced in buffering period[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happened[h264_qsv @ 0xf8cc00] Error initializing the MFX video decoder: not initialized (-8)Error while decoding stream #0:1: Internal bug, should not have happenedToo many packets buffered for output stream 0:1.Conversion failed!
mastrmind11 718 Posted June 23, 2017 Posted June 23, 2017 Can you run the ffmpeg command Emby is using from the CLI?
hooray4me 52 Posted June 24, 2017 Author Posted June 24, 2017 Yep no problem, see below... [media-admin@DFES ~]$ /home/media-admin/bin/ffmpeg -c:v h264_qsv -i file:"/storage/TV Shows/Doc McStuffins/Season 1/Doc McStuff ins - S01E01-02-03-04 - Knight Time + A Bad Case of the Pricklethorns + Out of the Box + Run Down Race Car WEBDL-1080p.mkv" -map _metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_qsv -preset 7 -look_ahead 0 -b:v 808000 -ma xrate 808000 -bufsize 1616000 -profile:v high -level 4.1 -force_key_frames "expr:gte(t,n_forced*3)" -vf "scale=trunc(min(max(iw\ ,ih*dar)\,720)/2)*2:trunc(ow/dar/2)*2" -copyts -vsync -1 -codec:a:0 copy -copypriorss:a:0 0 -f segment -max_delay 5000000 -avoid _negative_ts disabled -start_at_zero -segment_time 3 -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u 8 -segment_start_number 0 -segment_list "/transcoding/transcoding-temp/d14835fdbd8018e3ac34d8f37e304997.m3u8" -y "/transcoding/t ranscoding-temp/d14835fdbd8018e3ac34d8f37e304997%d.ts" ffmpeg version N-86566-g067e42b Copyright © 2000-2017 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4) configuration: --extra-cflags=-I/home/media-admin/ffmpeg_build/include --extra-ldflags='-L/home/media-admin/ffmpeg_build/lib - ldl' --bindir=/home/media-admin/bin --pkg-config-flags=--static --enable-shared --enable-libmfx --enable-nonfree --enable-gpl -- enable-decoder=aac --enable-demuxer=mov --enable-libxcb --enable-zlib --enable-protocol=http --enable-filter=aformat --enable-fi lter=volume --enable-filter=aresample --prefix=/usr libavutil 55. 66.100 / 55. 66.100 libavcodec 57. 99.100 / 57. 99.100 libavformat 57. 73.100 / 57. 73.100 libavdevice 57. 7.100 / 57. 7.100 libavfilter 6. 94.100 / 6. 94.100 libswscale 4. 7.101 / 4. 7.101 libswresample 2. 8.100 / 2. 8.100 libpostproc 54. 6.100 / 54. 6.100 Input #0, matroska,webm, from 'file:/storage/TV Shows/Doc McStuffins/Season 1/Doc McStuffins - S01E01-02-03-04 - Knight Time + A Bad Case of the Pricklethorns + Out of the Box + Run Down Race Car WEBDL-1080p.mkv': Metadata: encoder : libebml v1.3.4 + libmatroska v1.4.5 creation_time : 2017-06-03T00:50:28.000000Z Duration: 00:24:06.44, start: 0.000000, bitrate: 4438 kb/s Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [sAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Metadata: BPS : 4372328 BPS-eng : 4372328 DURATION : 00:24:06.320000000 DURATION-eng : 00:24:06.320000000 NUMBER_OF_FRAMES: 34677 NUMBER_OF_FRAMES-eng: 34677 NUMBER_OF_BYTES : 790473237 NUMBER_OF_BYTES-eng: 790473237 _STATISTICS_WRITING_APP: mkvmerge v10.0.0 ('To Drown In You') 64bit _STATISTICS_WRITING_APP-eng: mkvmerge v10.0.0 ('To Drown In You') 64bit _STATISTICS_WRITING_DATE_UTC: 2017-06-03 00:50:28 _STATISTICS_WRITING_DATE_UTC-eng: 2017-06-03 00:50:28 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:1: Audio: aac (HE-AAC), 48000 Hz, stereo, fltp (default) Metadata: BPS : 63999 BPS-eng : 63999 DURATION : 00:24:06.443000000 DURATION-eng : 00:24:06.443000000 NUMBER_OF_FRAMES: 33901 NUMBER_OF_FRAMES-eng: 33901 NUMBER_OF_BYTES : 11571542 NUMBER_OF_BYTES-eng: 11571542 _STATISTICS_WRITING_APP: mkvmerge v10.0.0 ('To Drown In You') 64bit _STATISTICS_WRITING_APP-eng: mkvmerge v10.0.0 ('To Drown In You') 64bit _STATISTICS_WRITING_DATE_UTC: 2017-06-03 00:50:28 _STATISTICS_WRITING_DATE_UTC-eng: 2017-06-03 00:50:28 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:2(eng): Subtitle: subrip Metadata: BPS : 85 BPS-eng : 85 DURATION : 00:24:02.207000000 DURATION-eng : 00:24:02.207000000 NUMBER_OF_FRAMES: 575 NUMBER_OF_FRAMES-eng: 575 NUMBER_OF_BYTES : 15501 NUMBER_OF_BYTES-eng: 15501 _STATISTICS_WRITING_APP: mkvmerge v10.0.0 ('To Drown In You') 64bit _STATISTICS_WRITING_APP-eng: mkvmerge v10.0.0 ('To Drown In You') 64bit _STATISTICS_WRITING_DATE_UTC: 2017-06-03 00:50:28 _STATISTICS_WRITING_DATE_UTC-eng: 2017-06-03 00:50:28 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES libva info: VA-API version 0.99.0 libva info: va_getDriverName() returns 0 libva info: User requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so libva info: Found init function __vaDriverInit_0_32 libva info: va_openDriver() returns 0 Stream mapping: Stream #0:0 -> #0:0 (h264 (h264_qsv) -> h264 (h264_qsv)) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [segment @ 0x243bd60] Opening '/transcoding/transcoding-temp/d14835fdbd8018e3ac34d8f37e3049970.ts' for writing Output #0, segment, to '/transcoding/transcoding-temp/d14835fdbd8018e3ac34d8f37e304997%d.ts': Metadata: encoder : Lavf57.73.100 Stream #0:0: Video: h264 (h264_qsv), nv12, 720x404 [sAR 404:405 DAR 16:9], q=2-31, 808 kb/s, 23.98 fps, 90k tbn, 23.98 tbc ( default) Metadata: encoder : Lavc57.99.100 h264_qsv Side data: cpb: bitrate max/min/avg: 808000/0/808000 buffer size: 1616000 vbv_delay: -1 Stream #0:1: Audio: aac (HE-AAC), 48000 Hz, stereo, fltp (default) [segment @ 0x243bd60] Opening '/transcoding/transcoding-temp/d14835fdbd8018e3ac34d8f37e304997.m3u8.tmp' for writing [segment @ 0x243bd60] Opening '/transcoding/transcoding-temp/d14835fdbd8018e3ac34d8f37e3049971.ts' for writing [segment @ 0x243bd60] Opening '/transcoding/transcoding-temp/d14835fdbd8018e3ac34d8f37e304997.m3u8.tmp' for writing [segment @ 0x243bd60] Opening '/transcoding/transcoding-temp/d14835fdbd8018e3ac34d8f37e3049972.ts' for writing [segment @ 0x243bd60] Opening '/transcoding/transcoding-temp/d14835fdbd8018e3ac34d8f37e304997.m3u8.tmp' for writing [segment @ 0x243bd60] Opening '/transcoding/transcoding-temp/d14835fdbd8018e3ac34d8f37e3049973.ts' for writing However, the same thing in the emby logs... why is Emby trying a different driver? libva info: VA-API version 0.99.0libva info: va_getDriverName() returns 0libva info: Trying to open /usr/lib64/dri/i965_drv_video.solibva info: va_openDriver() returns -1[AVHWDeviceContext @ 0x2476380] Failed to initialise VAAPI connection: -1 (unknown libva error).Device creation failed: -5.
mastrmind11 718 Posted June 24, 2017 Posted June 24, 2017 bizarre. maybe reach out to @@darrenkdean ... he posted he got it working: https://emby.media/community/index.php?/topic/48588-confirmed-linux-intel-quick-sync-transcoding/
hooray4me 52 Posted June 24, 2017 Author Posted June 24, 2017 lol, we are both working together on the same server... he thought it was working but it wasn't. At my wits end here... can you tell me if there are any confirmed working linux builds on ANY distro that can actually leverage HW transcoding? If so what build(s) and graphics cards?
mastrmind11 718 Posted June 25, 2017 Posted June 25, 2017 lol, we are both working together on the same server... he thought it was working but it wasn't. At my wits end here... can you tell me if there are any confirmed working linux builds on ANY distro that can actually leverage HW transcoding? If so what build(s) and graphics cards? VAAPI works on pretty much any distro.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now