livestreamer PET?

Post Reply
Message
Author
clau
Posts: 13
Joined: Sun 10 Apr 2011, 22:16

livestreamer PET?

#1 Post by clau »

Alguien se decide a hacer una PET.....
https://github.com/chrippa/livestreamer/releases

Gracias!

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#2 Post by nilsonmorales »

livestreamer-1.12.0.pet MD5SUM dc9dd54d6c35e4d96c28afab8e677f59 325KB
Compilado en tahrpup, posiblemente funcione en derivados debian/ubuntu de Puppy
Compilación:

Code: Select all

python setup.py install --root=/tmp/livestreamer-1.12.0
dir2pet /tmp/livestreamer-1.12.0
Forma de uso en Puppy:

Code: Select all

livestreamer --yes-run-as-root twitch.tv/day9tv best
Librerías adicionales:
ca-certificates_20130906ubuntu2
debconf_1.5.51ubuntu2
python-chardet_2.0.1
python-six_1.5.2-1
python-urllib3_1.7.1
python-request_2.2.1-1
python-singledispatch_3.4.0.2-1
Es necesario hacer mas pruebas y leer documentación, la verdad no se como funciona.
Mi conexion a internet es muy lenta solo pude hacerlo funcionar con esto:

Code: Select all

livestreamer --yes-run-as-root http://www.youtube.com/watch?v=U4Pw3ofFWgs audio_mp4
Saludos.
Editado: Olvidé mencionar que tambien instalé futures-2.2.0, algo de python

Code: Select all

wget -c https://pypi.python.org/packages/source/f/futures/futures 2.2.0.tar.gz#md5=310e446de8609ddb59d0886e35edb534
tar xvzf futures-2.2.0.tar.gz
cd futures-2.2.0
python setup.py install

Son necesarios los devx de la version para compilar en Puppy.
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

clau
Posts: 13
Joined: Sun 10 Apr 2011, 22:16

#3 Post by clau »

Muchas gracias Nilson, voy a probarlo. Este es un ejemplo mas de la gran comunidad de Puppy Linux. :D

bh56
Posts: 55
Joined: Tue 07 Apr 2009, 08:04

Livestreamer as root

#4 Post by bh56 »

Hola
Estoy utilizando LxpupXenial .
Cuando entro :
livestreamer --yes-run-as-root
Me sale este error :
livestreamer : Error : no reconocidos argumentos : ----yes-run-as-root
Si entro en :
livestreamer -yes-run-as-root
Yo obtengo:
livestreamer : Error : no reconocidos argumentos : -yes-run-as-root
Estoy utilizando livestreamer 1.12.2-1
No puedo conseguir livestreamer para funcionar

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#5 Post by nilsonmorales »

Estoy en Pupjibaro retro-precise.
Probaste usando pip-7.1.0?
Instala luego en terminal

Code: Select all

pip install -U livestreamer
root  Pjibaro  ~  #  pip install -U livestreamer
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/late ... ormwarning.
InsecurePlatformWarning
You are using pip version 7.1.0, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/late ... ormwarning.
InsecurePlatformWarning
Requirement already up-to-date: livestreamer in /usr/local/lib/python2.7/dist-packages
Collecting futures (from livestreamer)
Downloading futures-3.0.5-py2-none-any.whl
Collecting singledispatch (from livestreamer)
Downloading singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting requests<3.0,>=1.0 (from livestreamer)
Downloading requests-2.11.0-py2.py3-none-any.whl (514kB)
100% |████████████████████████████████| 516kB 217kB/s
Collecting six (from singledispatch->livestreamer)
Downloading six-1.10.0-py2.py3-none-any.whl
Installing collected packages: futures, six, singledispatch, requests
Found existing installation: futures 3.0.1
Uninstalling futures-3.0.1:
Successfully uninstalled futures-3.0.1
Found existing installation: six 1.9.0
Uninstalling six-1.9.0:
Successfully uninstalled six-1.9.0
Successfully installed futures-3.0.5 requests-2.11.0 singledispatch-3.4.0.3 six-1.10.0
despues probamos en terminal

