View unanswered posts | View active topics It is currently Tue, 2018/12/18 12:01 pm



Reply to topic  [ 14 posts ] 
QTInput with AVISynth GetChannel() causes audio cut out 
Author Message

Joined: Mon, 2012/05/14 6:57 pm
Posts: 8
Unread post QTInput with AVISynth GetChannel() causes audio cut out
Hi tateu,

First, thanks for a great AVISynth plugin. I'm having an issue (and I believe I'm not the only one after reading other posts in this forum) where the combination of using the GetChannel() function in an AVISynth script is causing the audio to go silent after about 24 minutes in. Is it possible to get a fix for this?

QuickTime versions used: 7.5.5 and 7.7.1
AVISynth version: 2.5.8

Here is the AVISynth script I am using:
QTInput("r:\source.mov",audio=2)
GetChannel(7,8)

Below is the output of mediainfo so you can see the attributes of the file.
General
Count : 280
Count of stream of this kind : 1
Kind of stream : General
Kind of stream : General
Stream identifier : 0
Count of video streams : 1
Count of audio streams : 8
Count of menu streams : 1
Video_Format_List : ProRes
Video_Format_WithHint_List : ProRes
Codecs Video : apch
Video_Language_List : English
Audio_Format_List : PCM / PCM / PCM / PCM / PCM / PCM / PCM / PCM
Audio_Format_WithHint_List : PCM / PCM / PCM / PCM / PCM / PCM / PCM / PCM
Audio codecs : PCM / PCM / PCM / PCM / PCM / PCM / PCM / PCM
Audio_Language_List : English / English / English / English / English / English / English / English
Menu_Format_List : TimeCode
Menu_Format_WithHint_List : TimeCode
Menu_Language_List : English
Complete name : R:\source.mov
Folder name : R:\
File name : source
File extension : mov
Format : MPEG-4
Format : MPEG-4
Format/Extensions usually used : mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
Commercial name : MPEG-4
Format profile : QuickTime
Internet media type : video/mp4
Codec ID : qt
Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html
Codec : MPEG-4
Codec : MPEG-4
Codec/Extensions usually used : mp4 m4v m4a m4b m4p 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma f4v
File size : 55841187152
File size : 52.0 GiB
File size : 52 GiB
File size : 52 GiB
File size : 52.0 GiB
File size : 52.01 GiB
Duration : 2622581
Duration : 43mn 42s
Duration : 43mn 42s 581ms
Duration : 43mn 42s
Duration : 00:43:42.581
Overall bit rate mode : VBR
Overall bit rate mode : Variable
Overall bit rate : 170339637
Overall bit rate : 170 Mbps
Stream size : 772768160
Stream size : 737 MiB (1%)
Stream size : 737 MiB
Stream size : 737 MiB
Stream size : 737 MiB
Stream size : 737.0 MiB
Stream size : 737 MiB (1%)
Proportion of this stream : 0.01384
HeaderSize : 32
DataSize : 55837594832
FooterSize : 3592288
IsStreamable : No
Encoded date : UTC 2012-02-21 22:35:39
Tagged date : UTC 2012-04-27 14:01:03
File last modification date : UTC 2012-04-27 14:21:50
File last modification date (local) : 2012-04-27 07:21:50
Writing library : Apple QuickTime 7.6.6
Writing library : Apple QuickTime 7.6.6
Writing library/Name : Apple QuickTime
Writing library/Version : 7.6.6
Media/UUID : EF680882-33D2-402D-A90A-D733078544BD
com.apple.quicktime.player.movie.audio.m : (Binary)

