View Full Version : Play Segment
FaiTCRaH
14th September 2006, 03:26
There is a way to play only a segment of a video?
hpn
14th September 2006, 08:05
How do you define "segment"?
You want to play your video from time/frame X to time/frame Y or you mean something else?
FaiTCRaH
14th September 2006, 08:29
How do you define "segment"?
You want to play your video from time/frame X to time/frame Y or you mean something else?
exactly as you said
chros
14th September 2006, 12:38
If there isn't any application for this, you can do that with avisynth (of course you have to install all the necesarry directshow codecs and splitters to play this way):
sample script:
DirectShowSource("file.avi")
trim(startframe, endframe)
hpn
14th September 2006, 13:12
Exactly as chros said.
Supposing your video is an avi file:
Step1: Install Avisynth:
http://www.doom9.org/Soft21/SupportUtils/Avisynth_256.exe
Step 2: Create an empty text file, then change the "txt" extension to "avs" and put these two lines in the file:
AVISource("c:\your_file.avi")
trim(1000,2000)
Then replace c:\your_file.avi with the correct file name and path for your video and replace 1000 with the first frame and 2000 with the last frame you want to play.
If you put 0 for the last frame, it's the same as "end of clip". You also need to have a decompressor installed, so install ffdshow or some other codec pack.
Step. 3. Drag and drop (or simply open) the avs file into any video player you want, for example Media Player Classic and it should play only the segment as specified in trim.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.