[MPlayer-users] Bash vs. sh

Krzysztof Duchnowski amidk75 at gmail.com
Fri Dec 21 02:13:44 CET 2012


On 19.12.2012 15:15, Robin Kluth wrote:
> Erik, you're right:

> ls -l on /bin/sh goes to dash:

> lrwxrwxrwx 1 root root 4 Dec 25  2011 /bin/sh -> dash

> I've did some tests with -v (-x is a resolution option?):

> Test 1 and 2 with da(sh):
> http://pastebin.com/Uj8EbxRa
> http://pastebin.com/3KdLUQzD

> Test 1 and 2 with bash:
> http://pastebin.com/qerb0tya
> http://pastebin.com/iJqVeQPY

> The thing is, I can reproduce this with sh now, too but not always. It
> happens more rare now :(

> This issue seems to be stream related, I cannot check that (the stream is
> at: http://mp3.89.0rtl.de ).

> Maybe some one find a hint?

> I've attached a corrupted file (I hope the attachment is ok for you ;)).
> The file seems to be a 44100 HZ file with 128kBit/s, but MP3Tag see it as
> 160kBit/s and 3200Hz file.


EasyTag sees it as MPEG 2.5 Layer2, but there was no recognition problem
with MediaInfo, or FFMPEG or MPLAYER:

################################################
mplayer -frames 0 -identify test\ \(2\).mp3
MPlayer SVN-r35254-4.6 (C) 2000-2012 MPlayer Team

Playing test (2).mp3.
libavformat version 54.33.100 (internal)
ID_AUDIO_ID=0
Audio only file format detected.
Load subtitles in ./
ID_FILENAME=test (2).mp3
ID_DEMUXER=audio
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=0
ID_START_TIME=0.00
ID_LENGTH=25.00
ID_SEEKABLE=1
ID_CHAPTERS=0
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 54.67.100 (internal)
AUDIO: 44100 Hz, 2 ch, floatle, 128.0 kbit/4.54% (ratio: 16000->352800)
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [pulse] 44100Hz 2ch floatle (4 bytes per sample)
ID_AUDIO_CODEC=ffmp3float
Video: no video
Starting playback...


Exiting... (End of file)
ID_EXIT=EOF

################################################
ffprobe test\ \(2\).mp3
ffprobe version N-45293-gc4aaff8 Copyright (c) 2007-2012 the FFmpeg
developers
  built on Oct 11 2012 11:31:15 with gcc 4.7 (Debian 4.7.2-2)
  configuration: --disable-static --enable-shared --enable-gpl
--enable-nonfree --enable-postproc --enable-x11grab --enable-libfaac
--enable-libmp3lame --enable-libtheora --enable-libvorbis
--enable-libxvid --enable-vdpau --enable-libx264 --enable-libvpx
  libavutil      51. 74.100 / 51. 74.100
  libavcodec     54. 65.100 / 54. 65.100
  libavformat    54. 31.100 / 54. 31.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 19.102 /  3. 19.102
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
[mp3 @ 0x78f060] Header missing
    Last message repeated 4 times
[mp3 @ 0x788c00] max_analyze_duration 5000000 reached at 5015510
[mp3 @ 0x788c00] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'test (2).mp3':
  Duration: 00:00:25.60, start: 0.000000, bitrate: 128 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s

################################################
mediainfo test\ \(2\).mp3
General
Complete name                            : test (2).mp3
Format                                   : MPEG Audio
File size                                : 400 KiB
Duration                                 : 25s 586ms
Overall bit rate mode                    : Constant
Overall bit rate                         : 128 Kbps
Writing library                          : LAME3.98

Audio
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Duration                                 : 25s 652ms
Bit rate mode                            : Constant
Bit rate                                 : 128 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 44.1 KHz
Compression mode                         : Lossy
Stream size                              : 400 KiB (100%)
Writing library                          : LAME3.98

################################################
checkmp3 test\ \(2\).mp3

Something happened at byte 12. Next expected frame: 4.

Something happened at byte 341. Next expected frame: 252.

Something happened at byte 1436. Next expected frame: 1385.

Something happened at byte 1751. Next expected frame: 1644.

Something happened at byte 2303. Next expected frame: 2103.

FILE_NAME           test (2).mp3
GOOD_FRAMES         974
BAD_FRAMES          2
LAST_BYTE_CHECKED   409809
VBR_HIGH            320
VBR_LOW             128
VBR_AVERAGE         128
SONG_LENGTH         00:25.53

USER_TIME           0.00s
SYS_TIME            0.00s

################################################
extract test\ \(2\).mp3
Keywords for file test (2).mp3:
mimetype - audio/mpeg
format version - MPEG-1
resource type - MPEG-1 Layer I audio, 160 kbps (CBR), 32000 Hz, stereo,
copyright, copy
duration - 0m20



I've dumped almost 25 dumpfiles (with BASH, DASH and ZSH), whereas 4 of
them was "corrupted", and rest was good:

################################################
extract testfile-01.mp3
Keywords for file testfile-01.mp3:
mimetype - audio/mpeg
format version - MPEG-1
resource type - MPEG-1 Layer III audio, 112 kbps (CBR), 44100 Hz,
stereo, copyright, copy
duration - 0m52

################################################
checkmp3 testfile-01.mp3

Something happened at byte 11. Next expected frame: 4.

Something happened at byte 631. Next expected frame: 376.

FILE_NAME           testfile-01.mp3
GOOD_FRAMES         1762
BAD_FRAMES          13
LAST_BYTE_CHECKED   737489
VBR_HIGH            128
VBR_LOW             112
VBR_AVERAGE         128
SONG_LENGTH         00:46.08

USER_TIME           0.00s
SYS_TIME            0.00s


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


More information about the MPlayer-users mailing list