[MPlayer-users] play only first 30 seconds of a song

alpha0x89 at yahoo.de alpha0x89 at yahoo.de
Sat Apr 3 18:45:37 CEST 2004

On Saturday 03 April 2004 12:16, rwk at americom.com wrote:
> However the following gives me an error:
> $ mplayer song.mp3 -endpos 30 -really-quiet -oac pcm -vc null -vo null
> Unknown option on the command line: endpos

'-endpos' is not a mplayer option, but a mencoder option.

> P.S.  I am actually trying to get the first 30 seconds of the .mp3 back
>       into .mp3 format.  If there is a better way to do this I would
>       appreciate any suggestions.

I only know how to extract the whole audio stream:

mplayer -dumpaudio -dumpfile outfile.mp3 -vo null infile.avi

More information about the MPlayer-users mailing list