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.

[BUG] Cut is off by a few frames, and audio gets offset
#3
I really appreciate the detailed response, thanks to you I've been able to figure it all out! Upon viewing the Vapoursynth Preview I noticed the total frame count was 4 frames shorter than what VirtualDub/Premiere reports, and after running my source through ffprobe I discovered it had four duplicate frames, each one of them within the range I was testing the encode on :| . After accounting for the removal of those in my audio stream everything works as expected.

Quote:The cut is:
clip = core.std.Trim(clip=clip, first=3746, last=19987)
that is nowhere near:
Quote: Wrote:Input start & end frames 534-2911
=> no clue, how those relate to each other, but the code itself seems correct.

Apologies for the confusion, this job at line 46236 was a separate one used to verify that the error was not isolated to just the 534-2911 portion of the source.

Quote:Looking at the Vapoursynth script (line 73432+):

It does not include any cuts.

This was just me forgetting to input the cut frames, whoops.

ffmpeg -y -threads 8  -i "A:\Users\dusti\Videos\8mm Tapes\RAW\2025-12-20_MtVernon_avsync2.mkv" -map 0:1 -vn -sn -ss 00:00:17.817 -t 00:01:19.312 -ac 1 -ar 48000 -acodec pcm_s16le -f wav -map_metadata -1 -metadata encoding_tool="Hybrid 2025.11.09.1" "C:\Users\dusti\AppData\Local\Temp\iId_3_aid_0_DELAY_167ms_2025-12-22@14_22_58_1510_01.wav"

It appears that for some reason there was a 167ms offset in the source that carried over to the transcode. Getting rid of it fixed this particular issue.

Quote:since selecting != applying and to be sure there is no confusion the selection state is not saved.

Ohhh, got it, guess I should've looked closer at that help panel haha.

