VideoHelp Forum
+ Reply to Thread
Page 1 of 4
1 2 3 ... LastLast
Results 1 to 30 of 95
Thread
  1. 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
    Quote Quote  
  2. 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
    Quote Quote  
  3. 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
    I think you can combine into 1 line

    Code:
    ffmpeg -i input.mxf -vn -acodec copy -map 0:1 output1.wav -vn -acodec copy -map 0:2 output2.wav


    Originally Posted by jagabo View Post
    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

    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()
    You can use soundout() to encode audio directly from an avs script
    Last edited by poisondeathray; 19th May 2013 at 12:18.
    Quote Quote  
  4. Code:
    FFAudioSource("v:\automazioneclip\input\temp.mxf")
    ?? ??
    -> http://avisynth.org/mediawiki/GetChannel
    Quote Quote  
  5. 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!
    Quote Quote  
  6. I have tried many ways but I get errors.
    What have you tried and what error do you get?

    Code:
    video = FFVideoSource("v:\automazioneclip\input\temp.mxf")
    audio = FFAudioSource("v:\automazioneclip\input\temp.mxf")
    mono = GetChannel(audio, 1)
    return AudioDub(video, mono)
    should return the video with the first audio channel
    Quote Quote  
  7. 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
    Image Attached Files
    Quote Quote  
  8. simply from AUDIO.MXF I need of one stereo file (L+R: L=CH1 and R=CH2 or viceversa) PCM 48Khz
    Quote Quote  
  9. The dropbox audio.mxf has 1 audio track, 4 channels . (ie. it's multiplexed into 1 wave)

    You can access each channel in audacity to do your own mix e.g. maybe you only want ch1 and ch2 to export stereo mix .

    File => export => advanced mixing options (output channels 2)

    Click image for larger version

Name:	2.jpg
Views:	725
Size:	30.5 KB
ID:	17951
    Quote Quote  
  10. 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)
    here with Virtual Dub I can clearly hear the audio
    -> 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.
    Quote Quote  
  11. oh yes thanks, but audacity don't open audio.mxf

    is there a way to open it?
    Quote Quote  
  12. Originally Posted by marcorocchini View Post
    oh yes thanks, but audacity don't open audio.mxf

    is there a way to open it?

    Yes with the ffmpeg plugin (see jagabo's link above)
    http://manual.audacityteam.org/o/man/faq_installation_and_plug_ins.html#ffdown
    Quote Quote  
  13. oh fantastic, now I can open it, but is there a way to do a script for virtualdub or avisynt that do the operation?
    Quote Quote  
  14. FFmpeg_v0.6.2_for_Audacity_on_Windows.exe
    Quote Quote  
  15. si practically I should remove CH3 and CH4 and export in stereo mode, PCM/48000Hz separate channels
    Quote Quote  
  16. Originally Posted by marcorocchini View Post
    oh fantastic, now I can open it, but is there a way to do a script for virtualdub or avisynt that do the operation?

    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)
    Quote Quote  
  17. Originally Posted by marcorocchini View Post
    si practically I should remove CH3 and CH4 and export in stereo mode, PCM/48000Hz separate channels

    It's up to you, you can mix alll 4 of them in if you want into a stereo mix
    Quote Quote  
  18. sorry, I get this attached error

    maybe I have uninstall any avisynth/plugin?
    Image Attached Thumbnails Click image for larger version

Name:	FFERR.BMP
Views:	363
Size:	116.4 KB
ID:	17955  

    Quote Quote  
  19. OH no sorry, I don't have specify the correct path

    alzheimer
    Quote Quote  
  20. what ffms2 version are you using?
    Quote Quote  
  21. Originally Posted by poisondeathray View Post
    Originally Posted by marcorocchini View Post
    oh fantastic, now I can open it, but is there a way to do a script for virtualdub or avisynt that do the operation?

    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)
    With this script virtualdub open the AUDIO.MXF but when I try to Save WAV file I get this attach error:
    Image Attached Thumbnails Click image for larger version

Name:	AUERR.BMP
Views:	240
Size:	197.0 KB
ID:	17956  

    Quote Quote  
  22. Originally Posted by Selur View Post
    what ffms2 version are you using?
    No sorry, I'm alzheimer (I don't have specify the correct patch of audio.mxf)
    Quote Quote  
  23. Also I tryed to do this:

    In virtualdub-->Audio-->Conversion I set as attach [AUconv.bmp]

    and Save WAV file

    but my winamp don't read the ouputted .wav file because maybe is different than a PCM/48Khz files
    Quote Quote  
  24. this is AUconv.bmp
    Image Attached Thumbnails Click image for larger version

Name:	AUCONV.BMP
Views:	352
Size:	724.0 KB
ID:	17957  

    Quote Quote  
  25. maybe is there a way to generate the .wav file directly from the script?
    Quote Quote  
  26. Yes -> http://avisynth.org/mediawiki/SoundOut
    (script still needs to be played in full by some application)
    Quote Quote  
  27. Originally Posted by poisondeathray View Post
    Originally Posted by marcorocchini View Post
    oh fantastic, now I can open it, but is there a way to do a script for virtualdub or avisynt that do the operation?

    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 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
    Quote Quote  
  28. 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
    It doesn't matter; you can save audio and or video separately with the same script
    Quote Quote  
  29. Originally Posted by Selur View Post
    Yes -> http://avisynth.org/mediawiki/SoundOut
    (script still needs to be played in full by some application)

    yes, I have install it as plugin in avisynth but I'm not able to use it
    Quote Quote  
  30. doesn't
    Code:
    SoundOut(output = "wav", filename="c:\outputFile.wav", atype=1, format=0, autoclose=true, showprogress=true, overwritefile="yes")
    work ?
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!