Asynchronous A/V after AviSynth trim

Questions and answers on how to get the most out of FFAStrans
Post Reply
st-tb
Posts: 13
Joined: Tue Aug 13, 2019 10:50 am

Asynchronous A/V after AviSynth trim

Post by st-tb »

Hi everyone,

I´m having trouble with my workflow, where I´m trying to make AviSynth script trim media at certain time. The idea is that AviSynth trims first 15 seconds of every file and then the process continues.
The script:
#
return trim(m_clip,375,0)

#return m_clip

The files:
XDCAM50 files

The workflow:
Folder - A/V Media - AviSynth and following steps.

The problem is obviously in the script, as when I skip it, the workflow works just fine (deinterlacing, watermarking, h.264 etc.)

Is there something wrong with the script? Am I using wrong script? Or is there any better way to make FFAStrans trim first 15 seconds of all the files in watchfolder?

Thanks a lot for any help!
admin
Site Admin
Posts: 1658
Joined: Sat Feb 08, 2014 10:39 pm

Re: Asynchronous A/V after AviSynth trim

Post by admin »

Hi st-tb, thank you for using FFAStrans and welcome to the forum! :-)

As the default avisynth script says:

# The following MUST be the last line of your script
Return m_clip


The reason for this is that subsequent filters will use the m_clip as source for their filtering. So your script should look like this:

m_clip = trim(m_clip,375,0)
return m_clip


Try it and let us know how that works out :-)

-steinar
st-tb
Posts: 13
Joined: Tue Aug 13, 2019 10:50 am

Re: Asynchronous A/V after AviSynth trim

Post by st-tb »

Hello, Steinar

and thanks for your help.
I´ve already tried several incarnations of the script, one of them looked like your does. But with no help. I copied your´s and there still is asynchronous audio (it´s probably something like 0.3sec forward)..
I even tried changing encoders or simplifiing the workflow, but it always seems to be a problem with AviSynth :/
st-tb
Posts: 13
Joined: Tue Aug 13, 2019 10:50 am

Re: Asynchronous A/V after AviSynth trim

Post by st-tb »

I anyone knew any (or any other) way of how to trim first 15seconds of video, please share :)
I still cant figure out why there is alway an audio delay (seems to be 12 or 13 frames).

Thanks for any help ;)
admin
Site Admin
Posts: 1658
Joined: Sat Feb 08, 2014 10:39 pm

Re: Asynchronous A/V after AviSynth trim

Post by admin »

Have you tried to use "Full decode" in the "A/V Media"-decoder? If not, please do and see if that helps.

-steinar
st-tb
Posts: 13
Joined: Tue Aug 13, 2019 10:50 am

Re: Asynchronous A/V after AviSynth trim

Post by st-tb »

excelent! that did the trick!

thank you so much!
Post Reply