I'm trying to convert a .wmv to a vcd or svcd. Everything runs correctly with no errors - theres an audio stream found etc. The problem is that the finished mpg stream has only a fraction of the audio. My clip is 12 minutes long, but the audio will vary from between 1 to 4 minutes with each run. I had thought that this was a bug caused by the mp2 sample rate, or the selection of the overall disc size, but now I think that this is totally random.
The audio is converted before any of the video conversion engines start - so its not a quenc/hcenc/freeenc problem. The audio is first extracted as a .wav file - Fixed_Audio01.wav - then it is run through sox, ffmpg and besweet to ultimately convert it to a properly matched mp2 file - AudioStream 1 WMA 0CH.mp2.
I noted that besweet was actually changing the frequency from 29.970 fps to 25.000 fps - but this was because I was changing the clip from ntsc to pal.
However, the problem isn't with any of these utilities, it's all down to the very first step which produces the .wav file - it's invariably much smaller than the clip length. There is no utility which does this directly - I imagine that avi2dvd uses virtualdubmod to extract the .wav and processes it from there. I've successfully used virtualdub 1.6 to load the .wmv video and audio (via an aviSynth script) and saved the correctly sized .wav file which was then processed and correctly muxed back into the converted video by avi2dvd.
AVI2DVD is a fantastic utility so my question is what can be done to fix this? What command is used to extract the .wav audio and can it be edited or changed anywhere? Is there a problem with virtualdubmod, or is it simply an incorrect parameter somewhere? I noticed that virtualdubmod didn't like my .wmv file at all - it would load all right but wouldn't play - "error decoding mpeg audio frame - internal error" I wonder is this anything to do with it?
Ta for listening
Seeky
.wmv -> svcd audio problems
Moderators: george, roger_rabbit, reburn, Excalibur!, skyheartblue
wmv->svcd short file
I've seen this too-- had successfully converted an XviD format sequence I constructed with Avi2DVD and it worked brilliantly-- after having found that most of the freeware packages obtained directly from the source would crash on my AMD Sempron laptop. This convinced me that the Avi2DVD crew knows what it's doing a little better than the guys building many of the tools it's using...
Then, I pulled my vids into Windows Movie Maker and exported it as a wmv (only thing that was smooth enough to play-- DV-AVI->virtual dub->Avi2DVD had uneven framerate problems)... The WMV plays back fine, but when run through Avi2DVD the sound cuts out after a minute and a half or so of the 5 min video. I tried saving the audio out of WMM in both Media 9 and Media 9 Lossless selections, but both have the same problem. I did notice that Avi2DVD ran sox and ffmpeg which it hadn't before (process guard told me that), so I would initially think it is related to those utilities, but I haven't tried to explore it in more detail. It does appear to be a crash of something at some point and the audio is lost after that.
After seeing your posting, I'll see if I can poke around in the programs myself-- were you actually able to hand-craft things well enough after that to get the SVCD made? Or are you still stuck? I'm thinking I might try Gordian Knot and convert it to something else first, since VirtualDub can't seem to read it. There was a free WMV->avi converter from Canopus at one time but it's not on their site anymore and I haven't been able to find a cache (perhaps it's out of date, anyway)...
I also get a crash notice from windows about Avi2DVD.exe when it's all done-- it does build the mpeg & bin/cue files OK though, but the mp2 is short. Also, if I abort in the middle I get the crash as well-- so perhaps it 's an Avi2DVD problem that leaves memory messed up and when it tries to cleanup it tries to free memory that was never allocated or something...(is there source to Avi2DVD available somewhere?)
This brings up some things about Avi2DVD that I'd like to know-- is there a log of the commands it runs? Can I check it later and see what it did so I can try things manually? It would be REALLY useful if it would build a script that you could run later like VirtualDub...
Is there any chance Avi2DVD is smart enough to pick up on an aborted project where it left off? Seems like it could-- just check to see if the file already exists and skip the build step if it does. That would allow me to manually create a correct mp2 file and then pick things up from there... Are there any ways to start the process in the middle? What about supplying an audio file independently from the source? A substitute audio track?
Also, while this is getting off track a bit-- an SVCD disk consists of at least two tracks-- a filesystem (iso?) with some misc files including startup & any menus, and the subsequent tracks are the mpeg files. Suppose I wanted to include some of my own files in the first track-- such as menu or whatever-- is there any easy way to do that? Once it's a bin/cue package I don't know how to extract and reconstruct it with my own tweaks... What package was used to create the bin & cue? Or is it imbedded in Avi2DVD?... Problem with the SVCD bin/cue is that once it plays to the end it doesn't go back to the beginning, and if you take it out and put it back in the DVD players try to pick up where they left off (stopped at the very end, natch), so replaying it is a pain-- you have to hit rewind or something on the remote to get it to play again and it's not at all obvious. A simple little canned menu that it returns to shouldn't be too hard to do and would be useful to include on the SVCD by default...
Great package though, more stable than any of the ffdshow, ffvfw etc., original builds were, at least on my system....
Then, I pulled my vids into Windows Movie Maker and exported it as a wmv (only thing that was smooth enough to play-- DV-AVI->virtual dub->Avi2DVD had uneven framerate problems)... The WMV plays back fine, but when run through Avi2DVD the sound cuts out after a minute and a half or so of the 5 min video. I tried saving the audio out of WMM in both Media 9 and Media 9 Lossless selections, but both have the same problem. I did notice that Avi2DVD ran sox and ffmpeg which it hadn't before (process guard told me that), so I would initially think it is related to those utilities, but I haven't tried to explore it in more detail. It does appear to be a crash of something at some point and the audio is lost after that.
After seeing your posting, I'll see if I can poke around in the programs myself-- were you actually able to hand-craft things well enough after that to get the SVCD made? Or are you still stuck? I'm thinking I might try Gordian Knot and convert it to something else first, since VirtualDub can't seem to read it. There was a free WMV->avi converter from Canopus at one time but it's not on their site anymore and I haven't been able to find a cache (perhaps it's out of date, anyway)...
I also get a crash notice from windows about Avi2DVD.exe when it's all done-- it does build the mpeg & bin/cue files OK though, but the mp2 is short. Also, if I abort in the middle I get the crash as well-- so perhaps it 's an Avi2DVD problem that leaves memory messed up and when it tries to cleanup it tries to free memory that was never allocated or something...(is there source to Avi2DVD available somewhere?)
This brings up some things about Avi2DVD that I'd like to know-- is there a log of the commands it runs? Can I check it later and see what it did so I can try things manually? It would be REALLY useful if it would build a script that you could run later like VirtualDub...
Is there any chance Avi2DVD is smart enough to pick up on an aborted project where it left off? Seems like it could-- just check to see if the file already exists and skip the build step if it does. That would allow me to manually create a correct mp2 file and then pick things up from there... Are there any ways to start the process in the middle? What about supplying an audio file independently from the source? A substitute audio track?
Also, while this is getting off track a bit-- an SVCD disk consists of at least two tracks-- a filesystem (iso?) with some misc files including startup & any menus, and the subsequent tracks are the mpeg files. Suppose I wanted to include some of my own files in the first track-- such as menu or whatever-- is there any easy way to do that? Once it's a bin/cue package I don't know how to extract and reconstruct it with my own tweaks... What package was used to create the bin & cue? Or is it imbedded in Avi2DVD?... Problem with the SVCD bin/cue is that once it plays to the end it doesn't go back to the beginning, and if you take it out and put it back in the DVD players try to pick up where they left off (stopped at the very end, natch), so replaying it is a pain-- you have to hit rewind or something on the remote to get it to play again and it's not at all obvious. A simple little canned menu that it returns to shouldn't be too hard to do and would be useful to include on the SVCD by default...
Great package though, more stable than any of the ffdshow, ffvfw etc., original builds were, at least on my system....
--
Sync
Sync