조회 수 899 추천 수 0 댓글 2
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

안녕하세요

 

여러 동영상의 용량을 줄이던 중  눈이나 비가 내리는 동영상에서 막히게 되었습니다.

 

rain.gif

 gif 는 비가 내리는 동영상의 캡쳐고,

 

눈이 내리는 동영상은 1(원본cut), 2(압축), 3(MBtree 끈 압축) 세 가지입니다.

 

snow (원본).mp4

원본은 1920x1080 에  17 Mbps 정도인데  너무 큰 거 같아서 평소 하던대로 

 

 ref=4 bframes=16  keyint=250 mbtree=1  bitrate=11000  aq=1:0.00

 
대략 이렇게 압축을 했습니다.
 
그랬더니 2(압축) 처럼 눈 알갱이 숫자가 매우 적어져서
다른 설정들을 만져서 눈알갱이를 최대한 보존하려고 해봤지만
용량을 늘리는 수밖에는 없는 것 같습니다.
 
그래서 저 동영상들은 압축하지 않고 원본으로 저장하려고 하다가 
 
만약 압축을 해야만 한다면 어떤게 최선일까하고 만지다 MBtree 를 끈게 제 눈에는 가장 효과가 좋아보였습니다.
 
  ref=1   bframes=0   keyint=30   mbtree=0   bitrate=11000  aq=0
 
3(MBtree 끈 압축) 은 이렇게 했는데 심증으로는  ref를 1 로 하는 것도 좋은 거 같습니다.
 
 
혹시 이런 영상들 압축할 때 이렇게 하면 좋은 거 같더라~ 하는 거 있으신 분 말씀해주시면 감사하겠습니다.
아니면 더 좋은 코덱이 있는지도 궁금합니다.
 
https://www.premiumbeat.com/blog/grain-overlays-affecting-youtube-upload/
https://www.youtube.com/watch?v=r6Rp-uo6HmI

https://www.youtube.com/watch?v=BtYKDamqo2I

 

 

 

아래는 파일정보, 인코딩기록입니다.

 

 

 

 1)  snow 동영상 파일정보

------------------------------------------------------------------------

Format                                   : MPEG-4

Format profile                           : Base Media / Version 2

Codec ID                                 : mp42 (isom/mp42)

File size                                : 53.9 MiB

Duration                                 : 26 s 119 ms

Overall bit rate                         : 17.3 Mb/s

com.android.version                      : 9

 

Video

ID                                       : 1

Format                                   : AVC

Format/Info                              : Advanced Video Codec

Format profile                           : High@L4

Format settings                          : CABAC / 1 Ref Frames

Format settings, CABAC                   : Yes

Format settings, Reference frames        : 1 frame

Format settings, GOP                     : M=1, N=30

Codec ID                                 : avc1

Codec ID/Info                            : Advanced Video Coding

Duration                                 : 26 s 119 ms

Bit rate                                 : 17.0 Mb/s

Width                                    : 1 920 pixels

Height                                   : 1 080 pixels

Display aspect ratio                     : 16:9

Frame rate mode                          : Variable

Frame rate                               : 30.000 FPS

Minimum frame rate                       : 18.237 FPS

Maximum frame rate                       : 35.433 FPS

Color space                              : YUV

Chroma subsampling                       : 4:2:0

Bit depth                                : 8 bits

Scan type                                : Progressive

Bits/(Pixel*Frame)                       : 0.274

Stream size                              : 53.1 MiB (98%)

Title                                    : VideoHandle

Codec configuration box                  : avcC

 

 

자세한 정보

 

General

Count                                    : 333

Count of stream of this kind             : 1

Kind of stream                           : General

Stream identifier                        : 0

Count of video streams                   : 1

Video_Format_List                        : AVC

Video_Format_WithHint_List               : AVC

Codecs Video                             : AVC

File extension                           : mp4

Format                                   : MPEG-4

Format/Extensions usually used           : braw mov mp4 m4v m4a m4b m4p m4r 3ga 3gpa 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma ismt f4a f4b f4v

Commercial name                          : MPEG-4

Format profile                           : Base Media / Version 2

Internet media type                      : video/mp4

Codec ID                                 : mp42 (isom/mp42)

Codec ID/Url                             : http://www.apple.com/quicktime/download/standalone.html

CodecID_Compatible                       : isom/mp42

File size                                : 56526856

File size                                : 53.91 MiB

Duration                                 : 26119

Duration                                 : 26 s 119 ms

Duration                                 : 00:00:26.119 (00:00:26:04)

Overall bit rate                         : 17313636

Overall bit rate                         : 17.3 Mb/s

Frame rate                               : 30.000 FPS

Frame count                              : 784

Stream size                              : 15475

Stream size                              : 15.11 KiB

Proportion of this stream                : 0.00027

HeaderSize                               : 24

DataSize                                 : 56511389

FooterSize                               : 15443

IsStreamable                             : No

xyz                                      : +00.0000+000.0000/

com.android.version                      : 9

 

Video

Count                                    : 378

Count of stream of this kind             : 1

Kind of stream                           : Video

Stream identifier                        : 0

StreamOrder                              : 0

ID                                       : 1

Format                                   : AVC

Format/Info                              : Advanced Video Codec

Format/Url                               : http://developers.videolan.org/x264.html

Commercial name                          : AVC

Format profile                           : High@L4

Format settings                          : CABAC / 1 Ref Frames

Format settings, CABAC                   : Yes

Format settings, Reference frames        : 1 frame

Format settings, GOP                     : M=1, N=30

Internet media type                      : video/H264

Codec ID                                 : avc1

Codec ID/Info                            : Advanced Video Coding

Duration                                 : 26119

Duration                                 : 26 s 119 ms

Duration                                 : 00:00:26.119 (00:00:26:04)

Bit rate                                 : 17043820

Bit rate                                 : 17.0 Mb/s

Width                                    : 1 920 pixels

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

Rotation                                 : 0.000

Frame rate mode                          : VFR

Frame rate mode                          : Variable

Frame rate                               : 30.000 FPS

Minimum frame rate                       : 18.237 FPS

Maximum frame rate                       : 35.433 FPS

Frame count                              : 784

Color space                              : YUV

Chroma subsampling                       : 4:2:0

Bit depth                                : 8 bits

Scan type                                : Progressive

Bits/(Pixel*Frame)                       : 0.274

Stream size                              : 55676479

Stream size                              : 53.10 MiB

Proportion of this stream                : 0.98496

Title                                    : VideoHandle

Codec configuration box                  : avcC

 

 

MediaInfoLib - v19.09

---------------------------------------------------------------------------

 

 

 

 

  2)  snow 압축 인코딩기록

==================================================

 

 >> 작업 시작시간: 2020-12-30 오전 11:16:25

 

 * 인코딩 시작: snow.mp4

 

Using -vsync 0 and -r can produce invalid output files

Stream mapping:

  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))

[libx264 @ 000002cab352ef80] using SAR=1/1

