Log in

View Full Version : vspreview: Wrong Length in Time, part 2


jay123210599
21st December 2024, 00:53
Continuing from this post (https://forum.doom9.org/showthread.php?p=2007448#post2007448), I am having the same problem with another video. I used all source filters and none of them worked. I tried the filters with other videos and they worked fine. I remuxed the video multiple times and it still didn't work.

When I opened it in vdub2, the frame count was 41475 frames at 23 minutes and 3 seconds. It was two audio files, both lasting at the same duration. What should I do to fix this?

Here is the full mediainfo report of my video:
General
Unique ID : 237042263744679974646615624743621605992 (0xB254ADEC0D60B9A2993D2C02C099BA68)
Format : Matroska
Format version : Version 1
File size : 340 MiB
Duration : 23 min 3 s
Overall bit rate : 2 063 kb/s
Frame rate : 24.000 FPS
Encoded date : 2006-08-05 04:58:21 UTC
Writing application : mkvmerge v1.6.5 ('Watcher Of The Skies') built on Dec 7 2005 18:53:53
Writing library : libebml v0.7.6 + libmatroska v0.8.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L5.1
Format settings : CABAC / 11 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 11 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 23 min 3 s
Bit rate : 1 574 kb/s
Nominal bit rate : 1 974 kb/s
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 24.000 FPS
Original frame rate : 29.970 (30000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.214
Stream size : 260 MiB (76%)
Writing library : x264 core 49 svn-546M
Encoding settings : cabac=1 / ref=8 / deblock=1:-6:-6 / analyse=0x3:0x133 / me=umh / subme=6 / brdo=1 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / chroma_qp_offset=0 / slices=1 / nr=0 / decimate=1 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / bime=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=1974 / ratetol=1.0 / rceq='blurCplx^(1-qComp)' / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30
Default : Yes
Forced : No

Audio #1
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 23 min 3 s
Bit rate mode : Constant
Bit rate : 224 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 37.0 MiB (11%)
Language : English
Service kind : Complete Main
Default : Yes
Forced : No
Dialog Normalization : -27 dB
compr : -0.28 dB
dialnorm_Average : -27 dB
dialnorm_Minimum : -27 dB
dialnorm_Maximum : -27 dB

Audio #2
ID : 3
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 23 min 3 s
Bit rate mode : Constant
Bit rate : 224 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 37.0 MiB (11%)
Language : Japanese
Service kind : Complete Main
Default : No
Forced : No
Dialog Normalization : -27 dB
compr : -0.28 dB
dialnorm_Average : -27 dB
dialnorm_Minimum : -27 dB
dialnorm_Maximum : -27 dB

Text #1
ID : 4
Format : VobSub
Muxing mode : zlib
Codec ID : S_VOBSUB
Codec ID/Info : Picture based subtitle format used on DVDs
Title : English Audio
Language : English
Default : Yes
Forced : No

Text #2
ID : 5
Format : VobSub
Muxing mode : zlib
Codec ID : S_VOBSUB
Codec ID/Info : Picture based subtitle format used on DVDs
Title : Japanese Audio
Language : Japanese
Default : No
Forced : No

poisondeathray
21st December 2024, 01:58
How many frames and fps do all the source filters say ?

41475 frames at 30000/1001 fps is 23 minutes 3 seconds
41475 frames at 24/1 fps is 28 minutes 48 seconds

If the framecount is the same 41475 for the source filters, use AssumeFPS to keep the same frames but change the fps and thus duration
http://www.vapoursynth.com/doc/functions/video/assumefps.html

jay123210599
21st December 2024, 17:05
How many frames and fps do all the source filters say ?

41475 frames at 30000/1001 fps is 23 minutes 3 seconds
41475 frames at 24/1 fps is 28 minutes 48 seconds

If the framecount is the same 41475 for the source filters, use AssumeFPS to keep the same frames but change the fps and thus duration
http://www.vapoursynth.com/doc/functions/video/assumefps.html

core.ffms2.Source = 33765 frames at 200000/8197 fps
core.bs.VideoSource = 33765 frames at 16345000/673663 fps
core.lsmas.LWLibavSource = 33765 frames at 2997/100 fps

poisondeathray
21st December 2024, 17:35
core.ffms2.Source = 33765 frames at 200000/8197 fps
core.bs.VideoSource = 33765 frames at 16345000/673663 fps
core.lsmas.LWLibavSource = 33765 frames at 2997/100 fps

Does it play in sync in a media player ?

Maybe it has VFR timestamps and mediainfo is not reading it properly

ffms2 looks like it would be the closest. You can assume any FPS

33765 frames :
@ 24/1 fps CFR = 23:26.833
@ 24000/1001 fps CFR = 23:28.240
@ 200000/8197 fps CFR (~24.399) = 23:03.817
@ 16345000/673663 fps CFR (~24.263) = 23:11.591
@ 2997/100 fps CFR = 18:46.593

jay123210599
21st December 2024, 19:17
Does it play in sync in a media player ?

Maybe it has VFR timestamps and mediainfo is not reading it properly

ffms2 looks like it would be the closest. You can assume any FPS

33765 frames :
@ 24/1 fps CFR = 23:26.833
@ 24000/1001 fps CFR = 23:28.240
@ 200000/8197 fps CFR (~24.399) = 23:03.817
@ 16345000/673663 fps CFR (~24.263) = 23:11.591
@ 2997/100 fps CFR = 18:46.593

media player? And what are VFR timestamps?

poisondeathray
21st December 2024, 19:46
media player?



Play the video in a video player such as VLC, MPCHC, potplayer, mpv etc...


And what are VFR timestamps?

Variable Frame Rate time stamps . ie. not CFR, not Constant Frame Rate

jay123210599
21st December 2024, 21:05
Play the video in a video player such as VLC, MPCHC, potplayer, mpv etc...



Variable Frame Rate time stamps . ie. not CFR, not Constant Frame Rate

I played the video in all of those media players and they are 23 minutes and 3 seconds.

Here the video I'm talking about.
https://www.mediafire.com/file/v2rwsgta8813v24/video_file.mkv/file

Z2697
23rd December 2024, 03:59
VFR with probably only the rolling ending credit at 30000/1001 it's the common practice for such source. I don't like it but I don't have a much better solution.

What are you trying to achieve here?
You are using and complaining vapoursynth and vspreview without any obvious good reason.

jay123210599
23rd December 2024, 14:12
VFR with probably only the rolling ending credit at 30000/1001 it's the common practice for such source. I don't like it but I don't have a much better solution.

What are you trying to achieve here?
You are using and complaining vapoursynth and vspreview without any obvious good reason.

I'm trying to compare it to two other sources to see which one has the higher quality.