LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   The media could not be loaded (https://www.linuxquestions.org/questions/linux-newbie-8/the-media-could-not-be-loaded-4175669031/)

kohshan99 02-05-2020 07:51 AM

The media could not be loaded
 
i've installed 3 hard drives on my ubuntu 18 server. i'm hosting website for online watch movies.

Code:

root@max:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            2.0G    0  2.0G  0% /dev
tmpfs          394M  2.1M  392M  1% /run
/dev/sda1      113G  5.2G  103G  5% /
tmpfs          2.0G  124K  2.0G  1% /dev/shm
tmpfs          5.0M  4.0K  5.0M  1% /run/lock
tmpfs          2.0G    0  2.0G  0% /sys/fs/cgroup
/dev/loop1      1.0M  1.0M    0 100% /snap/gnome-logs/61
/dev/loop2      150M  150M    0 100% /snap/gnome-3-28-1804/67
/dev/loop3      1.0M  1.0M    0 100% /snap/gnome-logs/81
/dev/loop0      3.8M  3.8M    0 100% /snap/gnome-system-monitor/100
/dev/loop4      55M  55M    0 100% /snap/core18/1668
/dev/loop6      3.8M  3.8M    0 100% /snap/gnome-system-monitor/127
/dev/loop5      55M  55M    0 100% /snap/core18/1066
/dev/loop7      43M  43M    0 100% /snap/gtk-common-themes/1313
/dev/loop9      89M  89M    0 100% /snap/core/7270
/dev/loop8      15M  15M    0 100% /snap/gnome-characters/399
/dev/loop10    161M  161M    0 100% /snap/gnome-3-28-1804/116
/dev/loop12      15M  15M    0 100% /snap/gnome-characters/296
/dev/loop11      90M  90M    0 100% /snap/core/8268
/dev/loop14    4.3M  4.3M    0 100% /snap/gnome-calculator/544
/dev/loop13      45M  45M    0 100% /snap/gtk-common-themes/1440
/dev/loop15    4.2M  4.2M    0 100% /snap/gnome-calculator/406
/dev/sdd1      1.8T  11G  1.7T  1% /home
/dev/sdc1      1.8T  77M  1.7T  1% /tmp
tmpfs          394M  16K  394M  1% /run/user/121
tmpfs          394M  40K  394M  1% /run/user/1000
/dev/sdb1      1.9T  1.5T  402G  79% /media/max/5EFEC25FFEC22ED9
tmpfs          394M    0  394M  0% /run/user/0

i've mount hard drive to /home and other on at /tmp. i've store some videos in mounted drives but i cant play it on my website.. can any one tell me how to play videos?

RandomTroll 02-05-2020 01:12 PM

mplayer? vlc?

yancek 02-05-2020 01:23 PM

What web server software do you have installed and how are you trying to access it, from a local machine, on a LAN, internet? And then of course, what happens when you try to access/play a movie?

kohshan99 02-05-2020 01:28 PM

i want to play videos on my website.

TB0ne 02-05-2020 01:33 PM

Quote:

Originally Posted by kohshan99 (Post 6086464)
i've installed 3 hard drives on my ubuntu 18 server. i'm hosting website for online watch movies. i've mount hard drive to /home and other on at /tmp. i've store some videos in mounted drives but i cant play it on my website.. can any one tell me how to play videos?

...and....
Quote:

Originally Posted by koshan99
i want to play videos on my website.

Then this has nothing to do with the hard drive, but everything to do with whatever code you've written for your website. There are a TON of player apps/applets available for playing videos on websites. But you haven't told us anything about what you've written, what language, what webserver, error(s)/message(s) you get, etc.

kohshan99 02-05-2020 02:16 PM

2 Attachment(s)
Quote:

Originally Posted by TB0ne (Post 6086588)
...and....

Then this has nothing to do with the hard drive, but everything to do with whatever code you've written for your website. There are a TON of player apps/applets available for playing videos on websites. But you haven't told us anything about what you've written, what language, what webserver, error(s)/message(s) you get, etc.

i'm using apache2. everything is working fine. but i'm facing issue of videos which i've stored in sdd, sdc and sdb drives. i'me using OVOO movie & Video Steaming CMS. i've already consult with OVOO support officer for that issue and according to them, there is issue with web hosting service.

in-short my question is that how can i access/play videos on my website?

i've attached screenshot for reference.

TB0ne 02-05-2020 04:03 PM

Quote:

Originally Posted by kohshan99 (Post 6086601)
i'm using apache2. everything is working fine. but i'm facing issue of videos which i've stored in sdd, sdc and sdb drives. i'me using OVOO movie & Video Steaming CMS. i've already consult with OVOO support officer for that issue and according to them, there is issue with web hosting service.

in-short my question is that how can i access/play videos on my website? i've attached screenshot for reference.

A "web hosting service" is different than a local machine. And you're not giving us any details at all....at this point we know it's apache, and that's it. Again, what did you write your web pages in? What player? Have you checked the logs for your website? Do you have **ANY** errors at all?? Have you looked at the permissions on those mount-points?

There is nothing (from a Linux perspective) that is an issue here...it's solely to do with your webpage and/or website configuration. And without information about those things, there's no way anyone here can diagnose things further.

boughtonp 02-05-2020 04:49 PM

Step 1: Check that your server returns a 200 OK response for a video file:
Code:

curl -ISs http://192.168.8.109/home/Hollywood/Alpha2018/Alpha2018.mp4
Step 2: Put the same mp4 URL in your browser address bar and check the browser can play it.

Step 3: Put a video tag in your HTML:
Code:

<video controls src="http://192.168.8.109/home/Hollywood/Alpha2018/Alpha2018.mp4">
[fallback msg]
</video>


kohshan99 02-12-2020 10:10 AM

Quote:

Originally Posted by TB0ne (Post 6086639)
A "web hosting service" is different than a local machine. And you're not giving us any details at all....at this point we know it's apache, and that's it. Again, what did you write your web pages in? What player? Have you checked the logs for your website? Do you have **ANY** errors at all?? Have you looked at the permissions on those mount-points?

There is nothing (from a Linux perspective) that is an issue here...it's solely to do with your webpage and/or website configuration. And without information about those things, there's no way anyone here can diagnose things further.

lets make it simple.

i've stored some movies in /tmp and /home directory. how can i share/play in LAN?

TB0ne 02-12-2020 11:35 AM

Quote:

Originally Posted by kohshan99 (Post 6089150)
lets make it simple.
i've stored some movies in /tmp and /home directory. how can i share/play in LAN?

Again: too many variables to answer. Are you running a DLNA server? Mapping a drive? Playing from WHAT?? (PC? Phone? Roku?), using what player?? There is nothing 'simple' about that question if you think about it.

Why would you store ANYTHING in /tmp, when it's sole function is to be temporary??? Consolidate your movies in one location, and if you'd like a real solution to your problem, you need to provide real details and answer the questions you've been asked:
  • What did you write your web pages in?
  • What player?
  • Have you checked the logs for your website?
  • Do you have **ANY** errors at all??
  • Have you looked at the permissions on those mount-points?


All times are GMT -5. The time now is 12:33 AM.