question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NOT AN ISSUE : Request for help

See original GitHub issue

Hi 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:closed
  • Created 2 years ago
  • Comments:42 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
mdhigginscommented, Dec 4, 2021

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)

1reaction
mdhigginscommented, Dec 4, 2021

Looks like you’re in business, guess you’ll have to check the metadata on the output file now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why asking for help is so hard and how to get better at it
Asking for help often makes people feel uneasy because it requires surrendering control to someone else.
Read more >
How to ask for help | Psyche Guides
Think of the ask as a polite request you are making, not a demand on the person. They might choose to say no,...
Read more >
How to write a support request that won't get ignored
If you've wondered how to write a support request that won't get ignored, here are three ways to make sure it gets looked...
Read more >
5 Ways to Get Better at Asking for Help
Why? First, asking for help is often perceived as a sign of weakness or ignorance, implying that someone can't get their work done...
Read more >
How to Ask for Help Over Email—and Actually Get It
Make sure your email requests never go unanswered again with these tips and examples.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found