[MEncoder-users] Last few seconds
GeBu
gebu at seznam.cz
Tue Jan 16 23:54:05 CET 2007
Maybe useful for somebody.
Create 10s video start.avi from beginning of original.
Create 10s video end.avi from end of original.
Jirka (GeBu)
#!/bin/bash
mencoder movie.avi -ovc copy -oac copy -endpos 10 -o start.avi
eval `mplayer movie.avi -identify -frames 0 -vc null -vo null -ao null 2>/dev/null | grep LENGTH`
echo $ID_LENGTH
Z=`echo $ID_LENGTH-10|bc`
echo $Z
mencoder movie.avi -ovc copy -oac copy -ss $Z -o end.avi
GeBu napsal(a):
> I would like to play a few last second on different movies. Is there
> any option how to find duration of movie?
> Linux
> Jirka (GeBu)
More information about the MEncoder-users
mailing list