NOT AN ISSUE : Request for help
See original GitHub issueHi Mdhiggins,
You already helped me to use GPU encoding and then to generate proper HDR files usign GPU conversion. That’s still working fine. Thanks for that.
I’d like you to help me with the subtitles, I can’t figure out how this works and don’t understand what I need to do to achieve my objective. I already tried a lot of option combinations but without any success so I decided to ask you directly.
My objective is to retrieve in my MKV output files, the relevant subtitles that were present in the source file (relevant means ENG + FRA subtitles, whatever the format : SRT or PGS, I don’t mind losing the other files).
Please see below my autoprocess.ini, if you could tell me what I’m doing wrong, I’d appreciate.
[Converter]
ffmpeg = C:\Script\ffmpeg\ffmpegPP.exe
ffprobe = C:\Script\ffmpeg\ffprobePP.exe
threads = 0
hwaccels = cuda, cuvid, dxva2, qsv, d3d11va, vaapi
hwaccel-decoders = h265_nvenc, h264_nvenc, hevc_qsv, h264_cuvid, mjpeg_cuvid, mpeg1_cuvid, mpeg2_cuvid, mpeg4_cuvid, vc1_cuvid, h264_qsv, hevc_vaapi, h264_vaapi
hwdevices = vaapi:/dev/dri/renderD128
hwaccel-output-format = vaapi:vaapi
output-directory =
output-format = mp4
output-extension = mkv
temp-extension =
minimum-size = 0
ignored-extensions = nfo, ds_store
copy-to =
move-to =
delete-original = False
sort-streams = True
process-same-extensions = True
force-convert = False
post-process = False
wait-post-process = False
detailed-progress = True
preopts = -probesize,50000000,-analyzeduration,1000000000,-ss,00:10:00,-t,00:00:30
postopts = -max_muxing_queue_size,9999
bypass-if-copying-all = False
opts-separator = ,
regex-directory-replace = [^\w\-_\. ]
[Permissions]
chmod = 0644
uid = -1
gid = -1
[Metadata]
relocate-moov = True
full-path-guess = True
tag = True
tag-language = fr
download-artwork = poster
sanitize-disposition = True
strip-metadata = False
keep-titles = False
[Video]
codec = h265_nvenc
max-bitrate = 5000
crf = -1
crf-profiles =
preset = 11
codec-parameters =
dynamic-parameters = True
max-width = 0
profile = main10
max-level = 0.0
pix-fmt = p010le
filter =
force-filter = False
bitrate-ratio =
[HDR]
pix-fmt = p010le
space = bt2020nc
transfer = smpte2084
primaries = bt2020
preset =
codec-parameters =
filter =
force-filter = False
codec =
profile =
[Audio]
codec = ac3
languages = eng,fra
default-language =
first-stream-of-language = False
allow-language-relax = True
channel-bitrate = 128
max-bitrate = 0
max-channels = 0
prefer-more-channels = True
default-more-channels = True
filter =
force-filter = False
sample-rates =
copy-original = True
aac-adtstoasc = False
ignore-truehd =
ignored-dispositions = --commentary
unique-dispositions = True
sample-format =
copy-original-before = True
stream-codec-combinations =
[Universal Audio]
codec = aac
channel-bitrate = 128
first-stream-only = True
move-after = True
filter =
force-filter = False
[Subtitle]
codec = srt
codec-image-based = pgs
languages = eng,fra
default-language =
first-stream-of-language = False
encoding = UTF-8
burn-subtitles = False
burn-dispositions =
embed-subs = True
embed-image-subs = True
embed-only-internal-subs = True
filename-dispositions =
ignore-embedded-subs = False
ignored-dispositions = --commentary
unique-dispositions = True
attachment-codec =
With embed-subs = False embed-image-subs = False embed-only-internal-subs = False your script extract the sub from the mkv input but I can’t find a way to reinject them in the output MKV or even simply copy the streams from input to output.
I also struggle with audio streams : I want to keep only True HD and DTS streams and create a universal audio stream. Can you help me with the settings to achieve this ?
Finally could you also explain how to use “stream-codec-combinations =” ?
Thanks
Issue Analytics
- State:
- Created 2 years ago
- Comments:42 (20 by maintainers)
Top GitHub Comments
Similarly might want to remove those options from the HDR section
Fun tip, the ‘debug’ data on your output tells you why it was unable to remux, for example from before
"debug": "video.hdr.hdr-pix-fmt"
Pix-fmt didn’t meet criteria so remuxing was not allowed (from the hdr section)
Looks like you’re in business, guess you’ll have to check the metadata on the output file now