Video
Count : 201
Count of stream of this kind : 1
Kind of stream : Video
Kind of stream : Video
Stream identifier : 0
ID : 1
ID : 1
Format : ProRes
Commercial name : ProRes
Format profile : High
Codec ID : apch
Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html
Codec : apch
Codec : apch
Codec/CC : apch
Duration : 2622581
Duration : 43mn 42s
Duration : 43mn 42s 581ms
Duration : 43mn 42s
Duration : 00:43:42.581
Bit rate mode : VBR
Bit rate mode : Variable
Bit rate : 158766377
Bit rate : 159 Mbps
Width : 1920
Width : 1 920 pixels
Height : 1080
Height : 1 080 pixels
Pixel aspect ratio : 1.000
Display aspect ratio : 1.778
Display aspect ratio : 16:9
Rotation : 0.000
Frame rate mode : CFR
Frame rate mode : Constant
Frame rate : 23.976
Frame rate : 23.976 fps
Frame count : 62879
Color space : YUV
Chroma subsampling : 4:2:2
Scan type : Progressive
Scan type : Progressive
Bits/(Pixel*Frame) : 3.193
Delay : 3600000
Delay : 1h 0mn
Delay : 1h 0mn 0s 0ms
Delay : 1h 0mn
Delay : 01:00:00.000
Delay_Settings : DropFrame=No / 24HourMax=No / IsVisual=No
Delay, origin : Container
Delay, origin : Container
Stream size : 52047208800
Stream size : 48.5 GiB (93%)
Stream size : 48 GiB
Stream size : 48 GiB
Stream size : 48.5 GiB
Stream size : 48.47 GiB
Stream size : 48.5 GiB (93%)
Proportion of this stream : 0.93206
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Encoded date : UTC 2012-02-21 22:35:39
Tagged date : UTC 2012-04-27 14:01:03

Audio #1
Count : 171
Count of stream of this kind : 8
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 0
Stream identifier : 1
ID : 2
ID : 2
Format : PCM
Commercial name : PCM
Format settings : Big / Unsigned
Format settings, Endianness : Little
Format settings, Sign : Unsigned
Codec ID : in24
Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html
Codec : PCM
Codec : PCM
Codec/Family : PCM
Codec/Url : http://www.apple.com/quicktime/download/standalone.html
Codec/CC : in24
Codec settings : Big / Unsigned
Codec settings, Endianness : Big
Codec settings, Sign : Unsigned
Duration : 2622578
Duration : 43mn 42s
Duration : 43mn 42s 578ms
Duration : 43mn 42s
Duration : 00:43:42.578
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 1152000
Bit rate : 1 152 Kbps
Channel(s) : 1
Channel(s) : 1 channel
Channel positions : Front: L
ChannelLayout : L
Sampling rate : 48000
Sampling rate : 48.0 KHz
Samples count : 125883744
Frame count : 125883744
Resolution : 24
Resolution : 24 bits
Bit depth : 24
Bit depth : 24 bits
Stream size : 377651274
Stream size : 360 MiB (1%)
Stream size : 360 MiB
Stream size : 360 MiB
Stream size : 360 MiB
Stream size : 360.2 MiB
Stream size : 360 MiB (1%)
Proportion of this stream : 0.00676
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Encoded date : UTC 2012-02-21 22:35:39
Tagged date : UTC 2012-04-26 19:42:51
Material_Duration : 2622578
Material_StreamSize : 377651274

Audio #2
Count : 171
Count of stream of this kind : 8
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 1
Stream identifier : 2
ID : 3
ID : 3
Format : PCM
Commercial name : PCM
Format settings : Big / Unsigned
Format settings, Endianness : Little
Format settings, Sign : Unsigned
Codec ID : in24
Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html
Codec : PCM
Codec : PCM
Codec/Family : PCM
Codec/Url : http://www.apple.com/quicktime/download/standalone.html
Codec/CC : in24
Codec settings : Big / Unsigned
Codec settings, Endianness : Big
Codec settings, Sign : Unsigned
Duration : 2622578
Duration : 43mn 42s
Duration : 43mn 42s 578ms
Duration : 43mn 42s
Duration : 00:43:42.578
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 1152000
Bit rate : 1 152 Kbps
Channel(s) : 1
Channel(s) : 1 channel
Channel positions : Front: R
ChannelLayout : R
Sampling rate : 48000
Sampling rate : 48.0 KHz
Samples count : 125883744
Frame count : 125883744
Resolution : 24
Resolution : 24 bits
Bit depth : 24
Bit depth : 24 bits
Stream size : 377651274
Stream size : 360 MiB (1%)
Stream size : 360 MiB
Stream size : 360 MiB
Stream size : 360 MiB
Stream size : 360.2 MiB
Stream size : 360 MiB (1%)
Proportion of this stream : 0.00676
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Encoded date : UTC 2012-02-21 22:35:39
Tagged date : UTC 2012-04-26 19:42:51
Material_Duration : 2622578
Material_StreamSize : 377651274