Code: Select all

livestreamer
root  Pjibaro  ~  #  livestreamer
livestreamer is not supposed to be run as root. If you really must you can do it by passing --yes-run-as-root.
Despues probe como cuando hice el primer paquete

Code: Select all

livestreamer --yes-run-as-root http://www.youtube.com/watch?v=U4Pw3ofFWgs audio_mp4
Se me abrio vlc y un audio en ingles de no se que
root  Pjibaro  ~  #  livestreamer --yes-run-as-root http://www.youtube.com/watch?v=U4Pw3ofFWgs audio_mp4
[cli][info] Found matching plugin youtube for URL http://www.youtube.com/watch?v=U4Pw3ofFWgs
[cli][info] Available streams: 144p (worst), 240p, 360p (best), audio_mp4, audio_webm
[cli][info] Opening stream: audio_mp4 (http)
[cli][info] Starting player: /usr/bin/vlc
[cli][info] Player closed
[cli][info] Stream ended
Saludos.
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

bh56
Posts: 55
Joined: Tue 07 Apr 2009, 08:04

Livestreamer

#6 Post by bh56 »

Hola,
He instalado livestreamer desde el gestor de paquetes .
He desinstalado y seguido sus instrucciones.
Esto es lo que pasó:

root# pip install -U livestreamer
You are using pip version 7.1.0, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting livestreamer
Using cached livestreamer-1.12.2.tar.gz
Requirement already up-to-date: futures in /usr/lib/python2.7/dist-packages (from livestreamer)
Requirement already up-to-date: singledispatch in /usr/lib/python2.7/dist-packages (from livestreamer)
Collecting requests<3.0,>=1.0 (from livestreamer)
Downloading requests-2.11.0-py2.py3-none-any.whl (514kB)
100% |████████████████████████████████| 516kB 315kB/s
Requirement already up-to-date: six in /usr/lib/python2.7/dist-packages (from singledispatch->livestreamer)
Installing collected packages: requests, livestreamer
Found existing installation: requests 2.9.1
Uninstalling requests-2.9.1:
Successfully uninstalled requests-2.9.1
Running setup.py install for livestreamer
Successfully installed livestreamer-1.12.2 requests-2.11.0
root# livestreamer --yes-run-as-root
usage: livestreamer [OPTIONS] [URL] [STREAM]
livestreamer: error: unrecognized arguments: ----yes-run-as-root

Sigue siendo el mismo problema.
Gracias por tu ayuda.

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#7 Post by nilsonmorales »

Y si luego de esa línea le agregas lo que le falta, probaste?, osea el software se queja que le faltan argumentos, la URL del stream + el formato o la calidad del video, hace la prueba que yo hice en el post anterior.
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

bh56
Posts: 55
Joined: Tue 07 Apr 2009, 08:04

Livestreamer

#8 Post by bh56 »

Hola,
Intentó:

root# livestreamer yes-run-as-root http://www.youtube.com/watch?v=U4Pw3ofFWgs audio_mp4
usage: livestreamer [OPTIONS] [URL] [STREAM]
livestreamer: error: unrecognized arguments: audio_mp4

También:

Also:
root# livestreamer yes-run-as-root http://www.youtube.com/watch?v=U4Pw3ofFWgs best
usage: livestreamer [OPTIONS] [URL] [STREAM]
livestreamer: error: unrecognized arguments: best

Esto funciona sin embargo :

root# su spot
root$ livestreamer --yes-run-as-root http://www.youtube.com/watch?v=U4Pw3ofFWgs audio_mp4
[cli][info] Found matching plugin youtube for URL http://www.youtube.com/watch?v=U4Pw3ofFWgs
[cli][info] Available streams: 144p (worst), 240p, 360p (best), audio_mp4, audio_webm
[cli][info] Opening stream: audio_mp4 (http)
[cli][info] Starting player: /usr/bin/vlc
[cli][info] Player closed
[cli][info] Stream ended

Estoy utilizando livestreamer como una dependencia del WebDL de:
https://delx.net.au/git/webdl

WebDL tiene una serie de secuencias de comandos .
Uno se llama capturador.
Si funciono el guión wbdl llamado capturador como root me sale:

INFO Downloading: American The Bill Hicks Story.ts
livestreamer is not supposed to be run as root. If you really must you can do it by passing --yes-run-as-root.
ERROR livestreamer exited with error code: 1
Press return to continue...

Si funciono mientras que el spot (mancha Do ) me sale:

Traceback (most recent call last):
File "./grabber.py", line 61, in <module>
main()
File "./grabber.py", line 41, in main
for n in node.get_children():
File "/initrd/mnt/dev_save/webdl/common.py", line 50, in get_children
self.fill_children()
File "/initrd/mnt/dev_save/webdl/iview.py", line 70, in fill_children
info = grab_json(self.url, 3600)
File "/initrd/mnt/dev_save/webdl/common.py", line 150, in grab_json
f = urlopen(url, max_age)
File "/initrd/mnt/dev_save/webdl/common.py", line 102, in urlopen
os.makedirs(CACHE_DIR)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/root/.cache/webdl'

Tengo un archivo en /root/.config/livestreamer/config/.livestreamerrc con la línea:
yes-run-as-root

In /root/.cache/webdl He cambiado los permisos para ¨anyone¨ to view, change or access the file.

Gracias
Debo aprender español

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#9 Post by nilsonmorales »

Baje el webdl y modifique el archivo common.py entre lineas 266-286
"livestreamer","--yes-run-as-root",
"-o", filename,
param,
"best",
]
if exec_subprocess(cmd):
return convert_to_mp4(filename)
else:
return False

def download_hls(filename, video_url):
filename = sanify_filename(filename)
video_url = "hlsvariant://" + video_url
logging.info("Downloading: %s", filename)

cmd = [
"livestreamer","--yes-run-as-root",
"-o", filename,
video_url,
"best",
]
Al parecer el error consiste en livestreamer cuando intento usar webdl obtengo estos resultados
INFO Downloading: Green Lantern The Animated Series - 1x03 - Razers Edge.flv
[cli][info] Found matching plugin stream for URL hds://http://vod.netshowhd.ninemsn.com.au/z/h ... nifest.f4m
error: Unable to open URL: http://vod.netshowhd.ninemsn.com.au/z/h ... nifest.f4m (403 Client Error: Forbidden for url: http://vod.netshowhd.ninemsn.com.au/z/h ... nifest.f4m)
ERROR livestreamer exited with error code: 1
Press return to continue...
He estado leyendo en github issues pero mi ingles no es tan bueno dejo enlace quizas tu lo arreglas
https://github.com/chrippa/livestreamer ... nt%20error
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

bh56
Posts: 55
Joined: Tue 07 Apr 2009, 08:04

Livestreamer

#10 Post by bh56 »

Cuando cambio la línea 266 a :
cmd = [
"livestreamer",¨--yes-run-as-root¨,
"-o", filename,
param,
"best",


Yo obtengo:
root# python ./grabber.py
Traceback (most recent call last):
File "./grabber.py", line 3, in <module>
from common import load_root_node, natural_sort
File "/initrd/mnt/dev_save/webdl/common.py", line 267
SyntaxError: Non-ASCII character '\xc2' in file /initrd/mnt/dev_save/webdl/common.py on line 267, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details


Tengo que he escrito correctamente el comando ?
Gracias de nuevo.

bh56
Posts: 55
Joined: Tue 07 Apr 2009, 08:04

Livestreamer

#11 Post by bh56 »

Cambiar el diseño del teclado se fija el código de error .
El programa se ejecuta ahora pero con un código de error diferente.
No creo que va a trabajar .
De nuevo, gracias por tu ayuda.

Post Reply