Asynchronous A/V after AviSynth trim

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

Asynchronous A/V after AviSynth trim

Post by st-tb » Wed Aug 14, 2019 11:18 am

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: 1247
Joined: Sat Feb 08, 2014 10:39 pm

Re: Asynchronous A/V after AviSynth trim

Post by admin » Wed Aug 14, 2019 4:12 pm

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: 4
Joined: Tue Aug 13, 2019 10:50 am

Re: Asynchronous A/V after AviSynth trim

Post by st-tb » Thu Aug 15, 2019 6:38 am

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: 4
Joined: Tue Aug 13, 2019 10:50 am

Re: Asynchronous A/V after AviSynth trim

Post by st-tb » Fri Aug 16, 2019 1:59 pm

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: 1247
Joined: Sat Feb 08, 2014 10:39 pm

Re: Asynchronous A/V after AviSynth trim

Post by admin » Thu Aug 22, 2019 9:14 pm

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: 4
Joined: Tue Aug 13, 2019 10:50 am

Re: Asynchronous A/V after AviSynth trim

Post by st-tb » Mon Sep 02, 2019 6:58 am

excelent! that did the trick!

thank you so much!

Post Reply