[MPlayer-users] How to get the duration(ID_LENGTH) of a Sony MTS video file use "mplayer"?

Nico Sabbi nicola.sabbi at poste.it
Wed Aug 29 14:38:12 CEST 2012


littlebat ha scritto:
> Hi,
>
> I always use "mplayer filename -identify -ao null -vo null -frames 0"
> to get the information of a video file. But, I found mplayer can't get
> the correct duration of a Sony DV MTS file(ID_LENGTH=0.00) while the
> "ffmpeg -i MTSfilename" can get the correct duration time. I compiled
> the mplayer from lastest svn source.
>
> My question is:
> Why "mplayer" can't get the correct duration time of a MTS file?
> How to get the duration(ID_LENGTH) of a Sony MTS video file use
> "mplayer"?
>
> Thanks.
>
> PS:
> Below is the command output(mplayer, ffmpeg, mediainfo, please tell me
> if need sample file):
> 1), mplayer output:
> mdx at debian:~/desk/testmm$ mplayer 00142.MTS -identify -ao null -vo null
> -frames 0
> MPlayer SVN-r35126-4.4.5 (C) 2000-2012 MPlayer Team
>

$ mplayer 00142.MTS  -ao null -vo null -vc null        or
$ mencoder -ovc copy -oac copy -o /dev/null  00142.MTS

At the end watch the duration expressed in seconds in the status bar.




More information about the MPlayer-users mailing list