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

Can't play mp4 video on chrome #2156

Closed
bwlfhu opened this issue Jun 25, 2021 · 9 comments
Closed

Can't play mp4 video on chrome #2156

bwlfhu opened this issue Jun 25, 2021 · 9 comments

Comments

@bwlfhu
Copy link

bwlfhu commented Jun 25, 2021

Sponsors SeaweedFS via Patreon https://www.patreon.com/seaweedfs
Report issues here. Ask questions here https://stackoverflow.com/questions/tagged/seaweedfs
Please ask questions in https://github.com/chrislusf/seaweedfs/discussions

Describe the bug
step1: upload mp4 video with filer;
step2: click file on filer page;
video can't play.

But I try to play with nginx, and success.

System Setup

  • docker run --name weed -d -p 9333:9333 -p 8080:8080 -p 18080:8080 -v /home/data/weedfs:/data chrislusf/seaweedfs server -dir="/data"
  • docker run -d -p 8888:8888 --name filer chrislusf/seaweedfs filer -master="172.17.0.6:9333"
  • CentOS7.6
  • 2.53
  • filer.toml -- run with docker

Expected behavior
play video normally.

Screenshots
image
image

@bwlfhu bwlfhu changed the title can't play mp4 video on chrome Can't play mp4 video on chrome Jun 25, 2021
@kmlebedev
Copy link
Contributor

Can you show network tools console with http requests ?

@chrislusf
Copy link
Collaborator

I used this and worked fine:

docker run -p 9333:9333 -p 8080:8080 -p 18080:8080 -p 8888:8888  -v /home/data/weedfs/:/data chrislusf/seaweedfs server -dir="/data" -filer

@chrislusf
Copy link
Collaborator

The port 19333 for master grpc was not open. I do not think your setup can run at all.

@bwlfhu
Copy link
Author

bwlfhu commented Jun 26, 2021

I used this and worked fine:

docker run -p 9333:9333 -p 8080:8080 -p 18080:8080 -p 8888:8888  -v /home/data/weedfs/:/data chrislusf/seaweedfs server -dir="/data" -filer

I was in wrong way before, actually Just filer docker is allright.
Now I use the right command and still can't play with chorme.

This is the network tools console with http requests:
image

image

The video file is from android. I put it under nginx and play normally.

Here is the link with nginx:
http://116.63.32.177:10000/vod/perm20210624112730023sy8XJp5ozVx.mp4

@chrislusf
Copy link
Collaborator

@bwlfhu
Copy link
Author

bwlfhu commented Jun 28, 2021

I use firefox but it only shows the first frame of video(video freeze), still can't play.

image

@bwlfhu
Copy link
Author

bwlfhu commented Jun 28, 2021

I try version 2.11 and it's fine both on chrome and firefox.
Is there any change from that version?

image

chrislusf added a commit that referenced this issue Jun 29, 2021
@chrislusf
Copy link
Collaborator

Added a fix. Please try it with the latest dev version https://github.com/chrislusf/seaweedfs/releases/dev or

docker pull chrislusf/seaweedfs:dev

@bwlfhu
Copy link
Author

bwlfhu commented Jun 29, 2021

Thanks. It's OK now.

Added a fix. Please try it with the latest dev version https://github.com/chrislusf/seaweedfs/releases/dev or

docker pull chrislusf/seaweedfs:dev

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

3 participants