Giter VIP home page Giter VIP logo

free-hls's People

Contributors

gizmo-ds avatar masaiki avatar sxyazi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

free-hls's Issues

在ubuntu 上安装docker镜像出现问题

概述

用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"
➜ ~

服务端问题

服务端启动后,不知道过多长时间就不能访问了,就得把后台杀掉,再重新启动,然后过段时间又不能访问。。

运行 python3 up.py xxxx.mp4 报错

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文件一直失败

你好 ,我生成的.m3u8文件可以下载,然后打开发现不是ts格式都是png格式 这个是不是博主你做了伪装,现在问题就是使用vlc或者dplayer播放器都是无法播放的,

这个是你播放器中的写法 http://173.82.243.24:3395/play/af3e9c0515249f8f.m3u8 http://173.82.243.24:3395/play/af3e9c0515249f8f 博主你帮我看下 ,为什么我的.m3u8无法播放

是否考虑发布一个docker镜像

概述

是否考虑发布一个docker镜像,直接以docker的方式来运行,就爽多了,手工在物理机上安装运行环境还是有些麻烦的

=。=

好吧。谢谢。

客户端问题!!!!

客户端使用的是centos系统
视频上传到/www 里了 视频也改成test.mp4了
输入命令python3 up.py ~/www/test.mp4
提示 FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe': 'ffprobe'
请问一下怎么解决啊。。

是否支持Windows

概述

这里写你对 BUG 的概述

环境信息

  • 系统版本:windows10
  • 视频格式:mp4
  • 视频编码:h264
  • ffmpeg 版本:
  • python 版本:Python 3.6.8
  • tmp/command.sh 内容:这里写文件内容

重现步骤

附件

日志内容:

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 上传视频

视频下载地址:

目录结构:
image.png

部分视频切片时报错

[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.

限制码率还是出现部分切片大于5M的问题

概述

使用命令
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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.