Quote:
Quote: Wrote:Override PAR to 8x9 (also doesn't save)
Yes, that is a source specific setting, so it doesn't make sense to save this.

Isn't the purpose of the "Overwrite Input PAR" in the Misc tab to nullify whatever the source says the PAR should be in the Base tab and replace it with whatever value is there? Or am I just misinterpreting its function?

Quote:It's not that it refuses it, it simply doesn't support this or know how to do it. Hybrid assumes that the external audio source matches the video source it should create.

Oh interesting, I had assumed it would treat the external audio the same as the temp wav that's created from the source when cutting or transcoding, good to know! Though in that case what's the point of the "Don't cut external audio" option in the Misc audio settings if Hybrid can't cut it?


Also sorry to go off on a bit of a tangent to the original question, but for each of the other previews on Base, Crop/Resize, Audio, and Chapter I get an error message saying:
Quote:Aborting, since playback is not audio only, but according to mplayer, there is no video present!

I tried troubleshooting it using this thread and testing mplayer itself, but unless I'm mistaken (which is certainly quite likely) it seems that mplayer does in fact recognize that there's a video stream present.

Microsoft Windows [Version 10.0.26200.7462]
(c) Microsoft Corporation. All rights reserved.

C:\Users\dusti>"C:\Program Files\Hybrid\mplayer.exe" -v -msglevel identify=6 -demuxer mkv -vo null -ao null -frames 0 "A:\Users\dusti\Videos\8mm Tapes\RAW\2025-12-20_MtVernon_avsync2.mkv"
'"C:\Program Files\Hybrid\mplayer.exe"' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\dusti>"C:\Program Files\Hybrid\64bit\mplayer.exe" -v -msglevel identify=6 -demuxer mkv -vo null -ao null -frames 0 "A:\Users\dusti\Videos\8mm Tapes\RAW\2025-12-20_MtVernon_avsync2.mkv"
MPlayer SVN-r38359-11.2.0 (C) 2000-2022 MPlayer Team
CPU vendor name: GenuineIntel  max cpuid level: 32
CPU: 12th Gen Intel(R) Core(TM) i9-12900K (Family: 6, Model: 151, Stepping: 2)
extended cpuid-level: 8
extended cache-info: 83914816
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSE3: 1 SSSE3: 1 SSE4: 1 SSE4.2: 1 AVX: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> 'C:/Program Files/Hybrid/64bit/mplayer/codecs.conf'
Reading optional codecs config file C:/Program Files/Hybrid/64bit/mplayer/codecs.conf: No such file or directory
Reading optional codecs config file /local64/etc/mplayer/codecs.conf: No such file or directory
Using built-in default codecs.conf.
init_freetype
Using SSE2 Optimized OnScreenDisplay
get_path('fonts') -> 'C:/Program Files/Hybrid/64bit/mplayer/fonts'
Configuration: --prefix=/local64 --bindir=/local64/bin-video --extra-cflags=-fpermissive -DPTW32_STATIC_LIB -O3 -DMODPLUG_STATIC --extra-libs=-llzma -liconv -lws2_32 -lpthread -lwinpthread -lpng -lwinmm -LI:/media-autobuild_suite/local64/lib -lilbc -lstdc++           --extra-ldflags=-Wl,--allow-multiple-definition --enable-static --enable-runtime-cpudetection --disable-gif --disable-cddb --disable-faac --with-dvdread-config=/mingw64/bin/pkgconf --keep-system-libs --keep-system-cflags --static dvdread --with-freetype-config=/mingw64/bin/pkgconf --keep-system-libs --keep-system-cflags --static freetype2 --with-dvdnav-config=/mingw64/bin/pkgconf --keep-system-libs --keep-system-cflags --static dvdnav
CommandLine: '-v' '-msglevel' 'identify=6' '-demuxer' 'mkv' '-vo' 'null' '-ao' 'null' '-frames' '0' 'A:\Users\dusti\Videos\8mm Tapes\RAW\2025-12-20_MtVernon_avsync2.mkv'
Using Windows native timing
get_path('input.conf') -> 'C:/Program Files/Hybrid/64bit/mplayer/input.conf'
Parsing input config file C:/Program Files/Hybrid/64bit/mplayer/input.conf
Input config file C:/Program Files/Hybrid/64bit/mplayer/input.conf parsed: 92 binds
get_path('2025-12-20_MtVernon_avsync2.mkv.conf') -> 'C:/Program Files/Hybrid/64bit/mplayer/2025-12-20_MtVernon_avsync2.mkv.conf'

Playing A:\Users\dusti\Videos\8mm Tapes\RAW\2025-12-20_MtVernon_avsync2.mkv.
get_path('sub/') -> 'C:/Program Files/Hybrid/64bit/mplayer/sub/'
WINSOCK2 init: 0
WINSOCK2 init: 0
[file] File size is 69335266191 bytes
STREAM: [file] A:\Users\dusti\Videos\8mm Tapes\RAW\2025-12-20_MtVernon_avsync2.mkv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
[mkv] Found the head...
[mkv] + a segment...
[mkv] /---- [ parsing seek head ] ---------
[mkv] /---- [ parsing cues ] -----------
[mkv] \---- [ parsing cues ] -----------
[mkv] \---- [ parsing seek head ] ---------
[mkv] |+ segment information...
[mkv] | + timecode scale: 1000000
[mkv] | + duration: 7440.746s
[mkv] |+ segment tracks...
[mkv] | + a track...
[mkv] |  + Track number: 1
[mkv] |  + Track type: Video
[mkv] |  + Language: und
[mkv] |  + Codec ID: V_MS/VFW/FOURCC
[mkv] |  + CodecPrivate, length 232
[mkv] |  + Default duration: 33.367ms ( = 29.970 fps)
[mkv] |  + Video track
[mkv] |   + Pixel width: 720
[mkv] |   + Pixel height: 480
[mkv] |   + Display width: 720
[mkv] |   + Display height: 480
[mkv] | + a track...
[mkv] |  + Track number: 2
[mkv] |  + Track type: Audio
[mkv] |  + Language: und
[mkv] |  + Codec ID: A_PCM/INT/LIT
[mkv] |  + Default duration: 40.000ms ( = 25.000 fps)
[mkv] |  + Audio track
[mkv] |   + Sampling frequency: 48000.000000
[mkv] |   + Bit depth: 16
[mkv] |+ found cluster, headers are parsed completely :)
==> Found video stream: 1
ID_VIDEO_ID=0
[mkv] Aspect: 0.000000
[mkv] Track ID 1: video (V_MS/VFW/FOURCC), -vid 0
==> Found audio stream: 2
ID_AUDIO_ID=0
[mkv] Track ID 2: audio (A_PCM/INT/LIT), -aid 0, -alang und
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [HYMT]  720x480  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:31  fourcc:0x544D5948  size:720x480  fps:29.970  ftime:=0.0334
==========================================================================
Cannot find codec matching selected -vo and video format 0x544D5948.
==========================================================================
Load subtitles in A:\Users\dusti\Videos\8mm Tapes\RAW\
get_path('sub/') -> 'C:/Program Files/Hybrid/64bit/mplayer/sub/'
ID_FILENAME=A:\Users\dusti\Videos\8mm Tapes\RAW\2025-12-20_MtVernon_avsync2.mkv
ID_DEMUXER=mkv
ID_AUDIO_FORMAT=1
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=1
ID_START_TIME=0.17
ID_LENGTH=7440.75
ID_SEEKABLE=1
ID_CHAPTERS=0
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 131072 = 133120 bytes for output buffer.
AUDIO: 48000 Hz, 1 ch, s16le, 768.0 kbit/100.00% (ratio: 96000->96000)
ID_AUDIO_BITRATE=768000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=1
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Building audio filter chain for 48000Hz/1ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/1ch/s16le
[dummy] Was reinitialized: 48000Hz/1ch/s16le
Trying preferred audio driver 'null', options '[none]'
AO: [null] 48000Hz 1ch s16le (2 bytes per sample)
AO: Description: Null audio output
AO: Author: Tobias Diedrich <ranma+mplayer@tdiedrich.de>
Building audio filter chain for 48000Hz/1ch/s16le -> 48000Hz/1ch/s16le...
[dummy] Was reinitialized: 48000Hz/1ch/s16le
[dummy] Was reinitialized: 48000Hz/1ch/s16le
ID_AUDIO_CODEC=pcm
Video: no video
Freeing 6 unused video chunks.
Starting playback...

Uninit audio filters...
[libaf] Removing filter dummy
Uninit audio: pcm
WINSOCK2 uninit

Exiting... (End of file)
ID_EXIT=EOF

C:\Users\dusti>

Is there an additional codec I need to install for this or something? This technically isn't necessary for my current workflow but I suppose it'd be nice to have working. Let me know if you need another debug file for that.

Thanks again Selur, Happy Holidays!
Reply


Messages In This Thread
RE: Cut is off by a few frames, and audio gets offset - by dkpanda - 27.12.2025, 00:38

Forum Jump:


Users browsing this thread: 1 Guest(s)