두개의 자막 파일을 갖는 동영상 파일의 용량을 줄이되, 모든 자막은 그대로 유지하고 싶습니다.
하지만 제가 보기에는 내부 자막중 하나만 선택할 수 있는거로 보여서 질문드립니다.
동영상에 내장된 모든 자막을 모두 선택하여 다시 인코딩 하는게 가능한가요?
현재 자막 하나만 선택하는건 잘 됩니다. 하지만 모든 자막을 원합니다. 감사합니당
==== 시도해 본 것 ====
매게변수에 다음을 추가해봤으나 작동하지 않았습니다.
-metadata:s:s:4 language=kor -metadata:s:s:5 language=kor
샤나인코더 사용 팁 에 올라온 오디오 / 내장된 자막 / 비디오 스트림 복사 및 언어설정 방법 의 설정파일도 사용해 봤으나
역시 선택한 하나의 자막 파일만 함께 인코딩 됩니다.
==== 매게변수 ====
(mkv 포맷, hevc_nvenc 외에 h.264 코덱 사용해봤으나 결과는 동일했습니다)
-f mp4
-c:v hevc_nvenc -preset slow -b:v 2000k
-c:a copy
-shanacc -shanarcmode const -profile:v main -level auto
===== 미디어 인포 =====
General
Unique ID : ####
Complete name : ####.mp4
Format : Matroska
Format version : Version 4
File size : 3.26 GiB
Duration : 1 h 34 min
Overall bit rate : 4 942 kb/s
Encoded date : UTC 2020-03-01 14:29:56
Writing application : mkvmerge v43.0.0 ('The Quartermaster') 64-bit
Writing library : libebml v1.3.10 + libmatroska v1.5.2
FileExtension_Invalid : mkv mk3d mka mks
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 3 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 3 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 h 34 min
Bit rate : 3 020 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 : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.061
Stream size : 1.99 GiB (61%)
Default : Yes
Forced : No
Audio #1
ID : 2
Format : E-AC-3
Format/Info : Enhanced AC-3
Commercial name : Dolby Digital Plus
Codec ID : A_EAC3
Duration : 1 h 34 min
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : -83 ms
Stream size : 433 MiB (13%)
Language : Korean
Service kind : Complete Main
Default : Yes
Forced : No
Audio #2
ID : 3
Format : E-AC-3
Format/Info : Enhanced AC-3
Commercial name : Dolby Digital Plus
Codec ID : A_EAC3
Duration : 1 h 34 min
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : -83 ms
Stream size : 433 MiB (13%)
Language : Japanese
Service kind : Complete Main
Default : No
Forced : No
Audio #3
ID : 4
Format : E-AC-3
Format/Info : Enhanced AC-3
Commercial name : Dolby Digital Plus
Codec ID : A_EAC3
Duration : 1 h 34 min
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : -83 ms
Stream size : 433 MiB (13%)
Language : English
Service kind : Complete Main
Default : No
Forced : No
Text #1
ID : 5
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 32 min
Bit rate : 1 b/s
Count of elements : 36
Stream size : 1.14 KiB (0%)
Title : 더빙자막
Language : Korean
Default : Yes
Forced : No
Text #2
ID : 6
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 1 h 33 min
Bit rate : 25 b/s
Count of elements : 700
Stream size : 17.5 KiB (0%)
Title : 전체자막
Language : Korean
Default : No
Forced : No
자세한 정보
General
Count : 332
Count of stream of this kind : 1
Kind of stream : General
Kind of stream : General
Stream identifier : 0
Unique ID : 77905545277673939023133128898499734320
Unique ID : 77905545277673939023133128898499734320 (0x3A9C0FEF82FFF61D2345736A48466B30)
Count of video streams : 1
Count of audio streams : 3
Count of text streams : 2
Video_Format_List : AVC
Video_Format_WithHint_List : AVC
Codecs Video : AVC
Audio_Format_List : E-AC-3 / E-AC-3 / E-AC-3
Audio_Format_WithHint_List : E-AC-3 / E-AC-3 / E-AC-3
Audio codecs : E-AC-3 / E-AC-3 / E-AC-3
Audio_Language_List : Korean / Japanese / English
Text_Format_List : UTF-8 / UTF-8
Text_Format_WithHint_List : UTF-8 / UTF-8
Text codecs : UTF-8 / UTF-8
Text_Language_List : Korean / Korean
Complete name : ####.mp4
Folder name : ####
File name extension : ####.mp4
File name : ####.Nom
File extension : mp4
Format : Matroska
Format : Matroska
Format/Url : https://matroska.org/downloads/windows.html
Format/Extensions usually used : mkv mk3d mka mks
Commercial name : Matroska
Format version : Version 4
File size : 3502028648
File size : 3.26 GiB
File size : 3 GiB
File size : 3.3 GiB
File size : 3.26 GiB
File size : 3.262 GiB
Duration : 5668955
Duration : 1 h 34 min
Duration : 1 h 34 min 28 s 955 ms
Duration : 1 h 34 min
Duration : 01:34:28.955
Duration : 01:34:30;07
Duration : 01:34:28.955 (01:34:30;07)
Overall bit rate : 4942045
Overall bit rate : 4 942 kb/s
Frame rate : 23.976
Frame rate : 23.976 FPS
Frame count : 135917
Stream size : 1713714
Stream size : 1.63 MiB (0%)
Stream size : 2 MiB
Stream size : 1.6 MiB
Stream size : 1.63 MiB
Stream size : 1.634 MiB
Stream size : 1.63 MiB (0%)
Proportion of this stream : 0.00049
IsStreamable : Yes
Encoded date : UTC 2020-03-01 14:29:56
File creation date : UTC 2020-04-17 20:34:32.352
File creation date (local) : 2020-04-18 05:34:32.352
File last modification date : UTC 2020-04-17 20:39:58.738
File last modification date (local) : 2020-04-18 05:39:58.738
Writing application : mkvmerge v43.0.0 ('The Quartermaster') 64-bit
Writing application : mkvmerge v43.0.0 ('The Quartermaster') 64-bit
Writing library : libebml v1.3.10 + libmatroska v1.5.2
Writing library : libebml v1.3.10 + libmatroska v1.5.2
FileExtension_Invalid : mkv mk3d mka mks
Video
Count : 377
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 : 18180395646390606147
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 / 3 Ref Frames
Format settings, CABAC : Yes
Format settings, CABAC : Yes
Format settings, Reference frames : 3
Format settings, Reference frames : 3 frames
Internet media type : video/H264
Codec ID : V_MPEG4/ISO/AVC
Codec ID/Url : http://ffdshow-tryout.sourceforge.net/
Duration : 5668872.000000
Duration : 1 h 34 min
Duration : 1 h 34 min 28 s 872 ms
Duration : 1 h 34 min
Duration : 01:34:28.872
Duration : 01:34:30;07
Duration : 01:34:28.872 (01:34:30;07)
Bit rate : 3019652
Bit rate : 3 020 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
FrameRate_Mode_Original : VFR
Frame rate : 23.976
Frame rate : 23.976 (24000/1001) FPS
FrameRate_Num : 24000
FrameRate_Den : 1001
Frame count : 135917
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.061
Delay : 83
Delay : 83 ms
Delay : 83 ms
Delay : 83 ms
Delay : 00:00:00.083
Delay, origin : Container
Delay, origin : Container
Stream size : 2139753132
Stream size : 1.99 GiB (61%)
Stream size : 2 GiB
Stream size : 2.0 GiB
Stream size : 1.99 GiB
Stream size : 1.993 GiB
Stream size : 1.99 GiB (61%)
Proportion of this stream : 0.61100
Default : Yes
Default : Yes
Forced : No
Forced : No
Audio #1
Count : 301
Count of stream of this kind : 3
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 0
Stream identifier : 1
StreamOrder : 1
ID : 2
ID : 2
Unique ID : 7877227616681468968
Format : E-AC-3
Format : E-AC-3
Format/Info : Enhanced AC-3
Format/Url : https://en.wikipedia.org/wiki/Dolby_Digital_Plus
Commercial name : Dolby Digital Plus
Commercial name : Dolby Digital Plus
Format settings, Endianness : Big
Internet media type : audio/eac3
Codec ID : A_EAC3
Duration : 5668928.000000
Duration : 1 h 34 min
Duration : 1 h 34 min 28 s 928 ms
Duration : 1 h 34 min
Duration : 01:34:28.928
Duration : 01:35:14:20
Duration : 01:34:28.928 (01:35:14:20)
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 640000
Bit rate : 640 kb/s
Channel(s) : 6
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Channel positions : 3/2/0.1
Channel layout : L R C LFE Ls Rs
Samples per frame : 1536
Sampling rate : 48000
Sampling rate : 48.0 kHz
Samples count : 272108544
Frame rate : 31.250
Frame rate : 31.250 FPS (1536 SPF)
Frame count : 177154
Compression mode : Lossy
Compression mode : Lossy
Delay : 0
Delay : 00:00:00.000
Delay, origin : Container
Delay, origin : Container
Delay relative to video : -83
Delay relative to video : -83 ms
Delay relative to video : -83 ms
Delay relative to video : -83 ms
Delay relative to video : -00:00:00.083
Stream size : 453514240
Stream size : 433 MiB (13%)
Stream size : 433 MiB
Stream size : 433 MiB
Stream size : 433 MiB
Stream size : 432.5 MiB
Stream size : 433 MiB (13%)
Proportion of this stream : 0.12950
Language : ko
Language : Korean
Language : Korean
Language : ko
Language : kor
Language : ko
Service kind : CM
Service kind : Complete Main
Default : Yes
Default : Yes
Forced : No
Forced : No
bsid : 16
dialnorm : -27
dialnorm : -27 dB
compr : -0.28
compr : -0.28 dB
acmod : 7
lfeon : 1
dialnorm_Average : -27
dialnorm_Average : -27 dB
dialnorm_Minimum : -27
dialnorm_Minimum : -27 dB
dialnorm_Maximum : -27
dialnorm_Maximum : -27 dB
dialnorm_Count : 819
compr_Average : 3.95
compr_Average : 3.95 dB
compr_Minimum : 0.53
compr_Minimum : 0.53 dB
compr_Maximum : 5.74
compr_Maximum : 5.74 dB
compr_Count : 789
Audio #2
Count : 301
Count of stream of this kind : 3
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 1
Stream identifier : 2
StreamOrder : 2
ID : 3
ID : 3
Unique ID : 5855258309851462151
Format : E-AC-3
Format : E-AC-3
Format/Info : Enhanced AC-3
Format/Url : https://en.wikipedia.org/wiki/Dolby_Digital_Plus
Commercial name : Dolby Digital Plus
Commercial name : Dolby Digital Plus
Format settings, Endianness : Big
Internet media type : audio/eac3
Codec ID : A_EAC3
Duration : 5668928.000000
Duration : 1 h 34 min
Duration : 1 h 34 min 28 s 928 ms
Duration : 1 h 34 min
Duration : 01:34:28.928
Duration : 01:35:14:20
Duration : 01:34:28.928 (01:35:14:20)
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 640000
Bit rate : 640 kb/s
Channel(s) : 6
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Channel positions : 3/2/0.1
Channel layout : L R C LFE Ls Rs
Samples per frame : 1536
Sampling rate : 48000
Sampling rate : 48.0 kHz
Samples count : 272108544
Frame rate : 31.250
Frame rate : 31.250 FPS (1536 SPF)
Frame count : 177154
Compression mode : Lossy
Compression mode : Lossy
Delay : 0
Delay : 00:00:00.000
Delay, origin : Container
Delay, origin : Container
Delay relative to video : -83
Delay relative to video : -83 ms
Delay relative to video : -83 ms
Delay relative to video : -83 ms
Delay relative to video : -00:00:00.083
Stream size : 453514240
Stream size : 433 MiB (13%)
Stream size : 433 MiB
Stream size : 433 MiB
Stream size : 433 MiB
Stream size : 432.5 MiB
Stream size : 433 MiB (13%)
Proportion of this stream : 0.12950
Language : ja
Language : Japanese
Language : Japanese
Language : ja
Language : jpn
Language : ja
Service kind : CM
Service kind : Complete Main
Default : No
Default : No
Forced : No
Forced : No
bsid : 16
dialnorm : -28
dialnorm : -28 dB
compr : -0.28
compr : -0.28 dB
acmod : 7
lfeon : 1
dialnorm_Average : -28
dialnorm_Average : -28 dB
dialnorm_Minimum : -28
dialnorm_Minimum : -28 dB
dialnorm_Maximum : -28
dialnorm_Maximum : -28 dB
dialnorm_Count : 819
compr_Average : 3.64
compr_Average : 3.64 dB
compr_Minimum : 0.53
compr_Minimum : 0.53 dB
compr_Maximum : 5.46
compr_Maximum : 5.46 dB
compr_Count : 780
Audio #3
Count : 301
Count of stream of this kind : 3
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 2
Stream identifier : 3
StreamOrder : 3
ID : 4
ID : 4
Unique ID : 2331206550480515554
Format : E-AC-3
Format : E-AC-3
Format/Info : Enhanced AC-3
Format/Url : https://en.wikipedia.org/wiki/Dolby_Digital_Plus
Commercial name : Dolby Digital Plus
Commercial name : Dolby Digital Plus
Format settings, Endianness : Big
Internet media type : audio/eac3
Codec ID : A_EAC3
Duration : 5668928.000000
Duration : 1 h 34 min
Duration : 1 h 34 min 28 s 928 ms
Duration : 1 h 34 min
Duration : 01:34:28.928
Duration : 01:35:14:20
Duration : 01:34:28.928 (01:35:14:20)
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 640000
Bit rate : 640 kb/s
Channel(s) : 6
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Channel positions : 3/2/0.1
Channel layout : L R C LFE Ls Rs
Samples per frame : 1536
Sampling rate : 48000
Sampling rate : 48.0 kHz
Samples count : 272108544
Frame rate : 31.250
Frame rate : 31.250 FPS (1536 SPF)
Frame count : 177154
Compression mode : Lossy
Compression mode : Lossy
Delay : 0
Delay : 00:00:00.000
Delay, origin : Container
Delay, origin : Container
Delay relative to video : -83
Delay relative to video : -83 ms
Delay relative to video : -83 ms
Delay relative to video : -83 ms
Delay relative to video : -00:00:00.083
Stream size : 453514240
Stream size : 433 MiB (13%)
Stream size : 433 MiB
Stream size : 433 MiB
Stream size : 433 MiB
Stream size : 432.5 MiB
Stream size : 433 MiB (13%)
Proportion of this stream : 0.12950
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Service kind : CM
Service kind : Complete Main
Default : No
Default : No
Forced : No
Forced : No
bsid : 16
dialnorm : -31
dialnorm : -31 dB
compr : -0.28
compr : -0.28 dB
acmod : 7
lfeon : 1
dialnorm_Average : -31
dialnorm_Average : -31 dB
dialnorm_Minimum : -31
dialnorm_Minimum : -31 dB
dialnorm_Maximum : -31
dialnorm_Maximum : -31 dB
dialnorm_Count : 815
compr_Average : 4.29
compr_Average : 4.29 dB
compr_Minimum : -0.56
compr_Minimum : -0.56 dB
compr_Maximum : 5.46
compr_Maximum : 5.46 dB
compr_Count : 773
Text #1
Count : 238
Count of stream of this kind : 2
Kind of stream : Text
Kind of stream : Text
Stream identifier : 0
Stream identifier : 1
StreamOrder : 4
ID : 5
ID : 5
Unique ID : 10806251783090584154
Format : UTF-8
Format : UTF-8
Commercial name : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 5575528.000000
Duration : 1 h 32 min
Duration : 1 h 32 min 55 s 528 ms
Duration : 1 h 32 min
Duration : 01:32:55.528
Duration : 01:32:55.528
Bit rate : 1
Bit rate : 1 b/s
Frame rate : 0.006
Frame rate : 0.006 FPS
Frame count : 36
Count of elements : 36
Stream size : 1167
Stream size : 1.14 KiB (0%)
Stream size : 1 KiB
Stream size : 1.1 KiB
Stream size : 1.14 KiB
Stream size : 1.140 KiB
Stream size : 1.14 KiB (0%)
Proportion of this stream : 0.00000
Title : 더빙자막
Language : ko
Language : Korean
Language : Korean
Language : ko
Language : kor
Language : ko
Default : Yes
Default : Yes
Forced : No
Forced : No
Text #2
Count : 238
Count of stream of this kind : 2
Kind of stream : Text
Kind of stream : Text
Stream identifier : 1
Stream identifier : 2
StreamOrder : 5
ID : 6
ID : 6
Unique ID : 16671748808141158220
Format : UTF-8
Format : UTF-8
Commercial name : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 5624702.000000
Duration : 1 h 33 min
Duration : 1 h 33 min 44 s 702 ms
Duration : 1 h 33 min
Duration : 01:33:44.702
Duration : 01:33:44.702
Bit rate : 25
Bit rate : 25 b/s
Frame rate : 0.124
Frame rate : 0.124 FPS
Frame count : 700
Count of elements : 700
Stream size : 17915
Stream size : 17.5 KiB (0%)
Stream size : 17 KiB
Stream size : 17 KiB
Stream size : 17.5 KiB
Stream size : 17.50 KiB
Stream size : 17.5 KiB (0%)
Proportion of this stream : 0.00001
Title : 전체자막
Language : ko
Language : Korean
Language : Korean
Language : ko
Language : kor
Language : ko
Default : No
Default : No
Forced : No
Forced : No
MediaInfoLib - v19.09
샤나인코더로 자막 선택하지 않고 비디오/오디오만 재인코딩
⇒ MKVToolNix로 원본과 샤나인코더로 재인코딩한 파일을 둘 다 불러와서 원본의 비디오/오디오만 재인코딩한 비디오/오디오로 바꿔치기 후 리먹싱
이렇게 하시면 됩니다.