Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th June 2011, 18:29   #1  |  Link
Chikuzen
typo lover
 
Chikuzen's Avatar
 
Join Date: May 2009
Posts: 595
Fix crash of wavi

Yesterday, i got a crash with wavi.exe.
I read the code, and ascertained the cause.

P.S.
This binary also includes this patch.

Fix version is here.
Attached Files
File Type: zip wavi106m.zip (25.7 KB, 5010 views)
__________________
my repositories

Last edited by Chikuzen; 17th June 2011 at 18:36.
Chikuzen is offline   Reply With Quote
Old 16th June 2011, 18:56   #2  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
thanks a lot...
_
__________________
if you ask a question and somebody give you the correct answer don't forget to leave a "thank you" note...
Visit The Land Of Dracula (Romania - EU)!
b66pak is offline   Reply With Quote
Old 17th June 2011, 00:51   #3  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,914
Thanks Chikuzen
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 18th September 2011, 02:14   #4  |  Link
Chikuzen
typo lover
 
Chikuzen's Avatar
 
Join Date: May 2009
Posts: 595
Since it seems that libvfw32.a was added to mingw-w64, I compiled wavi for 64bit.
wavi106m_x86_x64.zip

note: I seldom use avisynth64. so, it is not often checking.
__________________
my repositories
Chikuzen is offline   Reply With Quote
Old 18th June 2014, 23:52   #5  |  Link
hlrsnd
Registered User
 
Join Date: Mar 2009
Posts: 32
Sorry to revive this old thread but I can't get wav audio from an AVI made by an old Canon camera. Wavi is able to correctly determine the length of the audio but it can only write exactly one second of audio, which sounds perfect, before stopping.

Batch file is super simple as a test:
wavi_x64 mvi_4522.avi test.wav
pause

Here's the MediaInfo report on the avi file:
General
Complete name : ...MVI_4522.AVI
Format : AVI
Format/Info : Audio Video Interleave
File size : 343 MiB
Duration : 3mn 2s
Overall bit rate : 15.7 Mbps
Mastered date : 2013-11-29 18:18:12
Writing application : CanonMVI06

Video
ID : 0
Format : JPEG
Codec ID : MJPG
Duration : 3mn 2s
Bit rate : 15.0 Mbps
Width : 640 pixels
Height : 480 pixels
Original height : 960 pixels
Display aspect ratio : 4:3
Frame rate : 30.000 fps
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 8 bits
Scan type : Interlaced
Compression mode : Lossy
Bits/(Pixel*Frame) : 1.629
Stream size : 327 MiB (95%)

Audio
ID : 1
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Codec ID : 1
Duration : 3mn 2s
Bit rate mode : Constant
Bit rate : 705.6 Kbps
Channel(s) : 1 channel
Sampling rate : 44.1 KHz
Bit depth : 16 bits
Stream size : 15.4 MiB (4%)
Alignment : Aligned on interleaves
Interleave, duration : 1000 ms (29.99 video frames)
Interleave, preload duration : 1000 ms

Any suggestions? I'm guessing the problem has something to do with the interleave duration of exactly one second but then what?
hlrsnd is offline   Reply With Quote
Old 19th June 2014, 01:17   #6  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
^ Try an intermediate Avisynth script, try both AVISource() and DirectShowSource().

OR... use the 32-bit version of wavi.exe.
filler56789 is offline   Reply With Quote
Old 19th June 2014, 02:10   #7  |  Link
hlrsnd
Registered User
 
Join Date: Mar 2009
Posts: 32
Trying to avoid using an Avisynth script. I thought wavi worked without it. No? 32 bit version of wavi has the same problem.
hlrsnd is offline   Reply With Quote
Old 19th June 2014, 03:34   #8  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,351
Quote:
an AVI made by an old Canon camera
Then it looks like the AVI file was muxed incorrectly, or in an "uncommon" way. AVISource() probably WON'T work in this case. You could remux it with ffmpeg, VirtualDub, or AVI-Mux GUI. Or even better, extract the audio to an uncompressed WAV file, doing without wavi altogether.
filler56789 is offline   Reply With Quote
Old 19th June 2014, 12:21   #9  |  Link
hlrsnd
Registered User
 
Join Date: Mar 2009
Posts: 32
Some background on what I'm trying to do. I have 20-30 AVI files each in various folders. All are straight from my 2008 Canon camera which uses mjpeg and mono wav for its AVI files. I am trying to write a batch file to crawl through each folder and encode using X264, qaac, and mp4box. I know how to do this using avisynth but want to avoid that because I'd have to write 20-30 AVS files. (Unless there is a way to have them written automatically). My current batch file works fine using X264 on the AVIs but I can't extract the wavs for qaac to convert.

I'm getting close to extracting the audio using ffmpeg but not quite there yet. May try BeSweet next. Suggestions welcome.
hlrsnd is offline   Reply With Quote
Old 21st June 2014, 21:19   #10  |  Link
Reino
Registered User
 
Reino's Avatar
 
Join Date: Nov 2005
Posts: 693
I don't use qaac, but for opus that would most likely be:
Code:
ffmpeg.exe -i "MVI_4522.AVI" -vn -f wav - | "opusenc.exe" --bitrate 64 --raw --raw-rate 44100 --raw-chan 1 - "MVI_4522.opus"
But if it's such a problematic file, perhaps you can upload a sample?
__________________
My hobby website
Reino is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:41.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.