Hi please help a ***
I have a source like this:
https://www.dropbox.com/s/b09etl1i2bfryj5/C0058.MXF?dl=0
and build this scriptCode:General Complete name : C:\Users\Administrator\Desktop\Nuova cartella\C0058.MXF Format : MXF Commercial name : XDCAM HD422 Format version : 1.2 Format profile : OP-1a Format settings : Closed / Complete File size : 56.1 MiB Duration : 7 s 760 ms Overall bit rate : 60.7 Mb/s Encoded date : 2017-08-09 19:25:38.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 : Yes Format settings, Matrix : Custom Format settings, GOP : M=3, N=12 Format settings, picture structure : Frame Format settings, wrapping mode : Frame Codec ID : 0D01030102046001-0401020201040300 Duration : 7 s 760 ms Bit rate mode : Constant Bit rate : 50.0 Mb/s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 25.000 FPS Standard : Component Color space : YUV Chroma subsampling : 4:2:2 Bit depth : 8 bits Scan type : Interlaced Scan order : Top Field First Compression mode : Lossy Bits/(Pixel*Frame) : 0.965 Stream size : 46.3 MiB (82%) 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 : 7 s 760 ms Bit rate mode : Constant Bit rate : 1 152 kb/s Channel(s) : 1 channel Sampling rate : 48.0 kHz Frame rate : 25.000 FPS (1920 spf) Bit depth : 24 bits Stream size : 1.07 MiB (2%) Locked : Yes Audio #2 ID : 4 Format : PCM Format settings, Endianness : Little Format settings, wrapping mode : Frame (AES) Codec ID : 0D01030102060300 Duration : 7 s 760 ms Bit rate mode : Constant Bit rate : 1 152 kb/s Channel(s) : 1 channel Sampling rate : 48.0 kHz Frame rate : 25.000 FPS (1920 spf) Bit depth : 24 bits Stream size : 1.07 MiB (2%) Locked : Yes Audio #3 ID : 5 Format : PCM Format settings, Endianness : Little Format settings, wrapping mode : Frame (AES) Codec ID : 0D01030102060300 Duration : 7 s 760 ms Bit rate mode : Constant Bit rate : 1 152 kb/s Channel(s) : 1 channel Sampling rate : 48.0 kHz Frame rate : 25.000 FPS (1920 spf) Bit depth : 24 bits Stream size : 1.07 MiB (2%) Locked : Yes Audio #4 ID : 6 Format : PCM Format settings, Endianness : Little Format settings, wrapping mode : Frame (AES) Codec ID : 0D01030102060300 Duration : 7 s 760 ms Bit rate mode : Constant Bit rate : 1 152 kb/s Channel(s) : 1 channel Sampling rate : 48.0 kHz Frame rate : 25.000 FPS (1920 spf) Bit depth : 24 bits Stream size : 1.07 MiB (2%) Locked : Yes Audio #5 ID : 7 Format : PCM Format settings, Endianness : Little Format settings, wrapping mode : Frame (AES) Codec ID : 0D01030102060300 Duration : 7 s 760 ms Bit rate mode : Constant Bit rate : 1 152 kb/s Channel(s) : 1 channel Sampling rate : 48.0 kHz Frame rate : 25.000 FPS (1920 spf) Bit depth : 24 bits Stream size : 1.07 MiB (2%) Locked : Yes Audio #6 ID : 8 Format : PCM Format settings, Endianness : Little Format settings, wrapping mode : Frame (AES) Codec ID : 0D01030102060300 Duration : 7 s 760 ms Bit rate mode : Constant Bit rate : 1 152 kb/s Channel(s) : 1 channel Sampling rate : 48.0 kHz Frame rate : 25.000 FPS (1920 spf) Bit depth : 24 bits Stream size : 1.07 MiB (2%) Locked : Yes Audio #7 ID : 9 Format : PCM Format settings, Endianness : Little Format settings, wrapping mode : Frame (AES) Codec ID : 0D01030102060300 Duration : 7 s 760 ms Bit rate mode : Constant Bit rate : 1 152 kb/s Channel(s) : 1 channel Sampling rate : 48.0 kHz Frame rate : 25.000 FPS (1920 spf) Bit depth : 24 bits Stream size : 1.07 MiB (2%) Locked : Yes Audio #8 ID : 10 Format : PCM Format settings, Endianness : Little Format settings, wrapping mode : Frame (AES) Codec ID : 0D01030102060300 Duration : 7 s 760 ms Bit rate mode : Constant Bit rate : 1 152 kb/s Channel(s) : 1 channel Sampling rate : 48.0 kHz Frame rate : 25.000 FPS (1920 spf) Bit depth : 24 bits Stream size : 1.07 MiB (2%) Locked : Yes Other #1 ID : 1-Material Type : Time code Format : MXF TC Time code of first frame : 00:00:03:05 Time code settings : Material Package Time code, striped : Yes Other #2 ID : 1-Source Type : Time code Format : MXF TC Time code of first frame : 00:00:03:05 Time code settings : Source Package Time code, striped : Yes Other #3 Type : Time code Format : SMPTE TC Muxing mode : SDTI Time code of first frame : 00:00:03:05
but Avisynth returns:Code:LoadPlugin("v:\automazioneclip\avisynth\plugins\LSMASHSource.dll") vid=LWLibavVideoSource("C:\Users\Administrator\Desktop\Nuova cartella\C0058.MXF").Crop(0,0,-0,-0).DelayAudio(-0.0).LanczosResize(960,540).ShowSMPTE(fps=25, offset="01:13:04:17",x=68, y=61, font="Arial", size=24, text_color=$ff0000) aud=LWLibavAudioSource("C:\Users\Administrator\Desktop\Nuova cartella\C0058.MXF") left = GetChannel(aud, 1) right = GetChannel(aud, 2) both=mergechannels(left, right) audiodub(vid, both) ConvertAudioTo16Bit()
GetChannel: Attempted to request a channel that didn't exist!
(C:\Users\Administrator\Desktop\Nuova cartella\miao.avs, line 7)
I need to load CH1 and CH2 of the C0058.MXF source file, how is possible that? thanks
p.s.: this source have not audio in CH1/CH2/CH3 but however I try to understand why avisynth won't load it
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 3 of 3
			
		- 
	
