Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--stream-dump failure #1382

Closed
kinleyd opened this issue Dec 24, 2014 · 10 comments
Closed

--stream-dump failure #1382

kinleyd opened this issue Dec 24, 2014 · 10 comments

Comments

@kinleyd
Copy link

kinleyd commented Dec 24, 2014

When I try --stream-dump, I only get this:

➜  ~  mpv pvr:// --tv-channel=E10 --stream-dump=test.ts                                                           
Playing: pvr://
[pvr] [v4l2] select channel list europe-west, entries 104
[pvr] [v4l2] Switch to user station channel:      E10 - freq:   210250 - station: chan7[Star-4]
[pvr] [pvr] Using device /dev/video0
[pvr] [pvr] Detected WinTV PVR 500 (unit #1)
[pvr] [v4l2] Available video inputs: '#0, Tuner 1' '#1, S-Video 1' '#2, Composite 1' '#3, S-Video 2' '#4, Composite 2' 
[pvr] [v4l2] Available audio inputs: '#0, Tuner 1' '#1, Line In 1' '#2, Line In 2' 
[pvr] [v4l2] Available norms: '#0, PAL-BG' '#1, PAL-H' 
[pvr] [v4l2] Got signal at frequency 210250 (3364)
[pvr] [v4l2] Video input: Tuner 1
[pvr] [v4l2] Audio input: Tuner 1
[pvr] [pvr] failed with errno 22 when reading 2048 bytes
[pvr] [pvr] read 0 bytes


Exiting... (End of file)
➜  ~  

I'm using version 0.7.2-1 on Arch Linux and --stream-capture works.

@ghost
Copy link

ghost commented Dec 24, 2014

Could it be that with normal playback, it's first searching channels or so? There is such a code path: if opening the demuxer fails (i.e. recognizing file format, checking whether there's video data at all), then it switches channels until it finds something that works. But since the demuxer is out of the loop with --stream-dump, this part is skipped.

So, maybe check whether you got the right channel.

@kinleyd
Copy link
Author

kinleyd commented Dec 24, 2014

@wm4 Thank you for responding and the good work on mpv.
Regarding getting the right channel: the channel I specified at startup, E10, is a valid channel. Does channel searching still occur despite specifying a correct one?

@ghost
Copy link

ghost commented Dec 24, 2014

Actually, you're using pvr://, and this channel searching logic is only active for dvb://, so this doesn't apply. Forget what I said.

Then I don't know what's wrong. Can you maybe post a log when playing from pvr normally?

(Also, I didn't know someone is still using pvr://. I don't even know what it does, other than being related to TV stuff.)

@kinleyd
Copy link
Author

kinleyd commented Dec 24, 2014

<Also, I didn't know someone is still using pvr://.>
Heh heh. I'm using an old Hauppauge PVR tuner (WinTV 500) from almost a decade ago. Plus I'm still in an analog world as far as TV goes so, yup, I'm one among the last remaining bastions of analog/pvr stalwarts. :)

Here's what I get when running pvr:// normally:

