appletrailerfs 0.3.0.1-beta

appletrailerfs 0.3.0.1-beta

Postby rayman » Sun May 31, 2009 10:52 pm

Appletrailerfs is a FUSE filesystem giving direct access to all(?) trailers on apple.com.
It's pretty much just a slightly modified compile for Tvix based on http://appletrailerfs.elmarweber.org.
There are options to control which trailers should be shown (i.e. 480p, 720 or 1080p). I have tested 720p and 1080p and they stream smoothly over ethernet at least.

It has been tested on badeip opentvix 1.3.110 and appears to work flawlessly. Installing on original fw is probably a pain since it requires a lot of libraries.

By default it uses direct-io and consumes around 10% of the total memory when running. I have yet to test if using temp-files instead of direct-io reduces memory usage.

Installation instructions:
  • Install libcurl from viewtopic.php?f=8&t=328
  • Copy appletrailerfs and atfs_check_download to /opt/opentvix/usr/bin
  • Copy the contents appletrailerfs-share to /opt/opentvix/usr/share/appletrailerfs (Note: this directory needs to be writable)
  • Symlink /usr/share/appletrailerfs to /opt/opentvix/usr/share/appletrailerfs
  • (Make symlinks to appletrailerfs and atfs_check_download in /usr/bin) (Note: Should not be needed on recent opentvix firmwares)
  • Mount appletrailerfs by running
    Code: Select all
    appletrailerfs /path/to/mount_point
  • Optional: Create /opt/opentvix/usr/tmp/atfs_cache if you wish to use tempfiles for storage instead of direct-io.

Download at http://download.opentvix.com//index.php?action=downloadfile&filename=appletrailerfs-0.3.0.1-beta.tar.bz2&directory=TViX%20HD%20M-6500%20and%20M-7000&
rayman
Member
 
Posts: 87
Joined: Sat Dec 20, 2008 12:54 pm
Location: Denmark

Re: appletrailerfs 0.3.0.1-beta

Postby rayman » Sun May 31, 2009 11:28 pm

The caching mode appears to be buggy, so it's better to use direct-io mode. Memory usage seems to be around the same anyways, but caching mode seems to crash.
rayman
Member
 
Posts: 87
Joined: Sat Dec 20, 2008 12:54 pm
Location: Denmark

Re: appletrailerfs 0.3.0.1-beta

Postby hasse69 » Mon Jun 01, 2009 7:35 am

Nice! Will check it out.
Is the memory (10%) being allocated all the time or is it only when the media is played back?
Most of the setup I guess may be made as part of the init script.
M-6500 [BadEIP_M-6x00_1.5.19-R1]
hasse69
Member
 
Posts: 520
Joined: Mon Oct 20, 2008 8:06 pm
Location: Sweden

Re: appletrailerfs 0.3.0.1-beta

Postby badeip » Mon Jun 01, 2009 2:08 pm

I added appletrailerfs, and think that I have made the needed changes to the SVN tree, but can't verify it as I don't have a TViX available now.
Does it look ok?

-b.
badeip
Member
 
Posts: 376
Joined: Wed Mar 05, 2008 10:35 pm
Location: Norway

Re: appletrailerfs 0.3.0.1-beta

Postby rayman » Mon Jun 01, 2009 3:11 pm

Looks good.
I think we could probably leave out /usr/share/appletrailerfs/atfs_index.jpg and the corresponding license file since this isn't used in this version. (It was adapted from WDTV which has a few more GUI customization possibilities)
I don't think atfs_check_download is actually used anywhere when using directio either.

But looks good. I'll test it as soon as I can.


hasse69: The memory seems to be constant, at least after first usage of a file on there. (I haven't checked if it's allocated at startup or later). It could probably be lowered at the cost of performance...
rayman
Member
 
Posts: 87
Joined: Sat Dec 20, 2008 12:54 pm
Location: Denmark

Re: appletrailerfs 0.3.0.1-beta

Postby hasse69 » Mon Jun 01, 2009 3:15 pm

Looks good. Everything works fine!
Regarding the memory, no problem as I can see. encfs, dvdfs and appletrailerfs seems to work just fine
together :) I will add memory to the cpu monitor later.
M-6500 [BadEIP_M-6x00_1.5.19-R1]
hasse69
Member
 
Posts: 520
Joined: Mon Oct 20, 2008 8:06 pm
Location: Sweden

Re: appletrailerfs 0.3.0.1-beta

Postby svde » Tue Jun 02, 2009 8:44 pm

Looks good, I'm running it from opentvix v0.2.1 version 44. I'm curious if there an initscript is planned for appletrailerfs, so it can be started at system boot?
svde
Member
 
Posts: 14
Joined: Tue Jun 02, 2009 8:23 pm

Re: appletrailerfs 0.3.0.1-beta

Postby rayman » Tue Jun 02, 2009 9:13 pm

Sure. I'll whip one up as soon as possible :)
I just wanted it tested first before spending time on something like that. It shouldn't be too hard.
Edit: The biggest issue is probably that it will probably require either some kind of configuration for the mount point (with webinterface config) or simply force it to something like "$DISK1_OR_USB1/Video/Movie Trailers"
rayman
Member
 
Posts: 87
Joined: Sat Dec 20, 2008 12:54 pm
Location: Denmark

Re: appletrailerfs 0.3.0.1-beta

Postby svde » Tue Jun 02, 2009 9:41 pm

rayman wrote:Sure. I'll whip one up as soon as possible :)

Thanks!
rayman wrote:I just wanted it tested first before spending time on something like that. It shouldn't be too hard.
Edit: The biggest issue is probably that it will probably require either some kind of configuration for the mount point (with webinterface config) or simply force it to something like "$DISK1_OR_USB1/Video/Movie Trailers"

I've got it mounted on /tmp/mnt/disk1/appletrailer
Too bad that appletrailerfs doesn't work with fstab, as that might also be an option.
svde
Member
 
Posts: 14
Joined: Tue Jun 02, 2009 8:23 pm

Re: appletrailerfs 0.3.0.1-beta

Postby svde » Sun Jun 14, 2009 10:25 am

This works for me:

Code: Select all
#!/bin/sh

DAEMON=/usr/local/bin/appletrailerfs
DAEMON_ARGS=/tmp/mnt/disk1/appletrailer

test -f $DAEMON || exit 0

case "$1" in
  start)
    echo "Starting appletrailerfs daemon..."
    $DAEMON $DAEMON_ARGS &
    ;;
  stop)
    echo "Stopping appletrailerfs daemon..."
    umount $DAEMON_ARGS
    ;;
  restart|force-reload)
    echo "Reloading appletrailerfs daemon..."
    umount $DAEMON_ARGS
    $DAEMON $DAEMON_ARGS &
    ;;
  status)
        result=`ps |grep $DAEMON|grep -v grep|wc -c`
        if [ $result == 0 ]; then
                echo stopped
        else
                echo running
        fi
        ;;
  info)
    echo "appletrailerfs^a file system to access appletrailers"
        ;;
  *)
    echo "Usage: /etc/init.d/appletrailerfs {start|stop|restart|force-reload|status}"
    exit 1
esac

exit 0
svde
Member
 
Posts: 14
Joined: Tue Jun 02, 2009 8:23 pm

Next

Return to Releases

Who is online

Users browsing this forum: No registered users and 1 guest