Log in

View Full Version : How to Load DVI IMA audio


a1s2d3f4
25th December 2011, 10:00
I got a Casio EXZR100 camera.

It records MOV files with H264 video and something called DVI IMA stereo audio. (44.1 KHz 354 kbps).


Does anyone know how I can load the audio stream with AVISynth?
What codec/plugin do I need?

Thanks,
a1

Mounir
25th December 2011, 14:06
ffdshow audio perhaps ?

a1s2d3f4
25th December 2011, 16:56
Sure, I tried that, but whatever I tried didn't do it for me.

Here is what I have in my ffdshow audio decoder list:
(since it is extremely annoying to have to type out all those entries by hand, here is the .reg export:

from: [HKEY_CURRENT_USER\Software\GNU\ffdshow_audio]
"aac"=dword:00000008
"ac3"=dword:0000000f
"amr"=dword:00000001
"dts"=dword:00000011
"eac3"=dword:00000001
"flac"=dword:00000001
"lpcm"=dword:00000004
"mace"=dword:00000001
"truehd"=dword:00000001
"mlp"=dword:00000001
"mp2"=dword:00000007
"mp3"=dword:00000007
"qdm2"=dword:00000001
"tta"=dword:00000001
"vorbis"=dword:00000012
...
"wma1"=dword:00000001
"wma2"=dword:00000001
"iadpcm"=dword:00000001
"msadpcm"=dword:00000001
"otherAdpcm"=dword:00000001
"law"=dword:00000001
"gsm"=dword:00000000
"truespeech"=dword:00000000
"ra"=dword:00000000
"imc"=dword:00000001
"atrac3"=dword:00000000
"nellymoser"=dword:00000000
"wavpack"=dword:00000000
"avis"=dword:0000000a
"rawa"=dword:00000000

from [HKEY_LOCAL_MACHINE\Software\GNU\ffdshow_audio]:
"aac"=dword:00000008
"ac3"=dword:0000000f
"amr"=dword:00000001
"dts"=dword:00000011
"eac3"=dword:00000001
"flac"=dword:00000001
"lpcm"=dword:00000004
"mace"=dword:00000001
"mlp"=dword:00000001
"mp2"=dword:00000007
"mp3"=dword:00000007
"qdm2"=dword:00000001
"tta"=dword:00000001
"vorbis"=dword:00000012





dword:00000001 = libavcodec

For some reason I am thinking that "iadpcm" is the one I need to get right (based on scattered pieces of info I read online).
In the GUI it is described as IMA Adaptive DPCM.

The only options for it are libavcodec or disabled.

And here is the test.avs file:

path = GetWorkingDir()
video_filename = "myvideo.MOV"

video_full_path = path + "\" + video_filename


video1 = DirectShowSource(video_full_path, audio = True)

return video1



I get no audio when trying to play it in VirtualDub.

Reino
25th December 2011, 18:30
path = GetWorkingDir()
video_filename = "myvideo.MOV"

video_full_path = path + "\" + video_filename


video1 = FFmpegSource2(video_full_path, atrack=-1)

return video1FFmpegSource (http://avisynth.org/mediawiki/FFmpegSource) should work

a1s2d3f4
26th December 2011, 18:00
Thanks CoRoNe.

This worked.

I went to http://code.google.com/p/ffmpegsource/downloads/detail?name=ffms2-2.16-avs-cplugin.7z&can=2&q= and downloaded the plugin.

Then added the

LoadCPlugin("C:\Program Files\AviSynth 2.5\plugins\ffms2.dll")

to the .avsi file, so that it loaded automatically.

Of course, now I better keep track of all those .ffindex files. Luckily, they don't seem to imprint a full path into the file, like .d2v files do, which makes those projects a pain to move to a different location. Actually, I wonder if this FFMpeg thing can be used with my .mpg files instead of dgindex.