Closed Brainiarc7 closed 7 years ago
I'm facing the same issue. I'm not able to transcode hevc files, both 8 Bit and 10 Bit, with Intel Quick Sync. I tried it with Ubuntu 16.04 and Windows 10 on Intel Apollo Lake. The issue seems to be that emby doesn't recognize hevc_qsv capabilities on start up. I posted my experience, including several log files, in this thread https://emby.media/community/index.php?/topic/10723-gpu-transcoding-intel-quicksync-and-nvidia-nvenc/page-50
I think I've found the issue. hevc_qsv is missing in var required of EncoderValidator.cs. Only an assumption though...
Also, another update:
On other HEVC media types such as the example below, encoding to H.264 when requested via DLNA works flawlessly.
See sample data below:
Media attributes:
General
Unique ID : 241434550665200952668650301501708631332 (0xB5A29A6307B1EB5884C2BC87D22EFD24)
Complete name : F:\Default Video Library\Series\The 100\Season 4\The.100.S04E05.The.Tinder.Box.1080p.WEB-DL.6CH.x265.HEVC-PSA.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 510 MiB
Duration : 40 min 39 s
Overall bit rate : 1 752 kb/s
Movie name : PSArips.com | The.100.S04E05.The.Tinder.Box.1080p.WEB-DL.6CH.x265.HEVC-PSA
Encoded date : UTC 2017-03-02 17:40:11
Writing application : mkvmerge v9.9.0 ('Pick Up') 64bit
Writing library : libebml v1.3.4 + libmatroska v1.4.5
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main@L4@Main
Codec ID : V_MPEGH/ISO/HEVC
Duration : 40 min 39 s
Bit rate : 1 529 kb/s
Width : 1 912 pixels
Height : 1 072 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.031
Stream size : 445 MiB (87%)
Default : Yes
Forced : No
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : HE-AAC / LC
Codec ID : A_AAC
Duration : 40 min 39 s
Bit rate : 221 kb/s
Channel(s) : 6 channels
Channel(s)_Original : 18 channels
Channel positions : Front: 14, Side: L R, LFE= 2
Sampling rate : 48.0 kHz / 24.0 kHz
Frame rate : 23.438 FPS (1024 spf)
Compression mode : Lossy
Delay relative to video : 23 ms
Stream size : 64.3 MiB (13%)
Default : Yes
Forced : No
Text
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 40 min 7 s
Bit rate : 61 b/s
Count of elements : 674
Stream size : 18.0 KiB (0%)
Default : Yes
Forced : No
ffmpeg log snippet:
http://x.x.x.x:8096/videos/01d8b78b2f5a2fc49ad6db77b8a1a592/stream.ts?Params=;test;01d8b78b2f5a2fc49ad6db77b8a1a592;false;h264;aac;1;2;23616000;384000;;;;;0;;;;;;;;;01d8b78b2f5a2fc49ad6db77b8a1a592;false;Encode;;false;688017a8a43dc46cd1fc01358e2e5c78;false;
{"Protocol":"File","Id":"01d8b78b2f5a2fc49ad6db77b8a1a592","Path":"F:\\Default Video Library\\Series\\The 100\\Season 4\\The.100.S04E05.The.Tinder.Box.1080p.WEB-DL.6CH.x265.HEVC-PSA.mkv","Type":"Default","Container":"mkv","Name":"1080P/HEVC/AAC","IsRemote":false,"ETag":"688017a8a43dc46cd1fc01358e2e5c78","RunTimeTicks":24399790080,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"VideoType":"VideoFile","MediaStreams":[{"Codec":"hevc","TimeBase":"1/1000","CodecTimeBase":"1001/24000","IsInterlaced":false,"BitRate":1752271,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":1072,"Width":1912,"AverageFrameRate":23.97602,"RealFrameRate":23.97602,"Profile":"Main","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":120,"IsAnamorphic":false},{"Codec":"aac","TimeBase":"1/1000","CodecTimeBase":"1/48000","DisplayTitle":"AAC 5.1 Default","IsInterlaced":false,"ChannelLayout":"5.1","Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"HE-AAC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false},{"Codec":"srt","TimeBase":"1/1000","CodecTimeBase":"1/1000","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":1752271,"RequiredHttpHeaders":{}}
C:\Users\Brainiarc7\AppData\Roaming\Emby-Server\ffmpeg\20160410\ffmpeg.exe -f matroska -i file:"F:\Default Video Library\Series\The 100\Season 4\The.100.S04E05.The.Tinder.Box.1080p.WEB-DL.6CH.x265.HEVC-PSA.mkv" -map 0:0 -map 0:1 -codec:v:0 h264_qsv -force_key_frames "expr:gte(t,n_forced*5)" -copyts -vf "subtitles='F\:/Default Video Library/Series/The 100/Season 4/The.100.S04E05.The.Tinder.Box.1080p.WEB-DL.6CH.x265.HEVC-PSA.mkv:si=0',setpts=PTS -0/TB" -preset 7 -look_ahead 0 -b:v 3504542 -maxrate 3504542 -bufsize 7009084 -vsync -1 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 aac -strict experimental -ac 6 -ab 384000 -af "aresample=async=1,asetpts=PTS-0/TB" -y "C:\Users\Brainiarc7\AppData\Roaming\Emby-Server\transcoding-temp\62cbcd0bec238e126984cdc8a57bede2.ts"
ffmpeg version N-79277-g0c90b2e Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 20.100 / 55. 20.100
libavcodec 57. 34.100 / 57. 34.100
libavformat 57. 32.100 / 57. 32.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 41.100 / 6. 41.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
[aac @ 0000000000e2de80] element type mismatch 3 != 0
[aac @ 0000000000e2de80] element type mismatch 1 != 0
Last message repeated 1 times
Input #0, matroska,webm, from 'file:F:\Default Video Library\Series\The 100\Season 4\The.100.S04E05.The.Tinder.Box.1080p.WEB-DL.6CH.x265.HEVC-PSA.mkv':
Metadata:
title : PSArips.com | The.100.S04E05.The.Tinder.Box.1080p.WEB-DL.6CH.x265.HEVC-PSA
encoder : libebml v1.3.4 + libmatroska v1.4.5
creation_time : 2017-03-02 17:40:11
Duration: 00:40:39.98, start: 0.000000, bitrate: 1752 kb/s
Stream #0:0: Video: hevc (Main), yuv420p(tv), 1912x1072, SAR 1:1 DAR 239:134, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Metadata:
BPS : 1529239
BPS-eng : 1529239
DURATION : 00:40:39.979000000
DURATION-eng : 00:40:39.979000000
NUMBER_OF_FRAMES: 58501
NUMBER_OF_FRAMES-eng: 58501
NUMBER_OF_BYTES : 466414007
NUMBER_OF_BYTES-eng: 466414007
_STATISTICS_WRITING_APP: mkvmerge v9.9.0 ('Pick Up') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.9.0 ('Pick Up') 64bit
_STATISTICS_WRITING_DATE_UTC: 2017-03-02 17:40:11
_STATISTICS_WRITING_DATE_UTC-eng: 2017-03-02 17:40:11
_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, 5.1, fltp (default)
Metadata:
BPS : 220977
BPS-eng : 220977
DURATION : 00:40:39.851000000
DURATION-eng : 00:40:39.851000000
NUMBER_OF_FRAMES: 57184
NUMBER_OF_FRAMES-eng: 57184
NUMBER_OF_BYTES : 67394115
NUMBER_OF_BYTES-eng: 67394115
_STATISTICS_WRITING_APP: mkvmerge v9.9.0 ('Pick Up') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.9.0 ('Pick Up') 64bit
_STATISTICS_WRITING_DATE_UTC: 2017-03-02 17:40:11
_STATISTICS_WRITING_DATE_UTC-eng: 2017-03-02 17:40:11
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2: Subtitle: subrip (default)
Metadata:
BPS : 61
BPS-eng : 61
DURATION : 00:40:07.280000000
DURATION-eng : 00:40:07.280000000
NUMBER_OF_FRAMES: 674
NUMBER_OF_FRAMES-eng: 674
NUMBER_OF_BYTES : 18390
NUMBER_OF_BYTES-eng: 18390
_STATISTICS_WRITING_APP: mkvmerge v9.9.0 ('Pick Up') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.9.0 ('Pick Up') 64bit
_STATISTICS_WRITING_DATE_UTC: 2017-03-02 17:40:11
_STATISTICS_WRITING_DATE_UTC-eng: 2017-03-02 17:40:11
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[Parsed_subtitles_0 @ 000000000269a360] Shaper: FriBidi 0.19.6 (SIMPLE)
[aac @ 00000000025ff5e0] element type mismatch 3 != 0
[aac @ 00000000025ff5e0] element type mismatch 1 != 0
Last message repeated 1 times
[Parsed_subtitles_0 @ 000000000269a360] Using font provider directwrite
Output #0, mpegts, to 'C:\Users\Brainiarc7\AppData\Roaming\Emby-Server\transcoding-temp\62cbcd0bec238e126984cdc8a57bede2.ts':
Metadata:
encoder : Lavf57.32.100
Stream #0:0: Video: h264 (h264_qsv), nv12, 1912x1072 [SAR 1:1 DAR 239:134], q=2-31, 3504 kb/s, 23.98 fps, 90k tbn, 23.98 tbc (default)
Metadata:
encoder : Lavc57.34.100 h264_qsv
Side data:
cpb: bitrate max/min/avg: 3504542/0/3504542 buffer size: 7009084 vbv_delay: -1
Stream #0:1: Audio: aac (LC), 48000 Hz, 5.1, fltp, 384 kb/s (default)
Metadata:
encoder : Lavc57.34.100 aac
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_qsv))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[aac @ 0000000002930900] element type mismatch 3 != 0
[aac @ 0000000002930900] element type mismatch 1 != 0
Last message repeated 1 times
[aac @ 0000000002930900] element type mismatch 3 != 0
[aac @ 0000000002930900] element type mismatch 1 != 0
Last message repeated 1 times
[aac @ 0000000002930900] element type mismatch 3 != 0
[aac @ 0000000002930900] element type mismatch 1 != 0
Last message repeated 1 times
[aac @ 0000000002930900] element type mismatch 3 != 0
[aac @ 0000000002930900] element type mismatch 1 != 0
Last message repeated 1 times
[aac @ 0000000002930900] element type mismatch 3 != 0
[aac @ 0000000002930900] element type mismatch 1 != 0
Last message repeated 1 times
[aac @ 0000000002930900] element type mismatch 3 != 0
[aac @ 0000000002930900] element type mismatch 1 != 0
Last message repeated 1 times
[aac @ 0000000002930900] element type mismatch 3 != 0
[aac @ 0000000002930900] element type mismatch 1 != 0
Last message repeated 1 times
[aac @ 0000000002930900] element type mismatch 3 != 0
Last message repeated 39 times
[Parsed_subtitles_0 @ 000000000269a360] fontselect: (Arial, 400, 0) -> ArialMT, 0, ArialMT
[aac @ 0000000002930900] element type mismatch 3 != 0
Last message repeated 6 times
frame= 46 fps=0.0 q=-0.0 size= 831kB time=00:00:02.28 bitrate=2981.9kbits/s speed=4.57x
[aac @ 0000000002930900] element type mismatch 3 != 0
Last message repeated 63 times
frame= 106 fps=106 q=-0.0 size= 2186kB time=00:00:05.01 bitrate=3570.3kbits/s speed=4.99x
[aac @ 0000000002930900] element type mismatch 3 != 0
Last message repeated 54 times
frame= 165 fps=110 q=-0.0 size= 3391kB time=00:00:07.36 bitrate=3773.2kbits/s speed=4.89x
[aac @ 0000000002930900] element type mismatch 3 != 0
Last message repeated 51 times
frame= 221 fps=110 q=-0.0 size= 4729kB time=00:00:09.58 bitrate=4043.9kbits/s speed=4.77x
[aac @ 0000000002930900] element type mismatch 3 != 0
Last message repeated 55 times
frame= 278 fps=111 q=-0.0 size= 5854kB time=00:00:11.96 bitrate=4006.4kbits/s speed=4.77x
[aac @ 0000000002930900] element type mismatch 3 != 0
I'd assume what triggers the bug is a media attribute related to how the HEVC source files were encoded, because it occurs sporadically. Most likely an issue with the FFmpeg version bundled with the software, will try to reproduce with a custom built binary with all encoders enabled.
Hi guys, please be aware this is still an experimental feature for us, and as such, we are not yet going to have the answer for every possible issue.
Have you tried experimenting with newer ffmpeg builds? On Windows you can download a newer version here: https://ffmpeg.zeranoe.com/builds/
On Linux see here: https://www.johnvansickle.com/ffmpeg/
Then you can configure it in the Emby Server dashboard under the Transcoding menu. Thanks !
Hello there,
I no longer own the Haswell platform, but will retest on a Skylake based machine.
I'm sure that the error I encountered was related to how ffmpeg's encoder handles some codec types , but to confirm, a test has to be repeated.
Regards,
Dennis.
On Mar 25, 2017 11:20 PM, "Luke" notifications@github.com wrote:
Hi guys, please be aware this is still an experimental feature for us, and as such, we are not yet going to have the answer for every possible issue.
Have you tried experimenting with newer ffmpeg builds? On Windows you can download a newer version here: https://ffmpeg.zeranoe.com/builds/
On Linux see here: https://www.johnvansickle.com/ffmpeg/
Then you can configure it in the Emby Server dashboard under the Transcoding menu. Thanks !
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MediaBrowser/Emby/issues/2498#issuecomment-289236984, or mute the thread https://github.com/notifications/unsubscribe-auth/ACP2h5Fpzeuot_nPSHauXppr11ZczQ6xks5rpXcCgaJpZM4MPzpZ .
Ok, thanks for the info. We are going to update ffmpeg. I am closing this for now, we can reopen if it we see it with newer ffmpeg builds. Thanks !
Hello guys,
I have discovered an issue with Intel QuickSync (experimental) encoder on Windows when playing it remotely on a DLNA client, on the server platform described above:
Server running emby:
Media characteristics/attributes:
ffmpeg-transcode log:
Result:
The DLNA client, an Android phone running Kodi 17, cannot play back the file with the error message:
"The requested file could not be played."
Problem summary:
Emby's included ffmpeg binary cannot encode some HEVC files, such as the one above, to a stream-able H.264/AVC format for DLNA clients on the fly via Intel QuickSync on Haswell. I was not able to reproduce this issue on another platform. I can reproduce this on Ubuntu 16.04 LTS for the same hardware if required.
Please fix.