Video files out of my Sony camera with .mts extension (i believe is MKV format?) when loaded to VirtualDub2 have a lot of frames corrupted. If i convert them to mp4 container (no re-encoding) with AviDemux then they open just fine, not a single corrupted frame.
What can be causing this? Inside original VirtualDub with VirtualdubFFMpegPlugin .mts files have no lag, but playback is sluggish.
Video source file https://www.upload.ee/files/15281379/00017.zip.html
+ Reply to Thread
Results 1 to 17 of 17
Thread
-
-
.mts or .m2ts are container formats for Mpeg transport streams. Typical for videocams and blu-ray discs.
VirtualDub2 shows corrupted frames until it hits the next keyframe (a matter of the decoder). In your case keyframes (I-frames) are found every 24 frames (24, 48, 72 etc.) in the videostream. -
That source file you posted is already an MP4 (AVC/H264 codec). Can you post up the original MTS file?
I've got an M2TS file here that is AVC (ie H264). Conceivably, your MTS file is also AVC, as indicated by your "no-recoding" comment (all AVIDemux was doing was changing the container, not the actual video codec). Hence, it could be that VDub just can't handle the "MTS" part of it/container.
You can analyse the guts of a file using Mediainfo. It will tell you what the underlying codec is. Afte you open the file in Mediainfo, go to the "Tree" view. -
My bad here is .MTS file straight from camera. https://www.upload.ee/files/15288487/mts.zip.html
From what i understand decoder MP4 in VirtualDub2 is located in file called avlib-1.vdplugin, perhaps i can try alternative decoder, what are the ones available to allow importing MP4 files?
I have used FFMpeg Input Plugin 2.0 for original VirtualDub, but its sluggish pressing play button, are there others? -
Last edited by Sharc; 31st May 2023 at 03:14.
-
-
You can convert to .mp4 container like
Code:ffmpeg.exe -i "%~1" -c:v copy -c:a copy "%~1_.mp4"
Or for batch processing:
Code:@echo off :next if "%~1"=="" goto done ffmpeg.exe -i "%~1" -c:v copy -c:a copy "%~1_.mp4" shift goto next :done
Last edited by Sharc; 31st May 2023 at 04:16.
-
Good one Sharc.
Oops. There's a flash and then nothing. Where would the MP4 end up?Last edited by Alwyn; 31st May 2023 at 05:52. Reason: Changed the Oops.
-
Actually it does two ways to batch, i already adopted the easier one for converting all my MTS to MP4 yesterday. Used windows .bat file
Code:@echo off set "imageFolderPath=%~dp1" mkdir "%imageFolderPath%\MP4" for %%F in ("%imageFolderPath%*.mts") do "C:\Program Files\Avidemux 2.8 VC++ 64bits\avidemux_cli.exe" --video-codec "copy" --audio-codec "copy" --output-format "MP4" --load "%%F" --save "%%~pF\MP4\%%~nF.mp4" --quit
-
An alternative method is the directshow input driver. So if you have a decoder such as lav filters installed it will use that
There is a x64 version of the driver here
http://www.virtualdub.org/beta/DShowInputDriver-0.93.zip
Beware, sometimes directshow can be buggy . It's like a last resort -
Could you elaborate on that, i am not that good with this things, how i switch input diver in VirtualDub2?
P.S. I had this corrupted frames show in the MP4 videos i exported from VDub as well. -
Did not have ffmpeg plugin installed for VirtualDub2 so it was corrupted on Caching input driver.
Could you try my video in post #4 and see if you get corruption? -
Similar Threads
-
What input driver is better for Virtualdub2 on Windows XP?
By Guernsey in forum Newbie / General discussionsReplies: 0Last Post: 13th Dec 2022, 09:50 -
Distorted capture video input in VirtualDub2, OBS works fine
By NotLikeThis8 in forum Newbie / General discussionsReplies: 12Last Post: 24th Mar 2022, 05:34 -
Video looks corrupted in players but extracted frames look OK
By orlydb in forum Newbie / General discussionsReplies: 16Last Post: 29th Jan 2022, 00:30 -
Comparing similar video files to find corrupted frames / audio glitches
By abolibibelot in forum Video ConversionReplies: 20Last Post: 2nd Oct 2019, 10:24 -
VirtualDub2: Force Keyframe every x frames
By ConvertKonvert in forum Newbie / General discussionsReplies: 10Last Post: 24th Sep 2018, 09:15