Audio #3
Count : 171
Count of stream of this kind : 8
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 2
Stream identifier : 3
ID : 4
ID : 4
Format : PCM
Commercial name : PCM
Format settings : Big / Unsigned
Format settings, Endianness : Little
Format settings, Sign : Unsigned
Codec ID : in24
Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html
Codec : PCM
Codec : PCM
Codec/Family : PCM
Codec/Url : http://www.apple.com/quicktime/download/standalone.html
Codec/CC : in24
Codec settings : Big / Unsigned
Codec settings, Endianness : Big
Codec settings, Sign : Unsigned
Duration : 2622578
Duration : 43mn 42s
Duration : 43mn 42s 578ms
Duration : 43mn 42s
Duration : 00:43:42.578
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 1152000
Bit rate : 1 152 Kbps
Channel(s) : 1
Channel(s) : 1 channel
Channel positions : Front: C
ChannelLayout : C
Sampling rate : 48000
Sampling rate : 48.0 KHz
Samples count : 125883744
Frame count : 125883744
Resolution : 24
Resolution : 24 bits
Bit depth : 24
Bit depth : 24 bits
Stream size : 377651274
Stream size : 360 MiB (1%)
Stream size : 360 MiB
Stream size : 360 MiB
Stream size : 360 MiB
Stream size : 360.2 MiB
Stream size : 360 MiB (1%)
Proportion of this stream : 0.00676
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Encoded date : UTC 2012-02-21 22:35:39
Tagged date : UTC 2012-04-26 19:42:51
Material_Duration : 2622578
Material_StreamSize : 377651274

Audio #4
Count : 171
Count of stream of this kind : 8
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 3
Stream identifier : 4
ID : 5
ID : 5
Format : PCM
Commercial name : PCM
Format settings : Big / Unsigned
Format settings, Endianness : Little
Format settings, Sign : Unsigned
Codec ID : in24
Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html
Codec : PCM
Codec : PCM
Codec/Family : PCM
Codec/Url : http://www.apple.com/quicktime/download/standalone.html
Codec/CC : in24
Codec settings : Big / Unsigned
Codec settings, Endianness : Big
Codec settings, Sign : Unsigned
Duration : 2622578
Duration : 43mn 42s
Duration : 43mn 42s 578ms
Duration : 43mn 42s
Duration : 00:43:42.578
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 1152000
Bit rate : 1 152 Kbps
Channel(s) : 1
Channel(s) : 1 channel
Channel positions : , LFE
ChannelLayout : LFE
Sampling rate : 48000
Sampling rate : 48.0 KHz
Samples count : 125883744
Frame count : 125883744
Resolution : 24
Resolution : 24 bits
Bit depth : 24
Bit depth : 24 bits
Stream size : 377651274
Stream size : 360 MiB (1%)
Stream size : 360 MiB
Stream size : 360 MiB
Stream size : 360 MiB
Stream size : 360.2 MiB
Stream size : 360 MiB (1%)
Proportion of this stream : 0.00676
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Encoded date : UTC 2012-02-21 22:35:39
Tagged date : UTC 2012-04-26 19:42:51
Material_Duration : 2622578
Material_StreamSize : 377651274

Audio #5
Count : 171
Count of stream of this kind : 8
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 4
Stream identifier : 5
ID : 6
ID : 6
Format : PCM
Commercial name : PCM
Format settings : Big / Unsigned
Format settings, Endianness : Little
Format settings, Sign : Unsigned
Codec ID : in24
Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html
Codec : PCM
Codec : PCM
Codec/Family : PCM
Codec/Url : http://www.apple.com/quicktime/download/standalone.html
Codec/CC : in24
Codec settings : Big / Unsigned
Codec settings, Endianness : Big
Codec settings, Sign : Unsigned
Duration : 2622578
Duration : 43mn 42s
Duration : 43mn 42s 578ms
Duration : 43mn 42s
Duration : 00:43:42.578
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 1152000
Bit rate : 1 152 Kbps
Channel(s) : 1
Channel(s) : 1 channel
Channel positions : , Back: L
ChannelLayout : Ls
Sampling rate : 48000
Sampling rate : 48.0 KHz
Samples count : 125883744
Frame count : 125883744
Resolution : 24
Resolution : 24 bits
Bit depth : 24
Bit depth : 24 bits
Stream size : 377651274
Stream size : 360 MiB (1%)
Stream size : 360 MiB
Stream size : 360 MiB
Stream size : 360 MiB
Stream size : 360.2 MiB
Stream size : 360 MiB (1%)
Proportion of this stream : 0.00676
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Encoded date : UTC 2012-02-21 22:35:39
Tagged date : UTC 2012-04-26 19:42:51
Material_Duration : 2622578
Material_StreamSize : 377651274

Audio #6
Count : 171
Count of stream of this kind : 8
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 5
Stream identifier : 6
ID : 7
ID : 7
Format : PCM
Commercial name : PCM
Format settings : Big / Unsigned
Format settings, Endianness : Little
Format settings, Sign : Unsigned
Codec ID : in24
Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html
Codec : PCM
Codec : PCM
Codec/Family : PCM
Codec/Url : http://www.apple.com/quicktime/download/standalone.html
Codec/CC : in24
Codec settings : Big / Unsigned
Codec settings, Endianness : Big
Codec settings, Sign : Unsigned
Duration : 2622578
Duration : 43mn 42s
Duration : 43mn 42s 578ms
Duration : 43mn 42s
Duration : 00:43:42.578
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 1152000
Bit rate : 1 152 Kbps
Channel(s) : 1
Channel(s) : 1 channel
Channel positions : , Back: R
ChannelLayout : Rs
Sampling rate : 48000
Sampling rate : 48.0 KHz
Samples count : 125883744
Frame count : 125883744
Resolution : 24
Resolution : 24 bits
Bit depth : 24
Bit depth : 24 bits
Stream size : 377651274
Stream size : 360 MiB (1%)
Stream size : 360 MiB
Stream size : 360 MiB
Stream size : 360 MiB
Stream size : 360.2 MiB
Stream size : 360 MiB (1%)
Proportion of this stream : 0.00676
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Encoded date : UTC 2012-02-21 22:35:39
Tagged date : UTC 2012-04-26 19:42:51
Material_Duration : 2622578
Material_StreamSize : 377651274

Audio #7
Count : 171
Count of stream of this kind : 8
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 6
Stream identifier : 7
ID : 8
ID : 8
Format : PCM
Commercial name : PCM
Format settings : Big / Unsigned
Format settings, Endianness : Little
Format settings, Sign : Unsigned
Codec ID : in24
Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html
Codec : PCM
Codec : PCM
Codec/Family : PCM
Codec/Url : http://www.apple.com/quicktime/download/standalone.html
Codec/CC : in24
Codec settings : Big / Unsigned
Codec settings, Endianness : Big
Codec settings, Sign : Unsigned
Duration : 2622578
Duration : 43mn 42s
Duration : 43mn 42s 578ms
Duration : 43mn 42s
Duration : 00:43:42.578
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 1152000
Bit rate : 1 152 Kbps
Channel(s) : 1
Channel(s) : 1 channel
ChannelLayout : Lt
Sampling rate : 48000
Sampling rate : 48.0 KHz
Samples count : 125883744
Frame count : 125883744
Resolution : 24
Resolution : 24 bits
Bit depth : 24
Bit depth : 24 bits
Stream size : 377651274
Stream size : 360 MiB (1%)
Stream size : 360 MiB
Stream size : 360 MiB
Stream size : 360 MiB
Stream size : 360.2 MiB
Stream size : 360 MiB (1%)
Proportion of this stream : 0.00676
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Encoded date : UTC 2012-02-21 22:35:39
Tagged date : UTC 2012-04-26 19:42:51
Material_Duration : 2622578
Material_StreamSize : 377651274

