Talk:Trim

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(no problem)
m (typo correction)
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
[[Category:Talk]]
 +
====Parameter names====
 
Hi there. Imo the old naming of the parameters is less confusing. Please revert back the naming. [[User:Admin|Admin]] 22:16, 7 January 2016 (CET)
 
Hi there. Imo the old naming of the parameters is less confusing. Please revert back the naming. [[User:Admin|Admin]] 22:16, 7 January 2016 (CET)
 
: No problem. --[[User:Raffriff42|Raffriff42]] 01:41, 8 January 2016 (CET)
 
: No problem. --[[User:Raffriff42|Raffriff42]] 01:41, 8 January 2016 (CET)
 +
 +
====Stream lengths remain independent====
 +
<div {{BoxWidthIndent|48|1}} >
 +
[[Trim#Examples]]<br>
 +
<code>Trim(100, 0, pad=false)</code><br>
 +
"the resulting stream lengths remain independent"<br>
 +
Should this be reworded? In the script below, I would expect audio to be trimmed to video length
 +
A=WavSource("timecode(philrees.co.uk).wav") [* (Adur = 1.935s) *]
 +
\ .AmplifyDB(-20)
 +
ColorBars  [* (Vdur = 1 hr)      *]
 +
Trim(0, 9)  [* (Vdur = 10 frames) *]
 +
AudioDub(A) [* Adur > Vdur        *]
 +
Trim(0, 9, pad=false)
 +
return Last.Info ## audio is trimmed ?!
 +
</div>
 +
:--[[User:Raffriff42|Raffriff42]] 15:02, 18 March 2016 (CET)
 +
:'''EDIT''' I meant to say, NOT to be trimmed, since stream lengths remain independent --[[User:Raffriff42|Raffriff42]] 16:39, 18 March 2016 (CET)

Latest revision as of 16:39, 18 March 2016

[edit] Parameter names

Hi there. Imo the old naming of the parameters is less confusing. Please revert back the naming. Admin 22:16, 7 January 2016 (CET)

No problem. --Raffriff42 01:41, 8 January 2016 (CET)

[edit] Stream lengths remain independent

Trim#Examples
Trim(100, 0, pad=false)
"the resulting stream lengths remain independent"
Should this be reworded? In the script below, I would expect audio to be trimmed to video length

A=WavSource("timecode(philrees.co.uk).wav") [* (Adur = 1.935s) *]
\ .AmplifyDB(-20)
ColorBars   [* (Vdur = 1 hr)      *]
Trim(0, 9)  [* (Vdur = 10 frames) *]
AudioDub(A) [* Adur > Vdur        *]
Trim(0, 9, pad=false)
return Last.Info ## audio is trimmed ?!
--Raffriff42 15:02, 18 March 2016 (CET)
EDIT I meant to say, NOT to be trimmed, since stream lengths remain independent --Raffriff42 16:39, 18 March 2016 (CET)
Personal tools