Hi everyone,
I have a .mxf file (Sony XDCAM HD 4:2:2 from a Sony PDW-F800 camera) that I would to extract only CH1 and CH2 audio.
I would have one ouput .wav (PCM 48.000) file that have only the first 2 audio channel, and not the others channel.
Is there a way in virtualdub or avisynth to extract only the 2 first audio channels?
FFAudioSource("v:\automazioneclip\input\temp.mxf")
?? ??
thanks to all
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 30 of 95
Thread
-
-
I'm pretty sure Audacity (with the ffmpeg source plugin) will allow you to select which track to import from an MXF file.
http://manual.audacityteam.org/o/man/faq_installation_and_plug_ins.html#ffdown -
Did you want to extract it to two mono wavs ? or use it in an avs script ?
To extract you can use ffmpeg
Code:ffmpeg -i input.mxf -vn -acodec copy -map 0:1 output1.wav ffmpeg -i input.mxf -vn -acodec copy -map 0:2 output2.wav
Code:ffmpeg -i input.mxf -vn -acodec copy -map 0:1 output1.wav -vn -acodec copy -map 0:2 output2.wav
Yes this works
It's probably better this way, you can specify a mix to stereo easily.
ffmpeg sucks for audio manipulation and I think you would need to pipe it to sox to get stereo
Another way in a avs script for stereo mix (I think these are the correct #'s for track numbers , or it might be track=0, track=1 for ffaudiosource )
Code:vid= ffvideosource("input.mxf") aud1= ffaudiosource("input.mxf",track=1) aud2= ffaudiosource("input.mxf",track=2) both=mergechannels(aud1,aud2) audiodub(vid,both) # soundout()
Last edited by poisondeathray; 19th May 2013 at 12:18.
-
Code:
FFAudioSource("v:\automazioneclip\input\temp.mxf") ?? ??
-
On my dropbox I have put an AUDIO.MXF in wich I have recorded in channel audio 1 the radiomicrophone and in channel audio 2 the panoramic mic of the camera. This two audio are hearing different.
Tha camera is set in IMX [D-10] mode so the video recording is SD and 4 audio channel @ 24 bit per channel (otherwise camera can be set to record 8 audio channel @ 16 bit per channel).
I have tried many ways but I get errors.
AUDIO.MXF can be download to my dropbox by logon into the dropbox (www.dropbox.com) ad logon into it with this credential:
user: mrocchini@email.it
pass: centrale
I would like to get a single file in stereo, that have ch1 and ch2 (48.000 sample, 16 bit)
Thanks to everyone! -
I have tried many ways but I get errors.
Code:video = FFVideoSource("v:\automazioneclip\input\temp.mxf") audio = FFAudioSource("v:\automazioneclip\input\temp.mxf") mono = GetChannel(audio, 1) return AudioDub(video, mono)
-
I'm not able to hear directly audio on virtualdub. Simply I try to "Save Wav file" but the winamp get an error because maybe the .wav file is not a 16bit/48KHz PCM file
I attach on this post an audio file of example that is correct (but CH2 is replicaded on CH1, however is a PCM/16bit/48Khz audio) this audio format file is my reference: 28.wav -
simply from AUDIO.MXF I need of one stereo file (L+R: L=CH1 and R=CH2 or viceversa) PCM 48Khz
-
when I open:
Code:LoadPlugin("g:\Hybrid\avisynthPlugins\ffms2.dll") video = FFVideoSource("h:\AUDIO.MXF") audio = FFAudioSource("h:\AUDIO.MXF") mono = GetChannel(audio, 1) return AudioDub(video, mono)
-> no clue where your problem is.
+ I agree with poisondeathray if you just want to extract a specific channel without any video processing, Audacity is the way to go. -
Yes with the ffmpeg plugin (see jagabo's link above)
http://manual.audacityteam.org/o/man/faq_installation_and_plug_ins.html#ffdown -
oh fantastic, now I can open it, but is there a way to do a script for virtualdub or avisynt that do the operation?
-
si practically I should remove CH3 and CH4 and export in stereo mode, PCM/48000Hz separate channels
-
Since you have 1 audio track, 4 channels, you can use getchannel() as suggested by selur . Note this is different that the other example above with ffaudiosource and track=# , (4 or more mono audio tracks instead of 1)
Code:vid= ffvideosource("audio.mxf") aud= ffaudiosource("audio.mxf") left = GetChannel(aud, 1) right = GetChannel(aud, 2) both=mergechannels(left, right) audiodub(vid,both)
-
-
sorry, I get this attached error
maybe I have uninstall any avisynth/plugin? -
With this script virtualdub open the AUDIO.MXF but when I try to Save WAV file I get this attach error:
-
-
maybe is there a way to generate the .wav file directly from the script?
-
Yes -> http://avisynth.org/mediawiki/SoundOut
(script still needs to be played in full by some application) -
-
For the vdub error, add to the end of the script
ConvertAudioTo16Bit()
sorry maybe I forget an important thing:
Finally I would like to achieve video and audio separate files:
from audio.mxf I have to generate a video.avi file and a audio.wav file
Not all in one file
I forgot to say it -
doesn't
Code:SoundOut(output = "wav", filename="c:\outputFile.wav", atype=1, format=0, autoclose=true, showprogress=true, overwritefile="yes")
Similar Threads
-
aviSynth, VirtualDub & filters ...
By AEN007 in forum Video ConversionReplies: 101Last Post: 9th Dec 2013, 15:19 -
Audio Synch Problems AVISynth to Virtualdub
By magillagorilla in forum AudioReplies: 15Last Post: 19th Sep 2011, 23:05 -
Confusion with DGIndex, AviSynth, VirtualDub and audio files
By fatcharlie in forum Newbie / General discussionsReplies: 10Last Post: 1st Mar 2011, 15:49 -
Is there a way to use avisynth plugins/filters within Virtualdub?
By Milardo in forum EditingReplies: 5Last Post: 5th Jan 2011, 03:52 -
BD to AviSynth (Or VirtualDub/VirtualDubMod) ???
By RogerTango in forum Blu-ray RippingReplies: 4Last Post: 3rd Jan 2009, 08:31