Results 1 to 6 of 6

Thread: Streaming from storage drive

  1. #1

    Streaming from storage drive

    I have a new computer withe two hard drives - a smallish SSD for system files and regularly accessed documents and a conventional larger hard drive for storage of (mainly) media files. Ubuntu 19.10 came with a sharing/streaming option which I can use successfully for files on the SSD, but not for files on the storage drive, even though I have added the relevant folders to the list to be shared. These folders are all showing as shared and the storage drive is mounted, but I can't see them on either of my smart TVs.
    Anyone got any ideas?

  2. #2
    Join Date
    May 2013
    Location
    Galiza
    Beans
    1,597
    Distro
    Ubuntu

    Re: Streaming from storage drive

    Try changing the mount point. Generally speaking it doesn't work if under /media.

  3. #3
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    19,831
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Streaming from storage drive

    What protocols do your "smart/dumb TVs" support? That will be key. Get out the manual. Most will support DLNA.

    Have you setup a media server to stream the files? Perhaps miniDLNA or Kodi or Plex?
    Have you shared the storage on the network using NFS or CIFS? CIFS/Samba is usually the best supported. NFS is usually a little easier for Unix-to-Unix connections, but not really supported by TVs.

    For example, my Roku has a Plex application, but it won't mount network storage of any sort. No CIFS. No NFS. Plex is a DLNA server. My kodi machines running on Raspberry Pi hardware can mount NFS, CIFS, or use DLNA, but I have to setup each connection. NFS tends to be faster and more stable, so I've set that up in the r-pi /etc/fstab for family photos and videos. For recorded TV and movies, the DLNA is prettier / more flashy, so people tend to like it.

    Our android tablets won't deal with NFS, but they will use DLNA or CIFS. On Android, the programs are either VLC or BubblePnP. Both support CIFS or DLNA.

    Our TV tuners are networked, so any device can use any tuner. These are DLNA devices too.

    Ok ... so with all that garbage said. If I were to buy a HDD from Best Buy today, bring it home, connect it to an Ubuntu system to provide network storage for a dumb TV, I'd
    1. Let it sit inside the house for a day to become the same temperature
    2. Unbox it, connect it up with dedicated power and USB to the system; USB power is never enough.
    3. Run sudo -H gparted The -H is needed to prevent future issues.
    4. Create a new GPT partition table, at least 1 partition, then format the partition ext4 and give it a LABEL "my-new-8tb"
    5. Close gparted.
    6. Modify the fstab to mount this new storage
      Code:
      LABEL=my-new-8tb  /mnt/new-8tb ext4  noatime,errors=remount-r o 0 2
    7. sudo mount -a to mount it
    8. sudo apt install samba
    9. sudoedit /etc/samba/smb.conf
    10. Add to the bottom of the file:
      Code:
      [new-8tb]
        comment = Movies, TV, Music
        hosts allow = 127.0.0.1 192.168.99.0/24
        hosts deny = 0.0.0.0/0
        browseable = yes
        guest ok = yes
        writable = no
    11. Restart samba - sudo systemctl restart smbd.service
    12. Go to the TV, see if it shows up in 3 minutes. Probably need to enter the static IP address of the computer, however.


    LABEL= is easier for mounting USB stuff and not as funky as using UUIDs. Just be certain that the LABEL is unique to the system.
    If there are any issues accessing the new storage using the IP address, then I'd run testparm on the system to see what settings, exactly, the samba subsystem is seeing.

    Newer versions of Windows10 and Samba stopped broadcasting "I'm here, I'm here" about a year ago. There's something called "zeroconf" which many home devices support. On Ubuntu, that is implemented with avahi and should be pre-installed on any ubuntu desktop flavor. The name broadcast should be "hostname.local", so if your hostname is "hadar", then the avahi/zeroconf name would be "hadar.local". I vaguely remember seeing a 60-90 second period for the broadcasts to be sent out onto the LAN, but don't quote me. I'm probably wrong. I don't use avahi.

  4. #4
    Join Date
    Dec 2009
    Beans
    6,379

    Re: Streaming from storage drive

    Are you talking about Settings > Sharing > Media Sharing?

    I have my money on CelticWarrior's answer at the moment. If you have the second partition mounted under /media/your-user-name that may be an issue since only "your-user-name" will get access. Change your mount point.

  5. #5

    Re: Streaming from storage drive

    Thanks for taking the time to reply all.
    Re. Morbius1's question, the answer is yes.
    Plenty for me to think about.

  6. #6
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    19,831
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Streaming from storage drive

    https://www.omgubuntu.co.uk/2019/10/...sharing-server
    says there are issues with the built-in Media Sharing (which uses DLNA). From the article:
    I was able to play a standard def video file (with audio) just fine using VLC on a Chromebook. But HD and FHD videos stuttered a lot, with dropped frames and lost snatches of audio.
    Some people where unhappy that media was being shared on an entire subnet:
    https://www.omgubuntu.co.uk/2019/11/...ing-bug-ubuntu But that's what DLNA does. It shares media to anyone on the subnet. There isn't any login, no way to setup authentication.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •