Log in

View Full Version : No Audio From .MOV files


lindylex
23rd June 2011, 18:20
Using ffmpeg these are the specs of the video file.

ffmpeg -i myfile.mov
Seems stream 0 codec frame rate differs from container frame rate: 60000.00 (60000/1) -> 29.97 (30000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MVI_0120.MOV':
Metadata:
major_brand : qt
minor_version : 537331968
compatible_brands: qt CAEP
Duration: 00:01:19.44, start: 0.000000, bitrate: 23239 kb/s
Stream #0.0(eng): Video: h264, yuv420p, 1280x720, 21693 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc
Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
At least one output file must be specified



This what I have tried in Avisynth.

LoadVFAPIPlugin("C:\Program Files\AviSynth 2.5\plugins\QTReader.vfp", "QTReader")
return QTReader("G:\DCIM\100___06\MVI_0120.MOV")



return QTInput("G:\DCIM\100___06\MVI_0120.MOV", color=2, audio=true)


Neither of these will play the audio of the ".mov" files.

Thanks

TheFluff
23rd June 2011, 18:27
try
ffmpegsource2("derp.mov",atrack=-1)

lindylex
23rd June 2011, 19:34
TheFluff, do I just dump the "ffms2.dll" file in the AviSynth plugins folder? It comes up as an error when I try to open the video.

poisondeathray
23rd June 2011, 19:45
you need ffms2.avsi as well; the ffmpegsource2 function is defined there

lindylex
23rd June 2011, 21:52
TheFluff and poisondeathray thanks it worked like a charm.


Import("C:\Program Files\AviSynth 2.5\plugins\FFMS2.avsi")
return ffmpegsource2("G:\DCIM\100___06\MVI_0120.MOV",atrack=-1)

Gavino
23rd June 2011, 22:07
Import("C:\Program Files\AviSynth 2.5\plugins\FFMS2.avsi")
Note that .avsi files in the plugins folder are imported automatically, so this line is not actually needed.

lindylex
23rd June 2011, 22:15
Gavino, thanks this is good to know. You always have the answers.