Audio #8
Count : 171
Count of stream of this kind : 8
Kind of stream : Audio
Kind of stream : Audio
Stream identifier : 7
Stream identifier : 8
ID : 9
ID : 9
Format : PCM
Commercial name : PCM
Format settings : Big / Unsigned
Format settings, Endianness : Little
Format settings, Sign : Unsigned
Codec ID : in24
Codec ID/Url : http://www.apple.com/quicktime/download/standalone.html
Codec : PCM
Codec : PCM
Codec/Family : PCM
Codec/Url : http://www.apple.com/quicktime/download/standalone.html
Codec/CC : in24
Codec settings : Big / Unsigned
Codec settings, Endianness : Big
Codec settings, Sign : Unsigned
Duration : 2622578
Duration : 43mn 42s
Duration : 43mn 42s 578ms
Duration : 43mn 42s
Duration : 00:43:42.578
Bit rate mode : CBR
Bit rate mode : Constant
Bit rate : 1152000
Bit rate : 1 152 Kbps
Channel(s) : 1
Channel(s) : 1 channel
ChannelLayout : Rt
Sampling rate : 48000
Sampling rate : 48.0 KHz
Samples count : 125883744
Frame count : 125883744
Resolution : 24
Resolution : 24 bits
Bit depth : 24
Bit depth : 24 bits
Stream size : 377651274
Stream size : 360 MiB (1%)
Stream size : 360 MiB
Stream size : 360 MiB
Stream size : 360 MiB
Stream size : 360.2 MiB
Stream size : 360 MiB (1%)
Proportion of this stream : 0.00676
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Encoded date : UTC 2012-02-21 22:35:39
Tagged date : UTC 2012-04-26 19:42:51
Material_Duration : 2622578
Material_StreamSize : 377651274

Menu
Count : 74
Count of stream of this kind : 1
Kind of stream : Menu
Kind of stream : Menu
Stream identifier : 0
ID : 12
ID : 12
Format : TimeCode
Commercial name : TimeCode
Duration : 2622581
Duration : 43mn 42s
Duration : 43mn 42s 581ms
Duration : 43mn 42s
Duration : 00:43:42.581
Language : en
Language : English
Language : English
Language : en
Language : eng
Language : en
Encoded date : UTC 2012-02-21 23:00:14
Tagged date : UTC 2012-02-21 23:00:14

Thanks in advance,
kangstarr


Mon, 2012/05/14 7:11 pm
Profile
Site Admin

Joined: Sun, 2005/04/03 7:02 pm
Posts: 307
Location: Los Angeles, CA USA
Unread post Re: QTInput with AVISynth GetChannel() causes audio cut out
kangstarr wrote:
Is it possible to get a fix for this?

If I can't reproduce the problem, then I really have no way to know what to fix...and I can't reproduce your problem. I am using a test file with these specs:

Code:
General
Complete name                    : P:\z_GetChannel_40_Minutes.mov
Format                           : MPEG-4
Format profile                   : QuickTime
Codec ID                         : qt 
File size                        : 1.63 GiB
Duration                         : 40mn 0s
Overall bit rate                 : 5 850 Kbps
Writing application              : Lavf53.29.100