- 
	The audio is in mono tracks, not channels of a single track. So you need to set left = LWLibavAudioSource (stream_index=x), right= LWLibavAudioSource (stream_index=y) 
 
 http://avisynth.nl/index.php/LSMASHSource/LWLibavAudioSource
- 
	
 [Attachment 42844 - Click to enlarge]
 
 Code:LoadPlugin("v:\automazioneclip\avisynth\plugins\LSMASHSource.dll") vid=LWLibavVideoSource("C:\Users\Administrator\Desktop\Nuova cartella\C0097.MXF").Crop(0,0,-0,-0).DelayAudio(-0.0).LanczosResize(960,540).ShowSMPTE(fps=25, offset="01:13:04:17",x=600, y=500, font="Arial", size=50, text_color=$ffffff).converttoYV16() aud=LWLibavAudioSource("C:\Users\Administrator\Desktop\Nuova cartella\C0097.MXF") left = LWLibavAudioSource("C:\Users\Administrator\Desktop\Nuova cartella\C0097.MXF", stream_index=1) right = LWLibavAudioSource("C:\Users\Administrator\Desktop\Nuova cartella\C0097.MXF", stream_index=2) both=mergechannels(left, right) audiodub(vid, both) ConvertAudioTo16Bit() Histogram("audiolevels")
Similar Threads
- 
  Avisynth: Loading images like we load subtitlesBy ReubenMru in forum EditingReplies: 2Last Post: 27th Jan 2017, 17:30
- 
  avisynth error: attempted to cat request does not exist ?!?By marcorocchini in forum Newbie / General discussionsReplies: 5Last Post: 17th Mar 2016, 15:12
- 
  avisynth slow to load using FFVideoSource(....) than VirtualdubBy marcorocchini in forum Newbie / General discussionsReplies: 15Last Post: 23rd Sep 2014, 17:48
- 
  HELP! MeGUI can't load certain avisynth pluginsBy Throw_Hammer in forum Newbie / General discussionsReplies: 3Last Post: 22nd Feb 2014, 18:19
- 
  AVISynth will not load plugins Win-7 (64)By Sartorius48 in forum Newbie / General discussionsReplies: 9Last Post: 31st Dec 2012, 22:17


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			
 Quote
 Quote