Talk:Trim

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Stream lengths remain independent)
m (typo & formatting)
Line 12: Line 12:
 
  A=WavSource("timecode(philrees.co.uk).wav") [* (Adur = 1.935s) *]
 
  A=WavSource("timecode(philrees.co.uk).wav") [* (Adur = 1.935s) *]
 
  \ .AmplifyDB(-20)
 
  \ .AmplifyDB(-20)
  ColorBars [* (Vdur = 1 hr) *]
+
  ColorBars   [* (Vdur = 1 hr)     *]
  Trim(0, 9) [* (Vdur = 10 frames) *]
+
  Trim(0, 9) [* (Vdur = 10 frames) *]
  AudioDub(A) [* Adur > Vdur *]
+
  AudioDub(A) [* Adur > Vdur       *]
 
  Trim(0, 9, pad=false)
 
  Trim(0, 9, pad=false)
  return Last.Info) ## audio is trimmed ?!
+
  return Last.Info ## audio is trimmed ?!
 
</div>
 
</div>
 
:--[[User:Raffriff42|Raffriff42]] 15:02, 18 March 2016 (CET)
 
:--[[User:Raffriff42|Raffriff42]] 15:02, 18 March 2016 (CET)

Revision as of 15:06, 18 March 2016

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)

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)
Personal tools