I get the following via AviSynths Info() function:
The version of LSMASHSource.dll I have is about two years old, ffms2.dll about three years old.Code:LWlibavVideoSource("0001.ts") # 39026 frames, 29.97 (30000/1001) fps LWlibavVideoSource("0001.ts", fpsnum=30000, fpsden=1001) # 39037 frames at 29.97 (30000/1001) fps. ffVideoSource("0001.ts") # 37459 frames, 28.7588 fps ffVideoSource("0001.ts", fpsnum=30000, fpsden=1001) # 39037 frames, 29.97 (30000/1001) fps
+ Reply to Thread
Results 31 to 40 of 40
-
-
I don't think so, It's been a long time since I made changes on plugins folder because until now I had not needed it.
After having updated L-smash, the framerate changed to normal numbers and I didn't have to force the framerate but still the same problem -
Does "same problem" refer to the A/V sync? You'll still have to force the frame rate, otherwise lsmash will still skip the gaps even if for some reason it's outputting the original frame rate. Comparing the total number of frames with and without frame rate conversion will tell you if something is changing.
The attached file was created with the following script.
The audio was extracted from the TS file with eac3to.
The two were combined with MKVToolNix without applying any audio delay.
LWLibavVideoSource("D:\0001.ts", cachefile="D:\0001.ts.lwi", fpsnum=30000, fpsden=1001)
TFM()
TDecimate(denoise=true)
CropResize(480,360, InDAR=4.0/3.0)Last edited by hello_hello; 24th Jun 2023 at 08:20.
Avisynth functions Resize8 Mod - Audio Speed/Meter/Wave - FixBlend.zip - Position.zip
Avisynth/VapourSynth functions CropResize - FrostyBorders - CPreview (Cropping Preview) -
Encoding:
Code:LWlibavVideoSource("0001.ts", cache=false, fpsnum=30000, fpsden=1001) TFM() TDecimate(Denoise=true)
-
-
Friends, I need your help again regarding this same problem but now with a TS from Japan. I have repeated the deinterlaced//decimated methods that I used previously but the results are not good and the video is out of sync with the audio. Even if I use L-SMASH as recommended in previous messages, the duration of the output video is extended to 10 more seconds, which should not happen. I leave this sample of almost 2 minutes for you to check.
-
I get the same length (1:57) and smooth 23.976 fps using:
Code:LWLibavVideoSource("117s.ts") TFM() TDecimate(Denoise=true)
-
Being only 2 minutes of sample it's very possible that desync problems will not be noticed in the output video but if I encode the entire 30-minute video (the source weighs 2.37GB), the desync does become evident. And as I mentioned before, if I add fpsnum/fpsden in the line to open video, it increases the output video by 10 seconds. Something I forgot to mention is that DGIndex detects field order transition when creating the D2V index file. I'm not sure what to do and that's why I avoid using it.
Last edited by naoto89; 15th Oct 2023 at 08:24.
-
If I can't duplicate your problem I can't give you a definitive fix. But try this:
Code:a = LWLibavAudioSource("117s.ts") v = LWLibavVideoSource("117s.ts", fpsnum=30000, fpsden=1001) AudioDub(v, a) TFM() TDecimate(Denoise=true)
By the way, the Denoise=true in TDecimate() makes it use a denoised version of the video for determining which frames to delete. That can help it delete the correct frames with noisy video (where the noise can make identical frames look different). The output of the filter isn't denoised. -
I discovered something when trying these lines
Code:DGSource(DD.dgi) # Trim(527,55792), 55266 frames, 00:30:43.967, 29.970 fps LWLibavVideoSource(DD.ts) # Trim(534,55494), 54961 frames, 00:30:33.832, 29.970 fps LWLibavVideoSource(DD.ts, fpsnum=30000, fpsden=1001) # Trim(535,55800), 55266 frames, 00:30:44.009, 29.970 fps ffVideoSource(DD.ts) # Trim(532,55492), 54961 frames, 00:30:45.392, 29.782 fps ffVideoSource(DD.ts, fpsnum=30000, fpsden=1001) # Trim(532,55797), 55266 frames, 00:30:44.009, 29.970 fps
Similar Threads
-
Improve video from nokia vfr 10 fps 640x480 with glitch comp error mp4
By mammo1789 in forum RestorationReplies: 0Last Post: 17th Jul 2021, 09:06 -
VFR vs CFR
By rblu in forum Newbie / General discussionsReplies: 2Last Post: 16th Feb 2021, 14:29 -
Convert VFR to Image Sequence (Keeping VFR)
By Vaengence in forum EditingReplies: 11Last Post: 29th Dec 2020, 16:02 -
Encoding VFR (30 + 60 fps)
By ZetaStax in forum Video ConversionReplies: 8Last Post: 31st Jul 2020, 06:01 -
I want to convert VFR to CFR while keeping the video interlaced
By ENunn in forum Video ConversionReplies: 34Last Post: 24th Apr 2019, 04:50