[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why an mp3 is "Not a JPEG file"



On Tue, Sep 30, 2014 at 01:06:41AM +0200, Johann Klammer wrote:
> Well, I know that an mp3 is not a JPEG file. But why does it matter to xine
> (or libav or whatever).
> 
> This is what I get on stdout when trying to play some random downloaded
> podcast using xine.
> 
> [...]
> [mp3 @ 0xa660260] max_analyze_duration reached
> [mp3 @ 0xa660260] Estimating duration from bitrate, this may be inaccurate
> Input #0, mp3, from '/home/klammerj/Downloads/267_EP267__Planetfall.mp3':
>   Metadata:
>     encoded_by      : iTunes 10.1
>     title           : EP267: Planetfall
>     artist          : Michael C. Lea
>     album           : Escape Pod
>     track           : 267
>     TCP             : 1
>     genre           : Podcast
>     date            : 2010
>   Duration: 00:32:49.62, start: 0.000000, bitrate: 95 kb/s
>     Stream #0.0: Audio: mp3, 44100 Hz, 2 channels, s16p, 96 kb/s
>     Stream #0.1: Video: mjpeg, yuvj444p, 400x400, 90k tbn
>     Metadata:
>       title           : ÿØÿà
>       comment         : Other
> Not a JPEG file: starts with 0x28 0x00
> [at this point xine terminates]
> 
> What to do?

There is a jpeg picture embedded in some podcasts. You can see it if you
play it in your smartphone.

--------
tal% wget 'http://traffic.libsyn.com/escapepod/267_EP267__Planetfall.mp3
[...]
Length: 23635538 (23M) [audio/mpeg]
                        ^^^^^^^^^^
Hmmm, let's see if it plays
----------------------------------------
tal% mpv 267_EP267__Planetfall.mp3
Warning: mpv was compiled against a different version of libav than the
shared
library it is linked against. This can expose subtle ABI compatibility
issues
and can lead to misbehavior and crashes.
Playing: 267_EP267__Planetfall.mp3
[libav/demuxer] mp3: max_analyze_duration 5000000 reached
[libav/demuxer] mp3: Estimating duration from bitrate, this may be
inaccurate
[stream] Video (+) --vid=1 [P] 'ÿØÿà' (mjpeg)
[stream] Audio (+) --aid=1 (mp3)
File tags:
 encoded_by: iTunes 10.1
  title: EP267: Planetfall
  artist: Michael C. Lea
  album: Escape Pod
  track: 267
  TCP: 1
  genre: Podcast
  date: 2010
Displaying attached picture. Use --no-audio-display to prevent this.
[vo/vdpau/x11] couldn't open the X11 display ()!
[vo/xv/x11] couldn't open the X11 display ()!
[vo/sdl] SDL_Init failed
[vo/vaapi/x11] couldn't open the X11 display ()!
[vo/x11/x11] couldn't open the X11 display ()!
AO: [alsa] 48000Hz stereo 2ch s16
(...) AV: 00:00:00 / 00:32:49 (0%)
VO: [null] 400x400 => 400x400 yuv444p
AV: 00:00:24 / 00:32:49 (1%)
------------------------------------

As you can see I'm using mpv and it plays perfectly, it even mentions
the attached picture. Try mpv, I use it for everything.
So whether xine has a bug, I don't know, but if you can play it using
mpv, then I'd report the bug against xine saying where the file can be
found and that it plays OK with mpv.

-- 
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing." --- Malcolm X


Reply to: