HI C*T(s):
please I need help
I try to load in avisynth this C0060.MXF
Generale
Complete name : C:\Users\Administrator\Desktop\Nuova cartella\C0060.MXF
Format : MXF
Commercial name : XDCAM HD422
Format version : 1.2
Format profile : OP-1a
Format settings : Closed / Complete
File size : 86,1MiB
Duration : 12s 0ms
Overall bit rate : 60,2 Mbps
Encoded date : 2014-06-21 20:10:08.000
Writing application : SONY Opt 1.22
Video
ID : 2
Format : MPEG Video
Commercial name : XDCAM HD422
Format version : Version 2
Format profile : 4:2:2@High
Format settings, BVOP : Si
Format settings, Matrix : Personalizzato
Format settings, GOP : M=3, N=12
Format settings, picture structure : Frame
Format settings, wrapping mode : Frame
Codec ID : 0D01030102046001-0401020201040300
Duration : 12s 0ms
Bit rate : 50,0 Mbps
Width : 1.920 pixel
Height : 1.080 pixel
Display aspect ratio : 16:9
Frame rate : 25,000 fps
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 8 bit
Scan type : Interlacciato
Scan order : Top field first
Compression mode : Con perdita
Bits/(Pixel*Frame) : 0.965
Stream size : 71,5MiB (83%)
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio #1
ID : 3
Format : PCM
Format settings, Endianness : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 12s 0ms
Bit rate mode : Costante
Bit rate : 1.152 Kbps
Channel(s) : 1 canale
Sampling rate : 48,0 KHz
Frame rate : 25,000 fps (1920 spf)
Bit depth : 24 bit
Stream size : 1,65MiB (2%)
Audio #2
ID : 4
Format : PCM
Format settings, Endianness : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 12s 0ms
Bit rate mode : Costante
Bit rate : 1.152 Kbps
Channel(s) : 1 canale
Sampling rate : 48,0 KHz
Frame rate : 25,000 fps (1920 spf)
Bit depth : 24 bit
Stream size : 1,65MiB (2%)
Audio #3
ID : 5
Format : PCM
Format settings, Endianness : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 12s 0ms
Bit rate mode : Costante
Bit rate : 1.152 Kbps
Channel(s) : 1 canale
Sampling rate : 48,0 KHz
Frame rate : 25,000 fps (1920 spf)
Bit depth : 24 bit
Stream size : 1,65MiB (2%)
Audio #4
ID : 6
Format : PCM
Format settings, Endianness : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 12s 0ms
Bit rate mode : Costante
Bit rate : 1.152 Kbps
Channel(s) : 1 canale
Sampling rate : 48,0 KHz
Frame rate : 25,000 fps (1920 spf)
Bit depth : 24 bit
Stream size : 1,65MiB (2%)
Audio #5
ID : 7
Format : PCM
Format settings, Endianness : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 12s 0ms
Bit rate mode : Costante
Bit rate : 1.152 Kbps
Channel(s) : 1 canale
Sampling rate : 48,0 KHz
Frame rate : 25,000 fps (1920 spf)
Bit depth : 24 bit
Stream size : 1,65MiB (2%)
Audio #6
ID : 8
Format : PCM
Format settings, Endianness : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 12s 0ms
Bit rate mode : Costante
Bit rate : 1.152 Kbps
Channel(s) : 1 canale
Sampling rate : 48,0 KHz
Frame rate : 25,000 fps (1920 spf)
Bit depth : 24 bit
Stream size : 1,65MiB (2%)
Audio #7
ID : 9
Format : PCM
Format settings, Endianness : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 12s 0ms
Bit rate mode : Costante
Bit rate : 1.152 Kbps
Channel(s) : 1 canale
Sampling rate : 48,0 KHz
Frame rate : 25,000 fps (1920 spf)
Bit depth : 24 bit
Stream size : 1,65MiB (2%)
Audio #8
ID : 10
Format : PCM
Format settings, Endianness : Little
Format settings, wrapping mode : Frame (AES)
Codec ID : 0D01030102060300
Duration : 12s 0ms
Bit rate mode : Costante
Bit rate : 1.152 Kbps
Channel(s) : 1 canale
Sampling rate : 48,0 KHz
Frame rate : 25,000 fps (1920 spf)
Bit depth : 24 bit
Stream size : 1,65MiB (2%)
Altri #1
ID : 1-Material
Type : Time code
Format : MXF TC
Time code of first frame : 01:02:34:00
Time code settings : Material Package
Time code, striped : Si
Altri #2
ID : 1-Source
Type : Time code
Format : MXF TC
Time code of first frame : 01:02:34:00
Time code settings : Source Package
Time code, striped : Si
Altri #3
Type : Time code
Format : SMPTE TC
Muxing mode : SDTI
Time code of first frame : 01:02:34:00
This is my script:
but I get this error in the audio section:Code:SetMemoryMax(16) LoadPlugin("v:\automazioneclip\avisynth\plugins\LSMASHSource.dll") videofile1 = LWLibavVideoSource("C:\Users\Administrator\Desktop\Nuova cartella\C0060.MXF" ) audiofile1 = LWLibavAudioSource("C:\Users\Administrator\Desktop\Nuova cartella\C0060.MXF" ) left1 = GetChannel(audiofile1, 1) right1 = GetChannel(audiofile1, 2) both1=mergechannels(left1, right1) audiodub(videofile1,both1)
what could it be?
thanks
+ Reply to Thread
Results 1 to 6 of 6
-
-
The problem is that your source file does not have a single audio track with multiple channels but instead multiple mono tracks. LWLibavAudioSource loads the first (mono) track by default so there is no second channel for GetChannel() to access. You have to make two calls to LWLibavAudioSource() to read two tracks instead of using GetChannel(). Read the README that is included in LWLibavAudioSource() for info on how to select a specific audio track.
-
One thing I should mention: I assume you want to convert 7.1 to stereo audio? You cannot just pick the front left and front right channels (here: tracks). That way you would lose e.g. the center channel where all the talking happens. You need to load all (except LFE?) tracks/channels and make a downmix to stereo from that.
http://forum.doom9.org/showthread.php?p=1303150#post1303150 -
my target is getting a simple stereo L+R
audio channel1+audiochannel2 of the camera -
this is my source
https://www.dropbox.com/s/y52b8p7iz7f8vj1/C0060.MXF?dl=0
Similar Threads
-
ffmpegsource2 error in Avisynth
By fidogenial in forum Newbie / General discussionsReplies: 23Last Post: 16th Jun 2016, 18:58 -
Weird avisynth error in V.A.F.E
By fighuass in forum Video ConversionReplies: 8Last Post: 6th Jul 2015, 16:26 -
Not a cat?
By poisondeathray in forum Off topicReplies: 4Last Post: 14th Oct 2014, 17:26 -
does exist mp4 plugin for avisynth
By marcorocchini in forum Newbie / General discussionsReplies: 1Last Post: 3rd Oct 2014, 18:07 -
Avisynth error code 2
By Rotwang Gorbochoff in forum Newbie / General discussionsReplies: 5Last Post: 11th May 2013, 17:51