[MPlayer-users] m4a meta data

Krzysztof Duchnowski amidk75 at gmail.com
Wed Jun 11 19:43:45 CEST 2008


Reimar Döffinger pisze:

>>>> get_meta_artist
>>>> ANS_META_ARTIST=''
>>> Has anyone been able to retrieve M4a/mp4 data from mplayer?
>> Well, my guess is that the problem is exactly there: The file probably
>> contains only iPod metadata, no mov and not mp4 metadata (yes, it seems
>> they managed to make three formats that are almost the same except a few
>> details, guaranteeing a usability nightmare...).

> And I also forgot: have you tried
> mplayer -identify file | grep ID_CLIP_INFO
> For me at least with the nasa_shuttle_m720p.mov that should be somewhere
> on Apple's pages I get this:
>> ID_CLIP_INFO_NAME0=name
>> ID_CLIP_INFO_VALUE0=NASA Shuttle
>> ID_CLIP_INFO_NAME1=copyright
>> ID_CLIP_INFO_VALUE1=�2005 NASA
>> ID_CLIP_INFO_NAME2=comments
>> ID_CLIP_INFO_VALUE2=http://spaceflight.nasa.gov/
>> ID_CLIP_INFO_N=3

> So at least it can work with some files...


MediaInfo
################################
General
Complete name                    : 06 - 376.m4a
Format                           : MPEG-4
Format profile                   : Base Media / Version 2
Codec ID                         : mp42
File size                        : 5.78 MiB
Duration                         : 4mn 29s
Overal bit rate                  : 180 Kbps
Album                            : Hainumikaze
Track name                       : 37.6
Track name/Position              : 6
Track name/Total                 : 10
Performer                        : Chitose Hajime
Encoded date                     : 2002
Tagged date                      : UTC 2007-12-12 20:39:19
Writing application              : FAAC 1.24
replaygain_album_gain            : -8.09 dB
replaygain_album_peak            : 1.188234
replaygain_track_gain            : -7.32 dB
replaygain_track_peak            : 1.091447

Audio
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format version                   : Version 4
Format profile                   : LC
Format settings, SBR             : No
Codec ID                         : 40
Duration                         : 4mn 29s
Bit rate mode                    : Variable
Bit rate                         : 178 Kbps
Maximum bit rate                 : 203 Kbps
Channel(s)                       : 2 channels
Channel positions                : L R
Sampling rate                    : 44.1 KHz
Resolution                       : 16 bits
Stream size                      : 5.73 MiB
Encoded date                     : UTC 2007-12-12 20:38:31
Tagged date                      : UTC 2007-12-12 20:39:19

Chapters
1                                : 00:00:00.023 - 37.6
################################

> mplayer -demuxer lavf -slave -quiet "06 - 376.m4a" -vo null -ao null
> MPlayer dev-SVN-r27048-4.1.3 (C) 2000-2008 MPlayer Team
> CPU: AMD Athlon(tm) 64 Processor 3500+ (Family: 15, Model: 95, 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 06 - 376.m4a.
> 
> libavformat file format detected.
> [lavf] Audio stream found, -aid 0
> ==========================================================================
> Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
> FAAD: compressed input bitrate missing, assuming 128kbit/s!
> AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
> Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
> ==========================================================================
> AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
> Video: no video
> Starting playback...
> get_meta_artist
> ANS_META_ARTIST=''
> quit
> 
> Exiting... (Quit)

################################

>  mplayer -demuxer lavf "06 - 376.m4a" -vo null -ao null -endpos 1 -identify
> MPlayer dev-SVN-r27048-4.1.3 (C) 2000-2008 MPlayer Team
> CPU: AMD Athlon(tm) 64 Processor 3500+ (Family: 15, Model: 95, 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 06 - 376.m4a.
> 
> libavformat file format detected.
> ID_AUDIO_ID=0
> [lavf] Audio stream found, -aid 0
> ID_FILENAME=06 - 376.m4a
> ID_DEMUXER=lavf
> ID_AUDIO_FORMAT=255
> ID_AUDIO_BITRATE=0
> ID_AUDIO_RATE=44100
> ID_AUDIO_NCH=2
> ID_LENGTH=269.34
> ID_SEEKABLE=1
> ==========================================================================
> Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
> FAAD: compressed input bitrate missing, assuming 128kbit/s!
> 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: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
> ==========================================================================
> AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
> ID_AUDIO_CODEC=faad
> Video: no video
> Starting playback...
> A:   1.0 (01.0) of 269.3 (04:29.3)  1.0% 71% 
> 
> Exiting... (End of file)

################################

> mplayer -v -demuxer lavf "06 - 376.m4a" -vo null -ao null -endpos 1 -identify
> MPlayer dev-SVN-r27048-4.1.3 (C) 2000-2008 MPlayer Team
> CPU: AMD Athlon(tm) 64 Processor 3500+ (Family: 15, Model: 95, 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
> get_path('codecs.conf') -> '/home/dk75/.mplayer/codecs.conf'
> Reading /home/dk75/.mplayer/codecs.conf: Can't open '/home/dk75/.mplayer/codecs.conf': No such file or directory
> Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
> Using built-in default codecs.conf.
> Configuration: --enable-gui --enable-largefiles --enable-menu --disable-runtime-cpudetection --disable-debug --disable-dvdnav --disable-pulse --charset=utf-8
> CommandLine: '-v' '-demuxer' 'lavf' '06 - 376.m4a' '-vo' 'null' '-ao' 'null' '-endpos' '1' '-identify'
> init_freetype
> Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
> get_path('fonts') -> '/home/dk75/.mplayer/fonts'
> Using nanosleep() timing
> get_path('input.conf') -> '/home/dk75/.mplayer/input.conf'
> Parsing input config file /home/dk75/.mplayer/input.conf
> Input config file /home/dk75/.mplayer/input.conf parsed: 67 binds
> get_path('06 - 376.m4a.conf') -> '/home/dk75/.mplayer/06 - 376.m4a.conf'
> 
> Playing 06 - 376.m4a.
> get_path('sub/') -> '/home/dk75/.mplayer/sub/'
> [file] File size is 6061087 bytes
> STREAM: [file] 06 - 376.m4a
> STREAM: Description: File
> STREAM: Author: Albeu
> STREAM: Comment: based on the code from ??? (probably Arpi)
> CACHE_PRE_INIT: 0 [0] 5562368  pre:1677721  eof:0  
> 
> LAVF_check: QuickTime/MPEG-4/Motion JPEG 2000 format
> libavformat file format detected.
> ==> Found audio stream: 0
> ID_AUDIO_ID=0
> [lavf] Audio stream found, -aid 0
> ======= WAVE Format =======
> Format Tag: 255 (0xFF)
> Channels: 2
> Samplerate: 44100
> avg byte/sec: 0
> Block align: 1
> bits/sample: 16
> cbSize: 2
> Unknown extra header dump: [12] [10] 
> ==========================================================================
> LAVF: 1 audio and 0 video streams found
> LAVF: build 3411968
> ID_FILENAME=06 - 376.m4a
> ID_DEMUXER=lavf
> ID_AUDIO_FORMAT=255
> ID_AUDIO_BITRATE=0
> ID_AUDIO_RATE=44100
> ID_AUDIO_NCH=2
> ID_LENGTH=269.34
> ID_SEEKABLE=1
> ==========================================================================
> Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
> dec_audio: Allocating 4608 bytes for input buffer.
> dec_audio: Allocating 49152 + 65536 = 114688 bytes for output buffer.
> FAAD: Decoder init done (0Bytes)!
> FAAD: Negotiated samplerate: 44100Hz  channels: 2
> FAAD: compressed input bitrate missing, assuming 128kbit/s!
> 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: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
> ==========================================================================
> Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
> [libaf] Adding filter dummy 
> [dummy] Was reinitialized: 44100Hz/2ch/s16le
> [dummy] Was reinitialized: 44100Hz/2ch/s16le
> AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
> AO: Description: Null audio output
> AO: Author: Tobias Diedrich <ranma+mplayer at tdiedrich.de>
> Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
> [dummy] Was reinitialized: 44100Hz/2ch/s16le
> [dummy] Was reinitialized: 44100Hz/2ch/s16le
> ID_AUDIO_CODEC=faad
> Video: no video
> Freeing 0 unused video chunks.
> Starting playback...
> Increasing filtered audio buffer size from 0 to 35968
> EOF code: 1  0) of 269.3 (04:29.3)  0.9% 48% 
> 
> Uninit audio filters...
> [libaf] Removing filter dummy 
> Uninit audio: faad
> FAAD: Closing decoder!
> vo: x11 uninit called but X11 not initialized..
> 
> Exiting... (End of file)


-- 
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.mozilla.com/firefox/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/



More information about the MPlayer-users mailing list