Closed GoogleCodeExporter closed 8 years ago
Please comment out your custom ac and afm lines in .mplayer/config and see if
that
solves the problem.
Original comment by kdeko...@gmail.com
on 26 Jul 2009 at 3:43
Ok, it seems to play, however, it doesn't play the audio in AC3 only through
liba52.
Is there a way to keep the ac,afm options?
Original comment by zivago...@gmail.com
on 26 Jul 2009 at 7:16
Let me think about it. I believe it has something to do with the -af-add
command. I
may have to come up with an option to disable that and the audio meter with it.
Also
you might want to open a bug with mplayer.
Original comment by kdeko...@gmail.com
on 26 Jul 2009 at 1:27
If i remove the -af-add option, I get these errors:
--
[h264_vdpau @ 0x415baa20]B picture before any references, skipping
[h264_vdpau @ 0x415baa20]decode_slice_header error
[h264_vdpau @ 0x415baa20]no frame!
Error while decoding frame!
[h264_vdpau @ 0x415baa20]B picture before any references, skipping
[h264_vdpau @ 0x415baa20]decode_slice_header error
[h264_vdpau @ 0x415baa20]no frame!
Error while decoding frame!
--
The only way to get the mkv to play is remove both the -af-add and -wid options.
Original comment by zivago...@gmail.com
on 27 Jul 2009 at 6:10
I play mkv files all the time, so I don't think that is the problem. It is
seems to
be a bug with mplayer and the hwac3 codec. So you'll need to open a bug with
them.
Since by removing that codec things work fine.
Original comment by kdeko...@gmail.com
on 27 Jul 2009 at 12:50
Very strange... when I use gmplayer, I have no issues playing the mkv file with
hwac3. I like the gnome-mplayer interface better, however :\
I will try to open a bug with mplayer..
Original comment by zivago...@gmail.com
on 27 Jul 2009 at 1:56
BTW, how did you disable the -af-add command? In code or from the commandline?
Original comment by kdeko...@gmail.com
on 27 Jul 2009 at 2:12
ok, since I don't have this hardware gonna need some help from you
understanding this..
So to get the hwac3 decoding to work do you need just the ac or afm options or
do you
need both. I'm thinking of adding this to the interface and need to know how
this works.
Original comment by kdeko...@gmail.com
on 27 Jul 2009 at 2:20
I removed the -af-add option from the mplayer commandline that gnome-mplayer is
running.
From my tests, either enabling ac or afm seems to force the hwac3 codec.
Original comment by zivago...@gmail.com
on 28 Jul 2009 at 3:04
Ok, this is what I suspected.. I'll need to make an option to either disable the
audio filter, or enable hardware passthru.. or maybe both.
Original comment by kdeko...@gmail.com
on 28 Jul 2009 at 4:34
Ok, I added an option to the SVN version of gnome-mplayer (0.9.7) that allows
setting
the AC3/DTS passthru to S/PDIF. So don't set this value in ~/.mplayer/config
and set
the checkbox in Edit -> Properties and it should work as you need.
gnome-mplayer works best when you don't set much in the .mplayer/config since
the
combinations of options has been tested and know to work. Adding options can
result
in breakage, like you have experienced.
Original comment by kdeko...@gmail.com
on 29 Jul 2009 at 4:53
Thanks! Just did check out of the latest SVN and removed all options in
~/.mplayer/config and everything works (VDPAU + AC3)!
Original comment by zivago...@gmail.com
on 30 Jul 2009 at 6:44
Oops.. one more issue and not sure if if its related to this...
Is it possible to force the codec we want to use? Right now it selects:
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
But, I want to select:
==========================================================================
Forced video codec: ffmpeg12vdpau
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
as per my vc= option:
vc=ffmpeg12vdpau,ffh264vdpau,ffwmv3vdpau,ffvc1vdpau,
However, when I have this option, I get errors when playing the file:
==
==========================================================================
Forced video codec: ffmpeg12vdpau
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
ID_VIDEO_CODEC=ffh264vdpau
==========================================================================
Trying to force audio codec driver family hwac3...
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
ERROR: No accelerated IMDCT transform found
hwac3: switched to AC3, 640000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 640.0 kbit/41.67% (ratio: 80000->192000)
ID_AUDIO_BITRATE=640000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample)
ID_AUDIO_CODEC=hwac3
Starting playback...
[VD_FFMPEG] XVMC-accelerated MPEG-2.
VDec: vo config request - 1920 x 800 (preferred colorspace: H.264 VDPAU
acceleration)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
ERROR: The selected video_out device is incompatible with this codec.
ERROR: Try appending the scale filter to your filter list,
ERROR: e.g. -vf spp,scale instead of -vf spp.
ERROR: [h264_vdpau @ 0x415baa20]get_buffer() failed (-1 0 0 (nil))
ERROR: [h264_vdpau @ 0x415baa20]decode_slice_header error
ERROR: [h264_vdpau @ 0x415baa20]no frame!
ERROR: Error while decoding frame!
ERROR: [h264_vdpau @ 0x415baa20]get_buffer() failed (-1 0 0 (nil))
ERROR: [h264_vdpau @ 0x415baa20]decode_slice_header error
ERROR: [h264_vdpau @ 0x415baa20]no frame!
ERROR: Error while decoding frame!
ERROR: [h264_vdpau @ 0x415baa20]B picture before any references, skipping
ERROR: [h264_vdpau @ 0x415baa20]decode_slice_header error
ERROR: [h264_vdpau @ 0x415baa20]no frame!
ERROR: Error while decoding frame!
ERROR: [h264_vdpau @ 0x415baa20]B picture before any references, skipping
ERROR: [h264_vdpau @ 0x415baa20]decode_slice_header error
ERROR: [h264_vdpau @ 0x415baa20]no frame!
ERROR: Error while decoding frame!
ERROR: [h264_vdpau @ 0x415baa20]B picture before any references, skipping
ERROR: [h264_vdpau @ 0x415baa20]decode_slice_header error
ERROR: [h264_vdpau @ 0x415baa20]no frame!
ERROR: Error while decoding frame!
ERROR: [h264_vdpau @ 0x415baa20]get_buffer() failed (-1 0 0 (nil))
ERROR: [h264_vdpau @ 0x415baa20]decode_slice_header error
ERROR: [h264_vdpau @ 0x415baa20]no frame!
ERROR: Error while decoding frame!
ERROR: [h264_vdpau @ 0x415baa20]B picture before any references, skipping
ERROR: [h264_vdpau @ 0x415baa20]decode_slice_header error
ERROR: [h264_vdpau @ 0x415baa20]no frame!
ERROR: Error while decoding frame!
ERROR: [h264_vdpau @ 0x415baa20]B picture before any references, skipping
ERROR: [h264_vdpau @ 0x415baa20]decode_slice_header error
ERROR: [h264_vdpau @ 0x415baa20]no frame!
==
Not using this codec and outputting to vdpau is what brings the CPU usage down
for
x264 files.
Any ideas?
Original comment by zivago...@gmail.com
on 30 Jul 2009 at 3:30
Please ignore.. I had to turn off deinterlace option. Maybe make that a
wishlist to
automatically disable deinterlace when selecting vdpau video out option.
Original comment by zivago...@gmail.com
on 30 Jul 2009 at 3:34
Take those vc options out of your mplayer/config file and gnome-mplayer should
work
correctly. It takes the codec from the media file (which your vc option is
interfering with) and will enable the proper codecs automatically if you have
vdpau
enabled in gnome-mplayer.
Original comment by kdeko...@gmail.com
on 30 Jul 2009 at 4:25
I can't take those out because it seems to default to the regular ffmpeg codec
as
opposed to the vdpau versions. It works fine now, just can't use deinterlace
with
the vdpau codecs.
Original comment by zivago...@gmail.com
on 30 Jul 2009 at 7:47
Well if it is not, then it is a bug in the gnome-mplayer code, I would
appreciate you
taking the vc line out of mplayer/config and then running gnome-mplayer with
the -v
or --reallyverbose option and posting that. I should be able to fix the
problem. But
since I don't have a vdpau capable card, I have to have people send me logs.
Original comment by kdeko...@gmail.com
on 30 Jul 2009 at 8:02
Here it is with -v and --reallyverbose:
===
]GNOME MPlayer v0.9.7
vo = vdpau ao = alsa
Running in single instance mode
Running with GIO support
Master Playback is 1
Master Range is 0 to 65536
Master Current Volume 57671, multiplier = 0.001526
Scaled Volume is 87.998962
Using volume of 88.00
opening voa-burn_e_x264_1080p_bluray.mkv
is block 0
is character 0
is reg 1
is dir 0
playlist 0
embedded in window id 0x0
voa-burn_e_x264_1080p_bluray.mkv is not a device name
file://voa-burn_e_x264_1080p_bluray.mkv is not a device name
file://voa-burn_e_x264_1080p_bluray.mkv is not a device name
Streaming media 'file://voa-burn_e_x264_1080p_bluray.mkv' = 0
opening playlist
Eߣ�B��matroskaB��B��S�g is not a device name
file://Eߣ�B��matroskaB��B��S�g is not a device name
playlist detection = 0
adding file://voa-burn_e_x264_1080p_bluray.mkv to playlist (cancel = 0)
file://voa-burn_e_x264_1080p_bluray.mkv is not a device name
file://voa-burn_e_x264_1080p_bluray.mkv is not a device name
Streaming media 'file://voa-burn_e_x264_1080p_bluray.mkv' = 0
file://voa-burn_e_x264_1080p_bluray.mkv is not a device name
file://voa-burn_e_x264_1080p_bluray.mkv is not a device name
getting file metadata for voa-burn_e_x264_1080p_bluray.mkv
playing - file://voa-burn_e_x264_1080p_bluray.mkv
is playlist 0
file://voa-burn_e_x264_1080p_bluray.mkv is not a device name
Streaming media 'file://voa-burn_e_x264_1080p_bluray.mkv' = 0
libcurl required for cover art retrieval
file://voa-burn_e_x264_1080p_bluray.mkv is not a device name
file://voa-burn_e_x264_1080p_bluray.mkv is not a device name
Streaming media 'file://voa-burn_e_x264_1080p_bluray.mkv' = 0
Master Playback is 1
Master Range is 0 to 65536
Master Current Volume 57671, multiplier = 0.001526
Scaled Volume is 87.998962
Using volume of 88.00
voa-burn_e_x264_1080p_bluray.mkv is not a device name
voa-burn_e_x264_1080p_bluray.mkv is not a device name
Streaming media 'voa-burn_e_x264_1080p_bluray.mkv' = 0
file://voa-burn_e_x264_1080p_bluray.mkv is not a device name
Streaming media 'file://voa-burn_e_x264_1080p_bluray.mkv' = 0
file://voa-burn_e_x264_1080p_bluray.mkv is not a device name
Streaming media 'file://voa-burn_e_x264_1080p_bluray.mkv' = 0
mplayer -profile gnome-mplayer -vo vdpau,xv,x11 -afm hwac3, -slave -identify
-mixer-channel Master -noconsolecontrols -noidle -osdlevel 0 -nomouseinput
-nocache
-wid 0x640004d -subfont-text-scale 5 -channels 2
voa-burn_e_x264_1080p_bluray.mkv
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
Spawn succeeded for filename voa-burn_e_x264_1080p_bluray.mkv
send command = seek 0 0
thread reader: MPlayer SVN-r29375-4.3.3 (C) 2000-2009 MPlayer Team
thread reader:
thread reader: Playing voa-burn_e_x264_1080p_bluray.mkv.
thread reader: ID_VIDEO_ID=0
thread reader: [mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
thread reader: ID_AUDIO_ID=0
thread reader: ID_AID_0_LANG=eng
thread reader: [mkv] Track ID 2: audio (A_AC3), -aid 0, -alang eng
thread reader: [mkv] Will play video track 1.
thread reader: Matroska file format detected.
thread reader: VIDEO: [avc1] 1920x800 24bpp 23.976 fps 0.0 kbps ( 0.0
kbyte/s)
thread reader: ID_FILENAME=voa-burn_e_x264_1080p_bluray.mkv
thread reader: ID_DEMUXER=mkv
thread reader: ID_VIDEO_FORMAT=avc1
thread reader: ID_VIDEO_BITRATE=0
thread reader: ID_VIDEO_WIDTH=1920
thread reader: ID_VIDEO_HEIGHT=800
thread reader: ID_VIDEO_FPS=23.976
thread reader: ID_VIDEO_ASPECT=2.4000
thread reader: ID_AUDIO_FORMAT=8192
thread reader: ID_AUDIO_BITRATE=0
thread reader: ID_AUDIO_RATE=48000
thread reader: ID_AUDIO_NCH=6
thread reader: ID_LENGTH=455.14
thread reader: ID_SEEKABLE=1
thread reader: ID_CHAPTERS=0
thread reader:
==========================================================================
thread reader: Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
thread reader: Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
thread reader:
==========================================================================
thread reader: ID_VIDEO_CODEC=ffh264
thread reader:
==========================================================================
thread reader: Trying to force audio codec driver family hwac3...
thread reader: Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
thread reader error: No accelerated IMDCT transform found
thread reader: hwac3: switched to AC3, 640000 bps, 48000 Hz
thread reader: AUDIO: 48000 Hz, 2 ch, ac3, 640.0 kbit/41.67% (ratio:
80000->192000)
thread reader: ID_AUDIO_BITRATE=640000
thread reader: ID_AUDIO_RATE=48000
thread reader: ID_AUDIO_NCH=2
thread reader: Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
thread reader:
==========================================================================
thread reader: AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample)
send command = pausing_keep get_property switch_audio
thread reader: ID_AUDIO_CODEC=hwac3
thread reader: Starting playback...
thread reader: VDec: vo config request - 1920 x 800 (preferred colorspace:
Planar YV12)
thread reader: VDec: using Planar YV12 as output csp (no 0)
thread reader: Movie-Aspect is 2.40:1 - prescaling to correct movie aspect.
thread reader: ID_VIDEO_ASPECT=2.4000
thread reader: VO: [vdpau] 1920x800 => 1920x800 Planar YV12
Resizing to 1920 x 800
Master Playback is 1
Master Range is 0 to 65536
Master Volume 88, multiplier = 655.359985
Scaled Volume is 57671
Set alsa volume to 57671
send command = pausing_keep get_property chapters
send command = pausing_keep_force get_property path
send command = pausing_keep get_property sub_demux
send command = pausing_keep brightness 0
send command = pausing_keep contrast 0
send command = pausing_keep gamma 0
send command = pausing_keep hue 0
send command = pausing_keep saturation 0
send command = pausing_keep set_property sub_visibility 1
send command = get_property volume
current size = 0 x 0
Changing window size to 1920 x 800 visible = 1
thread reader: ANS_switch_audio=-1
ANS_switch_audio is invalid -1
thread reader: ANS_chapters=0
ANS_switch_audio is invalid -1
thread reader: ANS_path=voa-burn_e_x264_1080p_bluray.mkv
pausing keep force enabled
thread reader error: Failed to get value of property 'sub_demux'.
thread reader: ANS_volume=3957451.500000
send command = pausing_keep_force get_property stream_pos
thread reader: ANS_TIME_POSITION=0.9
thread reader: ANS_stream_pos=116865
send command = pausing_keep_force get_property stream_pos
thread reader: ANS_TIME_POSITION=1.9
thread reader: ANS_stream_pos=2656390
send command = pausing_keep_force get_property stream_pos
thread reader: ANS_TIME_POSITION=2.9
thread reader: ANS_stream_pos=5384370
send command = quit
send command = seek 0 2
pause
thread reader: Exiting... (Quit)
Thread completing
===
Original comment by zivago...@gmail.com
on 31 Jul 2009 at 6:56
Can you make sure you have the latest SVN. The I have an h264 sample and I tried
using the vdpau option and the command line here looks right (vs. the command
above).
Between r1452 and r1458 this may not have worked correctly, due to metadata
issues.
Original comment by kdeko...@gmail.com
on 31 Jul 2009 at 12:50
Just tried r1459 and it works great! Thanks!
Original comment by zivago...@gmail.com
on 1 Aug 2009 at 12:31
Original issue reported on code.google.com by
zivago...@gmail.com
on 25 Jul 2009 at 4:11