AVC 10bit 영상이 제가 가진 플레이어에서 재생이 되지 않거나 오디오쪽에 문제가 생겨
HEVC 로 변환하려고 합니다.
HEVC 로 Main10 으로 변환했더니 재생장치에서 HDR 영상으로 인식을 하더군요
매개변수 쪽에
-pix_fmt yuv420p10le
-color_primaries bt2020 -color_trc smpte2084 -colorspace bt2020nc
옵션이 있어 삭제를 헀더니
8bit 영상으로 인코딩 되었습니다.
8bit로 변경된 영상을 재생시에는 크게 차이가 느껴지진 않았습니다
하지만 손실을 최대한 줄여보고 싶습니다.
방법이 있는지 알려주시면 감사하겠습니다.
추가로 오디오를 스테레오로 인코딩 하면 LFE 체널이 날아간것 처럼 들리는데
원본을 재생해도 스테레오로 다운믹스 되어 재생되는데 원본과 인코딩한 영상에서 저음부가 확실히 다르거든요
혹시 보완할 방법이 있을까요?
General
Unique ID : 248950717613934915084390667651877018313 (0xBB4A2A073CD27FD29A0AFFD8A80D9AC9)
Complete name : \\01.Animation\Psycho-Pass\Season 1\[Moozzi2] Psycho-Pass S1 - 05 (BD 1920x1080 x.264-10Bit DTS-HDMA).mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 1.13 GiB
Duration : 22 min 51 s
Overall bit rate : 7 084 kb/s
Encoded date : UTC 2017-03-23 11:55:20
Writing application : mkvmerge v9.2.0 ('Photograph') 64bit
Writing library : libebml v1.3.3 + libmatroska v1.4.4
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High 10@L5
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 22 min 51 s
Bit rate : 5 211 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.105
Stream size : 852 MiB (74%)
Writing library : x264 core 148 r2638 7599210
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=0.70:0.00 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=16.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language : Japanese
Default : Yes
Forced : No
Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Format profile : MA / Core
Mode : 16
Format settings, Endianness : Big
Codec ID : A_DTS
Duration : 22 min 51 s
Bit rate mode : Variable / Constant
Bit rate : 1 869 kb/s / 1 509 kb/s
Channel(s) : 3 channels
Channel positions : Front: L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 spf)
Bit depth : 16 bits
Compression mode : Lossless / Lossy
Stream size : 306 MiB (26%)
Language : Japanese
Default : Yes
Forced : No
자세한 정보
General
Count : 322
Count of stream of this kind : 1
Kind of stream : General
Kind of stream : General
Stream identifier : 0
Unique ID : 248950717613934915084390667651877018313
Unique ID : 248950717613934915084390667651877018313 (0xBB4A2A073CD27FD29A0AFFD8A80D9AC9)
Count of video streams : 1
Count of audio streams : 1
Video_Format_List : AVC
Video_Format_WithHint_List : AVC
Codecs Video : AVC
Video_Language_List : Japanese
Audio_Format_List : DTS
Audio_Format_WithHint_List : DTS
Audio codecs : DTS-HD
Audio_Language_List : Japanese
Complete name : \\DISKSTATION\01.Animation\Psycho-Pass\Season 1\[Moozzi2] Psycho-Pass S1 - 05 (BD 1920x1080 x.264-10Bit DTS-HDMA).mkv
Folder name : \\DISKSTATION\01.Animation\Psycho-Pass\Season 1
File name : [Moozzi2] Psycho-Pass S1 - 05 (BD 1920x1080 x.264-10Bit DTS-HDMA)
File extension : mkv
Format : Matroska
Format : Matroska
Format/Url : http://packs.matroska.org/
Format/Extensions usually used : mkv mk3d mka mks
Commercial name : Matroska
Format version : Version 4 / Version 2
Codec : Matroska
Codec : Matroska
Codec/Url : http://packs.matroska.org/
Codec/Extensions usually used : mkv mk3d mka mks
File size : 1214042842
File size : 1.13 GiB
File size : 1 GiB
File size : 1.1 GiB
File size : 1.13 GiB
File size : 1.131 GiB
Duration : 1371040
Duration : 22 min 51 s
Duration : 22 min 51 s 40 ms
Duration : 22 min 51 s
Duration : 00:22:51.040
Duration : 00:22:51;08
Duration : 00:22:51.040 (00:22:51;08)
Overall bit rate : 7083924
Overall bit rate : 7 084 kb/s
Frame rate : 23.976
Frame rate : 23.976 FPS
Frame count : 32872
Stream size : 545979
Stream size : 533 KiB (0%)
Stream size : 533 KiB
Stream size : 533 KiB
Stream size : 533 KiB
Stream size : 533.2 KiB
Stream size : 533 KiB (0%)
Proportion of this stream : 0.00045
Encoded date : UTC 2017-03-23 11:55:20
File creation date : UTC 2018-08-09 09:57:22.198
File creation date (local) : 2018-08-09 18:57:22.198
File last modification date : UTC 2018-07-29 08:20:39.681
File last modification date (local) : 2018-07-29 17:20:39.681
Writing application : mkvmerge v9.2.0 ('Photograph') 64bit
Writing application : mkvmerge v9.2.0 ('Photograph') 64bit
Writing library : libebml v1.3.3 + libmatroska v1.4.4
Writing library : libebml v1.3.3 + libmatroska v1.4.4
Video
Count : 341
Count of stream of this kind : 1
Kind of stream : Video
Kind of stream : Video
Stream identifier : 0
StreamOrder : 0
ID : 1
ID : 1
Unique ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format/Url : http://developers.videolan.org/x264.html
Commercial name : AVC
Format profile : High 10@L5
Format settings : CABAC / 5 Ref Frames
Format settings, CABAC : Yes
Format settings, CABAC : Yes
Format settings, ReFrames : 5
Format settings, ReFrames : 5 frames
Internet media type : video/H264
Codec ID : V_MPEG4/ISO/AVC
Codec ID/Url : http://ffdshow-tryout.sourceforge.net/
Codec : V_MPEG4/ISO/AVC
Codec : AVC
Codec/Family : AVC
Codec/Info : Advanced Video Codec
Codec/Url : http://ffdshow-tryout.sourceforge.net/
Codec profile : High 10@L5
Codec settings : CABAC / 5 Ref Frames
Codec settings, CABAC : Yes
Codec_Settings_RefFrames : 5
Duration : 1371037.000000
Duration : 22 min 51 s
Duration : 22 min 51 s 37 ms
Duration : 22 min 51 s
Duration : 00:22:51.037
Duration : 00:22:51;08
Duration : 00:22:51.037 (00:22:51;08)
Bit rate : 5211249
Bit rate : 5 211 kb/s
Width : 1920
Width : 1 920 pixels
Height : 1080
Height : 1 080 pixels
Stored_Height : 1088
Sampled_Width : 1920
Sampled_Height : 1080
Pixel aspect ratio : 1.000
Display aspect ratio : 1.778
Display aspect ratio : 16:9
Frame rate mode : CFR
Frame rate mode : Constant
Frame rate : 23.976
Frame rate : 23.976 (24000/1001) FPS
FrameRate_Num : 24000
FrameRate_Den : 1001
Frame count : 32872
Resolution : 10
Resolution : 10 bits
Colorimetry : 4:2:0
Color space : YUV
Chroma subsampling : 4:2:0
Chroma subsampling : 4:2:0
Bit depth : 10
Bit depth : 10 bits
Scan type : Progressive
Scan type : Progressive
Interlacement : PPF
Interlacement : Progressive
Bits/(Pixel*Frame) : 0.105
Delay : 0
Delay : 00:00:00.000
Delay, origin : Container
Delay, origin : Container
Stream size : 893102023
Stream size : 852 MiB (74%)
Stream size : 852 MiB
Stream size : 852 MiB
Stream size : 852 MiB
Stream size : 851.7 MiB
Stream size : 852 MiB (74%)
Proportion of this stream : 0.73564
Writing library : x264 - core 148 r2638 7599210
Writing library : x264 core 148 r2638 7599210
Encoded_Library_Name : x264
Encoded_Library_Version : core 148 r2638 7599210
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=0.70:0.00 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=16.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language : ja
Language : Japanese
Language : Japanese
Language : ja
Language : jpn
Language : ja
Default : Yes
Default : Yes
Forced : No
Forced : No
Audio
Count : 279
Count of stream of this kind : 1
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 0
StreamOrder : 1
ID : 2
ID : 2
Unique ID : 13236012909485244333
Format : DTS
Format/Info : Digital Theater Systems
Commercial name : DTS
Format profile : MA / Core
Mode : 16
Format settings, Endianness : Big
Codec ID : A_DTS
Codec : DTS-HD
Codec : DTS-HD
Codec/Family : DTS
Duration : 1371040.000000
Duration : 22 min 51 s
Duration : 22 min 51 s 40 ms
Duration : 22 min 51 s
Duration : 00:22:51.040
Duration : 00:22:47:37
Duration : 00:22:51.040 (00:22:47:37)
Bit rate mode : VBR / CBR
Bit rate mode : Variable / Constant
Bit rate : 1869499 / 1509000
Bit rate : 1 869 kb/s / 1 509 kb/s
Channel(s) : 3
Channel(s) : 3 channels
Channel positions : Front: L R, LFE
Channel positions : 2/0/0.1
ChannelLayout : / L R LFE
Samples per frame : 512
Sampling rate : 48000
Sampling rate : 48.0 kHz
Samples count : 65809920
Frame rate : 93.750
Frame rate : 93.750 FPS (512 spf)
Frame count : 128535
Resolution : 16
Resolution : 16 bits
Bit depth : 16
Bit depth : 16 bits
Compression mode : Lossless / Lossy
Compression mode : Lossless / Lossy
Delay : 0
Delay : 00:00:00.000
Delay, origin : Container
Delay, origin : Container
Delay relative to video : 0
Delay relative to video : 00:00:00.000
Video0 delay : 0
Video0 delay : 00:00:00.000
Stream size : 320394840
Stream size : 306 MiB (26%)
Stream size : 306 MiB
Stream size : 306 MiB
Stream size : 306 MiB
Stream size : 305.6 MiB
Stream size : 306 MiB (26%)
Proportion of this stream : 0.26391
Language : ja
Language : Japanese
Language : Japanese
Language : ja
Language : jpn
Language : ja
Default : Yes
Default : Yes
Forced : No
Forced : No
MediaInfoLib - v0.7.91
우선 HDR10 인코딩과 관련돼 제가 올린 프리셋 포스팅을 확인해 보시구요.
1. 인코딩 옵션에서 해당 매개변수값들을 굳이 삭제하신 이유를 모르겠군요.
10비트 영상이 HDR 영상인 것은 아시겠고... 원본이 10비트 영상이니 HDR 영상이고 HDR로 재인코딩을 원하신다면 해당 매개변수값들을 지우시지 않을 것을 권장합니다.
해당 매개변수값들은 전역 메타데이터로 기록되는 부분입니다. 어차피 x265 인코더에서 프로파일을 Main 10으로 선택하셨다면 인코딩은 10비트로 됩니다. 다만 해당 매개변수값들(특히 '-pix_fmt yuv420p10le' 부분)을 지우셨기 때문에 인코딩 후 Mediainfo로 동영상 정보를 보아도 메타데이터 부분에서는 (실제와는 다르게) bit depth가 기본값인 '8'로 나올 겁니다. 재생장치에 따라 혼동이 생길 수도 있는 부분입니다. 해당 매개변수값들은 지우시지 않는 게 좋습니다.
2. 원본 오디오 비트레이트가 상당히 높고 LFE가 들어가 있으니 차라리 스테레오가 아닌 5.1 채널로 인코딩하시는 게 낫지 않을까요? 비트레이트는 384 정도로 줘서 채널당 64kbps 정도를 할당하는 게 적절해 보입니다.
그리고 사족을 달자면, 원본 인코딩 세팅이 퀄리티 모드로 crf 값을 16.0으로 준 것으로 보이니 (rc=crf / crf=16.0) 재인코딩하실 때도 퀄리티 모드로 crf 값을 동일하게 16.0으로 주고 인코딩하시는 게 원본과 최대한 비슷한 화질을 뽑아낼 수 있는 첫 단추가 될 것 같습니다. 아니면, 오디오 때문에 재생에 문제가 생기는 게 확실하다면 비디오는 스트림 복사하시고 오디오만 재인코딩하시는 방법이 제일 편한 방법이겠죠.