Video
ID                               : 1
Format                           : ProRes
Format profile                   : Normal
Codec ID                         : apcn
Duration                         : 40mn 0s
Bit rate mode                    : Constant
Bit rate                         : 201 Kbps
Width                            : 320 pixels
Height                           : 240 pixels
Display aspect ratio             : 4:3
Frame rate mode                  : Constant
Frame rate                       : 24.000 fps
Color space                      : YUV
Chroma subsampling               : 4:2:2
Bits/(Pixel*Frame)               : 0.109
Stream size                      : 57.6 MiB (3%)
Language                         : English

Audio
ID                               : 2
Format                           : PCM
Codec ID                         : lpcm
Duration                         : 39mn 59s
Bit rate mode                    : Constant
Bit rate                         : 5 645 Kbps
Channel(s)                       : 8 channels
Sampling rate                    : 44.1 KHz
Bit depth                        : 16 bits
Stream size                      : 1.58 GiB (96%)
Language                         : English

and it works fine.

If QTInput doesn't work for you, maybe try FFMpegSource. The newer versions handle ProRes, although be aware that some, if not all versions, have some ProRes decoding block errors. If you do get the video errors, you could decode the video with QTInput, the audio with FFmpegSource and then use AudioDub() to join them together.


Mon, 2012/05/14 7:49 pm
Profile WWW

Joined: Mon, 2012/05/14 6:57 pm
Posts: 8
Unread post Re: QTInput with AVISynth GetChannel() causes audio cut out
Thanks for the quick response. Maybe I can help you reproduce the issue?

The problem doesn't occur when trying to playback the AVS script file in VirtualDub. I can playback the AVS file just fine in VirtualDub.

However, the problem occurs when you try to encode from or export using the AVS script file (which is the whole point of bringing it into AVISynth.)

Can I upload the .mov file to you (audio only) so you can try to reproduce?

I can consistently reproduce this issue.

Thanks,
kangstarr


Tue, 2012/05/15 12:28 am
Profile
Site Admin

Joined: Sun, 2005/04/03 7:02 pm
Posts: 307
Location: Los Angeles, CA USA
Unread post Re: QTInput with AVISynth GetChannel() causes audio cut out
If you have somewhere to upload it, definitely. If you don't, I think I can probably make a temp ftp account on my site you can use, if you can get the file to 1GB or less.


Tue, 2012/05/15 1:22 am
Profile WWW

Joined: Mon, 2012/05/14 6:57 pm
Posts: 8
Unread post Re: QTInput with AVISynth GetChannel() causes audio cut out
You're awesome tateu.

I'm PM'ing you the location to the file.

Thanks,
kangstarr


Last edited by kangstarr on Tue, 2012/05/15 2:59 am, edited 1 time in total.



Tue, 2012/05/15 2:05 am
Profile

Joined: Mon, 2012/05/14 6:57 pm
Posts: 8
Unread post Re: QTInput with AVISynth GetChannel() causes audio cut out
I've provided a link to the file in the post above.

Here's an AVISynth script file that you can use with VirtualDub and "Save WAV" with to reproduce the issue.

v = BlankClip(fps=24000,fps_denominator=1001,length=62879)
a = QTInput("R:\prores\audioonly_multitrack.mov",audio=2).AssumeFPS(24000,1001)
a = GetChannel(a,7,8)
AudioDub(v,a)

It can also be reproduced without the GetChannel line as well

Thanks again,
Steven


Tue, 2012/05/15 2:12 am
Profile
Site Admin

Joined: Sun, 2005/04/03 7:02 pm
Posts: 307
Location: Los Angeles, CA USA
Unread post Re: QTInput with AVISynth GetChannel() causes audio cut out
I am now able to reproduce it...Once you said that it only happens when saving or encoding the audio and not during playback, I used VirtualDub to save a wave file. It happens with 16bit 8 channel files at about 35.5 minutes, 24bit 8 channel files at about 24 minutes (like you said) and 32bit 8 channel files at about 18 minutes. I took a quick look at it saving a wave file while running through the debugger and there were no error messages generated. Everything seemed to run exactly as it should. I will hopefully have a few hours available this weekend to dig into it further.


Wed, 2012/05/16 12:15 pm
Profile WWW

Joined: Mon, 2012/05/14 6:57 pm
Posts: 8
Unread post Re: QTInput with AVISynth GetChannel() causes audio cut out
Thanks for taking the time to debug. It's greatly appreciated. I'll keep monitoring this thread for an update.

Thanks again,
Kangstarr


Thu, 2012/05/17 10:10 pm
Profile

Joined: Mon, 2012/05/14 6:57 pm
Posts: 8
Unread post Re: QTInput with AVISynth GetChannel() causes audio cut out
Hey tateu,

Just wondering if you were able to figure out what was going on with the audio cutting out with long duration Quicktime files?

Thanks,
kangstarr


Wed, 2012/06/06 2:28 am
Profile
Site Admin

Joined: Sun, 2005/04/03 7:02 pm
Posts: 307
Location: Los Angeles, CA USA
Unread post Re: QTInput with AVISynth GetChannel() causes audio cut out
Sorry, got kind of sidetracked...I have it fixed, sort of. I haven't found out what causes it, though. Quicktime seems to just silently fail after processing XX bytes of data. I also haven't nailed down exactly what number XX is. What I did is just re-initialize the Quicktime audio extractor every time it processes YY audio frames, I think I chose 25 million as an arbitrary number that works on 32 bit 8 channel files. It may not work on 32 bit 16 channel files, though, until I find out exactly what that XX number is.

And separate from the above issue, I found out that the last few samples of audio data processed from QTInput are slightly corrupt. I compared the original WAV source to files extracted using QTInput and FFMpegSource2. The FFMpegSource2 file is bit for bit identical to the original. The QTInput file is bit for bit identical except for the last few samples.


Wed, 2012/06/06 12:45 pm
Profile WWW

Joined: Mon, 2012/05/14 6:57 pm
Posts: 8
Unread post Re: QTInput with AVISynth GetChannel() causes audio cut out
Thanks for the update. I appreciate the time you put into this so much thanks.

I'm sure you've probably read the QTAudioExtractionPanel info from the Apple site but I'm linking it here since there seems to be some code to write out an AIFF file which might apply to extracting the audio here. I don't know if this would help at all but just thought I'd see if there was anything I could do to help.

https://developer.apple.com/library/mac ... ils_c.html#//apple_ref/doc/uid/DTS10003728-QuickTimeAudioUtils_c-DontLinkElementID_23

Thanks again!

kangstarr


Wed, 2012/06/06 2:43 pm
Profile

Joined: Mon, 2012/05/14 6:57 pm
Posts: 8
Unread post Re: QTInput with AVISynth GetChannel() causes audio cut out
Hey tateu,

Just wondering if any update has been made?

Thanks,
kangstarr


Thu, 2012/09/06 9:56 pm
Profile

Joined: Sat, 2012/11/03 7:16 pm
Posts: 1
Unread post Re: QTInput with AVISynth GetChannel() causes audio cut out
Hi tateu,

First of all thanks a lot for your continued efforts, have been using qtinput for over 5 years now!
Like kangstarr I was wondering if you have any updates to the issue, am able to replicate by doing soundout on a 10 channel prores mov. Avisynth editor crashes at approx. 13 minutes into the encode.

TIA for your help.


Sat, 2012/11/03 7:22 pm
Profile

Joined: Mon, 2013/06/03 12:22 pm
Posts: 1
Unread post Re: QTInput with AVISynth GetChannel() causes audio cut out
Hi Tateu,

I am trying to get channel 7 and 8 from a multichannel QT with 24 tracks of 24bit audio. As the above posts, the saving of the wav or rendering of the script, does not function correctly. Is it possible to fix this? Currently I have to export channel 7&8 outside of avisynth, kill the audio in the QT, and use wavsource to put the audio back into my script. Your solution would eliminate a ton of work for the amount or processing I need to complete.

Thanks very much,

Nathan


Mon, 2013/06/03 12:33 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 14 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software