VideoHelp Forum




+ Reply to Thread
Results 1 to 7 of 7
  1. 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.
    Image
    [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)/2oh-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,
    Quote Quote  
  2. You could also try to remux your 3840x2076 video with MkvToolNix, specifing for the videotream a resolution of 3840x2160.
    Quote Quote  
  3. Try:
    Code:
    ffmpeg -i "input.mkv" -map 0 -c copy -bsf:v "hevc_metadata=crop_top=0:crop_bottom=0" "output.mkv"
    (It's a long shot but who knows ... May need to extract and remux afterwards with mkvtoolnix.)
    Quote Quote  
  4. Originally Posted by sneaker View Post
    Try:
    Code:
    ffmpeg -i "input.mkv" -map 0 -c copy -bsf:v "hevc_metadata=crop_top=0:crop_bottom=0" "output.mkv"
    (It's a long shot but who knows ... May need to extract and remux afterwards with mkvtoolnix.)
    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,
    Quote Quote  
  5. Originally Posted by ProWo View Post
    You could also try to remux your 3840x2076 video with MkvToolNix, specifing for the videotream a resolution of 3840x2160.
    I have already tried that and it outputs the same res 3840x2076. Where do I have to specify the resolution? If it's Video properties -> Display width/height it's not working as expected...
    Quote Quote  
  6. Try
    ffmpeg -i input.mkv -c copy -bsf:v "hevc_metadata=sample_aspect_ratio=16/9" output.mkv
    Quote Quote  
  7. Originally Posted by MihaiB. View Post
    And if I don't explicitly specify the video codec it defaults to X264.
    That's why I used "-c copy" ... (JFYI. Not that it solves your problem.)
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!