Log in

View Full Version : Error opening file with AVS script


ruso946
23rd May 2016, 16:35
Hi. Iīm new here.
I only put this simple script:

AviSource("C:\Users\gmkoh\Pictures\maga tobi mayo 2016\IMG_0015.AVI")

and then have this error:
http://i589.photobucket.com/albums/ss338/ruso946/error%20maga%20mulaw%200x0007_zps0f0bxpgz.png (http://s589.photobucket.com/user/ruso946/media/error%20maga%20mulaw%200x0007_zps0f0bxpgz.png.html)

http://i589.photobucket.com/albums/ss338/ruso946/error%20maga%20mulaw%200x0007%202_zpsnogyq7yj.png (http://s589.photobucket.com/user/ruso946/media/error%20maga%20mulaw%200x0007%202_zpsnogyq7yj.png.html)

The file can be opened without error on VirtualDub if i add the "false" to avoid the audio.
And Gspot gives the following for that avi file:
http://i589.photobucket.com/albums/ss338/ruso946/gspot%20maga%20vodeo%20avi%20camara%20benq_zpsssmt3eot.png (http://s589.photobucket.com/user/ruso946/media/gspot%20maga%20vodeo%20avi%20camara%20benq_zpsssmt3eot.png.html)

I guess itīs the MULAW wncoder, but Gspots says itīs installed, so...
whatīs going on?

Thanks in advance for your help

Music Fan
23rd May 2016, 20:40
What happens if you open the avi (not the avs) in VirtualDub ?

raffriff42
24th May 2016, 01:15
For error reports, instead of a screen shot, use VirtualDub's View / Log, right-click, Copy to clipboard.

I can open a u-law/mulaw with AviSynth just fine; perhaps you need the proper codec.

You can convert u-law to uncompressed with Audacity (http://www.audacityteam.org/), then use a script like:AviSource("C:\...\IMG_0015.AVI")
AudioDub(WavSource("C:\...\IMG_0015.WAV"))

Try MediaInfo (https://sourceforge.net/projects/mediainfo/), it's much more modern than GSpot.

I don't have GSpot any more, but I think you can preview the file by pressing the blue "1" and then "2" button.
This verifies that you have the codecs installed.

StainlessS
24th May 2016, 17:05
Batch file to convert all files with mentioned extensions (in BLUE) to WAV, could also add eg "*.mp3" or whatever.


setlocal

REM Where to Find ffmpeg
set FFMPEG="C:\BIN\ffmpeg.exe"

REM Where to get input file, No terminating Backslash, "." = current directory (Same as Bat file)
set INDIR="."


REM Where to place output file, No terminating Backslash, eg "D:\OUT"
set OUTDIR=".\OUTPUT"


FOR %%A IN (*.wmv *.mpg *.avi *.flv *.mov *.mp4 *.m4v *.RAM *.RM) DO (
%FFMPEG% -i "%INDIR%\%%A" -vn -acodec pcm_s16le "%OUTDIR%\%%~nxA.WAV"
)

Pause


Copy Bat file somewhere, and add media files to same directory, and as given will output WAV files to OUTPUT directory
contained in current directory. (the OUTPUT directory needs to Exist)

EDIT: I dont think it likes SPACE's in filenames or directories.

ruso946
25th May 2016, 15:14
What happens if you open the avi (not the avs) in VirtualDub ?

Hi, thanks for the answers
Shows this message and then opens the file

http://i589.photobucket.com/albums/ss338/ruso946/error%20maga%20mulaw%20vdub%203_zpspvpi3cvq.png (http://s589.photobucket.com/user/ruso946/media/error%20maga%20mulaw%20vdub%203_zpspvpi3cvq.png.html)

The preview on Gspot can play the file. So it means I have the codecs installed? Why doesnīt it works?

OS: Windows 10 64 bits
Avisynth 2.60 32 bits
VirtualDub 1.10.4

This is the VirtualDub log

AVI: Opening file "C:\Users\gmkoh\Desktop\avisynth practicar\video
maga.avs"

[E] Error: Avisynth open failure:
No compatible ACM codec to decode 0x0007 audio stream to PCM.
(C:\Users\gmkoh\Desktop\avisynth practicar\video maga.avs, line 1)


The Mediainfo says:
Audio
ID/String : 1
Format : ADPCM
Format_Profile : U-Law
CodecID : 7
CodecID/Hint : CCITT
Duration/String : 30seg.
BitRate_Mode/String : Constante
BitRate/String : 120Kbps
Channel(s)/String : 1canal
SamplingRate/String : 15,0KHz
BitDepth/String : 8bits
StreamSize/String : 440Kib (1%)
Interleave_Duration/String : 33 ms (1,00fotograma de video)

Music Fan
25th May 2016, 15:39
Hi, thanks for the answers
Shows this message and then opens the file

http://i589.photobucket.com/albums/ss338/ruso946/error%20maga%20mulaw%20vdub%203_zpspvpi3cvq.png (http://s589.photobucket.com/user/ruso946/media/error%20maga%20mulaw%20vdub%203_zpspvpi3cvq.png.html)
And then, can it fix this ?
Still with VirtualDub, if you only open the file without playing it, can you export the sound in wav (file, save wav) ?
Otherwise try with ffmpeg, as proposed above.

Wilbert
25th May 2016, 18:16
The error says you will an ACM codec to decode your MULAW audio using AviSource. I looked around but i'm not sure such codec exists.
You should be able to open it with ffdshow (and DirectShowSource). Perhaps ffmpegsource can open it too. Just google around.

tebasuna51
25th May 2016, 21:08
I ask to the user, in a spanish forum, what is the decoder than GSpot uses to say: "Codec(s) installed".

In my W 7 64 bits I have:

C:\Windows\System32\msg711.acm (14.848 bytes) ‎2009/07/14, ‏‎2:18:40
C:\Windows\SysWOW64\msg711.acm (12.288 bytes) 2009/07/14, ‏‎2:03:25

GSpot -> System -> List Codecs and Other filters:

ruso946
25th May 2016, 22:07
The error says you will an ACM codec to decode your MULAW audio using AviSource. I looked around but i'm not sure such codec exists.
You should be able to open it with ffdshow (and DirectShowSource). Perhaps ffmpegsource can open it too. Just google around.

yes, this worked!
with DirectShowSource itīs working!
Thanks!

May sound a little fool for you, but Iīm very new on this, so this kind of question will still be appearing. Thanks again!

raffriff42
26th May 2016, 07:22
It turns out mulaw decoding is part of Windows (quartz.dll) - no codec is required.

https://www.dropbox.com/s/xabcd99jcfabnti/mulaw-test1.png?raw=1

EDIT ...as shown in tebasuna51's post above

Music Fan
26th May 2016, 08:01
As VirtualDub has a problem with this file, does it mean its filter to open avi is not the same than directshowsource (which works with AviSynth) ?

raffriff42
26th May 2016, 08:21
Opens in VirtualDub for me just fine.

https://www.dropbox.com/s/1tj0fxm9v3rw2wd/mulaw-test2.png?raw=1

You might have a codec config problem...
One video codec to break everything (http://www.virtualdub.org/blog/pivot/entry.php?id=139) (virtualdub blog)

Not that it matters too much. There are workarounds. f="Sintel - 3;21;684 mulaw.avi"
A=FFAudioSource (http://avisynth.nl/index.php/FFMS2)(f)
V=FFVideoSource(f)
return AudioDub(V, A)

ruso946
27th May 2016, 16:12
thank raffriff42. Itīs very instructive!