View Single Post
Old 3rd July 2020, 04:28   #1002  |  Link
SpasV
Guest
 
Posts: n/a
view/check the output from decoding of HEVC

Here are the steps:
  1. Decoding in named pipe
    FRIMDecode64 -i:h265 "Rambo Last Blood 2019.h265" -start 1240 -length 653 -sw -o \\.\pipe\yuvpipe
    ....
    Output format P010

    Processing started
    Frame number: 653
    Processing finished in 70.45 seconds

    ffmpeg -hide_banner -f rawvideo -s 3840x2160 -r 23.976 -pix_fmt yuv420p10le -i \\.\pipe\yuvpipe frim2ffmpeg(653).yuv
    Input #0, rawvideo, from '\\.\pipe\yuvpipe':

    Duration: N/A, start: 0.000000, bitrate: 4772796 kb/s
    Stream #0:0: Video: rawvideo (Y3[11][10] / 0xA0B3359), yuv420p10le, 3840x2160, 4772796 kb/s, 23.98 tbr, 23.98 tbn, 23.98 tbc
    Output #0, rawvideo, to 'frim2ffmpeg(1240).yuv':
    Metadata:
    encoder : Lavf58.47.100
    Stream #0:0: Video: rawvideo (Y3[11][10] / 0xA0B3359), yuv420p10le, 3840x2160, q=2-31, 2982998 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc
    Metadata:
    encoder : Lavc58.93.100 rawvideo
    frame= 653 fps= 22 q=-0.0 Lsize=15867900kB time=00:00:27.23 bitrate=4772796.8kbits/s speed=0.912x

    ffmpeg -hide_banner -f rawvideo -s 3840x2160 -r 23.976 -pix_fmt yuv420p10le -i \\.\pipe\yuvpipe frim2ffmpeg(653).yuv
    Input #0, rawvideo, from '\\.\pipe\yuvpipe':
    Duration: N/A, start: 0.000000, bitrate: 4772796 kb/s
    Stream #0:0: Video: rawvideo (Y3[11][10] / 0xA0B3359), yuv420p10le, 3840x2160, 4772796 kb/s, 23.98 tbr, 23.98 tbn, 23.98 tbc
    Output #0, rawvideo, to 'frim2ffmpeg(1240).yuv':
    Metadata:
    encoder : Lavf58.47.100
    Stream #0:0: Video: rawvideo (Y3[11][10] / 0xA0B3359), yuv420p10le, 3840x2160, q=2-31, 2982998 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc
    Metadata:
    encoder : Lavc58.93.100 rawvideo
    frame= 653 fps= 22 q=-0.0 Lsize=15867900kB time=00:00:27.23 bitrate=4772796.8kbits/s speed=0.912x

  2. Displaying/Taking screenshot with AvsPmod
    RawSourcePlus(file="E:\AV Processing\Rambo Last Blood 2019\frim2ffmpeg(653).yuv", width=3840, height=2160, pixel_type="YUV420P10", fpsnum=24000, fpsden=1001, index="", show=true)
FRAME #597

(Naturally, the CL: FRIMDecode64 -i:h265 "Rambo Last Blood 2019.h265" -start 1240 -length 653 -sw -o - | ffmpeg -hide_banner -f rawvideo -s 3840x2160 -r 23.976 -pix_fmt yuv420p10le -i - -vcodec copy frim2ffmpeg(653).2.yuv generates the same result.)

The pixel format yuv420p10le is used by YUV viewers when work with 10-bit color sampled 4:2:0

EDIT:
The same result (colorless) generates FRIMDecode64 -i:h265 Rambo_2019_1240_654.h265 -o Rambo_1240_654.yuv -sw

Last edited by SpasV; 3rd July 2020 at 05:46.
  Reply With Quote