Running latest tag docker on a QNAP TS-453Be. Previous to upgrading to 10.4, transcoding was working perfectly. Since then, I am getting errors on every file:
[04:06:44] [INF] /usr/local/bin/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/media/Movies/xxx (2019)/xxx.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -b:v 19616000 -maxrate 19616000 -bufsize 39232000 -profile:v high -level 41 -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -vf "format=nv12|vaapi,hwupload,scale_vaapi=w=1920:h=1080" -copyts -vsync -1 -codec:a:0 libmp3lame -ac 2 -ab 384000 -af "volume=2" -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 "/config/transcoding-temp/transcodes/6cc71dbe444e62d731c369617c35ccf8.m3u8" -y "/config/transcoding-temp/transcodes/6cc71dbe444e62d731c369617c35ccf8%d.ts"
[04:06:45] [ERR] FFMpeg exited with code 1
If I run the actual command in a command line within the container, I get:
[h264_vaapi @ 0x55700409a8c0] No usable encoding profile found.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[libmp3lame @ 0x5570040dbb00] 3 frames left in the queue on closing
Conversion failed!
Nothing else as far as my settings has changed. I have also checked and /dev/dri/renderD128 exists. Likewise, I have re-pulled and restarted the container multiple times.
Thanks!
The issue seems to be with 10-bit HEVC transcoding only.
It would be very helpful if you could provide the logs from ffmpeg successful encoding (in pre-10.4.0) and ffmpeg failed encoding (in 10.4.0) of the same media file.
Is it possible to use the ffmpeg version packaged by Jellyfin instead of the system one? Further I guess the ffmpeg logs would give us some infos about the ffmpeg verison :)
@onny I am using docker so it would be using ffmpeg in the docker image.
@JustAMan logs for the failing ffmpeg encode are below. I can try to revert the docker image to a previous version but have their been any settings or DB changes that could cause trouble with rolling back and then forwards again?
ffmpeg logs
http://jellyfin.xxx.net/videos/31945d14-2ae9-e449-ca67-21c1ecc1e9d5/hls1/main/0.ts?DeviceId=TW96aWxsYS81LjAgKE1hY2ludG9zaDsgSW50ZWwgTWFjIE9TIFggMTBfMTRfNCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzczLjAuMzY4My4xMDMgU2FmYXJpLzUzNy4zNnwxNTU1OTg5NTUzMzU0&MediaSourceId=31945d142ae9e449ca6721c1ecc1e9d5&VideoCodec=h264&AudioCodec=mp3,aac&AudioStreamIndex=1&VideoBitrate=19616000&AudioBitrate=384000&PlaySessionId=c98786addb8c4b719e766809824edec3&api_key=4cf95ee47f7e406592df806d84226e3b&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=2f28b1069835017bec2a73e9b2789d42&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&h264-profile=high,main,baseline,constrainedbaseline&h264-level=51&TranscodeReasons=ContainerBitrateExceedsLimit
{"Protocol":"File","Id":"31945d142ae9e449ca6721c1ecc1e9d5","Path":"/media/Movies/xxx (2019)/xxx (2019) Bluray-2160p.mkv","Type":"Default","Container":"mkv,webm","Size":20172595200,"Name":"xxx (2019) Bluray-2160p","IsRemote":false,"ETag":"2f28b1069835017bec2a73e9b2789d42","RunTimeTicks":70953598976,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":true,"VideoType":"VideoFile","MediaStreams":[{"Codec":"hevc","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1001/24000","VideoRange":"SDR","DisplayTitle":"4K HEVC","IsInterlaced":false,"BitRate":22744549,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":2160,"Width":3840,"AverageFrameRate":23.9760246,"RealFrameRate":23.9760246,"Profile":"Main 10","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p10le","Level":153},{"Codec":"truehd","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1/48000","Title":"TrueHD Atmos 7.1","DisplayTitle":"Eng TRUEHD 7.1 Default","IsInterlaced":false,"ChannelLayout":"7.1","BitDepth":24,"Channels":8,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"ac3","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1/48000","Title":"AC3 5.1","DisplayTitle":"Eng Dolby Digital 5.1","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":640000,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":2,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"ac3","Language":"fre","TimeBase":"1/1000","CodecTimeBase":"1/48000","DisplayTitle":"Fre Dolby Digital 5.1","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":640000,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":3,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"ac3","Language":"spa","TimeBase":"1/1000","CodecTimeBase":"1/48000","DisplayTitle":"Spa Dolby Digital 5.1","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":640000,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":4,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"PGSSUB","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"English (SDH)","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"English (SDH)","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":5,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"PGSSUB","Language":"fre","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"French (Canadian)","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"French (Canadian)","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":6,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"PGSSUB","Language":"fre","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"French (Parisian)","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"French (Parisian)","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":7,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"PGSSUB","Language":"ger","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"German","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"German","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":8,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"PGSSUB","Language":"ita","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"Italian","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Italian","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":9,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"PGSSUB","Language":"nor","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"Norwegian","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Norwegian","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":10,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"PGSSUB","Language":"spa","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"Spanish (Latin American)","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Spanish (Latin American)","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":11,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"PGSSUB","Language":"swe","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"Swedish","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Swedish","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":12,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"Formats":[],"Bitrate":24664549,"RequiredHttpHeaders":{}}
/usr/local/bin/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/media/Movies/xxx (2019)/xxx (2019) Bluray-2160p.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -b:v 19616000 -maxrate 19616000 -bufsize 39232000 -profile:v high -level 41 -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -vf "format=nv12|vaapi,hwupload,scale_vaapi=w=1920:h=1080" -copyts -vsync -1 -codec:a:0 libmp3lame -ac 2 -ab 384000 -af "volume=2" -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 "/config/transcoding-temp/transcodes/6cc71dbe444e62d731c369617c35ccf8.m3u8" -y "/config/transcoding-temp/transcodes/6cc71dbe444e62d731c369617c35ccf8%d.ts"
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
configuration: --disable-debug --disable-doc --disable-ffplay --enable-vaapi --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gnutls --enable-gpl --enable-libass --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx265 --enable-libxvid --enable-libx264 --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-postproc --enable-cuvid --enable-nvenc --enable-version3 --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib --extra-libs=-ldl --prefix=/opt/ffmpeg
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
[matroska,webm @ 0x55d667fdcc80] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55d667fdcc80] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55d667fdcc80] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55d667fdcc80] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55d667fdcc80] Could not find codec parameters for stream 9 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55d667fdcc80] Could not find codec parameters for stream 10 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55d667fdcc80] Could not find codec parameters for stream 11 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55d667fdcc80] Could not find codec parameters for stream 12 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'file:/media/Movies/xxx (2019)/xxx (2019) Bluray-2160p.mkv':
Metadata:
encoder : libebml v1.3.9 + libmatroska v1.5.2
creation_time : 2019-10-12T13:04:00.000000Z
Duration: 01:58:15.36, start: 0.000000, bitrate: 22744 kb/s
Chapter #0:0: start 0.000000, end 290.499000
Metadata:
title : "Circle Of Life/Nants' Ingonyama"
Chapter #0:1: start 290.499000, end 651.067000
Metadata:
title : "Life's Not Fair"
Chapter #0:2: start 651.067000, end 1067.692000
Metadata:
title : "Everything The Light Touches"
Chapter #0:3: start 1067.692000, end 1433.015000
Metadata:
title : "I Just Can't Wait To Be King"
Chapter #0:4: start 1433.015000, end 1800.132000
Metadata:
title : Elephant Graveyard
Chapter #0:5: start 1800.132000, end 1985.066000
Metadata:
title : Under The Stars
Chapter #0:6: start 1985.066000, end 2229.310000
Metadata:
title : "Be Prepared"
Chapter #0:7: start 2229.310000, end 2622.912000
Metadata:
title : Stampede
Chapter #0:8: start 2622.912000, end 3047.336000
Metadata:
title : Scar Takes Over
Chapter #0:9: start 3047.336000, end 3302.716000
Metadata:
title : Timon And Pumbaa
Chapter #0:10: start 3302.716000, end 3588.460000
Metadata:
title : "Hakuna Matata"
Chapter #0:11: start 3588.460000, end 3987.233000
Metadata:
title : Scar's Kingdom
Chapter #0:12: start 3987.233000, end 4472.093000
Metadata:
title : "Line Of Indifference"
Chapter #0:13: start 4472.093000, end 4706.410000
Metadata:
title : "The Lion Sleeps Tonight"
Chapter #0:14: start 4706.410000, end 4987.900000
Metadata:
title : "Can You Feel The Love Tonight"
Chapter #0:15: start 4987.900000, end 5284.654000
Metadata:
title : "He Lives In You"
Chapter #0:16: start 5284.654000, end 5590.877000
Metadata:
title : "Spirit"
Chapter #0:17: start 5590.877000, end 5833.745000
Metadata:
title : Simba Confronts Scar
Chapter #0:18: start 5833.745000, end 6279.190000
Metadata:
title : Battle For Pride Rock
Chapter #0:19: start 6279.190000, end 6467.336000
Metadata:
title : The Rightful King
Chapter #0:20: start 6467.336000, end 7095.360000
Metadata:
title : End Credits/"Never Too Late"
Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Metadata:
BPS-eng : 15754335
DURATION-eng : 01:58:14.546000000
NUMBER_OF_FRAMES-eng: 170099
NUMBER_OF_BYTES-eng: 13971231933
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit) (default)
Metadata:
title : TrueHD Atmos 7.1
BPS-eng : 4929358
DURATION-eng : 01:58:14.546000000
NUMBER_OF_FRAMES-eng: 8513455
NUMBER_OF_BYTES-eng: 4371445316
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
title : AC3 5.1
BPS-eng : 640000
DURATION-eng : 01:58:14.560000000
NUMBER_OF_FRAMES-eng: 221705
NUMBER_OF_BYTES-eng: 567564800
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(fre): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
BPS-eng : 640000
DURATION-eng : 01:58:15.360000000
NUMBER_OF_FRAMES-eng: 221730
NUMBER_OF_BYTES-eng: 567628800
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:4(spa): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
BPS-eng : 640000
DURATION-eng : 01:58:15.360000000
NUMBER_OF_FRAMES-eng: 221730
NUMBER_OF_BYTES-eng: 567628800
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
title : English (SDH)
BPS-eng : 37253
DURATION-eng : 01:52:00.047000000
NUMBER_OF_FRAMES-eng: 3420
NUMBER_OF_BYTES-eng: 31292789
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:6(fre): Subtitle: hdmv_pgs_subtitle
Metadata:
title : French (Canadian)
BPS-eng : 31354
DURATION-eng : 01:56:56.426000000
NUMBER_OF_FRAMES-eng: 2788
NUMBER_OF_BYTES-eng: 27499756
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:7(fre): Subtitle: hdmv_pgs_subtitle
Metadata:
title : French (Parisian)
BPS-eng : 25902
DURATION-eng : 01:55:53.822000000
NUMBER_OF_FRAMES-eng: 2556
NUMBER_OF_BYTES-eng: 22514900
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:8(ger): Subtitle: hdmv_pgs_subtitle
Metadata:
title : German
BPS-eng : 28919
DURATION-eng : 01:55:51.736000000
NUMBER_OF_FRAMES-eng: 2850
NUMBER_OF_BYTES-eng: 25129891
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:9(ita): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Italian
BPS-eng : 28098
DURATION-eng : 01:55:51.736000000
NUMBER_OF_FRAMES-eng: 2716
NUMBER_OF_BYTES-eng: 24416359
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:10(nor): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Norwegian
BPS-eng : 25879
DURATION-eng : 01:55:51.736000000
NUMBER_OF_FRAMES-eng: 2716
NUMBER_OF_BYTES-eng: 22488516
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:11(spa): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Spanish (Latin American)
BPS-eng : 32651
DURATION-eng : 01:46:05.817000000
NUMBER_OF_FRAMES-eng: 2742
NUMBER_OF_BYTES-eng: 25981892
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:12(swe): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Swedish
BPS-eng : 24108
DURATION-eng : 01:55:54.572000000
NUMBER_OF_FRAMES-eng: 1890
NUMBER_OF_BYTES-eng: 20958160
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Only '-vf format=nv12|vaapi,hwupload,scale_vaapi=w=1920:h=1080' read, ignoring remaining -vf options: Use ',' to separate filters
Only '-af volume=2' read, ignoring remaining -af options: Use ',' to separate filters
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_vaapi))
Stream #0:1 -> #0:1 (truehd (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[h264_vaapi @ 0x55d66801a8c0] No usable encoding profile found.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[libmp3lame @ 0x55d66805bb00] 3 frames left in the queue on closing
Conversion failed!
I'm not sure if there were changes, so ideally it would be good if you can just spawn a separate container with a previous version that worked, add that _same_ file there and show us successful ffmpeg logs.
P.S. @paulmorabito I've edited your comment to hide logs inside a spoiler.
@JustAMan Here you go, this is running from docker image with tag 10.3.7 with the same file and using a spoiler. Playback/transcoding works fine (also with other HEVC files).
Logs
http://192.168.1.114:8098/emby/videos/31945d14-2ae9-e449-ca67-21c1ecc1e9d5/hls1/main/0.ts?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NDsgcnY6NjkuMCkgR2Vja28vMjAxMDAxMDEgRmlyZWZveC82OS4wfDE1NzEyNjg1ODgyMTg1&MediaSourceId=31945d142ae9e449ca6721c1ecc1e9d5&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&VideoBitrate=139616000&AudioBitrate=384000&PlaySessionId=1dd7aad1117442c5867f4f1a62694b37&api_key=5f86372124ad47e89b4259a26daff86f&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=2f28b1069835017bec2a73e9b2789d42&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&h264-profile=high,main,baseline,constrainedbaseline&h264-level=51
{"Protocol":"File","Id":"31945d142ae9e449ca6721c1ecc1e9d5","Path":"/media/Movies/xxx (2019)/The xxx (2019) Bluray-2160p.mkv","Type":"Default","Container":"mkv,webm","Size":20172596004,"Name":"xxx (2019) Bluray-2160p","IsRemote":false,"ETag":"2f28b1069835017bec2a73e9b2789d42","RunTimeTicks":70953600000,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"RequiresLooping":false,"SupportsProbing":true,"VideoType":"VideoFile","MediaStreams":[{"Codec":"hevc","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1001/24000","VideoRange":"SDR","DisplayTitle":"4K HEVC","IsInterlaced":false,"BitRate":22744549,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":2160,"Width":3840,"AverageFrameRate":23.9760246,"RealFrameRate":23.9760246,"Profile":"Main 10","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p10le","Level":153},{"Codec":"truehd","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1/48000","Title":"TrueHD Atmos 7.1","DisplayTitle":"Eng TRUEHD 7.1 Default","IsInterlaced":false,"ChannelLayout":"7.1","BitDepth":24,"Channels":8,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"ac3","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1/48000","Title":"AC3 5.1","DisplayTitle":"Eng Dolby Digital 5.1","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":640000,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":2,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"ac3","Language":"fre","TimeBase":"1/1000","CodecTimeBase":"1/48000","DisplayTitle":"Fre Dolby Digital 5.1","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":640000,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":3,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"ac3","Language":"spa","TimeBase":"1/1000","CodecTimeBase":"1/48000","DisplayTitle":"Spa Dolby Digital 5.1","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":640000,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":4,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"PGSSUB","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"English (SDH)","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"English (SDH)","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":5,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"PGSSUB","Language":"fre","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"French (Canadian)","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"French (Canadian)","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":6,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"PGSSUB","Language":"fre","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"French (Parisian)","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"French (Parisian)","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":7,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"PGSSUB","Language":"ger","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"German","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"German","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":8,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"PGSSUB","Language":"ita","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"Italian","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Italian","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":9,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"PGSSUB","Language":"nor","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"Norwegian","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Norwegian","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":10,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"PGSSUB","Language":"spa","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"Spanish (Latin American)","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Spanish (Latin American)","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":11,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"PGSSUB","Language":"swe","TimeBase":"1/1000","CodecTimeBase":"0/1","Title":"Swedish","localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Swedish","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":12,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"Formats":[],"Bitrate":24664549,"RequiredHttpHeaders":{}}
/usr/local/bin/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/media/Movies/xxx (2019)/xxx (2019) Bluray-2160p.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -b:v 139616000 -maxrate 139616000 -bufsize 279232000 -profile:v high -level 41 -force_key_frames "expr:gte(t,n_forced*3)" -vf "format=nv12|vaapi,hwupload" -copyts -vsync -1 -codec:a:0 aac -strict experimental -ac 2 -ab 384000 -af "volume=2" -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 "/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b511.m3u8" -y "/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b511%d.ts"
ffmpeg version 4.0.3 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04)
configuration: --disable-debug --disable-doc --disable-ffplay --enable-vaapi --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gnutls --enable-gpl --enable-libass --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx265 --enable-libxvid --enable-libx264 --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-postproc --enable-cuvid --enable-nvenc --enable-version3 --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib --extra-libs=-ldl --prefix=/opt/ffmpeg
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
[matroska,webm @ 0x564b00aedd00] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x564b00aedd00] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x564b00aedd00] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x564b00aedd00] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x564b00aedd00] Could not find codec parameters for stream 9 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x564b00aedd00] Could not find codec parameters for stream 10 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x564b00aedd00] Could not find codec parameters for stream 11 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x564b00aedd00] Could not find codec parameters for stream 12 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'file:/media/Movies/The Lion King (2019)/The Lion King (2019) Bluray-2160p.mkv':
Metadata:
encoder : libebml v1.3.9 + libmatroska v1.5.2
creation_time : 2019-10-12T13:04:00.000000Z
Duration: 01:58:15.36, start: 0.000000, bitrate: 22744 kb/s
Chapter #0:0: start 0.000000, end 290.499000
Metadata:
title : "Circle Of Life/Nants' Ingonyama"
Chapter #0:1: start 290.499000, end 651.067000
Metadata:
title : "Life's Not Fair"
Chapter #0:2: start 651.067000, end 1067.692000
Metadata:
title : "Everything The Light Touches"
Chapter #0:3: start 1067.692000, end 1433.015000
Metadata:
title : "I Just Can't Wait To Be King"
Chapter #0:4: start 1433.015000, end 1800.132000
Metadata:
title : Elephant Graveyard
Chapter #0:5: start 1800.132000, end 1985.066000
Metadata:
title : Under The Stars
Chapter #0:6: start 1985.066000, end 2229.310000
Metadata:
title : "Be Prepared"
Chapter #0:7: start 2229.310000, end 2622.912000
Metadata:
title : Stampede
Chapter #0:8: start 2622.912000, end 3047.336000
Metadata:
title : Scar Takes Over
Chapter #0:9: start 3047.336000, end 3302.716000
Metadata:
title : Timon And Pumbaa
Chapter #0:10: start 3302.716000, end 3588.460000
Metadata:
title : "Hakuna Matata"
Chapter #0:11: start 3588.460000, end 3987.233000
Metadata:
title : Scar's Kingdom
Chapter #0:12: start 3987.233000, end 4472.093000
Metadata:
title : "Line Of Indifference"
Chapter #0:13: start 4472.093000, end 4706.410000
Metadata:
title : "The Lion Sleeps Tonight"
Chapter #0:14: start 4706.410000, end 4987.900000
Metadata:
title : "Can You Feel The Love Tonight"
Chapter #0:15: start 4987.900000, end 5284.654000
Metadata:
title : "He Lives In You"
Chapter #0:16: start 5284.654000, end 5590.877000
Metadata:
title : "Spirit"
Chapter #0:17: start 5590.877000, end 5833.745000
Metadata:
title : Simba Confronts Scar
Chapter #0:18: start 5833.745000, end 6279.190000
Metadata:
title : Battle For Pride Rock
Chapter #0:19: start 6279.190000, end 6467.336000
Metadata:
title : The Rightful King
Chapter #0:20: start 6467.336000, end 7095.360000
Metadata:
title : End Credits/"Never Too Late"
Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Metadata:
BPS-eng : 15754335
DURATION-eng : 01:58:14.546000000
NUMBER_OF_FRAMES-eng: 170099
NUMBER_OF_BYTES-eng: 13971231933
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit) (default)
Metadata:
title : TrueHD Atmos 7.1
BPS-eng : 4929358
DURATION-eng : 01:58:14.546000000
NUMBER_OF_FRAMES-eng: 8513455
NUMBER_OF_BYTES-eng: 4371445316
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
title : AC3 5.1
BPS-eng : 640000
DURATION-eng : 01:58:14.560000000
NUMBER_OF_FRAMES-eng: 221705
NUMBER_OF_BYTES-eng: 567564800
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(fre): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
BPS-eng : 640000
DURATION-eng : 01:58:15.360000000
NUMBER_OF_FRAMES-eng: 221730
NUMBER_OF_BYTES-eng: 567628800
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:4(spa): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
BPS-eng : 640000
DURATION-eng : 01:58:15.360000000
NUMBER_OF_FRAMES-eng: 221730
NUMBER_OF_BYTES-eng: 567628800
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
title : English (SDH)
BPS-eng : 37253
DURATION-eng : 01:52:00.047000000
NUMBER_OF_FRAMES-eng: 3420
NUMBER_OF_BYTES-eng: 31292789
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:6(fre): Subtitle: hdmv_pgs_subtitle
Metadata:
title : French (Canadian)
BPS-eng : 31354
DURATION-eng : 01:56:56.426000000
NUMBER_OF_FRAMES-eng: 2788
NUMBER_OF_BYTES-eng: 27499756
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:7(fre): Subtitle: hdmv_pgs_subtitle
Metadata:
title : French (Parisian)
BPS-eng : 25902
DURATION-eng : 01:55:53.822000000
NUMBER_OF_FRAMES-eng: 2556
NUMBER_OF_BYTES-eng: 22514900
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:8(ger): Subtitle: hdmv_pgs_subtitle
Metadata:
title : German
BPS-eng : 28919
DURATION-eng : 01:55:51.736000000
NUMBER_OF_FRAMES-eng: 2850
NUMBER_OF_BYTES-eng: 25129891
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:9(ita): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Italian
BPS-eng : 28098
DURATION-eng : 01:55:51.736000000
NUMBER_OF_FRAMES-eng: 2716
NUMBER_OF_BYTES-eng: 24416359
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:10(nor): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Norwegian
BPS-eng : 25879
DURATION-eng : 01:55:51.736000000
NUMBER_OF_FRAMES-eng: 2716
NUMBER_OF_BYTES-eng: 22488516
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:11(spa): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Spanish (Latin American)
BPS-eng : 32651
DURATION-eng : 01:46:05.817000000
NUMBER_OF_FRAMES-eng: 2742
NUMBER_OF_BYTES-eng: 25981892
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:12(swe): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Swedish
BPS-eng : 24108
DURATION-eng : 01:55:54.572000000
NUMBER_OF_FRAMES-eng: 1890
NUMBER_OF_BYTES-eng: 20958160
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_vaapi))
Stream #0:1 -> #0:1 (truehd (native) -> aac (native))
Press [q] to stop, [?] for help
[segment @ 0x564b00b53380] Opening '/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b5110.ts' for writing
Output #0, segment, to '/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b511%d.ts':
Metadata:
encoder : Lavf58.12.100
Stream #0:0: Video: h264 (h264_vaapi) (High), vaapi_vld, 3840x2160 [SAR 1:1 DAR 16:9], q=0-31, 139616 kb/s, 23.98 fps, 90k tbn, 23.98 tbc (default)
Metadata:
encoder : Lavc58.18.100 h264_vaapi
Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp (24 bit), 384 kb/s (default)
Metadata:
encoder : Lavc58.18.100 aac
frame= 4 fps=0.0 q=-0.0 size=N/A time=00:00:00.27 bitrate=N/A speed=0.548x
frame= 8 fps=7.9 q=-0.0 size=N/A time=00:00:00.44 bitrate=N/A speed=0.442x
frame= 20 fps= 13 q=-0.0 size=N/A time=00:00:00.93 bitrate=N/A speed=0.597x
frame= 32 fps= 15 q=-0.0 size=N/A time=00:00:01.49 bitrate=N/A speed=0.721x
frame= 46 fps= 16 q=-0.0 size=N/A time=00:00:02.02 bitrate=N/A speed=0.708x
frame= 58 fps= 17 q=-0.0 size=N/A time=00:00:02.53 bitrate=N/A speed=0.733x
frame= 67 fps= 17 q=-0.0 size=N/A time=00:00:02.90 bitrate=N/A speed=0.723x
frame= 73 fps= 15 q=-0.0 size=N/A time=00:00:03.15 bitrate=N/A speed=0.667x
[segment @ 0x564b00b53380] Opening '/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b511.m3u8.tmp' for writing
[segment @ 0x564b00b53380] Opening '/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b5111.ts' for writing
frame= 82 fps= 15 q=-0.0 size=N/A time=00:00:03.54 bitrate=N/A speed=0.663x
frame= 91 fps= 15 q=-0.0 size=N/A time=00:00:03.90 bitrate=N/A speed=0.66x
frame= 103 fps= 16 q=-0.0 size=N/A time=00:00:04.41 bitrate=N/A speed=0.683x
frame= 116 fps= 16 q=-0.0 size=N/A time=00:00:04.94 bitrate=N/A speed=0.704x
frame= 127 fps= 17 q=-0.0 size=N/A time=00:00:05.41 bitrate=N/A speed=0.714x
frame= 133 fps= 16 q=-0.0 size=N/A time=00:00:05.65 bitrate=N/A speed=0.685x
frame= 139 fps= 16 q=-0.0 size=N/A time=00:00:05.90 bitrate=N/A speed=0.672x
frame= 145 fps= 15 q=-0.0 size=N/A time=00:00:06.16 bitrate=N/A speed=0.656x
[segment @ 0x564b00b53380] Opening '/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b511.m3u8.tmp' for writing
[segment @ 0x564b00b53380] Opening '/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b5112.ts' for writing
frame= 154 fps= 15 q=-0.0 size=N/A time=00:00:06.52 bitrate=N/A speed=0.657x
frame= 163 fps= 15 q=-0.0 size=N/A time=00:00:06.91 bitrate=N/A speed=0.656x
frame= 174 fps= 16 q=-0.0 size=N/A time=00:00:07.38 bitrate=N/A speed=0.668x
frame= 184 fps= 16 q=-0.0 size=N/A time=00:00:07.78 bitrate=N/A speed=0.672x
frame= 193 fps= 16 q=-0.0 size=N/A time=00:00:08.17 bitrate=N/A speed=0.676x
frame= 199 fps= 16 q=-0.0 size=N/A time=00:00:08.40 bitrate=N/A speed=0.668x
frame= 207 fps= 16 q=-0.0 size=N/A time=00:00:08.74 bitrate=N/A speed=0.668x
frame= 213 fps= 16 q=-0.0 size=N/A time=00:00:09.04 bitrate=N/A speed=0.665x
[segment @ 0x564b00b53380] Opening '/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b511.m3u8.tmp' for writing
[segment @ 0x564b00b53380] Opening '/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b5113.ts' for writing
frame= 221 fps= 16 q=-0.0 size=N/A time=00:00:09.32 bitrate=N/A speed=0.658x
frame= 229 fps= 16 q=-0.0 size=N/A time=00:00:09.66 bitrate=N/A speed=0.654x
frame= 238 fps= 16 q=-0.0 size=N/A time=00:00:10.04 bitrate=N/A speed=0.655x
frame= 251 fps= 16 q=-0.0 size=N/A time=00:00:10.58 bitrate=N/A speed=0.664x
frame= 263 fps= 16 q=-0.0 size=N/A time=00:00:11.07 bitrate=N/A speed=0.671x
frame= 272 fps= 16 q=-0.0 size=N/A time=00:00:11.54 bitrate=N/A speed=0.675x
frame= 281 fps= 16 q=-0.0 size=N/A time=00:00:11.88 bitrate=N/A speed=0.673x
frame= 289 fps= 16 q=-0.0 size=N/A time=00:00:12.16 bitrate=N/A speed=0.668x
[segment @ 0x564b00b53380] Opening '/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b511.m3u8.tmp' for writing
[segment @ 0x564b00b53380] Opening '/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b5114.ts' for writing
frame= 296 fps= 16 q=-0.0 size=N/A time=00:00:12.50 bitrate=N/A speed=0.658x
frame= 305 fps= 16 q=-0.0 size=N/A time=00:00:12.84 bitrate=N/A speed=0.657x
frame= 317 fps= 16 q=-0.0 size=N/A time=00:00:13.37 bitrate=N/A speed=0.665x
frame= 328 fps= 16 q=-0.0 size=N/A time=00:00:13.80 bitrate=N/A speed=0.667x
frame= 340 fps= 16 q=-0.0 size=N/A time=00:00:14.29 bitrate=N/A speed=0.672x
frame= 352 fps= 16 q=-0.0 size=N/A time=00:00:14.80 bitrate=N/A speed=0.679x
[segment @ 0x564b00b53380] Opening '/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b511.m3u8.tmp' for writing
[segment @ 0x564b00b53380] Opening '/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b5115.ts' for writing
frame= 363 fps= 16 q=-0.0 size=N/A time=00:00:15.25 bitrate=N/A speed=0.677x
frame= 367 fps= 16 q=-0.0 size=N/A time=00:00:15.42 bitrate=N/A speed=0.666x
frame= 376 fps= 16 q=-0.0 size=N/A time=00:00:15.78 bitrate=N/A speed=0.663x
frame= 386 fps= 16 q=-0.0 size=N/A time=00:00:16.21 bitrate=N/A speed=0.667x
frame= 398 fps= 16 q=-0.0 size=N/A time=00:00:16.70 bitrate=N/A speed=0.672x
frame= 409 fps= 16 q=-0.0 size=N/A time=00:00:17.17 bitrate=N/A speed=0.675x
frame= 417 fps= 16 q=-0.0 size=N/A time=00:00:17.51 bitrate=N/A speed=0.675x
[segment @ 0x564b00b53380] Opening '/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b511.m3u8.tmp' for writing
frame= 424 fps= 16 q=-0.0 Lsize=N/A time=00:00:17.83 bitrate=N/A speed=0.677x
Are you playing it on the same client and same other settings?
In 10.4.0 logs I see scaling to FullHD while in 10.3.7 there's no scaling, plus audio codec is different.
That said, could you please shell into 10.4.0 docker container and run and report the following output?
sudo -u jellyfin /usr/local/bin/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/media/Movies/xxx (2019)/xxx (2019) Bluray-2160p.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -b:v 139616000 -maxrate 139616000 -bufsize 279232000 -profile:v high -level 41 -force_key_frames "expr:gte(t,n_forced*3)" -vf "format=nv12|vaapi,hwupload" -copyts -vsync -1 -codec:a:0 aac -strict experimental -ac 2 -ab 384000 -af "volume=2" -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 "/config/transcoding-temp/1--86f53a9915cd94c9fc384730fc40b511.m3u8" -y "/config/transcoding-temp/1--86f53a9915cd94c9fc384730fc40b511%d.ts"
@JustAMan yes, I did it with a different browser (Firefox vs Chrome). I can do 10.4 again in Firefox if it helps?
I can't run the command in docker. There is no "sudo" in the docker image and I can't su to the jellyfin user (it has no password or shell). I also can't connect to the container with --user jellyfin via docker either.
If I run it as root, I get the following:
output
root@610a8a2a8b67:/# /usr/local/bin/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/media/Movies/xxx (2019)/xxx (2019) Bluray-2160p.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -b:v 139616000 -maxrate 139616000 -bufsize 279232000 -profile:v high -level 41 -force_key_frames "expr:gte(t,n_forced*3)" -vf "format=nv12|vaapi,hwupload" -copyts -vsync -1 -codec:a:0 aac -strict experimental -ac 2 -ab 384000 -af "volume=2" -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 "/config/transcoding-temp/1--86f53a9915cd94c9fc384730fc40b511.m3u8" -y "/config/transcoding-temp/1--86f53a9915cd94c9fc384730fc40b511%d.ts"
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
configuration: --disable-debug --disable-doc --disable-ffplay --enable-vaapi --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gnutls --enable-gpl --enable-libass --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx265 --enable-libxvid --enable-libx264 --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-postproc --enable-cuvid --enable-nvenc --enable-version3 --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib --extra-libs=-ldl --prefix=/opt/ffmpeg
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
[matroska,webm @ 0x55684a2efd00] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55684a2efd00] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55684a2efd00] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55684a2efd00] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55684a2efd00] Could not find codec parameters for stream 9 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55684a2efd00] Could not find codec parameters for stream 10 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55684a2efd00] Could not find codec parameters for stream 11 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55684a2efd00] Could not find codec parameters for stream 12 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'file:/media/Movies/xxx (2019)/xxx (2019) Bluray-2160p.mkv':
Metadata:
encoder : libebml v1.3.9 + libmatroska v1.5.2
creation_time : 2019-10-12T13:04:00.000000Z
Duration: 01:58:15.36, start: 0.000000, bitrate: 22744 kb/s
Chapter #0:0: start 0.000000, end 290.499000
Metadata:
title : "Circle Of Life/Nants' Ingonyama"
Chapter #0:1: start 290.499000, end 651.067000
Metadata:
title : "Life's Not Fair"
Chapter #0:2: start 651.067000, end 1067.692000
Metadata:
title : "Everything The Light Touches"
Chapter #0:3: start 1067.692000, end 1433.015000
Metadata:
title : "I Just Can't Wait To Be King"
Chapter #0:4: start 1433.015000, end 1800.132000
Metadata:
title : Elephant Graveyard
Chapter #0:5: start 1800.132000, end 1985.066000
Metadata:
title : Under The Stars
Chapter #0:6: start 1985.066000, end 2229.310000
Metadata:
title : "Be Prepared"
Chapter #0:7: start 2229.310000, end 2622.912000
Metadata:
title : Stampede
Chapter #0:8: start 2622.912000, end 3047.336000
Metadata:
title : Scar Takes Over
Chapter #0:9: start 3047.336000, end 3302.716000
Metadata:
title : Timon And Pumbaa
Chapter #0:10: start 3302.716000, end 3588.460000
Metadata:
title : "Hakuna Matata"
Chapter #0:11: start 3588.460000, end 3987.233000
Metadata:
title : Scar's Kingdom
Chapter #0:12: start 3987.233000, end 4472.093000
Metadata:
title : "Line Of Indifference"
Chapter #0:13: start 4472.093000, end 4706.410000
Metadata:
title : "The Lion Sleeps Tonight"
Chapter #0:14: start 4706.410000, end 4987.900000
Metadata:
title : "Can You Feel The Love Tonight"
Chapter #0:15: start 4987.900000, end 5284.654000
Metadata:
title : "He Lives In You"
Chapter #0:16: start 5284.654000, end 5590.877000
Metadata:
title : "Spirit"
Chapter #0:17: start 5590.877000, end 5833.745000
Metadata:
title : Simba Confronts Scar
Chapter #0:18: start 5833.745000, end 6279.190000
Metadata:
title : Battle For Pride Rock
Chapter #0:19: start 6279.190000, end 6467.336000
Metadata:
title : The Rightful King
Chapter #0:20: start 6467.336000, end 7095.360000
Metadata:
title : End Credits/"Never Too Late"
Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Metadata:
BPS-eng : 15754335
DURATION-eng : 01:58:14.546000000
NUMBER_OF_FRAMES-eng: 170099
NUMBER_OF_BYTES-eng: 13971231933
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit) (default)
Metadata:
title : TrueHD Atmos 7.1
BPS-eng : 4929358
DURATION-eng : 01:58:14.546000000
NUMBER_OF_FRAMES-eng: 8513455
NUMBER_OF_BYTES-eng: 4371445316
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
title : AC3 5.1
BPS-eng : 640000
DURATION-eng : 01:58:14.560000000
NUMBER_OF_FRAMES-eng: 221705
NUMBER_OF_BYTES-eng: 567564800
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(fre): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
BPS-eng : 640000
DURATION-eng : 01:58:15.360000000
NUMBER_OF_FRAMES-eng: 221730
NUMBER_OF_BYTES-eng: 567628800
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:4(spa): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
BPS-eng : 640000
DURATION-eng : 01:58:15.360000000
NUMBER_OF_FRAMES-eng: 221730
NUMBER_OF_BYTES-eng: 567628800
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
title : English (SDH)
BPS-eng : 37253
DURATION-eng : 01:52:00.047000000
NUMBER_OF_FRAMES-eng: 3420
NUMBER_OF_BYTES-eng: 31292789
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:6(fre): Subtitle: hdmv_pgs_subtitle
Metadata:
title : French (Canadian)
BPS-eng : 31354
DURATION-eng : 01:56:56.426000000
NUMBER_OF_FRAMES-eng: 2788
NUMBER_OF_BYTES-eng: 27499756
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:7(fre): Subtitle: hdmv_pgs_subtitle
Metadata:
title : French (Parisian)
BPS-eng : 25902
DURATION-eng : 01:55:53.822000000
NUMBER_OF_FRAMES-eng: 2556
NUMBER_OF_BYTES-eng: 22514900
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:8(ger): Subtitle: hdmv_pgs_subtitle
Metadata:
title : German
BPS-eng : 28919
DURATION-eng : 01:55:51.736000000
NUMBER_OF_FRAMES-eng: 2850
NUMBER_OF_BYTES-eng: 25129891
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:9(ita): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Italian
BPS-eng : 28098
DURATION-eng : 01:55:51.736000000
NUMBER_OF_FRAMES-eng: 2716
NUMBER_OF_BYTES-eng: 24416359
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:10(nor): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Norwegian
BPS-eng : 25879
DURATION-eng : 01:55:51.736000000
NUMBER_OF_FRAMES-eng: 2716
NUMBER_OF_BYTES-eng: 22488516
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:11(spa): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Spanish (Latin American)
BPS-eng : 32651
DURATION-eng : 01:46:05.817000000
NUMBER_OF_FRAMES-eng: 2742
NUMBER_OF_BYTES-eng: 25981892
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:12(swe): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Swedish
BPS-eng : 24108
DURATION-eng : 01:55:54.572000000
NUMBER_OF_FRAMES-eng: 1890
NUMBER_OF_BYTES-eng: 20958160
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Only '-vf format=nv12|vaapi,hwupload' read, ignoring remaining -vf options: Use ',' to separate filters
Only '-af volume=2' read, ignoring remaining -af options: Use ',' to separate filters
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_vaapi))
Stream #0:1 -> #0:1 (truehd (native) -> aac (native))
Press [q] to stop, [?] for help
[h264_vaapi @ 0x55684a3726c0] No usable encoding profile found.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[aac @ 0x55684a32d940] Qavg: 61212.395
[aac @ 0x55684a32d940] 2 frames left in the queue on closing
Conversion failed!
root@610a8a2a8b67:/#
Hmm, what happens if you do the same but with 10.3.7 container?..
also cc @EraYaN as this seems to be very much ffmpeg-related, and he might know more
This means for the used ffmpeg version there is an error in the command line. (The error in the OP)
I have the same issue. Failed transcoding with 10bit HEVC only. No other changes. Transcoding works fine in 10.3.7.
@EraYaN
This means for the used ffmpeg version there is an error in the command line. (The error in the OP)
That much I gathered by myself, do you know _what_ we have to do to fix this error?
So the difference between these two command lines (the one working on 4.0.3 and the one not working on 4.2.1) are the following
Padded comparison below
/usr/local/bin/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/media/Movies/xxx (2019)/xxx (2019) Bluray-2160p.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -b:v 139616000 -maxrate 139616000 -bufsize 279232000 -profile:v high -level 41 -force_key_frames "expr:gte(t,n_forced*3)" -vf "format=nv12|vaapi,hwupload" -copyts -vsync -1 -codec:a:0 aac -strict experimental -ac 2 -ab 384000 -af "volume=2" -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 "/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b511.m3u8" -y "/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b511%d.ts"
4.0.3 (works)
/usr/local/bin/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/media/Movies/xxx (2019)/xxx (2019) Bluray-2160p.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -b:v 19616000 -maxrate 19616000 -bufsize 39232000 -profile:v high -level 41 -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -vf "format=nv12|vaapi,hwupload,scale_vaapi=w=1920:h=1080" -copyts -vsync -1 -codec:a:0 libmp3lame -ac 2 -ab 384000 -af "volume=2" -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 "/config/transcoding-temp/transcodes/6cc71dbe444e62d731c369617c35ccf8.m3u8" -y "/config/transcoding-temp/transcodes/6cc71dbe444e62d731c369617c35ccf8%d.ts"
4.2.1 (does not work)
scale_vaapi filter.Please run the working ffmpeg command using the new ffmpeg version and vice versa. I feel like the scale might output some pixel format or something that breaks the encoder.
@EraYaN
Below is output of the working command from 4.0.3 in 10.4.0 container:
logs
root@610a8a2a8b67:/# /usr/local/bin/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/media/Movies/xxx (2019)/xxx (2019) Bluray-2160p.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -b:v 139616000 -maxrate 139616000 -bufsize 279232000 -profile:v high -level 41 -force_key_frames "expr:gte(t,n_forced*3)" -vf "format=nv12|vaapi,hwupload" -copyts -vsync -1 -codec:a:0 aac -strict experimental -ac 2 -ab 384000 -af "volume=2" -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 "/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b511.m3u8" -y "/config/transcoding-temp/86f53a9915cd94c9fc384730fc40b511%d.ts"
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
configuration: --disable-debug --disable-doc --disable-ffplay --enable-vaapi --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gnutls --enable-gpl --enable-libass--enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx265 --enable-libxvid --enable-libx264 --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-postproc --enable-cuvid --enable-nvenc --enable-version3 --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib --extra-libs=-ldl --prefix=/opt/ffmpeg
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
[matroska,webm @ 0x55f84b568d00] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle(pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55f84b568d00] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle(pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55f84b568d00] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle(pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55f84b568d00] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle(pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55f84b568d00] Could not find codec parameters for stream 9 (Subtitle: hdmv_pgs_subtitle(pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55f84b568d00] Could not find codec parameters for stream 10 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55f84b568d00] Could not find codec parameters for stream 11 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55f84b568d00] Could not find codec parameters for stream 12 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'file:/media/Movies/xxx (2019)/xxx (2019) Bluray-2160p.mkv':
Metadata:
encoder : libebml v1.3.9 + libmatroska v1.5.2
creation_time : 2019-10-12T13:04:00.000000Z
Duration: 01:58:15.36, start: 0.000000, bitrate: 22744 kb/s
Chapter #0:0: start 0.000000, end 290.499000
Metadata:
title : "Circle Of Life/Nants' Ingonyama"
Chapter #0:1: start 290.499000, end 651.067000
Metadata:
title : "Life's Not Fair"
Chapter #0:2: start 651.067000, end 1067.692000
Metadata:
title : "Everything The Light Touches"
Chapter #0:3: start 1067.692000, end 1433.015000
Metadata:
title : "I Just Can't Wait To Be King"
Chapter #0:4: start 1433.015000, end 1800.132000
Metadata:
title : Elephant Graveyard
Chapter #0:5: start 1800.132000, end 1985.066000
Metadata:
title : Under The Stars
Chapter #0:6: start 1985.066000, end 2229.310000
Metadata:
title : "Be Prepared"
Chapter #0:7: start 2229.310000, end 2622.912000
Metadata:
title : Stampede
Chapter #0:8: start 2622.912000, end 3047.336000
Metadata:
title : Scar Takes Over
Chapter #0:9: start 3047.336000, end 3302.716000
Metadata:
title : Timon And Pumbaa
Chapter #0:10: start 3302.716000, end 3588.460000
Metadata:
title : "Hakuna Matata"
Chapter #0:11: start 3588.460000, end 3987.233000
Metadata:
title : Scar's Kingdom
Chapter #0:12: start 3987.233000, end 4472.093000
Metadata:
title : "Line Of Indifference"
Chapter #0:13: start 4472.093000, end 4706.410000
Metadata:
title : "The Lion Sleeps Tonight"
Chapter #0:14: start 4706.410000, end 4987.900000
Metadata:
title : "Can You Feel The Love Tonight"
Chapter #0:15: start 4987.900000, end 5284.654000
Metadata:
title : "He Lives In You"
Chapter #0:16: start 5284.654000, end 5590.877000
Metadata:
title : "Spirit"
Chapter #0:17: start 5590.877000, end 5833.745000
Metadata:
title : Simba Confronts Scar
Chapter #0:18: start 5833.745000, end 6279.190000
Metadata:
title : Battle For Pride Rock
Chapter #0:19: start 6279.190000, end 6467.336000
Metadata:
title : The Rightful King
Chapter #0:20: start 6467.336000, end 7095.360000
Metadata:
title : End Credits/"Never Too Late"
Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Metadata:
BPS-eng : 15754335
DURATION-eng : 01:58:14.546000000
NUMBER_OF_FRAMES-eng: 170099
NUMBER_OF_BYTES-eng: 13971231933
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit) (default)
Metadata:
title : TrueHD Atmos 7.1
BPS-eng : 4929358
DURATION-eng : 01:58:14.546000000
NUMBER_OF_FRAMES-eng: 8513455
NUMBER_OF_BYTES-eng: 4371445316
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
title : AC3 5.1
BPS-eng : 640000
DURATION-eng : 01:58:14.560000000
NUMBER_OF_FRAMES-eng: 221705
NUMBER_OF_BYTES-eng: 567564800
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(fre): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
BPS-eng : 640000
DURATION-eng : 01:58:15.360000000
NUMBER_OF_FRAMES-eng: 221730
NUMBER_OF_BYTES-eng: 567628800
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:4(spa): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
BPS-eng : 640000
DURATION-eng : 01:58:15.360000000
NUMBER_OF_FRAMES-eng: 221730
NUMBER_OF_BYTES-eng: 567628800
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
title : English (SDH)
BPS-eng : 37253
DURATION-eng : 01:52:00.047000000
NUMBER_OF_FRAMES-eng: 3420
NUMBER_OF_BYTES-eng: 31292789
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:6(fre): Subtitle: hdmv_pgs_subtitle
Metadata:
title : French (Canadian)
BPS-eng : 31354
DURATION-eng : 01:56:56.426000000
NUMBER_OF_FRAMES-eng: 2788
NUMBER_OF_BYTES-eng: 27499756
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:7(fre): Subtitle: hdmv_pgs_subtitle
Metadata:
title : French (Parisian)
BPS-eng : 25902
DURATION-eng : 01:55:53.822000000
NUMBER_OF_FRAMES-eng: 2556
NUMBER_OF_BYTES-eng: 22514900
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:8(ger): Subtitle: hdmv_pgs_subtitle
Metadata:
title : German
BPS-eng : 28919
DURATION-eng : 01:55:51.736000000
NUMBER_OF_FRAMES-eng: 2850
NUMBER_OF_BYTES-eng: 25129891
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:9(ita): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Italian
BPS-eng : 28098
DURATION-eng : 01:55:51.736000000
NUMBER_OF_FRAMES-eng: 2716
NUMBER_OF_BYTES-eng: 24416359
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:10(nor): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Norwegian
BPS-eng : 25879
DURATION-eng : 01:55:51.736000000
NUMBER_OF_FRAMES-eng: 2716
NUMBER_OF_BYTES-eng: 22488516
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:11(spa): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Spanish (Latin American)
BPS-eng : 32651
DURATION-eng : 01:46:05.817000000
NUMBER_OF_FRAMES-eng: 2742
NUMBER_OF_BYTES-eng: 25981892
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:12(swe): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Swedish
BPS-eng : 24108
DURATION-eng : 01:55:54.572000000
NUMBER_OF_FRAMES-eng: 1890
NUMBER_OF_BYTES-eng: 20958160
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Only '-vf format=nv12|vaapi,hwupload' read, ignoring remaining -vf options: Use ',' to separate filters
Only '-af volume=2' read, ignoring remaining -af options: Use ',' to separate filters
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_vaapi))
Stream #0:1 -> #0:1 (truehd (native) -> aac (native))
Press [q] to stop, [?] for help
[h264_vaapi @ 0x55f84b5eb6c0] No usable encoding profile found.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[aac @ 0x55f84b5a6940] Qavg: 61212.395
[aac @ 0x55f84b5a6940] 2 frames left in the queue on closing
Conversion failed!
Below is output of the not working command from 10.4.0 / 4.2.1 in the 10.3.7 container:
logs
root@f8f6822cb9a9:/# /usr/local/bin/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/media/Movies/xxx (2019)/xxx (2019) Bluray-2160p.mkv" -map_metadata-1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -b:v 19616000 -maxrate 19616000 -bufsize 39232000 -profile:v high -level 41 -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -vf "format=nv12|vaapi,hwupload,scale_vaapi=w=1920:h=1080" -copyts -vsync -1 -codec:a:0 libmp3lame -ac 2-ab 384000 -af "volume=2" -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 "/config/transcoding-temp/transcodes/6cc71dbe444e62d731c369617c35ccf8.m3u8" -y "/config/transcoding-temp/transcodes/6cc71dbe444e62d731c369617c35ccf8%d.ts"
ffmpeg version 4.0.3 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04)
configuration: --disable-debug --disable-doc --disable-ffplay --enable-vaapi --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gnutls --enable-gpl --enable-libass --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx265 --enable-libxvid --enable-libx264 --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-postproc --enable-cuvid --enable-nvenc --enable-version3 --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib --extra-libs=-ldl --prefix=/opt/ffmpeg
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
[matroska,webm @ 0x55c6f0913c80] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55c6f0913c80] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55c6f0913c80] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55c6f0913c80] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55c6f0913c80] Could not find codec parameters for stream 9 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55c6f0913c80] Could not find codec parameters for stream 10 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55c6f0913c80] Could not find codec parameters for stream 11 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55c6f0913c80] Could not find codec parameters for stream 12 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'file:/media/Movies/xxx (2019)/xxx (2019) Bluray-2160p.mkv':
Metadata:
encoder : libebml v1.3.9 + libmatroska v1.5.2
creation_time : 2019-10-12T13:04:00.000000Z
Duration: 01:58:15.36, start: 0.000000, bitrate: 22744 kb/s
Chapter #0:0: start 0.000000, end 290.499000
Metadata:
title : "Circle Of Life/Nants' Ingonyama"
Chapter #0:1: start 290.499000, end 651.067000
Metadata:
title : "Life's Not Fair"
Chapter #0:2: start 651.067000, end 1067.692000
Metadata:
title : "Everything The Light Touches"
Chapter #0:3: start 1067.692000, end 1433.015000
Metadata:
title : "I Just Can't Wait To Be King"
Chapter #0:4: start 1433.015000, end 1800.132000
Metadata:
title : Elephant Graveyard
Chapter #0:5: start 1800.132000, end 1985.066000
Metadata:
title : Under The Stars
Chapter #0:6: start 1985.066000, end 2229.310000
Metadata:
title : "Be Prepared"
Chapter #0:7: start 2229.310000, end 2622.912000
Metadata:
title : Stampede
Chapter #0:8: start 2622.912000, end 3047.336000
Metadata:
title : Scar Takes Over
Chapter #0:9: start 3047.336000, end 3302.716000
Metadata:
title : Timon And Pumbaa
Chapter #0:10: start 3302.716000, end 3588.460000
Metadata:
title : "Hakuna Matata"
Chapter #0:11: start 3588.460000, end 3987.233000
Metadata:
title : Scar's Kingdom
Chapter #0:12: start 3987.233000, end 4472.093000
Metadata:
title : "Line Of Indifference"
Chapter #0:13: start 4472.093000, end 4706.410000
Metadata:
title : "The Lion Sleeps Tonight"
Chapter #0:14: start 4706.410000, end 4987.900000
Metadata:
title : "Can You Feel The Love Tonight"
Chapter #0:15: start 4987.900000, end 5284.654000
Metadata:
title : "He Lives In You"
Chapter #0:16: start 5284.654000, end 5590.877000
Metadata:
title : "Spirit"
Chapter #0:17: start 5590.877000, end 5833.745000
Metadata:
title : Simba Confronts Scar
Chapter #0:18: start 5833.745000, end 6279.190000
Metadata:
title : Battle For Pride Rock
Chapter #0:19: start 6279.190000, end 6467.336000
Metadata:
title : The Rightful King
Chapter #0:20: start 6467.336000, end 7095.360000
Metadata:
title : End Credits/"Never Too Late"
Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Metadata:
BPS-eng : 15754335
DURATION-eng : 01:58:14.546000000
NUMBER_OF_FRAMES-eng: 170099
NUMBER_OF_BYTES-eng: 13971231933
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit) (default)
Metadata:
title : TrueHD Atmos 7.1
BPS-eng : 4929358
DURATION-eng : 01:58:14.546000000
NUMBER_OF_FRAMES-eng: 8513455
NUMBER_OF_BYTES-eng: 4371445316
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
title : AC3 5.1
BPS-eng : 640000
DURATION-eng : 01:58:14.560000000
NUMBER_OF_FRAMES-eng: 221705
NUMBER_OF_BYTES-eng: 567564800
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(fre): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
BPS-eng : 640000
DURATION-eng : 01:58:15.360000000
NUMBER_OF_FRAMES-eng: 221730
NUMBER_OF_BYTES-eng: 567628800
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:4(spa): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
Metadata:
BPS-eng : 640000
DURATION-eng : 01:58:15.360000000
NUMBER_OF_FRAMES-eng: 221730
NUMBER_OF_BYTES-eng: 567628800
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
title : English (SDH)
BPS-eng : 37253
DURATION-eng : 01:52:00.047000000
NUMBER_OF_FRAMES-eng: 3420
NUMBER_OF_BYTES-eng: 31292789
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:6(fre): Subtitle: hdmv_pgs_subtitle
Metadata:
title : French (Canadian)
BPS-eng : 31354
DURATION-eng : 01:56:56.426000000
NUMBER_OF_FRAMES-eng: 2788
NUMBER_OF_BYTES-eng: 27499756
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:7(fre): Subtitle: hdmv_pgs_subtitle
Metadata:
title : French (Parisian)
BPS-eng : 25902
DURATION-eng : 01:55:53.822000000
NUMBER_OF_FRAMES-eng: 2556
NUMBER_OF_BYTES-eng: 22514900
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:8(ger): Subtitle: hdmv_pgs_subtitle
Metadata:
title : German
BPS-eng : 28919
DURATION-eng : 01:55:51.736000000
NUMBER_OF_FRAMES-eng: 2850
NUMBER_OF_BYTES-eng: 25129891
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:9(ita): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Italian
BPS-eng : 28098
DURATION-eng : 01:55:51.736000000
NUMBER_OF_FRAMES-eng: 2716
NUMBER_OF_BYTES-eng: 24416359
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:10(nor): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Norwegian
BPS-eng : 25879
DURATION-eng : 01:55:51.736000000
NUMBER_OF_FRAMES-eng: 2716
NUMBER_OF_BYTES-eng: 22488516
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:11(spa): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Spanish (Latin American)
BPS-eng : 32651
DURATION-eng : 01:46:05.817000000
NUMBER_OF_FRAMES-eng: 2742
NUMBER_OF_BYTES-eng: 25981892
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:12(swe): Subtitle: hdmv_pgs_subtitle
Metadata:
title : Swedish
BPS-eng : 24108
DURATION-eng : 01:55:54.572000000
NUMBER_OF_FRAMES-eng: 1890
NUMBER_OF_BYTES-eng: 20958160
_STATISTICS_WRITING_APP-eng: mkvmerge v37.0.0 ('Leave It') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2019-10-12 13:04:00
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_vaapi))
Stream #0:1 -> #0:1 (truehd (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[segment @ 0x55c6f0979300] Opening '/config/transcoding-temp/transcodes/6cc71dbe444e62d731c369617c35ccf80.ts' for writing
[segment @ 0x55c6f0979300] Failed to open segment '/config/transcoding-temp/transcodes/6cc71dbe444e62d731c369617c35ccf80.ts'
Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory
Error initializing output stream 0:0 --
[libmp3lame @ 0x55c6f0978300] 3 frames left in the queue on closing
Conversion failed!
Since the update to 10.4 I've got a lot of issues with transcoding too. For me it only affects transcoded playback from the Android or Android TV app. From the webinterface everything is fine.
For the Android app transcoding of all live tv channels (720p and 1080i) and 10bit HEVC isn't working.
This is live tv streaming to Android:
https://pastebin.com/zbRvt5ib
This is a HEVC 4K 10bit movie streaming to a Fire TV:
https://pastebin.com/7pWXTipY
This is from a working stream to the webinterface:
https://pastebin.com/HHyb4Puc
I have the same issue as OP since 10.4 and can reproduce it with the same steps as him
My system is using a J3455 processor and had no problem transcoding 10bit before.
[h264_vaapi @ 0x55c1d7ee0080] No usable encoding profile found.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[libmp3lame @ 0x55c1d7eb5400] 3 frames left in the queue on closing
Conversion failed!
I'm having the same issue trying to use VAAPI hardware encoding for HEVC/10bit files.
The ffmpeg command generated is:
/usr/local/bin/ffmpeg -ss 00:02:45.000 -noaccurate_seek -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/films/The Prestige (2006)/The Prestige (2006) - Bluray-2160p.x265.AAC.[EN+AR+Chinese+HR+CS+DA+NL+FI+FR+DE+EL+HE+HU+IT+KO+Norwegian.Bokmal+PL+PT+RO+RU+ES+SV+TH+TR].mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -b:v 41513036 -maxrate 41513036 -bufsize 83026072 -force_key_frames:0 "expr:gte(t,165+n_forced*3)" -vf "format=nv12|vaapi,hwupload" -copyts -vsync -1 -codec:a:0 copy -f hls -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -hls_time 3 -individual_header_trailer 0 -hls_segment_type mpegts -start_number 55 -hls_segment_filename "/transcode/transcodes/2df4d91ff7ff775462c6486e384cead6%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/transcode/transcodes/2df4d91ff7ff775462c6486e384cead6.m3u8"
And I guess the relevant bit from ffmpeg's output is:
Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1600, SAR 1:1 DAR 12:5, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Which ends with:
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_vaapi))
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[h264_vaapi @ 0x55f22a772880] No usable encoding profile found.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
Can anyone provide me a link to a publicly available 10-bit HEVC-encoded file which exhibits this behaviour? I need it to reproduce on my end and try to understand what's wrong.
@JustAMan Jellyfish Sample, 4k hevc 10bit, 525MB
This one gives me the error mentioned above:
[h264_vaapi @ 0x55eaf8276b80] No usable encoding profile found.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Just to add to @Lbuh, this 20mbps HEVC example works fine but this corresponding 20mbps 10bit HEVC version of the same file produces the same error as above. I tested with a selection of different jellyfish samples and all the plain HEVC files worked but none of the 10bit ones did.
Yeah i've had issues with many different 10-bit files just not wanting to play. If I recall, I had this same issue on Plex, I want to say Kodi's player worked but plex app didn't. But I think it had worked fine on my phone, I'm having issues on all devices with Jellyfin. But if anyone tests it through kodi's player and it works, but not through any of the JF clients/web, then thats a good starting point.
I can confirm this issue is still present after updating to 10.4.1 (docker build).
Same issue. In my case turning off VAAPI encoding(and only use VAAPI for decoding) makes files play again. This is on 7th Gen Intel CPU, Debian and Jellyfin 10.4.1
So i've played around with the VAAPI ffmpeg settings to get things working again and this option enables hevc -> h264 transcode (both decode and encode)
-vf "hwupload,scale_vaapi=format=nv12" instead of
-vf "format=nv12|vaapi,hwupload"
@JustAMan Is it possible to get this ticket into the next release project/milestone?
@fightforlife is there a pull request open to fix it? We can't guarantee any feature or bug fix gets added into a release.
Yeah i've had issues with many different 10-bit files just not wanting to play. If I recall, I had this same issue on Plex, I want to say Kodi's player worked but plex app didn't. But I think it had worked fine on my phone, I'm having issues on all devices with Jellyfin. But if anyone tests it through kodi's player and it works, but not through any of the JF clients/web, then thats a good starting point.
Not sure if a log is helpful, or any of my specific issues are directly related to this. It seems like they are a similar issue though.. But I'm going to throw up a log for a file I have an issue with, in case it may be of any help.
Quite a majority of my Jellyfin files simply do not play because they're 10-bit HEVC files, so this is something I'm hoping gets fixed in the very near future.
It's very hardware dependent, I think that should be noted to which hardware combos this issue pertains, at least on linux/amdgpu [ open drivers dunno about closed ] vaapi is a frickin mess with 10 bit, it doesn't work and if it works it produces trash. No one is fixing it since they're waiting for open amf/vulkan encode.
It's very hardware dependent, I think that should be noted to which hardware combos this issue pertains
I'm on a bit of older hardware, but running on an i7-870 with a GTX 650Ti Boost.
I've had Jellyfin set to use NVENC, but tried playing around with VAAPI and Intel Quick Sync as well as just None. All seem to result in just giving me the no playback error. Could this be just simply the issue of me having older hardware? I'm not extremely familiar with transcoding, or the different methods.
Is it not possible to direct play the 10-bit HEVC files though? Or is that in the works? Maybe that is the 'solution' I need if it's even possible.
Since the i7-870 doesn't have integrated graphics which could support any hw-en/de/transcoding, you won't get any hw-acceleration from your CPU (should still be able to sw-de/encode).
Looking at the NVIDIA Suport matrix for en/decoding your GPU is only able to en/decode h.264 YUV 4:2:0 and nothing else with NVENC.
All of this shouldn't be relevant if your playing device can directly stream the source file and play it.
All of this shouldn't be relevant if your playing device can directly stream the source file and play it.
Which is what I figured. But idk how exactly I can test this.. because it's not direct playing it.
All of this shouldn't be relevant if your playing device can directly stream the source file and play it.
Which is what I figured. But idk how exactly I can test this.. because it's not direct playing it.
Direct Play works wonky on anything but Kodi, last time I've tested they all were trying to force trans-code one way or another, because so, which could be the reason why it doesn't play for ya
Direct Play works wonky on anything but Kodi
Funny, I used to have issues with Plex with 10-bit files, and Plex through Kodi was the only thing that did work. I think it was a player issue. Maybe this is a related issue?
Hi, still unable to hardware transcode (VAAPI) HEVC Main 10 files with 10.4.3 while HEVC Main (8bits) is hardware transcoding fine. My setup is a bit peculiar, Synology running a Jellyfin docker container but dev/dri is well configured, Plex is installed the same way and hardware transcodes 10bits HEVC without problems.
I just wanted to know if the nv12 fix by @cryptobank was implemented in this release because I still have -vf "format=nv12|vaapi,hwupload" in the ffmpeg command output, shouldn't it be -vf "hwupload,scale_vaapi=format=nv12" now, or perhaps this fix hasn't been validated yet..?
And a big thanks to all coders who do magic for us, dumb end users :)
There ist a second review needed before the PR ist merged in to the master branch.
And then we have to wait for the next release.
I tested PR 2099 on my system (Intel n4100 running jellyfin in Docker on an Arch Linux system with an Intel UHD600 GPU). It fixed all of my issues and now I can run 10.4.3 rather than 10.3.7.
@kmobs thanks for testing the PR.
@cryptobank Thank you for writing it!
Same problem here with 10-bit hevc videos.
But I found kind of a workaround: with subtitles enabled (before starting the video) it plays and transcodes just fine. The filter setting then looks like this:
-filter_complex "[0:2]scale=1920:1080:force_original_aspect_ratio=decrease[sub];[0:0][sub]overlay,format=nv12|vaapi,hwupload,scale_vaapi=w=720:h=404"
Also it says -hwaccel_output_format yuv420p instead of -hwaccel_output_format vaapi
These are the main differences I found.
I don't know if it works with downloaded (external) subtitles.
@cryptobank
Jellyfin-20191216
RX550 RX570 on amd graphics card is also very good, thank you very much
hevc in latest beta still doesn't work
Send a ffmpeg log pls
On Tue., 7 Jan. 2020, 13:52 jaylex32, notifications@github.com wrote:
hevc in latest beta still doesn't work
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jellyfin/jellyfin/issues/1901?email_source=notifications&email_token=AA7ZFNSVJN6FZJOFNPNGQZDQ4PYOHA5CNFSM4JAXBR6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIHR3CQ#issuecomment-571415946,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA7ZFNWPOU6GJDVD6ZUJMPDQ4PYOHANCNFSM4JAXBR6A
.
Just a quick question to verify this issue.
Is there a docker tag for the current "master" branch to test this?
I did only find "latest" and "10.4.3", both do not include the needed PR.
FWIW when I tested this PR on Fedora my HEVC 10-bit files played. All of the HEVC 8/10-bit files I have played.
Just a quick question to verify this issue.
Is there a docker tag for the current "master" branch to test this?
I did only find "latest" and "10.4.3", both do not include the needed PR.
No, the "latest" tag is not the master branch, it's equal to the latest release (10.4.3). AFAIK there are no automated docker builds for master. But IMHO it would be nice to have automated master builds.
@jaylex32 did you build the image from master by yourself or did you just use "latest" for your test?
I believe (if they are working) there should be a jellyfin/jellyfin:nightly tagged image for docker.
EDIT: They seem to be still broken. I think it was a WIP.
I tried the last nightly (dashboard says version 10.5.0) and if anything... it's gotten worse. Now it's not even possible to hardware-transcode x246-videos.
/usr/local/bin/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/***/***x264.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -b:v 1616000 -maxrate 1616000 -bufsize 3232000 -profile:v high -level 41 -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -vf "format=nv12|vaapi,hwupload,scale_vaapi=w=720:h=404:format=nv12" -copyts -vsync -1 -codec:a:0 aac -strict experimental -ac 2 -ab 384000 -af "volume=2" -f hls -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -hls_time 3 -individual_header_trailer 0 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/config/transcodes/5d4da26cf39ef918d8b9e8067252989a%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/5d4da26cf39ef918d8b9e8067252989a.m3u8"
[AVHWDeviceContext @ 0x562f0b3bf8c0] Failed to initialise VAAPI connection: -1 (unknown libva error).
Device creation failed: -5.
Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': Input/output error
Error parsing global options: Input/output error
If we're speaking docker you probably need to update/install libva I think.
Try running vainfo inside your container.
It's a docker container. Shouldn't everything be up to date within the container?
vainfo gives me:
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.4.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: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
What exactly should I update? There is no package libva installable via apt.
update:
I pulled the latest nightly from linuxserver (20200224-ls20) and there everything does as expected. Flawless transcoding of x264 and x265.
vainfo within this container shows
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.1.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_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Gemini Lake - 2.1.0
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileH264MultiviewHigh : VAEntrypointVLD
VAProfileH264MultiviewHigh : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileH264StereoHigh : VAEntrypointEncSlice
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointEncSlice
VAProfileVP9Profile2 : VAEntrypointVLD
The error shows that you have not given your container access to your video hardware. It is not related to this bug.
Please move this discussion to a user support forum. It is not related to this bug report and you are sending messages to dozens of people. Thanks.
Using the latest beta from linuxserver.io gives me the following trying to transcode with my RX550.
logs:
https://pastebin.com/SCniTqVL
vainfo returns the following:
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.1.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_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Mesa Gallium driver 19.2.8 for Radeon RX 550 Series (POLARIS11, DRM 3.33.0, 5.3.13-2-pve, LLVM 9.0.0)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
This doesn’t look like an error
On Thu, 27 Feb 2020 at 09:31 Moritz Weichert notifications@github.com
wrote:
Using the latest beta from linuxserver.io gives me the following trying
to transcode with my RX550.logs:
https://pastebin.com/SCniTqVLvainfo returns the following:
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.1.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_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Mesa Gallium driver 19.2.8 for Radeon RX 550
Series (POLARIS11, DRM 3.33.0, 5.3.13-2-pve, LLVM 9.0.0)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jellyfin/jellyfin/issues/1901?email_source=notifications&email_token=ACL2MBZKPAL6GJWMKWG6YQ3RE524ZA5CNFSM4JAXBR6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENDNWNY#issuecomment-591846199,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACL2MB7NGNPWU5W3VTR2XJ3RE524ZANCNFSM4JAXBR6A
.
@yassineim look at the ends of the logs i linked
Okay then
Does this happen with the other files too?
On Thu, 27 Feb 2020 at 09:35 Moritz Weichert notifications@github.com
wrote:
@yassineim https://github.com/yassineim look at the ends of the logs i
linked—
You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub
https://github.com/jellyfin/jellyfin/issues/1901?email_source=notifications&email_token=ACL2MB4YYC42SU5LHUUKOCTRE53ODA5CNFSM4JAXBR6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENDOFHY#issuecomment-591848095,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACL2MBYB5ZYBPVPAA4IN6MDRE53ODANCNFSM4JAXBR6A
.
happens with all files, don't matter if it's x264/hevc/10bit or not
Since your problem is with AMD hardware can you please open a new bug report?
HW encoding on Intel (which is the original issue of this bug report) was fixed some time ago (even though there still seem to be problems with the official docker images, but that too does not belong in here).
As a side note: reading the logs it's most likely caused by missing additional drivers or wrongly configured ffmpeg pipeline on jellyfin's side. But again this should be discussed in its own issue.
I have the same problem as @bo-hmpl with the latest nightly (01.03.2020)
[AVHWDeviceContext @ 0x5589d3027700] Failed to initialise VAAPI connection: -1 (unknown libva error).
Device creation failed: -5.
Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': Input/output error
Error parsing global options: Input/output error
I am using exactly the same docker compose file for the nighty and the latest branch. (I am just exchanging the tag)
With the latest tag HW acceleration is working for most of the files (except X265 10bit). With the nightly tag VAAPI is not working for any file.
(CPU is Intel J3455)
version: "2"
services:
jellyfin:
image: jellyfin/jellyfin:nightly
# image: jellyfin/jellyfin:latest
container_name: jellyfin
ports:
- "9016:8096/tcp"
restart: unless-stopped
volumes:
- jellyfin_config:/config
- /mnt/sdb1:/media:ro
- /tmp:/transtmp
- /tmp:/cache
devices:
- /dev/dri/renderD128:/dev/dri/renderD128
environment:
- UID=1000
- GID=1000
- GIDLIST=44
@mooninite To to me it doesnt seem to be a permission problem.
Do you have any logs or the output of vainfo from inside the docker container? Could be the same issue as I encountered: Missing non-free packages inside the image (know issue, but afaik it's evaluated if they can be included without any licens problems).
As a side note: In regards to the intel hardware support matrix your CPU can only decode 10bit HEVC but not encode it.
vainfois not installed in nightly docker.
after installing it insinde the docker container it gives the following error:
root@f152daa315de:/# vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.4.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: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
Seems like a missing driver. Installing i965-va-driver inside docker container helps:
root@f152daa315de:/# vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.4.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_1_4
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.4 (libva 2.4.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Broxton - 2.3.0
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileH264MultiviewHigh : VAEntrypointVLD
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
But Jellyfin still throws an error with X264 and X265 files (MPEG working):
Stream mapping:
Stream #0:2 -> #0:0 (hevc (native) -> h264 (h264_vaapi))
Stream #0:3 -> #0:1 (aac (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
ffmpeg: i965_encoder.c:1692: intel_enc_hw_context_init: Assertion `encoder_context->mfc_context' failed.
(main usecase is X265 to x264, for older players)
Okay, so it seems like the installed packages inside the container need to be fixed (again?)
We should at least consider installing libva-intel-vaapi-driver and vainfo. Maybe instead intel-media-va-driver-non-free. We maybe should look at the discussion over here (topic are native ubuntu installs but should also be applicable for our debian image).
cc @nvllsvm and @Artiume as our main Docker-using/-making guys AFAIR
Most helpful comment
So i've played around with the VAAPI ffmpeg settings to get things working again and this option enables hevc -> h264 transcode (both decode and encode)
-vf "hwupload,scale_vaapi=format=nv12" instead of
-vf "format=nv12|vaapi,hwupload"