Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VirtualDub, VDubMod & AviDemux

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th April 2025, 14:15   #1601  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 387
I noticed that sometimes .M2TS files don't work properly with VirtualDub2. The videos often glitch out and it skips some keyframes. How do I fix that, other than remuxing them into other container formats?
jay123210599 is offline   Reply With Quote
Old 19th April 2025, 17:09   #1602  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 2,213
Quote:
Originally Posted by jay123210599 View Post
I noticed that sometimes .M2TS files don't work properly with VirtualDub2.
In the file open dialog with the "All media types" filter active (default) you will not see any .m2ts files. This is because MPEG transport stream is not fully supported for obvious reasons. Use tools that will build by analyzing the entire file (e.g. AVISynth > FFmpegSource).
v0lt is offline   Reply With Quote
Old 19th April 2025, 22:46   #1603  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 387
Quote:
Originally Posted by v0lt View Post
In the file open dialog with the "All media types" filter active (default) you will not see any .m2ts files. This is because MPEG transport stream is not fully supported for obvious reasons. Use tools that will build by analyzing the entire file (e.g. AVISynth > FFmpegSource).
How would that work, exactly?
jay123210599 is offline   Reply With Quote
Old 22nd April 2025, 15:26   #1604  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,223
Quote:
Originally Posted by jay123210599 View Post
How do I fix that, other than remuxing them into other container formats?
In fact, exactly this is recommendable when working with VirtualDub2. I would probably prefer MKVtoolnix for MKV or MP4Box + some UI for MP4 as result. Or maybe Clever FFmpeg GUI.

If not, you can let e.g. StaxRip create an Avisynth script that loads the M2TS as video source with FFMS2 or L-SMASH Works plugin, if you don't dare to write that little script manually. (Note: Using L-SMASH Works, i.e. LSMASHSource.dll, you need to use LwLibavVideoSource for M2TS files to create an additional LWI index file; LSMASHVideoSource only works with ISO Base Media files like MP4, MOV, FLV, 3GPP - which already contain an index chunk.)
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 22nd April 2025 at 15:30.
LigH is offline   Reply With Quote
Old 23rd April 2025, 11:28   #1605  |  Link
rgr
Registered User
 
Join Date: Jun 2022
Posts: 176
Quote:
Originally Posted by v0lt View Post
What you write is not a VirtualDub problem. It is an old Windows bug.
https://superuser.com/questions/9165...s-my-selection
Yes, I have read these and similar threads and unfortunately I have no solution.
rgr is offline   Reply With Quote
Old 23rd April 2025, 11:30   #1606  |  Link
rgr
Registered User
 
Join Date: Jun 2022
Posts: 176
Quote:
Originally Posted by jay123210599 View Post
I noticed that sometimes .M2TS files don't work properly with VirtualDub2. The videos often glitch out and it skips some keyframes. How do I fix that, other than remuxing them into other container formats?
I used to work with MTS files in VDub. The preview was glitchy when seeking, but the output file was fine.
This was easily fixed with ffmpeg (ffmpeg -c copy).
rgr is offline   Reply With Quote
Old 25th April 2025, 08:04   #1607  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 2,213
Quote:
Originally Posted by rgr View Post
Yes, I have read these and similar threads and unfortunately I have no solution.
Then use regedit.exe to manually find and delete all keys with old paths to VirtualDub2.
v0lt is offline   Reply With Quote
Old 30th April 2025, 13:47   #1608  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,223
There are workflows not recommended to use in VirtualDub2 (tested with release 44282, 2.2.0.755 and 2.3.0.845)...

I opened a 4K UHD video from a VIOFO 229 Pro dashcam, which plays fine when I let it play linearly or skip through frame-by-frame.

Then I selected a range (800 frames), the internal x264 8-bit video encoder (CRF 18, Slower, --nr 100) and the FFMPEG AAC audio encoder, saved the result in an MP4 +faststart. The playback in MPC-BE shows video artifacts which seem to be caused by wrong motion prediction references. When I open the result in VDub2 again, it plays fine without issues, until frame 781:
Quote:
---------------------------
VirtualDub Error
---------------------------
requested frame not found; next valid frame = 783
---------------------------
OK
---------------------------
Same procedure with an intermediate AviSynth script using L-SMASH Works (LSMASHVideo/AudioSource for the MP4 source): Same issue.

Same script processed through external x264, QAAC and FFMPEG: Perfect result.

May the internal x264 codec have some issues with large frames and random access at the same time?
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 30th April 2025, 18:17   #1609  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 2,213
Quote:
Originally Posted by LigH View Post
May the internal x264 codec have some issues with large frames and random access at the same time?
No. You have a problem with getting the right frame from the container and then decoding it. Encoders are not used for this.
v0lt is offline   Reply With Quote
Old 30th April 2025, 18:26   #1610  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,223
So this is a difference between VirtualDub2 multiplexing the MP4 incorrectly and ffmpeg multiplexing the MP4 correctly?

I can provide files if you want to have a look.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 1st May 2025, 05:30   #1611  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 2,213
Quote:
Originally Posted by LigH View Post
I can provide files if you want to have a look.
Please provide your file.
This is a mandatory step when writing such bug reports. The developers do not have your file. Also, the developers do not have user "any files".

Last edited by v0lt; 1st May 2025 at 05:57.
v0lt is offline   Reply With Quote
Old 1st May 2025, 07:19   #1612  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,223
I'm sorry, my fault. Missed a little difference between the x264 options in VDub2 and in the batch. It makes a difference whether you use preset "Slow" or "Slower". That on UHD material will result in different GOP attributes, and some may exceed the support of a HW decoder in my GPU.

So, instead, uhm: "Thanks, Nvidia"?
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:37.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.