[MEncoder-users] Runtime Incorrect

Nitin Jain nitinj1981 at gmail.com
Fri May 11 08:59:36 CEST 2007


On 5/11/07, Chris Nagele <cn at wildbit.com> wrote:
> I am trying to grab the runtime from certain files. For some reason it does
> not work anymore on simple Mp3 files.
>
> It is showing me "ID_LENGTH=1085.00" when in reality the song is only 02:17.
> Are there certain cases where the correct runtime cannot be calculated?
>

I've an older version of mplayer, and on that, I just tried finding
the running times for a full album, and they came out absolutely
fine... either your mp3 is corrupted or this is some bug in mplayer
(notably, the ID_LENGTH field I see are whole numbers, without any
decimal, i.e.)

-nj
> dtaylor at server1:~$ mplayer -identify -vo null -ao null -frames 0 /file.mp3
> MPlayer 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
> CPU: Dual Core AMD Opteron(tm) Processor 265 (Family: 15, Model: 33,
> Stepping: 2)
> CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
> Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
>
> Playing /file.mp3
> ID_AUDIO_ID=0
> Audio file file format detected.
> Clip info:
>  Title: Don't Panic
> ID_CLIP_INFO_NAME0=Title
> ID_CLIP_INFO_VALUE0=Don't Panic
>  Artist: Coldplay
> ID_CLIP_INFO_NAME1=Artist
> ID_CLIP_INFO_VALUE1=Coldplay
>  Album: Parachutes
> ID_CLIP_INFO_NAME2=Album
> ID_CLIP_INFO_VALUE2=Parachutes
>  Year: 200
> ID_CLIP_INFO_NAME3=Year
> ID_CLIP_INFO_VALUE3=200
>  Comment:
> ID_CLIP_INFO_NAME4=Comment
> ID_CLIP_INFO_VALUE4=
>  Track: 1
> ID_CLIP_INFO_NAME5=Track
> ID_CLIP_INFO_VALUE5=1
>  Genre: Rock
> ID_CLIP_INFO_NAME6=Genre
> ID_CLIP_INFO_VALUE6=Rock
> ID_CLIP_INFO_N=7
> ID_FILENAME=/file.mp3
> ID_DEMUXER=audio
> ID_AUDIO_FORMAT=85
> ID_AUDIO_BITRATE=32000
> ID_AUDIO_RATE=44100
> ID_AUDIO_NCH=0
> ID_LENGTH=1085.00
> ==========================================================================
> Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
> AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
> ID_AUDIO_BITRATE=128000
> ID_AUDIO_RATE=44100
> ID_AUDIO_NCH=2
> Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
> ==========================================================================
> AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
> ID_AUDIO_CODEC=mp3
> Video: no video
> Starting playback...
>
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>



More information about the MEncoder-users mailing list