Closed skalinichev closed 10 years ago
Hm, can't reproduce with --ao=alsa.
Can you post a log with -v?
Sure. Also I've noticed that this dosn't hapen with -ao=openal. And with -ao=alsa/pulse it doesn't completly hangs, i.e. after waiting ~20 seconds it continue working.
$ mpv -v -ao=alsa '/media/kso/5b2208ea-2f25-4f3f-b1dd-61492b4ac486/Tchaikovsky,Essential ,Complete,Swan Lake ,The Nutcracker, The Sleeping Beauty, R. Bonynge/Tchaikovsky,The Nutcracker/19 The Nutcracker Act II No. 13 Valse des fleurs.mp3' [cplayer] mpv git-a09329b (C) 2000-2014 mpv/MPlayer/mplayer2 projects [cplayer] built on 2014-07-13T09:30:03 [cplayer] libav library versions: [cplayer] libavutil 53.3.0 [cplayer] libavcodec 55.34.1 [cplayer] libavformat 55.12.0 [cplayer] libswscale 2.1.2 [cplayer] libavresample 1.1.0 [cplayer] [global] search dirs: /home/kso/.mpv /home/kso/builds/etc/mpv [global] search dirs: /home/kso/.mpv /home/kso/builds/etc/mpv [global] config file: 'config' [global] -> '/home/kso/.mpv/config' [cplayer] Reading config file /home/kso/.mpv/config [cplayer] Setting option 'vo' = 'opengl-hq' (flags = 4) [cplayer] Setting option 'saturation' = '30' (flags = 4) [global] search dirs: /home/kso/.mpv /home/kso/builds/etc/mpv [global] config file: 'mpv.conf' [cplayer] Setting option 'v' = '' (flags = 8) [cplayer] Setting option 'ao' = 'alsa' (flags = 8) [cplayer] Configuration: ./waf configure --prefix=/home/kso/builds/ --enable-joystick --enable-openal [cplayer] Command line: 'mpv' '-v' '-ao=alsa' '/media/kso/5b2208ea-2f25-4f3f-b1dd-61492b4ac486/Tchaikovsky,Essential ,Complete,Swan Lake ,The Nutcracker, The Sleeping Beauty, R. Bonynge/Tchaikovsky,The Nutcracker/19 The Nutcracker Act II No. 13 Valse des fleurs.mp3' [input] enable section 'default' [global] search dirs: /home/kso/.mpv /home/kso/builds/etc/mpv [global] config path: 'input.conf' -> '(NULL)' [input] Falling back on default (hardcoded) input config [global] search dirs: /home/kso/.mpv /home/kso/builds/etc/mpv [global] config path: 'fonts' -> '(NULL)' [global] search dirs: /home/kso/.mpv /home/kso/builds/etc/mpv [global] config file: 'lua' [global] search dirs: /home/kso/.mpv /home/kso/builds/etc/mpv [global] config path: 'watch_later/153FACF78CD037E8B8FEC88EF853745F' -> '(NULL)' [global] search dirs: /home/kso/.mpv /home/kso/builds/etc/mpv [global] config path: 'watch_later' -> '(NULL)' [global] search dirs: /home/kso/.mpv /home/kso/builds/etc/mpv [global] config path: '19 The Nutcracker Act II No. 13 Valse des fleurs.mp3.conf' -> '(NULL)' [global] search dirs: /home/kso/.mpv /home/kso/builds/etc/mpv [global] config path: 'watch_later/153FACF78CD037E8B8FEC88EF853745F' -> '(NULL)' [global] search dirs: /home/kso/.mpv /home/kso/builds/etc/mpv [global] config path: 'watch_later' -> '(NULL)' [cplayer] Playing: /media/kso/5b2208ea-2f25-4f3f-b1dd-61492b4ac486/Tchaikovsky,Essential ,Complete,Swan Lake ,The Nutcracker, The Sleeping Beauty, R. Bonynge/Tchaikovsky,The Nutcracker/19 The Nutcracker Act II No. 13 Valse des fleurs.mp3 [file] Opened: [file] /media/kso/5b2208ea-2f25-4f3f-b1dd-61492b4ac486/Tchaikovsky,Essential ,Complete,Swan Lake ,The Nutcracker, The Sleeping Beauty, R. Bonynge/Tchaikovsky,The Nutcracker/19 The Nutcracker Act II No. 13 Valse des fleurs.mp3 [demux] Trying demuxer: disc (force-level: normal) [demux] Trying demuxer: edl (force-level: normal) [demux] Trying demuxer: cue (force-level: normal) [demux] Trying demuxer: rawaudio (force-level: normal) [demux] Trying demuxer: rawvideo (force-level: normal) [demux] Trying demuxer: tv (force-level: normal) [demux] Trying demuxer: libass (force-level: normal) [demux] Trying demuxer: mkv (force-level: normal) [demux] Trying demuxer: lavf (force-level: normal) [lavf] Found 'mp3' at score=1 size=4096. [lavf] Found 'mp3' at score=51 size=8192. [libav/demuxer] mp3: max_analyze_duration reached [lavf] avformat_find_stream_info() finished after 229376 bytes. [demux] Detected file format: MP2/3 (MPEG audio layer 2/3) (libavformat) [demux] File tags: [demux] title: 19 The Nutcracker Act II No. 13 Valse des fleurs [demux] artist: Richard Bonynge - National Philharmonic Orchestra [demux] album_artist: Richard Bonynge - National Philharmonic Orchestra [demux] album: Tchaikovsky - The Ballets CD 4 [demux] genre: classical [demux] disc: 1/1 [demux] track: 9/26 [demux] AccurateRipResult: AccurateRip: Accurate (confidence 3) [FF106995] [demux] date: 1974 [lavf] Replaygain tags not found [global] search dirs: /home/kso/.mpv /home/kso/builds/etc/mpv [global] config path: 'subfont.ttf' -> '(NULL)' [global] search dirs: /home/kso/.mpv /home/kso/builds/etc/mpv [global] config path: 'fonts.conf' -> '(NULL)' [libass] Setting up fonts... [libass] Done. [find_subfiles] Load subtitles in /media/kso/5b2208ea-2f25-4f3f-b1dd-61492b4ac486/Tchaikovsky,Essential ,Complete,Swan Lake ,The Nutcracker, The Sleeping Beauty, R. Bonynge/Tchaikovsky,The Nutcracker/ [global] search dirs: /home/kso/.mpv /home/kso/builds/etc/mpv [global] config path: 'sub/' -> '(NULL)' [cplayer] [stream] Audio (+) --aid=1 (mp3) [cplayer] Video: no video [ad] Codec list: [ad] mpg123:mp3 - High-performance decoder using libmpg123 [ad] lavc:mp3 - MP3 (MPEG audio layer 3) [ad] lavc:mp3float (mp3) - MP3 (MPEG audio layer 3) [ad] Opening audio decoder mpg123:mp3 [ad] Selected audio codec: High-performance decoder using libmpg123 [mpg123:mp3] [ad] AUDIO: 44100 Hz, 2 ch, s16 [ad] Building audio filter chain for 44100Hz stereo 2ch s16 -> 0Hz stereo 2ch ??... [af] Audio filter chain: [af] [in] 44100Hz stereo 2ch s16 [af] [out] 44100Hz stereo 2ch s16 [af] [ao] 0Hz stereo 2ch ?? [ao] Trying preferred audio driver 'alsa' [ao/alsa] requested format: 44100 Hz, stereo channels, s16 [ao/alsa] using device: default [ao/alsa] using ALSA version: 1.0.27.2 [ao/alsa] pcm opened in blocking mode [ao/alsa] got buffersize=11025 samples [ao/alsa] got period size 689 [ao/alsa] opened: 44100 Hz/2 channels/16 bps/11025 samples buffer/Signed 16 bit Little Endian [ao/alsa] device buffer: 11025 samples. [ao/alsa] using soft-buffer of 11025 samples. [cplayer] AO: [alsa] 44100Hz stereo 2ch s16 [cplayer] AO: Description: ALSA-0.9.x-1.x audio output [ad] Building audio filter chain for 44100Hz stereo 2ch s16 -> 44100Hz stereo 2ch s16... [af] Audio filter chain: [af] [in] 44100Hz stereo 2ch s16 [af] [out] 44100Hz stereo 2ch s16 [af] [ao] 44100Hz stereo 2ch s16 [cplayer] Starting playback... statusline A: 00:00:01 / 00:06:36 (0%) [ad] Uninit audio filters... [ad] Uninit audio decoder.
Here it hangs, but if you wait a bit (~20 seconds), it'll print
[ao/alsa] uninit: pcm closed [cplayer] Audio: no audio
statusline : 00:00:01 / 00:06:36 (0%)
Hm, and with -v -v -v? (That's probably going to be large.)
$ mpv -ao=alsa -v -v -v '/media/kso/5b2208ea-2f25-4f3f-b1dd-61492b4ac486/Tchaikovsky,Essential ,Complete,Swan Lake ,The Nutcracker, The Sleeping Beauty, R. Bonynge/Tchaikovsky,The Nutcracker/19 The Nutcracker Act II No. 13 Valse des fleurs.mp3'
[cplayer] mpv git-a09329b (C) 2000-2014 mpv/MPlayer/mplayer2 projects
[cplayer] built on 2014-07-13T09:30:03
[cplayer] libav library versions:
[cplayer] libavutil 53.3.0
[cplayer] libavcodec 55.34.1
[cplayer] libavformat 55.12.0
[cplayer] libswscale 2.1.2
[cplayer] libavresample 1.1.0
[cplayer]
[global] search dirs: /home/kso/.mpv /home/kso/builds/etc/mpv
[global] search dirs: /home/kso/.mpv /home/kso/builds/etc/mpv
[global] config file: 'config'
[global] -> '/home/kso/.mpv/config'
[cplayer] Reading config file /home/kso/.mpv/config
[cplayer] Setting option 'vo' = 'opengl-hq' (flags = 4)
[cplayer] Setting option 'saturation' = '30' (flags = 4)
[global] search dirs: /home/kso/.mpv /home/kso/builds/etc/mpv
[global] config file: 'mpv.conf'
[cplayer] Setting option 'ao' = 'alsa' (flags = 8)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Configuration: ./waf configure --prefix=/home/kso/builds/ --enable-joystick --enable-openal
[cplayer] Command line: 'mpv' '-ao=alsa' '-v' '-v' '-v' '/media/kso/5b2208ea-2f25-4f3f-b1dd-61492b4ac486/Tchaikovsky,Essential ,Complete,Swan Lake ,The Nutcracker, The Sleeping Beauty, R. Bonynge/Tchaikovsky,The Nutcracker/19 The Nutcracker Act II No. 13 Valse des fleurs.mp3'
[input] enable section 'default'
[input] active section stack:
[input] default 12
[input] add: section='default' key='MOUSE_BTN0' builtin cmd='ignore # don't do anything' location='
Here it hangs.
[ao/alsa] buffer inactive.
[ao/alsa] uninit: pcm closed
[cplayer]
[cplayer] *\ uninit(0x0)
[cplayer] Audio: no audio
statusline : 00:00:01 / 00:06:36 (0%)
Also here is the backtrace taken while mpv being in unresponsive state:
(gdb) thread apply all bt
Thread 3 (Thread 0x7fffe5237700 (LWP 27617)):
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:143
from /usr/lib/x86_64-linux-gnu/libpulse.so.0
from /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so
from /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so
from /usr/lib/x86_64-linux-gnu/libasound.so.2
at ../audio/out/ao_alsa.c:551
at ../audio/out/push.c:302
at pthread_create.c:312
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Thread 2 (Thread 0x7fffe5a38700 (LWP 27616)):
at ../sysdeps/unix/syscall-template.S:81
from /usr/lib/x86_64-linux-gnu/libpulse.so.0
from /usr/lib/x86_64-linux-gnu/libpulse.so.0
from /usr/lib/x86_64-linux-gnu/libpulse.so.0
from /usr/lib/x86_64-linux-gnu/libpulse.so.0
from /usr/lib/x86_64-linux-gnu/libpulse.so.0
from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-5.0.so
at pthread_create.c:312
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Thread 1 (Thread 0x7ffff7eb6900 (LWP 27612)):
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
at ../audio/out/ao.c:328
at ../player/loadfile.c:175
type=STREAM_AUDIO, track=0x0) at ../player/loadfile.c:535
prop=0x52a190 <mp_properties+1488>, action=4, arg=0x7fffffffd700,
mpctx=0x780120, order=0, type=STREAM_AUDIO)
at ../player/command.c:1485
prop=0x52a190 <mp_properties+1488>, action=4, arg=0x7fffffffd700)
at ../player/command.c:1589
prop_list=0x529bc0 <mp_properties>, name=0x7fffffffd2b0 "aid",
action=4, arg=0x7fffffffd700, ctx=0x780120)
at ../options/m_property.c:116
prop_list=0x529bc0 <mp_properties>, in_name=0x52988a "aid",
action=4, arg=0x7fffffffd700, ctx=0x780120)
at ../options/m_property.c:169
---Type
action=4, val=0x7fffffffd700, ctx=0x780120)
at ../player/command.c:2831
prop=0x52a7a8 <mp_properties+3048>, action=4, arg=0x7fffffffd700)
at ../player/command.c:2577
prop_list=0x529bc0 <mp_properties>, name=0x7fffffffd520 "audio",
action=4, arg=0x7fffffffd700, ctx=0x780120)
at ../options/m_property.c:116
prop_list=0x529bc0 <mp_properties>, in_name=0x822bc0 "audio",
action=4, arg=0x7fffffffd700, ctx=0x780120)
at ../options/m_property.c:169
action=4, val=0x7fffffffd700, ctx=0x780120)
at ../player/command.c:2831
at ../player/command.c:3429
mpctx=0x780120) at ../player/playloop.c:712
---Type
at ../player/loadfile.c:1259
at ../player/loadfile.c:1391
at ../player/main.c:530
at ../player/main_fn.c:13
(gdb)
Pushed something to git master. Since I have no idea what's actually going on, it might not fix it.
Cool, now it works, thanks! :)
When trying to switch audio tracks in paused mode, mpv hangs.
This is a regresion caused by: commit 1c0939cb803d2ebec8fda3782dd890ebeb9229f5 Author: wm4 wm4@nowhere Date: Mon Jun 30 18:24:20 2014 +0200 options: fix --gapless-audio default value
Steps to reproduce: Open any video file (even with 1 audio track) , press pause, try to switch audio tracks => mpv hangs.
I'm using mpv from master branch, libavutil 53.3.0, libavcodec 55.34.1, libavformat 55.12.0, libswscale 2.1.2, libavresample 1.1.0
Also I've tried different -ao options (alsa and pulse) the result is the same.