I have some WMVs that I am trying to process in Avisynth.
I use Win2k and don't have a recent version of WMP installed, so that is probably the reason I'm having problems.
I really don't want to install WMP just to do this, though if I could just get the codecs required, I'd do that.
Here's the MediaInfo report:
General
Complete name : OoM_1.wmv
Format : Windows Media
File size : 18.9 MiB
Duration : 2mn 41s
Overall bit rate mode : Constant
Overall bit rate : 977 Kbps
Maximum Overall bit rate : 1 205 Kbps
Video
ID : 2
Format : VC-1
Format profile : MP@HL
Codec ID : WMV3
Codec ID/Info : Windows Media Video 9
Codec ID/Hint : WMV3
Description of the codec : Windows Media Video 9
Duration : 2mn 41s
Bit rate mode : Constant
Bit rate : 1 000 Kbps
Width : 738 pixels
Height : 416 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.109
Stream size : 19.3 MiB
Language : English (US)
Audio
ID : 1
Format : WMA
Format version : Version 2
Codec ID : 161
Codec ID/Info : Windows Media Audio
Description of the codec : Windows Media Audio 9.1 - 192 kbps, 48 kHz, stereo (A/V) 2-pass CBR
Duration : 2mn 41s
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Stream size : 3.71 MiB (20%)
Language : English (US)
Just
FFmpegSource2("OoM_1.wmv")gave video without any problem.
I tried
FFmpegSource2("OoM_1.wmv",atrack=-1)
AssumeFPS("ntsc_video")
** corrected script**
But got an error message
FFAudioSource: Not an audio track
FFMS@.avsi, line 38
Trying track = 0, 1, 2, 3 also fails.
So I tried
DirectShowSource("OoM_1.wmv", fps=29.97, convertfps=true)
Initially that also failed to play audio.
I went to ffdshow audio config and activated "WMA 8/9" to libavcodec.
Then I could play it on WMP Classic, but it played very slowly and stuttered.
(VLC always played it fine, using its own decoder.)
The DirectShowSource script as above now played audio, but the video was screwed up (skewed at 45 degrees).
So I cobbled together a working script:
FFmpegSource2("OoM_1.wmv")
AssumeFPS("ntsc_video")
AudioDub(DirectShowSource("OoM_1.wmv", fps=29.97, convertfps=true))
Which worked, though also playing very slowly, and when I saved to a new format, was a few seconds out of sync.
So:
1) Can ffmpegsource be made to work on the audio?
or
2) Are there a better codecs to allow DirectShowSource to do it?