[libx264 @ 000002cab352ef80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2

[libx264 @ 000002cab352ef80] profile High, level 4.0, 4:2:0, 8-bit

[libx264 @ 000002cab352ef80] 264 - core 161 r3015 4c2aafd - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=4 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=9 psy=0 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=1 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=16 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=1 weightp=2 keyint=250 keyint_min=25 scenecut=80 intra_refresh=0 rc_lookahead=250 rc=2pass mbtree=1 bitrate=11000 ratetol=1.0 qcomp=0.00 qpmin=1 qpmax=69 qpstep=65 cplxblur=0.0 qblur=0.0 ip_ratio=0.70 aq=1:0.00

    Side data:

      cpb: bitrate max/min/avg: 0/0/11000000 buffer size: 0 vbv_delay: N/A

video:2940kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.054076%

[libx264 @ 000002cab352ef80] frame I:1     Avg QP:33.70  size:156888

[libx264 @ 000002cab352ef80] frame P:14    Avg QP:30.06  size:127308

[libx264 @ 000002cab352ef80] frame B:45    Avg QP:37.18  size: 23793

[libx264 @ 000002cab352ef80] consecutive B-frames:  1.7%  0.0%  5.0% 60.0% 33.3%  0.0%  0.0%  0.0%  0.0%  0.0%  0.0%  0.0%  0.0%  0.0%  0.0%  0.0%  0.0%

[libx264 @ 000002cab352ef80] mb I  I16..4: 18.6% 54.5% 26.9%

[libx264 @ 000002cab352ef80] mb P  I16..4:  5.0%  9.5%  5.5%  P16..4: 36.4% 18.9% 11.3%  2.1%  0.2%    skip:11.0%

[libx264 @ 000002cab352ef80] mb B  I16..4:  0.3%  0.4%  0.3%  B16..8: 33.9%  9.9%  2.0%  direct: 2.5%  skip:50.7%  L0:51.6% L1:28.1% BI:20.3%

[libx264 @ 000002cab352ef80] 8x8 transform intra:47.9% inter:34.6%

[libx264 @ 000002cab352ef80] direct mvs  spatial:100.0% temporal:0.0%

[libx264 @ 000002cab352ef80] coded y,uvDC,uvAC intra: 73.1% 36.2% 3.8% inter: 21.4% 2.6% 0.1%

[libx264 @ 000002cab352ef80] i16 v,h,dc,p: 15% 31% 33% 20%

[libx264 @ 000002cab352ef80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 21% 21%  6%  7%  5%  7%  7% 12%

[libx264 @ 000002cab352ef80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 25% 15%  6%  8%  5%  9%  6% 12%

[libx264 @ 000002cab352ef80] i8c dc,h,v,p: 76% 15%  6%  3%

[libx264 @ 000002cab352ef80] Weighted P-Frames: Y:0.0% UV:0.0%

[libx264 @ 000002cab352ef80] ref P L0: 72.4%  3.3% 15.3%  9.0%

[libx264 @ 000002cab352ef80] ref B L0: 96.8%  2.5%  0.7%

[libx264 @ 000002cab352ef80] ref B L1: 99.3%  0.7%

[libx264 @ 000002cab352ef80] kb/s:11842.17

 

 * 인코딩이 완료되었습니다.

 

 >> 속도 0.15x 진행시간 00:00:13

 

==================================================

 

 

 

 

  3)  MBtree 끈 압축 인코딩기록

==================================================

 

 >> 작업 시작시간: 2020-12-30 오전 11:40:41

 

 * 인코딩 시작: snow.mp4

 

Using -vsync 0 and -r can produce invalid output files

Stream mapping:

  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))

[libx264 @ 000001f8eca4ef40] using SAR=1/1

