Hello,
Long story short - my LG EG920V (WebOS2.0) can't properly handle 2076 vertical resolution. As you can see in the attached picture half the screen is noisy with a green horizontal bar at the bottom. I tried to play the same file (.mkv) from PLEX (Xplay/Plex), EMBY(Emby Theatre/Screenplay), as well as directly from USB HDD with the same result.
[Attachment 56279 - Click to enlarge]
As an workaround I added horizontal black bars on top/bottom (42px each) with ffmpeg, but it's a very very slow process - on my AMD Ryzen 7 3700U (8 cores) it runs ~1fps. Anyway the result 3840x2160 plays without issue on TV.
Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2076 [SAR 1:1 DAR 320:173], 24 fps, 24 tbr, 1k tbn, 24 tbc (default)
ffmpeg.exe -i input.mkv -vf "pad=3840:2160ow-iw)/2
oh-ih)/2" -c:v libx265 -crf 20 -map 0:0 -map 0:2 -c:a copy "output.mkv"
When I tried to use hw encoder hevc_amf I found out there is no yuv420p10le pixel format available (like libx265 has), and thus the output is only 8bit using yuv420p.
ffmpeg version 2020-12-09-git-7777e5119a-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10.2.0 (Rev5, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 56. 62.100 / 56. 62.100
libavcodec 58.115.102 / 58.115.102
libavformat 58. 65.100 / 58. 65.100
libavdevice 58. 11.103 / 58. 11.103
libavfilter 7. 92.100 / 7. 92.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
Encoder hevc_amf [AMD AMF HEVC encoder]:
General capabilities: delay hardware
Threading capabilities: none
Supported hardware devices: d3d11va d3d11va dxva2 dxva2
Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld
But it seems this GPU (RX VEGA 10) has hardware codec support for h265 / HEVC (10 bit) decode/encode.
https://www.cpu-monkey.com/en/cpu-amd_ryzen_7_3700u-901
The question is how can I use hevc_amf with 10bit support if possible.
Kind regards,
+ Reply to Thread
Results 1 to 7 of 7
-
-
You could also try to remux your 3840x2076 video with MkvToolNix, specifing for the videotream a resolution of 3840x2160.
-
Try:
Code:ffmpeg -i "input.mkv" -map 0 -c copy -bsf:v "hevc_metadata=crop_top=0:crop_bottom=0" "output.mkv"
-
This command outputs 3840x2080 which is still no good for my TV, my goal is 3840x2160. And if I don't explicitly specify the video codec it defaults to X264. Anyway after I choose libx265 it is as slow as my command above.
The real deal would be to use hardware encoding but with 10bit...
Thanks, -
-
Try
ffmpeg -i input.mkv -c copy -bsf:v "hevc_metadata=sample_aspect_ratio=16/9" output.mkv -
Similar Threads
-
10bit BT.2020 HDR content to 10Bit BT.2020 WITHOUT HDR metadata
By wmplib in forum Video ConversionReplies: 3Last Post: 10th Apr 2020, 07:44 -
Enconding VP9 10bit
By Frozen6 in forum Video ConversionReplies: 3Last Post: 15th Mar 2018, 09:00 -
10bit video not working
By pattcz in forum Newbie / General discussionsReplies: 7Last Post: 17th Aug 2017, 11:45 -
How to play 10bit videos and be sure to get true 10bit color on the screen?
By flashandpan007 in forum Software PlayingReplies: 6Last Post: 7th Apr 2017, 18:02 -
FFMPEG x265 10bit and virtualdub x265 10bit settings
By lilycarolyn in forum Video ConversionReplies: 11Last Post: 6th Jun 2016, 13:44