This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[HELP] Error adding subtitle with speed change
#14
(25.11.2018, 07:38)Selur Wrote: Settings seem to be fine.
When stretching idx/sub-subtile Hybrid only takes the idx files and copies it's content and adjusts the time codes, in your case by a factor of 25/23.976=1.0240.., saves a new subtitle file and copies the sub file.
Background info: the idx file contains the location of the subtitles inside the sub file and the time code when to show it, the sub file contains the subtitles.

Looking at the calls, Hybrid uses:
Audio extraction:
"C:\PROGRA~1\Hybrid\64bit\MKVEXT~1.EXE" tracks "D:\Uncompressed Rips\Scrubs\Season 4\Scrubs - S04E02 - My Office.mkv" 1:"D:\Compressed Rips\Temp\iId_1_aid_0_lang_en_12_32_27_6710_01.ac3"
Audio filtering and reencoding:
"C:\PROGRA~1\Hybrid\64bit\ffmpeg.exe" -y -threads 8 -loglevel fatal -i "D:\Compressed Rips\Temp\iId_1_aid_0_lang_en_12_32_27_6710_01.ac3" -ac 2 -ar 48000 -f sox | "C:\PROGRA~1\Hybrid\64bit\sox.exe" --multi-threaded  --temp "D:\Compressed Rips\Temp\12_32_27_671002" --buffer 524288 -S -t sox - -b 32 -t sox - speed 0.95904000 | "C:\PROGRA~1\Hybrid\64bit\ffmpeg.exe" -y -threads 8 -f sox -i - -b:a 192k -ac 2 -ar 48000 -channel_layout stereo "D:\Compressed Rips\Temp\iId_1_aid_0_lang_en_12_32_27_6710_02.ac3"

Video decoding and encoding call:
"C:\PROGRA~1\Hybrid\64bit\ffmpeg.exe" -y -loglevel fatal -threads 8 -i "D:\Uncompressed Rips\Scrubs\Season 4\Scrubs - S04E02 - My Office.mkv" -map 0:0 -an -sn   -vf zscale=rangein=tv:range=tv -pix_fmt yuv420p -vsync 0  -f rawvideo - | "C:\PROGRA~1\Hybrid\64bit\x264.exe" --crf 20.00 --profile high --level 4.1 --direct auto --sync-lookahead 21 --qcomp 0.5 --no-mbtree --partitions i4x4,p8x8,b8x8 --no-fast-pskip --subme 5 --trellis 0 --weightp 1 --aq-mode 0 --vbv-maxrate 62500 --vbv-bufsize 78125 --sar 16:15 --qpfile "D:\Compressed Rips\Temp\Scrubs - S04E02 - My Office_12_32_27_6710_07.qp" --non-deterministic --range tv --colormatrix bt470bg --demuxer raw --input-res 720x576 --input-csp i420 --input-range tv --input-depth 8 --fps 24000/1001 --output-depth 8 --output "D:\Compressed Rips\Temp\12_32_27_6710_08.264" -

I see that sox uses a factor of 0.95904000 (23.976/25) instead of 1.0240.. (25/23.976) that the subtitle stretching is using. So either one of them seems to be mixed up.

Is it only the subtitles or does the audio also go out-of-synch with the video?
If one of them is correct I can adjust the other to use the same stretch factor. Smile

Cu Selur

The audio is perfect, confirming it is only the subtitles that go out of sync.
Reply


Messages In This Thread
RE: Error adding subtitle - by Selur - 24.11.2018, 07:38
RE: Error adding subtitle - by StoneCold - 24.11.2018, 08:10
RE: Error adding subtitle - by Selur - 24.11.2018, 08:46
RE: Error adding subtitle - by StoneCold - 24.11.2018, 08:58
RE: Error adding subtitle - by Selur - 24.11.2018, 09:26
RE: Error adding subtitle - by StoneCold - 24.11.2018, 10:29
RE: Error adding subtitle - by Selur - 24.11.2018, 10:31
RE: Error adding subtitle - by Selur - 24.11.2018, 13:10
RE: Error adding subtitle - by StoneCold - 24.11.2018, 14:02
RE: Error adding subtitle - by Selur - 24.11.2018, 14:06
RE: Error adding subtitle - by StoneCold - 25.11.2018, 03:44
RE: Error adding subtitle with speed change - by StoneCold - 25.11.2018, 07:52

Forum Jump:


Users browsing this thread: 2 Guest(s)