[libx264 @ 000001f8eca4ef40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2

[libx264 @ 000001f8eca4ef40] profile High, level 4.0, 4:2:0, 8-bit

[libx264 @ 000001f8eca4ef40] 264 - core 161 r3015 4c2aafd - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=9 psy=0 mixed_ref=0 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=1 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=30 keyint_min=3 scenecut=80 intra_refresh=0 rc=2pass mbtree=0 bitrate=11000 ratetol=1.0 qcomp=0.00 qpmin=1 qpmax=69 qpstep=65 cplxblur=0.0 qblur=0.0 ip_ratio=0.70 aq=0

    Side data:

      cpb: bitrate max/min/avg: 0/0/11000000 buffer size: 0 vbv_delay: N/A

video:2697kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.042083%

[libx264 @ 000001f8eca4ef40] frame I:3     Avg QP:37.67  size: 87539

[libx264 @ 000001f8eca4ef40] frame P:57    Avg QP:34.63  size: 43824

[libx264 @ 000001f8eca4ef40] mb I  I16..4: 24.6% 63.1% 12.3%

[libx264 @ 000001f8eca4ef40] mb P  I16..4:  2.9%  1.3%  1.5%  P16..4: 46.3%  9.9%  3.0%  0.4%  0.0%    skip:34.5%

[libx264 @ 000001f8eca4ef40] 8x8 transform intra:41.8% inter:34.2%

[libx264 @ 000001f8eca4ef40] coded y,uvDC,uvAC intra: 57.2% 35.7% 1.2% inter: 29.6% 1.5% 0.0%

[libx264 @ 000001f8eca4ef40] i16 v,h,dc,p: 19% 32% 27% 22%

[libx264 @ 000001f8eca4ef40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 26% 19%  5%  5%  5%  7%  6% 11%

[libx264 @ 000001f8eca4ef40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 23% 16%  6%  8%  6%  9%  6% 12%

[libx264 @ 000001f8eca4ef40] i8c dc,h,v,p: 86%  9%  3%  1%

[libx264 @ 000001f8eca4ef40] Weighted P-Frames: Y:0.0% UV:0.0%

[libx264 @ 000001f8eca4ef40] kb/s:10861.36

 

 * 인코딩이 완료되었습니다.

 

 >> 속도 0.245x 진행시간 00:00:08

 

==================================================

 

 

 

Facebook Twitter Pinterest Kakao
  • ?
    JKyle 2021.01.06 22:47

    눈이나 비가 내리는 영상처럼 프레임별 변화가 많은 영상의 경우 프레임 간에 독립성이 크므로 ref나 B 프레임 숫자를 줄이는 게 좋습니다. 그리고 '키 프레임 변경' 옵션으로 GOP 사이즈를 좀 줄여보시구요. (샤나인코더 빠른 설정 안의 옵션에서는 '' 단위로 설정합니다.)

     

    추가적으로 Motion Estimation 쪽을 hex보다는 umh 쪽으로 시도해 보시구요.

     

    또한 비트레이트가 커지더라도 노이즈를 최대한 살리는 방향으로 가는 게 좋습니다.

    필터를 따로 쓰지 않더라도 인코더 자체적으로는 인코더의 in-loop deblocking 관련 고유 옵션들에 낮은 값(주로 음수)을 주거나 해당 옵션을 끈다든지 하는 게 좋겠군요.

    x264의 경우 deblock, x265의 경우 deblock, sao, strong-intra-smoothing 같은 옵션들을 적절하게 설정해보는 게 좋을 겁니다. (방법은 검색)

     

    MBtree 경우, 프레임 간 정보 의존도가 높을 경우 효과가 크므로 이 경우엔 꺼주는 게 나을지도 모르겠군요.

    그리고 원본에 따라 프레임 내 정보 격차가 크지 않을 경우 - 밝기 차이가 많이 안 난다든지, 복잡도(평평한 정도)가 별 차이 안 난다든지 등등 - AQ를 끄거나 관련 옵션에 낮은 값을 주는 게 나을지도 모르겠습니다.

     

    마지막으로, 굳이 용량 제한을 둘 필요가 있지 않다면 비트레이트 모드보다는 퀄리티 모드를 추천합니다. 거의 대부분의 경우 퀄리티 모드가 비트레이트 모드(1패스)보다는 화질면에서 우월합니다.

  • ?
    cameralove 2021.01.07 15:23
    JKyle 님 친절한 답변 감사합니다!
    세세하게 알려주셔서 놓쳤던 부분들도 다시 보게되네요

    추천해주신대로 한번 해보겠습니다!

  1. 샤나 사이트 일시 접속 불가 안내

    Date2024.04.11 ByRina Reply0 Views1857 Votes0
    read more
  2. 소리를 4가지로 분리하는 샤나보컬리무버 프로그램을 소개합니다.

    Date2024.03.22 ByRina Reply0 Views4497 Votes4
    read more
  3. 샤나인코더 통합 검색 기능 개선(샤나인코더 우측 상단에 있는 검색창을 사용해 보세요.)

    Date2021.09.30 ByRina Reply0 Views19327 Votes2
    read more
  4. 자유게시판에서는 자유롭게 글을 작성할 수 있지만 다음과 같은 내용은 삭제돼요

    Date2020.03.18 ByRina Reply0 Views17031 Votes5
    read more
  5. [필독] 질문 전에 반드시 읽으세요!!!

    Date2019.09.16 Category일반 ByJKyle Reply3 Views33549 Votes7
    read more
  6. [알림] 질문 먹튀하지 마시기 바랍니다 => 본문 변경 금지

    Date2018.10.12 Category일반 ByJKyle Reply23 Views29130 Votes16
    read more
  7. 사운드 7.1채널을 5.1로 인코딩했을 경우

    Date2020.03.01 Category질문 By자양뚜야 Reply1 Views918 Votes0
    Read More
  8. 퀄리티모드 질문

    Date2023.08.23 Category질문 By무르거부크 Reply1 Views917 Votes0
    Read More
  9. 인코딩된 영상을 배속 재생시 화면 끊김의 문제

    Date2021.08.26 Category질문 ByJUk1 Reply2 Views916 Votes0
    Read More
  10. 이 글을 보았는데 8비트 영상을 10비트로 인코딩을 해도 상관이 없나요??

    Date2023.01.19 Category질문 Bysleik Reply5 Views916 Votes0
    Read More
  11. 업글 후에 QSV 인코딩이 안됩니다

    Date2022.03.03 Category질문 Bykarona Reply1 Views916 Votes0
    Read More
  12. 개별 모드로 하면 음성이 유지되는데 합치기 모드로

    Date2020.08.03 Category질문 By아동보호소 Reply1 Views914 Votes0
    Read More
  13. 샤나인코더 인코딩 중 인터넷을 사용하는 것에 대한 문의

    Date2020.07.19 Category질문 ByCTOS Reply2 Views913 Votes0
    Read More
  14. H264(QSV) 나 이외의 다른 종류도 오류가 뜨나요?

    Date2021.03.26 Category질문 By네로 Reply1 Views912 Votes0
    Read More
  15. 개발사는 이글 보시는지 모르겠지만 질문(알수없는 파일와 다크모드 일부 대응 안됨)

    Date2022.03.10 Category질문 Bylilililililililil Reply3 Views911 Votes0
    Read More
  16. 구간 설정 싱크 오류

    Date2022.11.18 Category질문 By랄룰 Reply1 Views910 Votes0
    Read More
  17. 속도 문의드려요

    Date2024.04.18 Category질문 BySTORMEVE Reply2 Views908 Votes0
    Read More
  18. 설치오류

    Date2021.12.09 Category질문 By아카이브 Reply2 Views906 Votes0
    Read More
  19. 병합할때 오디오 페이드인/아웃 가능한가요?

    Date2021.01.19 Category질문 By곰곰123 Reply1 Views905 Votes0
    Read More
  20. 자막 색상 지정하기

    Date2021.10.12 Category질문 By산골소년 Reply1 Views904 Votes0
    Read More
  21. 샤나인코더로 인코팅 후 다빈치 리졸브로 불러들여지지가 않습니다.

    Date2021.12.21 Category질문 By튀밥 Reply2 Views903 Votes0
    Read More
  22. 인텔 퀵싱크 QSV 듀얼 디스플레이

    Date2021.08.31 Category질문 By뿜뿜 Reply1 Views903 Votes0
    Read More
  23. 인터레이스 변환 (P -> i) 관련 질문

    Date2021.04.12 Category질문 Byskyo Reply2 Views902 Votes0
    Read More
  24. 프리셋 질문입니다.

    Date2022.03.21 Category질문 ByR7-572 Reply1 Views902 Votes0
    Read More
  25. mts파일 mp4변환 시 변환된 영상에 원본 촬영일시가 자막처럼 표시되는데요... 왜 이럴까요?

    Date2023.01.18 Category질문 By좋으니까 Reply2 Views902 Votes0
    Read More
  26. 웨이브에서 4:3 으로된 오래된 드라마를 1080P로 받았는데....

    Date2023.07.01 Category질문 BySD인코더 Reply1 Views900 Votes0
    Read More
Board Pagination Prev 1 ... 25 26 27 28 29 30 31 32 33 34 ... 51 Next
/ 51