Bug 175800 - multimedia/mplayer2 2.0.20121103 cannot play .flac files.
Summary: multimedia/mplayer2 2.0.20121103 cannot play .flac files.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Grzegorz Blach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-03 16:10 UTC by Dimitri Semitsoglou-Tsiapos
Modified: 2013-02-05 22:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitri Semitsoglou-Tsiapos 2013-02-03 16:10:00 UTC
mplayer2-2.0.20121103 is not able to play .flac files or embedded flac audio.

#mplayer -v "01 - filename.flac"
Reading config file /usr/local/etc/mplayer/mplayer.conf
: No such file or directory
get_path('') -> '/home/username/.mplayer/'
get_path('config') -> '/home/username/.mplayer/config'
Reading config file /home/username/.mplayer/config
MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
CPU vendor name: AuthenticAMD  max cpuid level: 5
CPU: AMD Athlon(tm) II X4 640 Processor (Family: 16, Model: 5, Stepping: 3)
extended cpuid-level: 27
extended cache-info: 33587520
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNowExt: 1 SSE: 1 SSE2: 1 SSSE3: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowExt SSE SSE2 CMOV
Compiled against libavutil version 51.73.101
Compiled against libavcodec version 54.59.100
Compiled against libavformat version 54.29.104
Compiled against libswscale version 2.1.101
get_path('codecs.conf') -> '/home/username/.mplayer/codecs.conf'
No optional codecs config file: /home/username/.mplayer/codecs.conf
No optional codecs config file: /usr/local/etc/mplayer/codecs.conf
163 audio & 362 video codecs
Using built-in default codecs.conf.
Configuration: --cc=cc --extra-cflags=-I/usr/local/include/ffmpeg1  -I/usr/local/include/portaudio2 --extra-ldflags=-L/usr/local/lib/ffmpeg1  -L/usr/local/lib/portaudio2 --mandir=/usr/local/man --disable-alsa --disable-liba52 --disable-directfb --disable-faad --disable-mng --disable-libdca --disable-xvid --disable-mpg123 --disable-musepack --disable-gif --disable-mad --disable-libdv --disable-speex --disable-jack --disable-pulse --disable-portaudio --disable-bluray --enable-dvdread --disable-smb --disable-libcdio --disable-ladspa --disable-win32dll --disable-qtx --disable-real --disable-tv-v4l1 --disable-tv-v4l2 --disable-gl --disable-xinerama --disable-vdpau --disable-rtc --disable-caca --disable-lirc --disable-joystick
CommandLine: '-v' '01 - filename.flac'
get_path('fonts') -> '/home/username/.mplayer/fonts'
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/username/.mplayer/fonts'
[ass] Raster: FreeType 2.4.11
[ass] Shaper: FriBidi 0.19.2 (SIMPLE)
[ass] Initialized
get_path('fonts') -> '/home/username/.mplayer/fonts'
get_path('subfont.ttf') -> '/home/username/.mplayer/subfont.ttf'
[ass] Updating font cache
Using nanosleep() timing
get_path('input.conf') -> '/home/username/.mplayer/input.conf'
[file] File size is 27 bytes
STREAM: [file] /home/username/.mplayer/input.conf
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Parsing input config file /home/username/.mplayer/input.conf
Input config file /home/username/.mplayer/input.conf parsed: 2 binds
get_path('01 - filename.flac.conf') -> '/home/username/.mplayer/01 - filename.flac.conf'

Playing 01 - filename.flac.
get_path('sub/') -> '/home/username/.mplayer/sub/'
[file] File size is 23341933 bytes
STREAM: [file] 01 - filename.flac
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: raw FLAC
Detected file format: raw FLAC (libavformat)
[flac @ 0x8038beda0]max_analyze_duration 5000000 reached at 5015510
==> Found audio stream: 0
======= WAVE Format =======
Format Tag: 61868 (0xF1AC)
Channels: 2
Samplerate: 44100
avg byte/sec: 0
Block align: 1
bits/sample: 0
cbSize: 34
Unknown extra header dump: [10] [0] [10] [0] [0] [0] [10] [0] [30] [b1] [a] [c4] [42] [f0] [0] [b0] [f2] [f8] [96] [7d] [4e] [1a] [57] [72] [b5] [c8] [e9] [7d] [c2] [de] [51] [a9] [13] [67] 
==========================================================================
[lavf] stream 0: audio (flac), -aid 0
LAVF: 1 audio and 0 video streams found
[ass] Raster: FreeType 2.4.11
[ass] Shaper: FriBidi 0.19.2 (SIMPLE)
[ass] Initialized
get_path('fonts') -> '/home/username/.mplayer/fonts'
get_path('subfont.ttf') -> '/home/username/.mplayer/subfont.ttf'
[ass] Updating font cache
Clip info:
 ARTIST: artistname
 TITLE: filename
 ALBUM: albumname
 DATE: 2004
 track: 01
 GENRE: genrename
Load subtitles in .
get_path('sub/') -> '/home/username/.mplayer/sub/'
Opening audio decoder: [ffmpeg] libavcodec audio decoders
dec_audio: Allocating 8192 + 65536 = 73728 bytes for output buffer.
INFO: libavcodec "flac" init OK!
Unsupported sample format
Unsupported sample format
#<Few thousand lines of this message>
Unsupported sample format
Unsupported sample format
ds_fill_buffer: EOF reached (stream: audio)  
ds_fill_buffer: EOF reached (stream: audio)  
ds_fill_buffer: EOF reached (stream: audio)  
ds_fill_buffer: EOF reached (stream: audio)  
ds_fill_buffer: EOF reached (stream: audio)  
ad_ffmpeg: initial decode failed
ADecoder init failed :(
Audio decoder init failed for codecs.conf entry "ffflac".
Opening audio decoder: [ffmpeg] libavcodec audio decoders
dec_audio: Allocating 8192 + 65536 = 73728 bytes for output buffer.
INFO: libavcodec "flac" init OK!
ds_fill_buffer: EOF reached (stream: audio)  
ds_fill_buffer: EOF reached (stream: audio)  
ds_fill_buffer: EOF reached (stream: audio)  
ds_fill_buffer: EOF reached (stream: audio)  
ds_fill_buffer: EOF reached (stream: audio)  
ad_ffmpeg: initial decode failed
ADecoder init failed :(
Audio decoder init failed for codecs.conf entry "lavc".
Cannot find codec for audio format 0xF1AC.
Audio: no sound
Freeing 0 unused audio chunks.
Video: no video
Freeing 0 unused video chunks.


Exiting... (End of file)

Fix: 

An mplayer2 developer informed me that releases from that timeframe contained a bug which prevented mplayer2 from playing flac without libavresample.
Although this is no longer neccessary, he suggested that it is recommended to
have it built.

A version bump should fix the issue.
How-To-Repeat: Attempt to play any .flac file.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-02-04 10:10:44 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gblach

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-02-05 21:56:33 UTC
Author: gblach
Date: Tue Feb  5 21:56:19 2013
New Revision: 311735
URL: http://svnweb.freebsd.org/changeset/ports/311735

Log:
  - Update to 2.0.20130126
  - Fix flac playback
  
  PR:		ports/175800
  Approved by:	crees (mentor)

Deleted:
  head/multimedia/mplayer2/files/extra-patch-base_system_log2f
  head/multimedia/mplayer2/files/patch-stream-tvi_v4l.c
Modified:
  head/multimedia/mplayer2/Makefile
  head/multimedia/mplayer2/distinfo

Modified: head/multimedia/mplayer2/Makefile
==============================================================================
--- head/multimedia/mplayer2/Makefile	Tue Feb  5 21:42:24 2013	(r311734)
+++ head/multimedia/mplayer2/Makefile	Tue Feb  5 21:56:19 2013	(r311735)
@@ -43,7 +43,7 @@ CONFIGURE_ARGS=	--cc=${CC} \
 MAKE_ARGS+=	BINDIR=${PREFIX}/bin \
 		CONFDIR=${PREFIX}/etc/mplayer
 
-MPLAYER2_SNAPSHOT_DATE=	2012-11-03
+MPLAYER2_SNAPSHOT_DATE=	2013-01-26
 MPLAYER2_PORT_VERSION=	2.0.${MPLAYER2_SNAPSHOT_DATE:S/-//g}
 
 MAKE_JOBS_SAFE=	yes
@@ -85,10 +85,6 @@ CONFLICTS=	mplayer-1.*
 BROKEN=		Does not compile on sparc64
 .endif
 
-.if ${OSVERSION} < 802502
-EXTRA_PATCHES+=	${FILESDIR}/extra-patch-base_system_log2f
-.endif
-
 .if ${OSVERSION} < 803000
 CONFIGURE_ARGS+=	--disable-ssse3
 .endif
@@ -216,10 +212,10 @@ CONFIGURE_ARGS+=	--disable-real
 .if ${PORT_OPTIONS:MV4L}
 BUILD_DEPENDS+=		${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat
 LIB_DEPENDS+=		v4l2:${PORTSDIR}/multimedia/libv4l
-CONFIGURE_ARGS+=	--enable-tv-v4l1 --enable-tv-v4l2
-EXTRA_LIBS+=		-lv4l1 -lv4l2
+CONFIGURE_ARGS+=	--enable-tv-v4l2
+EXTRA_LIBS+=		-lv4l2
 .else
-CONFIGURE_ARGS+=	--disable-tv-v4l1 --disable-tv-v4l2
+CONFIGURE_ARGS+=	--disable-tv-v4l2
 .endif
 
 .if defined(EXTRA_LIBS)

Modified: head/multimedia/mplayer2/distinfo
==============================================================================
--- head/multimedia/mplayer2/distinfo	Tue Feb  5 21:42:24 2013	(r311734)
+++ head/multimedia/mplayer2/distinfo	Tue Feb  5 21:56:19 2013	(r311735)
@@ -1,2 +1,2 @@
-SHA256 (mplayer2-2.0.20121103.tar.xz) = 5d938f8068595977c6198adf21cd1b1ba924f33aa05488df1fb637ce9f8999cd
-SIZE (mplayer2-2.0.20121103.tar.xz) = 1565152
+SHA256 (mplayer2-2.0.20130126.tar.xz) = 2dc6f852d8fe09e90cc4d816fe91537b571132b91582b291bdaa072a67470f73
+SIZE (mplayer2-2.0.20130126.tar.xz) = 1918172
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Grzegorz Blach freebsd_committer freebsd_triage 2013-02-05 22:00:47 UTC
State Changed
From-To: open->closed

Committed, thanks