Hi. I have a WMV file that plays fine. I want to edit/recode it but MeGUI can't index it. If I use a simple 'DirectShowSource' script the A/V goes out of sync. I ran the WMV file through wma2wav and it found errors (which it fixed so I now have a WAV file of 'good' audio).
To make a good edit, here's what I've done:
Made a low-quality, video only, copy of the WMV using XMRRecode then muxed it with the 'good audio' WAV file. Let's call this new file 'Alpha'.
I edited the WMV file using DirectShowSource but with no audio (new file 'Bravo').
I edited Alpha using the same frame numbers (new file 'Charlie').
I then muxed Bravo with the audio from Charlie.
Is there a better way of going about this? My thanks for any suggestions.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 18 of 18
Thread
-
-
Unless that WMV is VERY-old, you should be able to remux it losslessly to an intermediate AVI file through VirtualDub's direct stream-copy option.
Since the release of Windows Media Player 11 and its codecs, all WMV9 files (i.e., with FourCC = WMV3 or WVC1) have constant frame rate and so they can be safely remuxed as .AVIs.
P.S.: If you use DirectShowSource, make sure the DirectShow graph uses LAV Filters and not anything from Microsoft. FFVideoSource still is more reliable than DirectShowSource.Last edited by El Heggunte; 26th Mar 2020 at 03:10.
"Programmers are human-shaped machines that transform alcohol into bugs." -
Hi El Heggunte and thank you for that. I've downloaded VirtualDub 64bit portable from this forum but I can't load my WMV as "ASF files are not supported". My WMV is indeed WMV3. What do you think I'm doing wrong?
-
@pooksahib:
there exists a WMV input plugin for VirtualDub; but you will also need a WMV VfW decoder —
ffdshow includes one, if you don't want to install the original (and ancient) WMV9 VfW codec from Microsoft.
http://gral.y0.pl/~fcchandler/Plugins/WMV/index.html"Programmers are human-shaped machines that transform alcohol into bugs." -
Many thanks, El Huggunte. The plugin was easily installed but the list of options when installing ffdshow was a bit daunting. I don't know if I ticked or unticked something that I shouldn't have but virtualdub continues to say 'missing codec' when I load the WMV.
Where can I find the old Microsoft codec? Googling for it didn't help... -
-
-
Thanks again. Change of plan, though - WMVs are so rare that, for the couple I have here, I'm just going to use the method described in my first post. It works well, if a tad convoluted.
-
Try to remux with my clever FFmpeg-GUI. I just loaded a WMV file and remuxt it into a MKV file. It worked.
https://forum.videohelp.com/threads/396490-clever-FFmpeg-GUI-a-new-small-GUI-for-FFmpeg -
Hi ProWo. That sounds good but I can't figure it out. After I load the source file, I click 'main', yes? Then 'multiplex'? When I click 'Do It' at this point, the program runs nicely but no new file is generated. I thought it might be because the Audio File section was blank so I put the source file in that box, too. After, 'Do It', all I got was an audio file.
Any guidance much appreciated. -
Here's what I propose:
Select your "good WAV" as source file and recode to aac or ac3.
Click on "Change source" and select your WMV file.
Select "Multiplex" in the "MAIN" area.
Your WMV is automatically selected as video source.
Select your new created aac/Ac3 file as Audio source. The target file is automatically selected.
Press "Do It" and the target file will be muxed.Last edited by ProWo; 8th Apr 2020 at 04:11.
-
Thanks for that. Unfortunately, with the original WMV in the 'Video file' box and the newly created aac in the 'Audio file' box, pressing Do It results in an audio-only file.
-
It's OK, I've found the issue - you have to change 'Video Track' from '0' to '1'. However, the file it produces won't work with MeGUI so I'll continue with my own method. Nice GUI though, congratulations on it.
Last edited by pooksahib; 8th Apr 2020 at 14:35.
-
Actually, the solution to my problem is much, much easier:
-Index the wmv file (using MeGUI) with the audio track disabled.
-Run the wmv file through wma2wav to create a good audio file.
-And script like this:
Code:a=FFVideoSource("E:\the original wmv file that wouldn't index.wmv", fpsnum=30000, fpsden=1001, threads=1) b=wavsource("E:\the audio file created by wma2wav.wav") audiodub(a,b)
Similar Threads
-
fixing a corrupt mp4 audio file.
By hsncool in forum AudioReplies: 6Last Post: 17th Apr 2017, 12:51 -
GO-Pro Corrupt File (Restored Video but Not Audio)
By leviathanyoutube in forum RestorationReplies: 0Last Post: 23rd Oct 2016, 16:50 -
Error: Decoder appears to have frozen, corrupt audio file? SOLUTION
By TheLastOfThem in forum Newbie / General discussionsReplies: 1Last Post: 13th Aug 2016, 09:50 -
Using avisynth on an mp4 file with AAC audio
By pooksahib in forum Video ConversionReplies: 9Last Post: 27th May 2016, 07:30 -
WMV audio file play back is not working
By vinujose in forum AudioReplies: 2Last Post: 11th Aug 2015, 01:05