Kirjoittaja Aihe: Yle-dl putkitus mplayerille  (Luettu 13060 kertaa)

PERTTIK60

  • Käyttäjä
  • Viestejä: 105
    • Profiili
Vs: Yle-dl putkitus mplayerille
« Vastaus #20 : 26.06.16 - klo:15.46 »
Kun kopion tuon pelko komennon päätteeseen homa kyllä käynnistyy, mutta päätyy taas tähän virheseen
Koodia: [Valitse]
pertti@pertti-SG3-250SC:~$ yle-dl --hardsubs --backend youtubedl --pipe http://areena.yle.fi/tv/suorat/yle-tv2 | mplayer -
yle-dl 2.10.1: Download media files from Yle Areena and Elävä Arkisto
Copyright (C) 2009-2016 Antti Ajanki <antti.ajanki@iki.fi>, license: GPLv3
MPlayer 1.2.1 (Debian), built with gcc-5.3.1 (C) 2000-2016 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing -.
Reading from stdin...
libavformat version 56.40.101 (external)
[f4m] Downloading f4m manifest
[f4m] Total fragments: unknown (live)
[download] Destination: -
[download] 2.69MiB at  1.03MiB/s (00:02)libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0
VIDEO:  [H264]  1280x720  0bpp  30.000 fps    0.0 kbps ( 0.0 kbyte/s)
Load subtitles in ./
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.60.100 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 0.0 kbit/0.00% (ratio: 0->384000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [pulse] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 1280x720 => 1280x720 Planar YV12
[download] 2.71MiB at  1.48MiB/s (00:08)A:268504.9 V:268504.9 A-V: -0.000 ct: -0[download] 2.72MiB at  1.13MiB/s (00:08)A:268504.9 V:268504.9 A-V: -0.000 ct: -0[download] 2.75MiB at 734.19KiB/s (00:08)A:268505.0 V:268505.0 A-V:  0.000 ct: -[download] 4.32MiB at  1.13MiB/s (00:09)A:268505.2 V:268505.0 A-V:  0.230 ct: -0A:268505.2 V:268505.5 A-V: -0.204 ct: -0.028   0/  0 39%  6% 22.3% 0 0


Exiting... (End of file)
Traceback (most recent call last):
  File "/usr/local/bin/yle-dl", line 1856, in <module>
    main()
  File "/usr/local/bin/yle-dl", line 1850, in main
    sys.exit(dl.pipe(url, sfilt))
  File "/usr/local/bin/yle-dl", line 1356, in pipe
    return self._retry_call('pipe', *args, **kwargs)
  File "/usr/local/bin/yle-dl", line 1340, in _retry_call
    res = method(*args, **kwargs)
  File "/usr/local/bin/yle-dl", line 766, in pipe
    return self.process(pipe_clip, url, filters)
  File "/usr/local/bin/yle-dl", line 780, in process
    res = self.process_single_episode(clipfunc, clipurl, filters)
  File "/usr/local/bin/yle-dl", line 822, in process_single_episode
    return clipfunc(clip)
  File "/usr/local/bin/yle-dl", line 764, in pipe_clip
    return dl.pipe()
  File "/usr/local/bin/yle-dl", line 1619, in pipe
    return self._execute_youtube_dl(u'-')
  File "/usr/local/bin/yle-dl", line 1656, in _execute_youtube_dl
    if not f4mdl.download(outputfile, info):
  File "/usr/lib/python2.7/dist-packages/youtube_dl/downloader/common.py", line 350, in download
    return self.real_download(filename, info_dict)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/downloader/f4m.py", line 401, in real_download
    dest_stream.write(box_data)
IOError: [Errno 32] Broken pipe
pertti@pertti-SG3-250SC:~$

nm

  • Käyttäjä
  • Viestejä: 16430
    • Profiili
Vs: Yle-dl putkitus mplayerille
« Vastaus #21 : 26.06.16 - klo:15.53 »
Kun kopion tuon pelko komennon päätteeseen homa kyllä käynnistyy, mutta päätyy taas tähän virheseen

Kokeile isompaa cachea:

Koodia: [Valitse]
yle-dl --hardsubs --backend youtubedl --pipe http://areena.yle.fi/tv/suorat/yle-tv2 | mplayer -cache 4096 -

PERTTIK60

  • Käyttäjä
  • Viestejä: 105
    • Profiili
Vs: Yle-dl putkitus mplayerille
« Vastaus #22 : 27.06.16 - klo:14.07 »
Kun kokeilen tuota NM isompaa cachea ,homa käynnistyy mutta päättyy taas samaan
Koodia: [Valitse]
IOError: [Errno 32] Broken pipe
virheseen. Ajoin tälläisen testin pipelight-plugin --system-check sen tulos taas on tämä
Koodia: [Valitse]
Checking Wine version ...
Version: wine-1.9.7 (Staging)
Patched Wine version: PASSED
(Run '/usr/share/pipelight/wine --patches' for more details.)

wine: DLL ei löytynyt.
Checking OpenGL ...
OpenGL Vendor: X.Org
OpenGL Renderer: Gallium 0.4 on AMD RS780 (DRM 2.43.0, LLVM 3.8.0)
OpenGL Direct Rendering: True
OpenGL: PASSED

Checking fonts ...
Found Arial in Z:\usr\share\fonts\truetype\msttcorefonts\Arial.ttf
Found Arial in Z:\usr\share\fonts\truetype\msttcorefonts\ariali.ttf
Found Arial in Z:\usr\share\fonts\truetype\msttcorefonts\Arial_Bold.ttf
Found Arial in Z:\usr\share\fonts\truetype\msttcorefonts\arialbi.ttf
Found Verdana in Z:\usr\share\fonts\truetype\msttcorefonts\Verdana.ttf
Found Verdana in Z:\usr\share\fonts\truetype\msttcorefonts\Verdana_Italic.ttf
Found Verdana in Z:\usr\share\fonts\truetype\msttcorefonts\verdanab.ttf
Found Verdana in Z:\usr\share\fonts\truetype\msttcorefonts\Verdana_Bold_Italic.ttf
Fonts: PASSED

Checking ACLs / XATTR ...
ACLs: PASSED

Checking libraries...
libcairo.so.2: /usr/lib/i386-linux-gnu/libcairo.so.2
libcapi20.so.3: /usr/lib/i386-linux-gnu/libcapi20.so.3
libcups.so.2: /usr/lib/i386-linux-gnu/libcups.so.2
libdbus-1.so.3: /lib/i386-linux-gnu/libdbus-1.so.3
libfontconfig.so.1: /usr/lib/i386-linux-gnu/libfontconfig.so.1
libfreetype.so.6: /usr/lib/i386-linux-gnu/libfreetype.so.6
libGL.so.1: /usr/lib/i386-linux-gnu/mesa/libGL.so.1
libgnutls.so.30: /usr/lib/i386-linux-gnu/libgnutls.so.30
libgobject-2.0.so.0: /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
libgsm.so.1: /usr/lib/i386-linux-gnu/libgsm.so.1
libgtk-3.so.0: /usr/lib/i386-linux-gnu/libgtk-3.so.0
libjpeg.so.8: /usr/lib/i386-linux-gnu/libjpeg.so.8
libncurses.so.5: /lib/i386-linux-gnu/libncurses.so.5
libnetapi.so: missing
libodbc.so.2: /usr/lib/i386-linux-gnu/libodbc.so.2
libOSMesa.so.8: /usr/lib/i386-linux-gnu/libOSMesa.so.8
libpcap.so.0.8: /usr/lib/i386-linux-gnu/libpcap.so.0.8
libpng12.so.0: /lib/i386-linux-gnu/libpng12.so.0
libsane.so.1: /usr/lib/i386-linux-gnu/libsane.so.1
libtiff.so.5: /usr/lib/i386-linux-gnu/libtiff.so.5
libtxc_dxtn_s2tc.so.0: /usr/lib/i386-linux-gnu/libtxc_dxtn_s2tc.so.0
libv4l1.so.0: /usr/lib/i386-linux-gnu/libv4l1.so.0
libva.so.1: /usr/lib/i386-linux-gnu/libva.so.1
libva-drm.so.1: /usr/lib/i386-linux-gnu/libva-drm.so.1
libva-x11.so.1: /usr/lib/i386-linux-gnu/libva-x11.so.1
libX11.so.6: /usr/lib/i386-linux-gnu/libX11.so.6
libX11-xcb.so.1: /usr/lib/i386-linux-gnu/libX11-xcb.so.1
libXcomposite.so.1: /usr/lib/i386-linux-gnu/libXcomposite.so.1
libXcursor.so.1: /usr/lib/i386-linux-gnu/libXcursor.so.1
libXext.so.6: /usr/lib/i386-linux-gnu/libXext.so.6
libXi.so.6: /usr/lib/i386-linux-gnu/libXi.so.6
libXinerama.so.1: /usr/lib/i386-linux-gnu/libXinerama.so.1
libXrandr.so.2: /usr/lib/i386-linux-gnu/libXrandr.so.2
libXrender.so.1: /usr/lib/i386-linux-gnu/libXrender.so.1
libxslt.so.1: /usr/lib/i386-linux-gnu/libxslt.so.1
libXxf86vm.so.1: /usr/lib/i386-linux-gnu/libXxf86vm.so.1
Libraries: FAILURE

>> 64 bit <<

Checking Wine version ...
Version: wine-1.9.7 (Staging)
Patched Wine version: PASSED
(Run '/usr/share/pipelight/wine64 --patches' for more details.)

wine: DLL ei löytynyt.
Checking OpenGL ...
OpenGL Vendor: X.Org
OpenGL Renderer: Gallium 0.4 on AMD RS780 (DRM 2.43.0, LLVM 3.8.0)
OpenGL Direct Rendering: True
OpenGL: PASSED

Checking fonts ...
Found Arial in Z:\usr\share\fonts\truetype\msttcorefonts\Arial.ttf
Found Arial in Z:\usr\share\fonts\truetype\msttcorefonts\ariali.ttf
Found Arial in Z:\usr\share\fonts\truetype\msttcorefonts\Arial_Bold.ttf
Found Arial in Z:\usr\share\fonts\truetype\msttcorefonts\arialbi.ttf
Found Verdana in Z:\usr\share\fonts\truetype\msttcorefonts\Verdana.ttf
Found Verdana in Z:\usr\share\fonts\truetype\msttcorefonts\Verdana_Italic.ttf
Found Verdana in Z:\usr\share\fonts\truetype\msttcorefonts\verdanab.ttf
Found Verdana in Z:\usr\share\fonts\truetype\msttcorefonts\Verdana_Bold_Italic.ttf
Fonts: PASSED

Checking ACLs / XATTR ...
ACLs: PASSED

Checking libraries...
libcairo.so.2: /usr/lib/x86_64-linux-gnu/libcairo.so.2
The futex facility returned an unexpected error code./usr/bin/pipelight-plugin: rivi 420:  7512 Keskeytetty             "$PIPELIGHT_SHARE_PATH/wine64" --check-libs
Libraries: FAILURE
Voisiko tässä olevat virheet aiheuttaa tämän, että putkitus katkeaa.

nm

  • Käyttäjä
  • Viestejä: 16430
    • Profiili
Vs: Yle-dl putkitus mplayerille
« Vastaus #23 : 27.06.16 - klo:19.15 »
Pipelight ei liity tähän mitenkään. Tämä pipe on vain tavallinen Unixin prosessien välinen putkitus.

yle-dl:n broken pipe -virhe johtuu siitä, että MPlayer kaatuu tai sulkeutuu kesken kaiken ja sulkee putken. Minulla komento toimii kyllä 14.04:ssä sekä MPlayer 1.1:llä että MPlayer2:lla. Jos muistan, voin testata myöhemmin 16.04:ssä virtuaalikoneessa.