$ mpv pvr:// --tv-channel=E10 -v                                                                                                                                                                                                                                                                       [23:59:25]
[cplayer] mpv 0.7.2 (C) 2000-2014 mpv/MPlayer/mplayer2 projects
[cplayer]  built on 2014-12-20T20:43:55
[cplayer] ffmpeg library versions:
[cplayer]    libavutil       54.15.100
[cplayer]    libavcodec      56.13.100
[cplayer]    libavformat     56.15.102
[cplayer]    libswscale      3.1.101
[cplayer]    libavfilter     5.2.103
[cplayer]    libavresample   2.1.0
[cplayer] 
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config path: 'encoding-profiles.conf' -> '/etc/mpv/encoding-profiles.conf'
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[cplayer] 
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config file: 'config'
[global]     -> '/home/kdd/.mpv/config'
[cplayer] Reading config file /home/kdd/.mpv/config
[cplayer] 
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config file: 'mpv.conf'
[global]     -> '/home/kdd/.config/mpv/mpv.conf'
[cplayer] Reading config file /home/kdd/.config/mpv/mpv.conf
[cplayer] 
[cplayer] Setting option 'vo' = 'opengl' (flags = 4)
[cplayer] Setting option 'ao' = 'alsa' (flags = 4)
[cplayer] Setting option 'tv-chanlist' = 'europe-west' (flags = 4)
[cplayer] Setting option 'tv-width' = '720' (flags = 4)
[cplayer] Setting option 'tv-height' = '576' (flags = 4)
[cplayer] Setting option 'tv-channels' = 'E6-chan4[Star-1],SE14-chan5[Star-2],E10-chan7[Star-4],SE12-chan8[TenSports],SE18-chan9[TenAction],E11-chan11[SonySix],S21-chan13[FoxMovies],E8-chan14[HBO],S27-chan15[StarMovies],S35-chan16[AXN],S39-chan17[FoxCrime],SE3-chan19[ZCafe],SE4-chan20[ZStudio],SE11-chan21[StarWorld]' (flags = 4)
[cplayer] Setting option 'tv-channel' = 'E10' (flags = 8)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Configuration: ./waf configure --prefix=/usr --confdir=/etc/mpv --enable-joystick --enable-zsh-comp --enable-libmpv-shared --enable-cdda --enable-portaudio
[cplayer] Command line: 'mpv' 'pvr://' '--tv-channel=E10' '-v'
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config file: 'input.conf'
[input] Falling back on default (hardcoded) input config
[input/#1] Setting up LIRC support...
[input/#1] Failed to open LIRC support. You will not be able to use your remote control.
[osc] Loading script @osc.lua...
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config file: 'lua'
[osc] loading mp.defaults
[osc] loading @osc.lua
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config path: 'lua-settings/osc.conf' -> '(NULL)'
[osc] lua-settings/osc.conf not found. 
[cplayer] Done loading @osc.lua.
[ytdl_hook] Loading script @ytdl_hook.lua...
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config file: 'lua'
[ytdl_hook] loading mp.defaults
[ytdl_hook] loading @ytdl_hook.lua
[cplayer] Run command: hook_add, flags=0, args=[on_load, 1, 10]
[cplayer] Done loading @ytdl_hook.lua.
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config file: 'lua'
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config path: 'watch_later/3FAE5C34E3B7E91B8F8C490A9B1B7F32' -> '(NULL)'
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config path: 'watch_later' -> '(NULL)'
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config path: 'watch_later/3FAE5C34E3B7E91B8F8C490A9B1B7F32' -> '(NULL)'
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config path: 'watch_later' -> '(NULL)'
[cplayer] Playing: pvr://
[cplayer] Running hook: ytdl_hook/on_load
[cplayer] Run command: hook_ack, flags=0, args=[on_load]
[pvr] [v4l2] select channel list europe-west, entries 104
[pvr] [v4l2]   0: [ ] channel:       E2 - freq:    48250 - station: 
[pvr] [v4l2]   1: [ ] channel:       E3 - freq:    55250 - station: 
[pvr] [v4l2]   2: [ ] channel:       E4 - freq:    62250 - station: 
[pvr] [v4l2]   3: [ ] channel:      S01 - freq:    69250 - station: 
[pvr] [v4l2]   4: [ ] channel:      S02 - freq:    76250 - station: 
[pvr] [v4l2]   5: [ ] channel:      S03 - freq:    83250 - station: 
[pvr] [v4l2]   6: [ ] channel:       E5 - freq:   175250 - station: 
[pvr] [v4l2]   7: [X] channel:       E6 - freq:   182250 - station: chan4[Star-1]
[pvr] [v4l2]   8: [ ] channel:       E7 - freq:   189250 - station: 
[pvr] [v4l2]   9: [X] channel:       E8 - freq:   196250 - station: chan14[HBO]
[pvr] [v4l2]  10: [ ] channel:       E9 - freq:   203250 - station: 
[pvr] [v4l2]  11: [X] channel:      E10 - freq:   210250 - station: chan7[Star-4]
[pvr] [v4l2]  12: [X] channel:      E11 - freq:   217250 - station: chan11[SonySix]
[pvr] [v4l2]  13: [ ] channel:      E12 - freq:   224250 - station: 
[pvr] [v4l2]  14: [ ] channel:      SE1 - freq:   105250 - station: 
[pvr] [v4l2]  15: [ ] channel:      SE2 - freq:   112250 - station: 
[pvr] [v4l2]  16: [X] channel:      SE3 - freq:   119250 - station: chan19[ZCafe]
[pvr] [v4l2]  17: [X] channel:      SE4 - freq:   126250 - station: chan20[ZStudio]
[pvr] [v4l2]  18: [ ] channel:      SE5 - freq:   133250 - station: 
[pvr] [v4l2]  19: [ ] channel:      SE6 - freq:   140250 - station: 
[pvr] [v4l2]  20: [ ] channel:      SE7 - freq:   147250 - station: 
[pvr] [v4l2]  21: [ ] channel:      SE8 - freq:   154250 - station: 
[pvr] [v4l2]  22: [ ] channel:      SE9 - freq:   161250 - station: 
[pvr] [v4l2]  23: [ ] channel:     SE10 - freq:   168250 - station: 
[pvr] [v4l2]  24: [X] channel:     SE11 - freq:   231250 - station: chan21[StarWorld]
[pvr] [v4l2]  25: [X] channel:     SE12 - freq:   238250 - station: chan8[TenSports]
[pvr] [v4l2]  26: [ ] channel:     SE13 - freq:   245250 - station: 
[pvr] [v4l2]  27: [X] channel:     SE14 - freq:   252250 - station: chan5[Star-2]
[pvr] [v4l2]  28: [ ] channel:     SE15 - freq:   259250 - station: 
[pvr] [v4l2]  29: [ ] channel:     SE16 - freq:   266250 - station: 
[pvr] [v4l2]  30: [ ] channel:     SE17 - freq:   273250 - station: 
[pvr] [v4l2]  31: [X] channel:     SE18 - freq:   280250 - station: chan9[TenAction]
[pvr] [v4l2]  32: [ ] channel:     SE19 - freq:   287250 - station: 
[pvr] [v4l2]  33: [ ] channel:     SE20 - freq:   294250 - station: 
[pvr] [v4l2]  34: [X] channel:      S21 - freq:   303250 - station: chan13[FoxMovies]
[pvr] [v4l2]  35: [ ] channel:      S22 - freq:   311250 - station: 
[pvr] [v4l2]  36: [ ] channel:      S23 - freq:   319250 - station: 
[pvr] [v4l2]  37: [ ] channel:      S24 - freq:   327250 - station: 
[pvr] [v4l2]  38: [ ] channel:      S25 - freq:   335250 - station: 
[pvr] [v4l2]  39: [ ] channel:      S26 - freq:   343250 - station: 
[pvr] [v4l2]  40: [X] channel:      S27 - freq:   351250 - station: chan15[StarMovies]
[pvr] [v4l2]  41: [ ] channel:      S28 - freq:   359250 - station: 
[pvr] [v4l2]  42: [ ] channel:      S29 - freq:   367250 - station: 
[pvr] [v4l2]  43: [ ] channel:      S30 - freq:   375250 - station: 
[pvr] [v4l2]  44: [ ] channel:      S31 - freq:   383250 - station: 
[pvr] [v4l2]  45: [ ] channel:      S32 - freq:   391250 - station: 
[pvr] [v4l2]  46: [ ] channel:      S33 - freq:   399250 - station: 
[pvr] [v4l2]  47: [ ] channel:      S34 - freq:   407250 - station: 
[pvr] [v4l2]  48: [X] channel:      S35 - freq:   415250 - station: chan16[AXN]
[pvr] [v4l2]  49: [ ] channel:      S36 - freq:   423250 - station: 
[pvr] [v4l2]  50: [ ] channel:      S37 - freq:   431250 - station: 
[pvr] [v4l2]  51: [ ] channel:      S38 - freq:   439250 - station: 
[pvr] [v4l2]  52: [X] channel:      S39 - freq:   447250 - station: chan17[FoxCrime]
[pvr] [v4l2]  53: [ ] channel:      S40 - freq:   455250 - station: 
[pvr] [v4l2]  54: [ ] channel:      S41 - freq:   463250 - station: 
[pvr] [v4l2]  55: [ ] channel:       21 - freq:   471250 - station: 
[pvr] [v4l2]  56: [ ] channel:       22 - freq:   479250 - station: 
[pvr] [v4l2]  57: [ ] channel:       23 - freq:   487250 - station: 
[pvr] [v4l2]  58: [ ] channel:       24 - freq:   495250 - station: 
[pvr] [v4l2]  59: [ ] channel:       25 - freq:   503250 - station: 
[pvr] [v4l2]  60: [ ] channel:       26 - freq:   511250 - station: 
[pvr] [v4l2]  61: [ ] channel:       27 - freq:   519250 - station: 
[pvr] [v4l2]  62: [ ] channel:       28 - freq:   527250 - station: 
[pvr] [v4l2]  63: [ ] channel:       29 - freq:   535250 - station: 
[pvr] [v4l2]  64: [ ] channel:       30 - freq:   543250 - station: 
[pvr] [v4l2]  65: [ ] channel:       31 - freq:   551250 - station: 
[pvr] [v4l2]  66: [ ] channel:       32 - freq:   559250 - station: 
[pvr] [v4l2]  67: [ ] channel:       33 - freq:   567250 - station: 
[pvr] [v4l2]  68: [ ] channel:       34 - freq:   575250 - station: 
[pvr] [v4l2]  69: [ ] channel:       35 - freq:   583250 - station: 
[pvr] [v4l2]  70: [ ] channel:       36 - freq:   591250 - station: 
[pvr] [v4l2]  71: [ ] channel:       37 - freq:   599250 - station: 
[pvr] [v4l2]  72: [ ] channel:       38 - freq:   607250 - station: 
[pvr] [v4l2]  73: [ ] channel:       39 - freq:   615250 - station: 
[pvr] [v4l2]  74: [ ] channel:       40 - freq:   623250 - station: 
[pvr] [v4l2]  75: [ ] channel:       41 - freq:   631250 - station: 
[pvr] [v4l2]  76: [ ] channel:       42 - freq:   639250 - station: 
[pvr] [v4l2]  77: [ ] channel:       43 - freq:   647250 - station: 
[pvr] [v4l2]  78: [ ] channel:       44 - freq:   655250 - station: 
[pvr] [v4l2]  79: [ ] channel:       45 - freq:   663250 - station: 
[pvr] [v4l2]  80: [ ] channel:       46 - freq:   671250 - station: 
[pvr] [v4l2]  81: [ ] channel:       47 - freq:   679250 - station: 
[pvr] [v4l2]  82: [ ] channel:       48 - freq:   687250 - station: 
[pvr] [v4l2]  83: [ ] channel:       49 - freq:   695250 - station: 
[pvr] [v4l2]  84: [ ] channel:       50 - freq:   703250 - station: 
[pvr] [v4l2]  85: [ ] channel:       51 - freq:   711250 - station: 
[pvr] [v4l2]  86: [ ] channel:       52 - freq:   719250 - station: 
[pvr] [v4l2]  87: [ ] channel:       53 - freq:   727250 - station: 
[pvr] [v4l2]  88: [ ] channel:       54 - freq:   735250 - station: 
[pvr] [v4l2]  89: [ ] channel:       55 - freq:   743250 - station: 
[pvr] [v4l2]  90: [ ] channel:       56 - freq:   751250 - station: 
[pvr] [v4l2]  91: [ ] channel:       57 - freq:   759250 - station: 
[pvr] [v4l2]  92: [ ] channel:       58 - freq:   767250 - station: 
[pvr] [v4l2]  93: [ ] channel:       59 - freq:   775250 - station: 
[pvr] [v4l2]  94: [ ] channel:       60 - freq:   783250 - station: 
[pvr] [v4l2]  95: [ ] channel:       61 - freq:   791250 - station: 
[pvr] [v4l2]  96: [ ] channel:       62 - freq:   799250 - station: 
[pvr] [v4l2]  97: [ ] channel:       63 - freq:   807250 - station: 
[pvr] [v4l2]  98: [ ] channel:       64 - freq:   815250 - station: 
[pvr] [v4l2]  99: [ ] channel:       65 - freq:   823250 - station: 
[pvr] [v4l2] 100: [ ] channel:       66 - freq:   831250 - station: 
[pvr] [v4l2] 101: [ ] channel:       67 - freq:   839250 - station: 
[pvr] [v4l2] 102: [ ] channel:       68 - freq:   847250 - station: 
[pvr] [v4l2] 103: [ ] channel:       69 - freq:   855250 - station: 
[pvr] [v4l2] Switch to user station channel:      E10 - freq:   210250 - station: chan7[Star-4]
[pvr] [pvr] Using device /dev/video0
[pvr] [pvr] Detected WinTV PVR 500 (unit #1)
[pvr] [v4l2] Available video inputs: '#0, Tuner 1' '#1, S-Video 1' '#2, Composite 1' '#3, S-Video 2' '#4, Composite 2' 
[pvr] [v4l2] Available audio inputs: '#0, Tuner 1' '#1, Line In 1' '#2, Line In 2' 
[pvr] [v4l2] Available norms: '#0, PAL-BG' '#1, PAL-H' 
[pvr] [v4l2] Got signal at frequency 210250 (3364)
[pvr] [v4l2] Video input: Tuner 1
[pvr] [v4l2] Audio input: Tuner 1
[pvr] Opened: pvr://
[pvr] [pvr] failed with errno 22 when reading 2048 bytes
[pvr] [pvr] read 0 bytes
[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 'mpeg' at score=26 size=2048.
[ffmpeg/demuxer] mpeg: max_analyze_duration 5000000 reached at 5000000 microseconds
[lavf] avformat_find_stream_info() finished after 4456448 bytes.
[lavf] Replaygain tags not found
[lavf] Replaygain tags not found
[demux] Detected file format: MPEG-PS (MPEG-2 Program Stream) (libavformat)
[demux] Stream is not seekable.
[lavf] Replaygain tags not found
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config path: 'sub/' -> '(NULL)'
[cplayer] [stream] Video (+) --vid=1 (mpeg2video)
[cplayer] [stream] Audio (+) --aid=1 (mp2)
[cplayer] [V] fourcc:0x0  size:720x576  fps:25.000
[vo/opengl/wayland] failed to connect to a wayland server: check if a wayland compositor is running
[vo/opengl/x11] X11 opening display: :0.0
[vo/opengl/x11] X11 running at 5760x1080 (":0.0" => local display)
[vo/opengl/x11] Detected wm supports NetWM.
[vo/opengl/x11] Detected wm supports FULLSCREEN state.
[vo/opengl/x11] Display 0 (DVI-I-1): [0, 0, 1920, 1080] @ 60.000000 FPS
[vo/opengl/x11] Display 1 (HDMI-0): [3840, 0, 5760, 1080] @ 60.000000 FPS
[vo/opengl/x11] Display 2 (DVI-D-0): [1920, 0, 3840, 1080] @ 60.000000 FPS
[vo/opengl] GLX chose visual with ID 0x27
[vo/opengl] Detected OpenGL 4.4.
[vo/opengl] GL_VENDOR='NVIDIA Corporation'
[vo/opengl] GL_RENDERER='GeForce GTX 760/PCIe/SSE2'
[vo/opengl] GL_VERSION='4.4.0 NVIDIA 343.36'
[vo/opengl] GL_SHADING_LANGUAGE_VERSION='4.40 NVIDIA via Cg compiler'
[vo/opengl] OpenGL legacy compat. found.
[vo/opengl] Detected OpenGL features: [Basic OpenGL] [Legacy OpenGL] [OpenGL 2.0] [OpenGL 2.1] [OpenGL 3.0] [Framebuffers] [VAOs] [sRGB textures] [sRGB framebuffers] [Float textures] [RG textures] [NO_SW]
[vo/opengl] Testing user-set FBO format
[vo/opengl] Create FBO: 16x16
[vo/opengl]    8-bit precision: 0x0p+0
[vo/opengl]    16-bit precision: 0x1.0001p-9
[vo/opengl]    full float: 0x1.01p-9
[vo/opengl]    out of range value (2): 0x1p+0
[vo/opengl] Display depth: R=8, G=8, B=8
[vo/opengl] Testing user-set FBO format
[vo/opengl] Create FBO: 16x16
[vo/opengl]    8-bit precision: 0x0p+0
[vo/opengl]    16-bit precision: 0x1.0001p-9
[vo/opengl]    full float: 0x1.01p-9
[vo/opengl]    out of range value (2): 0x1p+0
[vo/opengl] Reinit rendering.
[vo/opengl] Assuming 1000.000000 FPS for framedrop.
[vd] Codec list:
[vd]     lavc:mpeg2video - MPEG-2 video
[vd]     lavc:mpegvideo (mpeg2video) - MPEG-1 video
[vd]     lavc:mpegvideo_vdpau (mpeg2video) - MPEG-1/2 video (VDPAU acceleration)
[vd] Opening video decoder lavc:mpeg2video
[vd] Not trying to use hardware decoding: codec mpeg2video is blacklisted by user.
[vd] Selected video codec: MPEG-2 video [lavc:mpeg2video]
[vo/opengl/x11] Disabling screensaver.
[vo/opengl/x11] Setting DMPS: off.
[ad] Codec list:
[ad]     lavc:mp2 - MP2 (MPEG audio layer 2)
[ad]     lavc:mp2float (mp2) - MP2 (MPEG audio layer 2)
[ad] Opening audio decoder lavc:mp2
[ad] Selected audio codec: MP2 (MPEG audio layer 2) [lavc:mp2]
[cplayer] Starting playback...
[af] Audio filter chain:
[af]   [in] 48000Hz stereo 2ch s16p
[af]   [out] 48000Hz stereo 2ch s16p
[af]   [ao] 48000Hz stereo 2ch s16p
[ao] Trying preferred audio driver 'alsa'
[ao/alsa] requested format: 48000 Hz, stereo channels, s16p
[ao/alsa] using device: default
[ao/alsa] using ALSA version: 1.0.28
[ao/alsa] pcm opened in blocking mode
[ao/alsa] Got supported channel map: stereo (type FIXED)
[ao/alsa] Got supported channel map: quad (type FIXED)
[ao/alsa] Got supported channel map: 5.1(alsa) (type FIXED)
[ao/alsa] trying to set ALSA channel map: FL FR
[ao/alsa] channel map reported by ALSA: FL FR
[ao/alsa] which we understand as: stereo
[ao/alsa] which is what we requested.
[ao/alsa] got buffersize=12288 samples
[ao/alsa] got period size 1024
[ao/alsa] device buffer: 12288 samples.
[ao/alsa] using soft-buffer of 12288 samples.
[cplayer] AO: [alsa] 48000Hz stereo 2ch s16
[cplayer] AO: Description: ALSA audio output
[af] Adding filter lavrresample 
[af] Audio filter chain:
[af]   [in] 48000Hz stereo 2ch s16p
[af]   [lavrresample] 48000Hz stereo 2ch s16
[af]   [out] 48000Hz stereo 2ch s16
[af]   [ao] 48000Hz stereo 2ch s16
[af] Removing filter lavrresample 
[af] Adding filter lavrresample 
[af] Audio filter chain:
[af]   [in] 48000Hz stereo 2ch s16p
[af]   [lavrresample] 48000Hz stereo 2ch s16
[af]   [out] 48000Hz stereo 2ch s16
[af]   [ao] 48000Hz stereo 2ch s16
[vd] VIDEO:  720x576  25.000 fps  384.0 kbps (48.0 kB/s)
[vd] VDec: vo config request - 720 x 576 (yuv420p)
[vd] VO Config (720x576->720x576,0x3EC)
[vf] Video filter chain:
[vf]  [vd] 720x576 yuv420p Autoselect/TV CL=mpeg2/4/h264
[vf]  [in] 720x576 yuv420p BT.601 (SD)/TV CL=mpeg2/4/h264
[vf]  [out] 720x576 yuv420p BT.601 (SD)/TV CL=mpeg2/4/h264
[cplayer] VO: [opengl] 720x576 yuv420p
[cplayer] VO: Description: Extended OpenGL Renderer
[vo/opengl/x11] Current display FPS: 60.000000
[vo/opengl/x11] not waiting for MapNotify
[vo/opengl] Resize: 1916x528
[vo/opengl] Window size: 1916x528
[vo/opengl] Video source: 720x576 (720x576)
[vo/opengl] Video display: (0, 0) 720x576 -> (628, 0) 660x528
[vo/opengl] Video scale: 0.916667/0.916667
[vo/opengl] OSD borders: l=628 t=0 r=628 b=0
[vo/opengl] Video borders: l=628 t=0 r=628 b=0
[vo/opengl] Testing user-set FBO format
[vo/opengl] Create FBO: 16x16
[vo/opengl]    8-bit precision: 0x0p+0
[vo/opengl]    16-bit precision: 0x1.0001p-9
[vo/opengl]    full float: 0x1.01p-9
[vo/opengl]    out of range value (2): 0x1p+0
[vo/opengl] Texture for plane 0: 720x576
[vo/opengl] Texture for plane 1: 360x288
[vo/opengl] Texture for plane 2: 360x288
[vo/opengl] Reinit rendering.
[vo/opengl] compiling shader program 'frag_osd_libass', header:
[vo/opengl] [  1] #define VIDEO_SAMPLER sampler2D
[vo/opengl] compiling shader program 'frag_osd_rgba', header:
[vo/opengl] [  1] #define VIDEO_SAMPLER sampler2D
[vo/opengl] compiling shader program 'final', header:
[vo/opengl] [  1] #define VIDEO_SAMPLER sampler2D
[vo/opengl] [  2] #define SAMPLE_L(p0, p1, p2) sample_bilinear(p0, p1, p2, filter_param1_l)
[vo/opengl] [  3] #define USE_CONV CONV_PLANAR
[vo/opengl] [  4] #define USE_COLORMATRIX 1
[vo/opengl] [  5] #define SAMPLE_C(p0, p1, p2) sample_bilinear(p0, p1, p2, filter_param1_c)
[vo/opengl] Assuming 60.000000 FPS for framedrop.
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config path: 'fonts' -> '(NULL)'
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config path: 'subfont.ttf' -> '(NULL)'
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config path: 'fonts.conf' -> '(NULL)'
[osd/libass] Setting up fonts...
[osd/libass] Done.
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config path: 'fonts' -> '(NULL)'
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config path: 'subfont.ttf' -> '(NULL)'
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config path: 'fonts.conf' -> '(NULL)'
[osd/libass] Setting up fonts...
[osd/libass] Done.
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config path: 'fonts' -> '(NULL)'
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config path: 'subfont.ttf' -> '(NULL)'
[global] search dirs: /home/kdd/.config/mpv /home/kdd/.mpv /etc/mpv
[global] config path: 'fonts.conf' -> '(NULL)'
[osd/libass] Setting up fonts...
[osd/libass] Done.
[statusline] AV: 00:00:03 (0%) A-V:  0.000
[cplayer] Run command: quit, flags=9, args=[0]
[cplayer] EOF code: 6  
[cplayer] 
[ad] Uninit audio filters...
[af] Removing filter lavrresample 
[ad] Uninit audio decoder.
[vd] Uninit video.
[cplayer] 
[cplayer] Exiting... (Quit)
[ytdl_hook] Exiting...
[osc] Exiting...
[ao/alsa] draining...
[vo/opengl/x11] Enabling screensaver.
[vo/opengl/x11] Setting DMPS: on.
[vo/opengl/x11] uninit ...

@kinleyd
Copy link
Author

kinleyd commented Dec 25, 2014

If I don't use the -v switch at start up, the error common to both --stream-capture and --stream-dump is this:

[pvr] [pvr] failed with errno 22 when reading 2048 bytes
[pvr] [pvr] read 0 bytes

Capture apparently works past this error, but dump doesn't.

@ghost
Copy link

ghost commented Dec 25, 2014

Yeah, looks like this is what's happening. Usually, such a read failure would also make the demuxer quit, but maybe something retries reading for some reason.

Maybe it would be better to fix the read error. The code looks a bit suspicious (and uses a timeout). But since I can't test pvr myself, I could at best do some trial&error.

@kinleyd
Copy link
Author

kinleyd commented Dec 26, 2014

Thanks @wm4. If there is anything you would like me to try or test on my machine please let me know, I'd be most happy to help in any way I can.

ghost pushed a commit that referenced this issue Dec 26, 2014
An attempt to find out what's wrong with issue #1382.

I don't even know why a timeout would be needed; for robustness with
broken devices maybe?
@ghost
Copy link

ghost commented Dec 26, 2014

Can you retry git master? I have no idea if it helps.

@kinleyd
Copy link
Author

kinleyd commented Dec 26, 2014

@wm4: Thank you, my man, that did it. The read error doesn't occur any more and --stream-dump works now. Thank you so much!

Would you like to see the log? It's all green now. :)

@ghost
Copy link

ghost commented Dec 26, 2014

Probably not necessary. Still, a very strange timeout (and also strange that it fixes this). Well, if it works, good enough.

@ghost ghost closed this as completed Dec 26, 2014
ghost pushed a commit that referenced this issue Jan 24, 2015
An attempt to find out what's wrong with issue #1382.

I don't even know why a timeout would be needed; for robustness with
broken devices maybe?
ghost pushed a commit that referenced this issue Jan 25, 2015
An attempt to find out what's wrong with issue #1382.

I don't even know why a timeout would be needed; for robustness with
broken devices maybe?
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant