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.
+ Reply to Thread
Results 1 to 18 of 18
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 04:10."Like this facility, I don't exist."
That would be the ideal, ProWo, but toolnix has never accepted WMVs.
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"Like this facility, I don't exist."
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.
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 05: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.
Cut 10 seconds of your WMV with my app and upload it here
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 15: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:
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)