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

MP4 cannot preview directly #3163

Closed
Lihy6472 opened this issue Dec 19, 2023 · 5 comments
Closed

MP4 cannot preview directly #3163

Lihy6472 opened this issue Dec 19, 2023 · 5 comments

Comments

@Lihy6472
Copy link

NOTE

If this case is urgent, please subscribe to Subnet so that our 24/7 support team may help you faster.

Expected Behavior

  • A "training" bucket was created on the minio server, with two layers of paths: training/drill/2023-09-28. Under this path, there are files named "origin. jpg" and "20231215173830rec.mp4", with bucket permissions set to custom and anonymous set to/readonly. Now you can directly access it"http://172.16.11.245:9000/training/drill/2023 -09-28/original.jpg", but unable to access"http://172.16.11.245:9000/training/drill/2023 -09-28/20231215173830rec.mp4"

image

image

image

Current Behavior

image

image

Possible Solution

First access the image, then access the video, and the video can be played normally

Steps to Reproduce (for bugs)

  1. Start minio using the following command
mkdir -p ~/minio/data

docker run \
   -p 9000:9000 \
   -p 9090:9090 \
   --name minio \
   -v ~/minio/data:/data \
   -e "MINIO_ROOT_USER=ROOTNAME" \
   -e "MINIO_ROOT_PASSWORD=CHANGEME123" \
   quay.io/minio/minio server /data --console-address ":9090"
  1. Create a bucket and create a drill/2023-09-28/path, upload an image and a video
  2. Set the anonymous of the bucket to/read-only
  3. Accessing video, unable to access; Accessing images allows access; After revisiting the image, revisiting the video allows access to

Context

Regression

Your Environment

  • Version used (RELEASE.2023-12-14T18-51-57Z (go1.21.5 linux/amd64):
  • Server setup and configuration: Server version Ubuntu 21.04, Docker version Docker version 20.10.2 build 20.10.2-0ubuntu2
  • Operating System and version (uname -a):Linux ocr-1 4.15.0-142-generic Change ports to 9000 and 9001 minio#146~16.04.1-Ubuntu SMP Tue Apr 13 09:27:15 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
@harshavardhana harshavardhana transferred this issue from minio/minio Dec 19, 2023
@prakashsvmx
Copy link
Member

is the content type set on the video object ?

Content-Type
video/mp4

when i checked locally it is working as expected. Also tried video inside of a prefix, it works as expected.

e.g:

 ➜ mc stat local22/test-bucket/               
Name      : file_example_MP4_480_1_5MG.mp4
Date      : 2023-12-19 12:56:06 IST 
Size      : 1.5 MiB 
ETag      : d9061d3da8601932e98f79ec8ba1c877 
VersionID : 8b8373a1-4bd1-4fd0-961d-afcdeb40b3c2 
Type      : file 
Metadata  :
  Content-Type: video/mp4 

http://localhost:22000/test-bucket/file_example_MP4_480_1_5MG.mp4
`

and tested on our hosted instance: https://play.min.io/test-public-bucket/drill/2023-09-28/path/file_example_MP4_480_1_5MG.mp4 it is working as expected.

@Lihy6472
Copy link
Author

Lihy6472 commented Dec 19, 2023

视频对象上设置了内容类型吗?

Content-Type
video/mp4

当我在本地检查时,它按预期工作。还尝试了前缀内的视频,它按预期工作。

例如:

 ➜ mc stat local22/test-bucket/               
Name      : file_example_MP4_480_1_5MG.mp4
Date      : 2023-12-19 12:56:06 IST 
Size      : 1.5 MiB 
ETag      : d9061d3da8601932e98f79ec8ba1c877 
VersionID : 8b8373a1-4bd1-4fd0-961d-afcdeb40b3c2 
Type      : file 
Metadata  :
  Content-Type: video/mp4 

http://localhost:22000/test-bucket/file_example_MP4_480_1_5MG.mp4 `

并在我们的托管实例上进行了测试:https://play.min.io/test-public-bucket/drill/2023-09-28/path/file_example_MP4_480_1_5MG.mp4 它按预期工作。

  • Set, but still unable to access
    image
bash-5.1# mc stat local/training/
Name      : drill/
Date      : 2023-12-19 07:54:20 UTC 
Type      : folder 

bash-5.1# mc stat local/training/drill/2023-09-28/
Name      : 20231215173830rec.mp4
Date      : 2023-12-19 06:19:21 UTC 
Size      : 6.9 MiB 
ETag      : b50c828ffb98b8062af19c1b0adaab64 
Type      : file 
Metadata  :
  Content-Type: video/mp4 

Name      : original.jpg
Date      : 2023-12-19 06:19:45 UTC 
Size      : 4.0 MiB 
ETag      : d721d950e97a653f6dc46c9a5b6bf3ca 
Type      : file 
Metadata  :
  Content-Type: image/jpeg 

bash-5.1# 

image

@prakashsvmx
Copy link
Member

is there any proxy in between ?
mc admin trace -v local and try to preview the path.?

@Lihy6472
Copy link
Author

mc admin trace -v local

No proxy, started directly using Docker command, UFW firewall status is inactive

No output after executing command(mc admin trace -v local) to access video

@Lihy6472
Copy link
Author

Thank you very much for helping to investigate this issue. I just consulted our IT department colleagues and found out that there have been network restrictions,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants