원본 영상이 top first인 인터레이스 영상인데 처음에 디인터레이스 필터를 적용하지 않고 인코딩하여 빗살무늬가 보이는 상태입니다.

그런데 지금 원본 영상이 소실되었고 잘못 인코딩된 영상만 있는 상태입니다... (아래 영상정보 남겨두었습니다.)

 

잘못 인코딩된 영상의 프레임레이트가 30000/1001이고, 다시 인코딩된 영상은 프레임레이트가 60000/1001이 되기를 원해서

다음과 같은 필터를 적용해서 인코딩하였지만 전부 실패했습니다. (물론 인코딩설정에서 프레임레이트를 60000/1001로 지정하였습니다.)

(1) 첫번째 시도

framerate=fps=60000/1001:interp_start=255:interp_end=255,

interlace,

bwdif=1:-1:0

빗살무늬가 사라지지 않았습니다.. (https://ffmpeg.org/ffmpeg-filters.html#toc-interlace 참조했습니다.)

(2) 두번째 시도

framerate=fps=60000/1001:interp_start=255:interp_end=255,

tinterlace=mode=3,

bwdif=1:-1:0

빗살무늬가 사라지지 않은 영상과 검은화면이 반복적으로 나옵니다.. (https://ffmpeg.org/ffmpeg-filters.html#toc-tinterlace 참조했습니다.)

 

아래 잘못인코딩된 영상정보에서 알 수 있듯 29970/1000도 시도해봤는데 안됬습니다..

아무리 찾아보고 공부해봐도 알 수 없어서 이렇게 질문글 올려봅니다.. 

 

1. 올바른 필터 적용방법을 알려주시면 감사하겠습니다...

 

2. Topaz video enhance AI도 갖고 있는데 혹시 이 프로그램으로 해결할 수 있는 방법이 있으면 알려주시면 감사하겠습니다...

 

3. 아래 원본영상 정보 보면 frame rate와 original frame rate가 다른데 둘이 어떤 차이가 있는지 궁금합니다.

 

4. 샤나인코더에서 쓸 수 있는 디인터레이스 필터중에 화질이 제일 좋은 필터가 뭔지 알고계신분 있나요..? yadif, bwdif 같은거요..

현재는 yadif보다는 bwdif가 좋다고 판단해서 bwdif를 쓰고 있고,

QTGMC가 제일 좋은건 알고 있지만 샤나인코더에서 쓸 수 있는것중에 가장 좋은 필터가 무엇인지 궁금해서 질문드립니다.

 

<잘못 인코딩된 영상의 mediainfo>

General
Complete name                            : 
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom)
File size                                : 6.35 GiB
Duration                                 : 1 h 58 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 7 686 kb/s
Encoded date                             : UTC 2019-12-12 03:14:54
Tagged date                              : UTC 2019-12-12 03:14:54

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1 h 58 min
Source duration                          : 1 h 58 min
Bit rate                                 : 7 633 kb/s
Maximum bit rate                         : 13.8 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 29.970 (29970/1000) FPS
Minimum frame rate                       : 0.164 FPS
Maximum frame rate                       : 29.981 FPS
Original frame rate                      : 29.970 (30000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.123
Stream size                              : 6.30 GiB (99%)
Source stream size                       : 6.30 GiB (99%)
Tagged date                              : UTC 2019-12-12 03:16:32
Menus                                    : 3
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC SBR
Format/Info                              : Advanced Audio Codec Low Complexity with Spectral Band Replication
Commercial name                          : HE-AAC
Format settings                          : Explicit
Codec ID                                 : mp4a-40-2
Duration                                 : 1 h 58 min
Source duration                          : 1 h 58 min
Bit rate mode                            : Variable
Bit rate                                 : 58.3 kb/s
Nominal bit rate                         : 61.7 kb/s
Maximum bit rate                         : 85.2 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 23.438 FPS (2048 SPF)
Compression mode                         : Lossy
Stream size                              : 49.3 MiB (1%)
Source stream size                       : 49.3 MiB (1%)
Default                                  : Yes
Alternate group                          : 1
Tagged date                              : UTC 2019-12-12 03:16:32
Menus                                    : 3

Menu
ID                                       : 3
Codec ID                                 : text
Duration                                 : 1 h 52 min
Tagged date                              : UTC 2019-12-12 03:16:32
Bit rate mode                            : CBR
Menu For                                 : 1,2
Source duration                          : 350016
Source_Duration_FirstFrame               : 349974
Source frame count                       : 2
Source stream size                       : 28
Frame count                              : 324096
Stream size                              : 4537344
Bit rate mode                            : Constant

자세한 정보

General
Count                                    : 331
Count of stream of this kind             : 1
Kind of stream                           : General
Kind of stream                           : General
Stream identifier                        : 0
Count of video streams                   : 1
Count of audio streams                   : 1
Count of menu streams                    : 1
Video_Format_List                        : AVC
Video_Format_WithHint_List               : AVC
Codecs Video                             : AVC
Audio_Format_List                        : AAC LC SBR
Audio_Format_WithHint_List               : AAC LC SBR
Audio codecs                             : AAC LC SBR
Menu_Format_List                         : Timed Text
Menu_Format_WithHint_List                : Timed Text
Menu codecs                              : Timed Text
Complete name                            : 
Folder name                              : 
File name extension                      : 
File name                                : 
File extension                           : mp4
Format                                   : MPEG-4
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
Internet media type                      : video/mp4
Codec ID                                 : isom
Codec ID                                 : isom (isom)
Codec ID/Url                             : http://www.apple.com/quicktime/download/standalone.html
CodecID_Compatible                       : isom
File size                                : 6821389830
File size                                : 6.35 GiB
File size                                : 6 GiB
File size                                : 6.4 GiB
File size                                : 6.35 GiB
File size                                : 6.353 GiB
Duration                                 : 7099998
Duration                                 : 1 h 58 min
Duration                                 : 1 h 58 min 19 s 998 ms
Duration                                 : 1 h 58 min
Duration                                 : 01:58:19.998
Duration                                 : 01:58:12;02
Duration                                 : 01:58:19.998 (01:58:12;02)
Overall bit rate mode                    : VBR
Overall bit rate mode                    : Variable
Overall bit rate                         : 7686075
Overall bit rate                         : 7 686 kb/s
Frame rate                               : 29.970
Frame rate                               : 29.970 FPS
Frame count                              : 212548
Stream size                              : 3143880
Stream size                              : 3.00 MiB (0%)
Stream size                              : 3 MiB
Stream size                              : 3.0 MiB
Stream size                              : 3.00 MiB
Stream size                              : 2.998 MiB
Stream size                              : 3.00 MiB (0%)
Proportion of this stream                : 0.00046
HeaderSize                               : 3143777
DataSize                                 : 6818245994
FooterSize                               : 59
IsStreamable                             : Yes
Encoded date                             : UTC 2019-12-12 03:14:54
Tagged date                              : UTC 2019-12-12 03:14:54
File creation date                       : UTC 2022-07-12 19:04:42.677
File creation date (local)               : 2022-07-13 04:04:42.677
File last modification date              : UTC 2022-05-12 19:38:35.367
File last modification date (local)      : 2022-05-13 04:38:35.367

Video
Count                                    : 383
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
StreamOrder                              : 0
ID                                       : 1
ID                                       : 1
Format                                   : AVC
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 / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4
Format settings, Reference frames        : 4 frames
Internet media type                      : video/H264
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 7098085
Duration                                 : 1 h 58 min
Duration                                 : 1 h 58 min 18 s 85 ms
Duration                                 : 1 h 58 min
Duration                                 : 01:58:18.085
Duration                                 : 01:58:12;02
Duration                                 : 01:58:18.085 (01:58:12;02)
Source duration                          : 7098070
Source duration                          : 1 h 58 min
Source duration                          : 1 h 58 min 18 s 70 ms
Source duration                          : 1 h 58 min
Source duration                          : 01:58:18.070
Bit rate                                 : 7632833
Bit rate                                 : 7 633 kb/s
Maximum bit rate                         : 13817208
Maximum bit rate                         : 13.8 Mb/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
Rotation                                 : 0.000
Frame rate mode                          : VFR
Frame rate mode                          : Variable
Frame rate                               : 29.970
Frame rate                               : 29.970 (29970/1000) FPS
FrameRate_Num                            : 29970
FrameRate_Den                            : 1000
Minimum frame rate                       : 0.164
Minimum frame rate                       : 0.164 FPS
Maximum frame rate                       : 29.981
Maximum frame rate                       : 29.981 FPS
Original frame rate                      : 29.970
Original frame rate                      : 29.970 (30000/1001) FPS
FrameRate_Original_Num                   : 30000
FrameRate_Original_Den                   : 1001
Frame count                              : 212548
Source frame count                       : 212548
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Chroma subsampling                       : 4:2:0
Bit depth                                : 8
Bit depth                                : 8 bits
Scan type                                : Progressive
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.123
Stream size                              : 6766530795
Stream size                              : 6.30 GiB (99%)
Stream size                              : 6 GiB
Stream size                              : 6.3 GiB
Stream size                              : 6.30 GiB
Stream size                              : 6.302 GiB
Stream size                              : 6.30 GiB (99%)
Proportion of this stream                : 0.99196
Source stream size                       : 6766530795
Source stream size                       : 6.30 GiB (99%)
Source stream size                       : 6 GiB
Source stream size                       : 6.3 GiB
Source stream size                       : 6.30 GiB
Source stream size                       : 6.302 GiB
Source stream size                       : 6.30 GiB (99%)
Source_StreamSize_Proportion             : 0.99196
Tagged date                              : UTC 2019-12-12 03:16:32
Menus                                    : 3
Source_Delay                             : 6068
Source_Delay_Source                      : Container
Codec configuration box                  : avcC

Audio
Count                                    : 283
Count of stream of this kind             : 1
Kind of stream                           : Audio
Kind of stream                           : Audio
Stream identifier                        : 0
StreamOrder                              : 1
ID                                       : 2
ID                                       : 2
Format                                   : AAC
Format                                   : AAC LC SBR
Format/Info                              : Advanced Audio Codec Low Complexity with Spectral Band Replication
Commercial name                          : HE-AAC
Commercial name                          : HE-AAC
Format settings                          : Explicit
Format settings, SBR                     : Yes (Explicit)
Format settings, SBR                     : Yes (Explicit)
Format settings, PS                      : No (Explicit)
Format settings, PS                      : No (Explicit)
Format_AdditionalFeatures                : LC SBR
Codec ID                                 : mp4a-40-2
Duration                                 : 7099998
Duration                                 : 1 h 58 min
Duration                                 : 1 h 58 min 19 s 998 ms
Duration                                 : 1 h 58 min
Duration                                 : 01:58:19.998
Duration                                 : 02:00:35:01
Duration                                 : 01:58:19.998 (02:00:35:01)
Source duration                          : 7099990
Source duration                          : 1 h 58 min
Source duration                          : 1 h 58 min 19 s 990 ms
Source duration                          : 1 h 58 min
Source duration                          : 01:58:19.990
Bit rate mode                            : VBR
Bit rate mode                            : Variable
Bit rate                                 : 58271
Bit rate                                 : 58.3 kb/s
Nominal bit rate                         : 61696
Nominal bit rate                         : 61.7 kb/s
Maximum bit rate                         : 85200
Maximum bit rate                         : 85.2 kb/s
Channel(s)                               : 2
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Channel positions                        : 2/0/0
Channel layout                           : L R
Samples per frame                        : 2048
Sampling rate                            : 48000
Sampling rate                            : 48.0 kHz
Samples count                            : 340799904
Frame rate                               : 23.438
Frame rate                               : 23.438 FPS (2048 SPF)
Frame count                              : 166406
Source frame count                       : 166406
Compression mode                         : Lossy
Compression mode                         : Lossy
Stream size                              : 51715155
Stream size                              : 49.3 MiB (1%)
Stream size                              : 49 MiB
Stream size                              : 49 MiB
Stream size                              : 49.3 MiB
Stream size                              : 49.32 MiB
Stream size                              : 49.3 MiB (1%)
Proportion of this stream                : 0.00758
Source stream size                       : 51715155
Source stream size                       : 49.3 MiB (1%)
Source stream size                       : 49 MiB
Source stream size                       : 49 MiB
Source stream size                       : 49.3 MiB
Source stream size                       : 49.32 MiB
Source stream size                       : 49.3 MiB (1%)
Source_StreamSize_Proportion             : 0.00758
Default                                  : Yes
Default                                  : Yes
Alternate group                          : 1
Alternate group                          : 1
Tagged date                              : UTC 2019-12-12 03:16:32
Menus                                    : 3
Source_Delay                             : 12
Source_Delay_Source                      : Container

Menu
Count                                    : 104
Count of stream of this kind             : 1
Kind of stream                           : Menu
Kind of stream                           : Menu
Stream identifier                        : 0
StreamOrder                              : 2
ID                                       : 3
ID                                       : 3
Format                                   : Timed Text
Format                                   : Timed Text
Commercial name                          : Timed Text
Codec ID                                 : text
Duration                                 : 6752000
Duration                                 : 1 h 52 min
Duration                                 : 1 h 52 min 32 s 0 ms
Duration                                 : 1 h 52 min
Duration                                 : 01:52:32.000
Duration                                 : 01:52:32.000
Chapters_Pos_Begin                       : 94
Chapters_Pos_End                         : 94
Tagged date                              : UTC 2019-12-12 03:16:32
Bit rate mode                            : CBR
Menu For                                 : 1,2
Source duration                          : 350016
Source_Duration_FirstFrame               : 349974
Source frame count                       : 2
Source stream size                       : 28
Frame count                              : 324096
Stream size                              : 4537344
Bit rate mode                            : Constant

 

Facebook Twitter Pinterest Kakao
  • ?
    JKyle 2022.07.14 15:03

    단순한 문제가 아닙니다.

     

    어떻게 잘못 디인터레이싱됐는지 모르겠지만 빗살무늬가 보인다니(combing) 그냥 weaving했나 보군요. 잔상(ghosting)까지 보인다면 거의 복구 불가능이라고 생각됩니다. (인터레이스 영상을 디인터레이싱하는 여러 가지 방법은 위키백과 참고 (영문))

    단순히 weaving만 돼 있다면 이론상 하나의 프레임을 두 개의 필드로 분할해서 하나로 묶은 다음 다시 제대로 디인터레이싱하면 되겠죠. 그러나 잔상까지 보인다면 필드에도 잔상이 남기 때문에 방법이 없거나 극히 힘듭니다. (IVTC 제대로 안 하면 후자의 경우가 되죠.)

     

    FFmpeg는 작업 베이스가 프레임이 아니라 timestamp기 때문에 이런 작업엔 부적합합니다. 프레임/필드를 작업 베이스로 하는 AviSynth나 VapourSynth 써야 합니다.

     

    AviSynth에서 SeparateRows(2), QTGMC(또는 다른 디인터레이싱 필터)를 차례로 적용하는 방법이 생각나는데, 원본마다 문제가 다르기 때문에 원본을 놓고서 결과를 미리 보면서 하나하나 해결하는 방법밖에 없습니다. 이런 필터들을 어떻게 적용하는지는 AviSynth를 공부해야 하는데 이게 또 FFmpeg보다 더 복잡해서...

     

    AviSynth에서 필터를 적용하는 기초에 대해서는 AviSynth 위키 문서 참고 (영문)

    AviSynth를 이용하는 추천 프로그램들: StaxRipAvsPmod, VirtualDub2 등 (영문)

     

    그리고...

     

    FFmpeg에서 디인터레이싱 필터는 yadif, bwdif 둘 중 적절하게 고르시면 됩니다. 뭐든 정답은 없습니다. 원본 따라 가는 거지.

    Original frame rate와 frame rate는 그냥 FFmpeg에서 작업 중 timestamp에 맞춰서 수정한 거니 신경 안 써도 됩니다.

     

    아, Topaz video enhance AI는 안 써봐서 모르겠군요.

     
     
     
     

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수 추천 수
공지 샤나인코더 6.0.1.7 포터블 버전 배포를 시작하였습니다. Rina 2023.10.30 4570 1
공지 샤나인코더 통합 검색 기능 개선(샤나인코더 우측 상단에 있는 검색창을 사용해 보세요.) Rina 2021.09.30 16126 2
공지 자유게시판에서는 자유롭게 글을 작성할 수 있지만 다음과 같은 내용은 삭제돼요 Rina 2020.03.18 13960 5
공지 일반 [필독] 질문 전에 반드시 읽으세요!!! 3 file JKyle 2019.09.16 29697 6
공지 일반 [알림] 질문 먹튀하지 마시기 바랍니다 => 본문 변경 금지 23 JKyle 2018.10.12 25354 16
» 질문 인터레이스 영상에 디인터레이스 필터를 적용하지 않고 인코딩한 영상을 다시 인코딩할때, 빗살무늬를 없애면서 인코딩하는 방법을 알고 싶습니다. 1 믠수 2022.07.13 1296 0
2810 질문 오류 났습니다 해결방법 알고 싶네요 2 청해형 2022.07.11 962 0
2809 질문 멀티스레드 설정에서 1로 해도 cpu 100%를 찍습니다. 1 tkm 2022.07.09 1368 0
2808 질문 동영상 회전 기능 2 file kkk339 2022.07.09 1145 0
2807 질문 유튜브 인코딩과 동일 or 비슷한 인코딩 설정은 어떻게될까요? 1 뜌삠삠 2022.07.07 1084 0
2806 질문 1280×720 영상을 640x360으로 줄일때 화질유지하는방법 있을까요? 2 akaksk12 2022.07.06 1421 0
2805 질문 NVenc 가 QSV 보다 화질 저하 2 노스톤 2022.07.04 1307 0
2804 질문 인코딩에 최적화된 CPU 찾습니다. 1 여우 2022.07.01 1596 0
2803 질문 h264_nvenc는 bsf h264_metadata 적용이 불가능한가요? 3 turquoise 2022.06.30 637 0
2802 질문 퀄리티 인코딩시 비트레이트가 원본이상으로 안올라가게 가능한가요? 1 영맨 2022.06.27 1123 0
2801 질문 4K HDR 인코딩 질문 2 고스트75 2022.06.26 1181 0
2800 질문 오류 발생 1 홈맽 2022.06.25 1113 0
2799 질문 레터박스 잘라내는 법 2 ntg 2022.06.24 1113 0
2798 일반 잘라내기 설정시 시간 늘려주세요~! 4 알래스카킴 2022.06.23 610 0
2797 질문 mp3를 mp4로 바꾸고 싶습니다. 유튜브 업로드용으로... 6 트리니티블러드 2022.06.22 881 0
2796 일반 [건의] 목록 저장기능이 있으면 좋겠습니다. 2 GNaX 2022.06.20 505 0
2795 질문 음악방송 적절한 값에 대해.. 5 아리까리 2022.06.15 1031 0
2794 일반 GTX 750 그래픽카드로 HEVC NVENC 인코딩 성공 1 file 영대디 2022.06.15 1648 1
2793 질문 인코딩 이후 화면 안개현상 질문드립니다. 1 sau0604 2022.06.14 681 0
2792 질문 (자체해결) 영상에 자막을 입히도록 설정한 뒤 렌더링을 돌리면 속도가 안나옵니다. file Mxp 2022.06.11 876 0
Board Pagination Prev 1 ... 15 16 17 18 19 20 21 22 23 24 ... 160 Next
/ 160