LinHES Forums
http://forum.linhes.org/

No videos on frontend
http://forum.linhes.org/viewtopic.php?f=6&t=16102
Page 1 of 2

Author:  rubrboots [ Fri Aug 10, 2007 4:22 pm ]
Post subject:  No videos on frontend

I have a computer that acts as a master frontend/backend. I have also set up a frontend. It seems to work very well except that no videos show up in "watch videos" page of the new frontend. When I go to video manager it tries to update but claims that all my videos are missing and asks permission to delete them from the database. Whats going on here and is there a way to fix this?

Author:  mihanson [ Fri Aug 10, 2007 5:20 pm ]
Post subject: 

What are the file permissions/ownership on your video files and directories containing the video files? What version of Knoppmyth are you using?

Author:  rubrboots [ Fri Aug 10, 2007 7:53 pm ]
Post subject: 

I am using knoppmyth R5F1 on both machines. I have not changed any permissions so there are default. I followed a frontend guide on knoppmythwiki

http://knoppmythwiki.org/index.php?page ... nlyInstall

Also note that I can see and play TV recordings on the backend, but I cannot see or play videos.

Author:  kmkittre [ Fri Aug 10, 2007 10:31 pm ]
Post subject: 

Read the "Other Things to Do" section on that Wiki page:
Quote:
Your mythtv frontend should now be working and able to watch live tv or recordings. In order to get access to videos, music etc you will need to setup access from the remote frontend to an NFS share of the myth directory on the backend (see the NFSHowTo) and then setup the appropriate directories in the remote mythtv frontend.

Author:  rubrboots [ Tue Aug 28, 2007 4:47 pm ]
Post subject: 

Ok, I finally got the chance to start messing with this again. I setup NFS per NFSHowTo. And Now my videos do appear as they should. However when I attempt to play them nothing happens. While recordings play perfectly. Am I missing something else here?

Author:  slowtolearn [ Tue Aug 28, 2007 4:49 pm ]
Post subject: 

As Mike asked:
mihanson wrote:
What are the file permissions/ownership on your video files and directories containing the video files?
From the frontend...

Author:  rubrboots [ Tue Aug 28, 2007 5:36 pm ]
Post subject: 

I am not sure of that. I am still a linux newbie and have not changed any premissions. When I transfer videos I use mythtv as user and password. What should the permissions be on the videos folder?

Author:  slowtolearn [ Tue Aug 28, 2007 6:52 pm ]
Post subject: 

rubrboots wrote:
I am not sure of that. I am still a linux newbie and have not changed any premissions. When I transfer videos I use mythtv as user and password. What should the permissions be on the videos folder?
Show us the output from (this is from the frontend, you may have to adjust the directory depending on how you set the mount points/links) ls -ld /myth and ls -l /myth/video. If you have a lot of videos in there just paste the first 20 or so entries.

Author:  rubrboots [ Tue Aug 28, 2007 7:29 pm ]
Post subject: 

Code:
root@frontend:/# ls -ld /myth
drwxr-xr-x 20 root root 4096 Aug 28 16:08 /myth


Code:
root@frontend:/# ls -l /myth/video
total 4
lrwxrwxrwx 1 root   root     10 Aug 28 16:00 cdrom -> /mnt/cdrom
drwxrwxr-x 2 mythtv mythtv 4096 Aug 28 16:00 motion


This from my frontend machine. In the Video General settings of the frontend, it says that the "directory that holds vidoes is" /share/Movies/dvd. Seems strange to my but I really dont know.

Author:  slowtolearn [ Tue Aug 28, 2007 7:55 pm ]
Post subject: 

rubrboots wrote:
Code:
root@frontend:/# ls -ld /myth
drwxr-xr-x 20 root root 4096 Aug 28 16:08 /myth


Code:
root@frontend:/# ls -l /myth/video
total 4
lrwxrwxrwx 1 root   root     10 Aug 28 16:00 cdrom -> /mnt/cdrom
drwxrwxr-x 2 mythtv mythtv 4096 Aug 28 16:00 motion


This from my frontend machine. In the Video General settings of the frontend, it says that the "directory that holds vidoes is" /share/Movies/dvd. Seems strange to my but I really dont know.
On the frontend, where did you mount the directory from the backend? If it is indeed /share/Movies/dvd, then show us the same output for ls -ld /share/Movies/dvd and ls -l /share/Movies/dvd.

Like I said earlier
Quote:
...you may have to adjust the directory depending on how you set the mount points/links
We can't guess where you may have placed them, you need to supply that...

Author:  rubrboots [ Tue Aug 28, 2007 8:25 pm ]
Post subject: 

I haven't directly mounted anything, so maybe that is my problem. I followed the frontend install guide mentioned above, but it did not contain anything about mounting folders. I also followed the first section of the NFS howto, which consisted of

Code:
su
/etc/init.d/nfs-common start
/etc/init.d/nfs-kernel-server start

update-rc.d nfs-common defaults
update-rc.d nfs-kernel-server defaults


The following sections did not seem to apply. No I dont think that /share/Movies/dvd is a valid folder. I did not create that, but found it to be strange. Much of this is over my head :oops:

Author:  cecil [ Tue Aug 28, 2007 8:36 pm ]
Post subject: 

The path for videos must be the same on the frontend as on the backend. Is it?

Author:  mihanson [ Tue Aug 28, 2007 8:42 pm ]
Post subject: 

On your frontend:
Ctrl-Alt-F1
Log in as root
Code:
# pico /etc/fstab

And add the following to the bottom:
Quote:
192.168.11.4:/myth /myth nfs defaults,hard,intr,wsize=32768,rsize=32768 0 2
But use the actual IP address of your backend machine. Beware of line wrapping when you copy and paste. This should all be on one line.
CTRL-X
save & exit pico
Now in order to mount the /myth filesystem from your backend, you need an empty directory. What I did was just blow away the contents of the /myth directory on the frontend. If there is anything on the frontend's /myth directory you want to save, move it (mv) first.
Code:
# rm -fr /myth/*

Now you should be able to mount the backend's /myth directory on the frontend.
Code:
# mount -a

Now go back and edit your /share/Movies/dvd entry to be /myth/video. Hopefully you'll see them now.

Author:  slowtolearn [ Tue Aug 28, 2007 8:42 pm ]
Post subject: 

rubrboots wrote:
I haven't directly mounted anything, so maybe that is my problem.
OK, let's step back. On the frontend, what does df -h show?

Did you perform the following steps outlined in http://knoppmythwiki.org/index.php?page=NFSHowTo
Quote:
su
mkdir /mnt/myth
portmap
mount mythtvboxIP:/myth /mnt/myth
or edit your /etc/fstab file?

Author:  mihanson [ Tue Aug 28, 2007 8:47 pm ]
Post subject: 

On your frontend:
Ctrl-Alt-F1
Log in as root
Code:
# pico /etc/fstab

And add the following to the bottom:
Quote:
192.168.11.4:/myth /myth nfs defaults,hard,intr,wsize=32768,rsize=32768 0 2
But use the actual IP address of your backend machine. Beware of line wrapping when you copy and paste. This should all be on one line.
CTRL-X
save & exit pico
Now in order to mount the /myth filesystem from your backend, you need an empty directory. What I did was just blow away the contents of the /myth directory on the frontend. If there is anything on the frontend's /myth directory you want to save, move it (mv) first.
Code:
# rm -fr /myth/*

Now you should be able to mount the backend's /myth directory on the frontend.
Code:
# mount -a

Now go back and edit your /share/Movies/dvd entry to be /myth/video. Hopefully you'll see them now.

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/