sxyazi / free-hls Goto Github PK
View Code? Open in Web Editor NEW视频床方案,视频切片上传到免费图床
Home Page: https://github.com/sxyazi/free-hls/wiki
License: MIT License
视频床方案,视频切片上传到免费图床
Home Page: https://github.com/sxyazi/free-hls/wiki
License: MIT License
用docker安装出现问题
1、主机版本
➜ ~ uname -a
Linux onehour 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
➜ ~ cat /proc/version
Linux version 4.15.0-45-generic (buildd@lgw01-amd64-031) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019
You have new mail.
➜ ~
2、docker版本
➜ ~ docker version
Client:
Version: 18.06.2-ce
API version: 1.38
Go version: go1.10.3
Git commit: 6d37f41
Built: Sun Feb 10 03:47:56 2019
OS/Arch: linux/amd64
Experimental: false
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.38/version: dial unix /var/run/docker.sock: connect: permission denied
➜ ~
➜ ~ sudo docker run --name free-hls -p 33950:3395 -v free-hls-data:/var/app sxyazi/free-hls
standard_init_linux.go:190: exec user process caused "exec format error"
➜ ~
服务端启动后,不知道过多长时间就不能访问了,就得把后台杀掉,再重新启动,然后过段时间又不能访问。。
Traceback (most recent call last):
File "up.py", line 4, in <module>
from uploader import Handler
ImportError: cannot import name 'Handler
然后
pip3 install Handler
之后,运行还报上面的错误
得到的m3u8播放连接,放在外部播放器中无法播放,是需要配置跨域还是其他的操作,请教一下
如何查看已上传的文件链接?
或者查询。是不是链接丢了就无法找回了?
Publish failed: Code size cannot exceed 100K
Publish failed: network connection error
不方便查看上传过的文件,建议在网站上添加文件索引显示已上传视频的名称与地址。
你好 ,我生成的.m3u8文件可以下载,然后打开发现不是ts格式都是png格式 这个是不是博主你做了伪装,现在问题就是使用vlc或者dplayer播放器都是无法播放的,
视频是存在哪里的?服务器还是语雀?
是否考虑发布一个docker镜像,直接以docker的方式来运行,就爽多了,手工在物理机上安装运行环境还是有些麻烦的
好吧。谢谢。
客户端使用的是centos系统
视频上传到/www 里了 视频也改成test.mp4了
输入命令python3 up.py ~/www/test.mp4
提示 FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe': 'ffprobe'
请问一下怎么解决啊。。
这里写你对 BUG 的概述
这里写文件内容
日志内容:
Traceback (most recent call last):
File "up.py", line 131, in <module>
main()
File "up.py", line 92, in main
command = command_generator(os.path.abspath(argv[1]))
File "up.py", line 67, in command_generator
rate = bit_rate(file)
File "up.py", line 58, in bit_rate
return int(execstr(['ffprobe','-v','error','-show_entries','format=bit_rate','-of','default=noprint_wrappers=1:nokey=1',file]))
File "G:\free-hls-master\utils.py", line 41, in execstr
return exec(*args, **kwargs).decode('utf-8').strip()
File "G:\free-hls-master\utils.py", line 28, in exec
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "C:\Users\haig233\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "C:\Users\haig233\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 1017, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
ffmpeg -formats:
ffmpeg -formats 执行结果:
图片(如果有):
图片地址:
视频文件(如果有):
# 推荐使用 https://send.firefox.com 上传视频
视频下载地址:
切片上传时提示错误,已检查客户端与服务端配置正确。
[aac @ 000001f626e835c0] channel element 0.0 is not allocated
Error while decoding stream #0:1: Invalid data found when processing input
[aac @ 000001f626e835c0] channel element 0.0 is not allocated
Error while decoding stream #0:1: Invalid data found when processing input
Error applying bitstream filters to an output packet for stream #0:0.
[aac @ 000001f626e835c0] channel element 0.0 is not allocated
Error while decoding stream #0:1: Invalid data found when processing input
Error applying bitstream filters to an output packet for stream #0:0.
[aac @ 000001f626e835c0] channel element 0.0 is not allocated
Error while decoding stream #0:1: Invalid data found when processing input
[aac @ 000001f626e835c0] channel element 0.0 is not allocated
Error while decoding stream #0:1: Invalid data found when processing input
Error applying bitstream filters to an output packet for stream #0:0.
[aac @ 000001f626e835c0] channel element 0.0 is not allocated
Error while decoding stream #0:1: Invalid data found when processing input
[aac @ 000001f626e835c0] channel element 0.0 is not allocated
Error while decoding stream #0:1: Invalid data found when processing input
[aac @ 000001f626e835c0] channel element 0.0 is not allocated
Error while decoding stream #0:1: Invalid data found when processing input
Error applying bitstream filters to an output packet for stream #0:0.
[aac @ 000001f626e835c0] channel element 0.0 is not allocated
Error while decoding stream #0:1: Invalid data found when processing input
Error applying bitstream filters to an output packet for stream #0:0.
[aac @ 000001f626e835c0] channel element 0.0 is not allocated
Error while decoding stream #0:1: Invalid data found when processing input
[aac @ 000001f626e835c0] channel element 0.0 is not allocated
Error while decoding stream #0:1: Invalid data found when processing input
[aac @ 000001f626e835c0] channel element 0.0 is not allocated
Error while decoding stream #0:1: Invalid data found when processing input
Error applying bitstream filters to an output packet for stream #0:0.
请问该如何外部调用
怎么删除以及删除指定的视频
使用命令
python up.py "【泪目向Flower Dance】鸠子:中二是什么?我不明白啊! - 1.1(Av1731928,P1).mp4" LIMITED
进行切片后还是有出现部分切片文件大于5M
[aac @ 00000277eb96b080] Qavg: 1585.722
File too large: tmp/out00009.ts
[root@CentOS-79-64-minimal ]# python3 up.py 5.mp4
Traceback (most recent call last):
File "up.py", line 7, in
from utils import (api,exec, execstr, tsfiles, uploader,
ImportError: cannot import name 'api'
看浏览器的请求好像是跨域的问题,能解决的吗
http://ycy.yaoyaoling.net:33950/playlist/1?watch=c2c2d681a9aacea6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.