videos5 on Ubuntu 12.04 LTS

stern88
Posts: 134
Joined: Thu Oct 13, 2011 8:03 am

Re: videos5 on Ubuntu 12.04 LTS

Postby stern88 » Sat Jan 05, 2013 9:46 am

Thanks. App has been updated to include handbrake. I think it's ready for a spin now. If you could test, that would be great.
Okay, I've installed Videos5! I've unisntalled my handbrake and removed the source.list from launchpad. The installation looks fine:

Code: Select all

administrator@hda:/etc/apache2/mods-enabled$ HandBrakeCLI -u [17:29:52] hb_init: checking for updates [17:29:52] Using http://handbrake.fr/appcast.xml [17:29:53] latest: 0.9.8 i686, build 2012022800 [17:29:53] hb_init: starting libhb thread HandBrake 0.9.8 (2012071800) - Linux x86_64 - http://handbrake.fr Your version of HandBrake is up to date.
Nevertheless it seems like there are problems left:
1.) Encoding:
Handbrake wont work with the predefined commands.
(HandBrakeCLI -L -i \$input -o \$output -e x264 -q 20.0 -a 1 -E faac -B 160 -6 dpl2 -R 48 -D 0.0 -f mp4 -X 720 -Y 480 --loose-anamorphic -m -x cabac=0:ref=2:me=umh:bframes=0:8x8dct=0:trellis=0:subme=6')
I recommend to change the command and to use presets:
HandBrakeCLI -i \$input -o \$output --preset="iPhone & iPod Touch"
2.) Playing Videos:
I'm NOT sure if there is a problem regarding playing videos. I myself have installed Mod-H264-Streaming-Apache-Version2 manually befor testing Videos5. I'm sure you need this Mod. Could someone please test Videos5 on a fresh installed Ubuntu?
In case one cannot play Videos on need to compile Mod-H264-Streaming-Apache-Version2:
http://h264.code-shop.com/trac/wiki/Mod ... e-Version2

stern88
Posts: 134
Joined: Thu Oct 13, 2011 8:03 am

Re: videos5 on Ubuntu 12.04 LTS

Postby stern88 » Sat Jan 05, 2013 9:49 am

Just as example what I mean regarding problem #1:

Code: Select all

Error: can't find output file (/var/hda/files/Movies/Die Simpsons/Die.Simpsons.S21/tvs-simpsons-dl-ded-xv-ithd-2101.m4v) after encode.Launching encode: nice /usr/bin/HandBrakeCLI -L -i '/var/hda/files/Movies/Die Simpsons/Die.Simpsons.S21/tvs-simpsons-dl-ded-xv-ithd-2101.avi' -o '/var/hda/files/Movies/Die Simpsons/Die.Simpsons.S21/tvs-simpsons-dl-ded-xv-ithd-2101.m4v' -e x264 -q 20.0 -a 1 -E faac -B 160 -6 dpl2 -R 48 -D 0.0 -f mp4 -X 720 -Y 480 --loose-anamorphic -m -x cabac=0:ref=2:me=umh:bframes=0:8x8dct=0:trellis=0:subme=6 /usr/bin/HandBrakeCLI: invalid option -- 'L' unknown option (-L)

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: videos5 on Ubuntu 12.04 LTS

Postby bigfoot65 » Sat Jan 05, 2013 10:53 am

Ok, glad it appears to have installed correctly. Will have to see if we can get some testers. Can you set up a VM and test? I have one I can try, but I don't have any Apple devices to use.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

stern88
Posts: 134
Joined: Thu Oct 13, 2011 8:03 am

Re: videos5 on Ubuntu 12.04 LTS

Postby stern88 » Sun Jan 06, 2013 11:26 am

No problem, will test it now inside my VM. At first I will test if the streaming works for Chromium. If this works, I will repeat the test with a bridged network.

PS: Amahi Web-Apps Proxy doesnt generate a proper .htpasswd-file. I myself had to delete the it and to regenerate using htpasswd -c.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: videos5 on Ubuntu 12.04 LTS

Postby bigfoot65 » Sun Jan 06, 2013 12:39 pm

Great. Anxiously awaiting the results. We would like to release the app LIVE if all is well. As for the other issue, please file a bug. If you have a solution, please include that also.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

stern88
Posts: 134
Joined: Thu Oct 13, 2011 8:03 am

Re: videos5 on Ubuntu 12.04 LTS

Postby stern88 » Sun Jan 06, 2013 12:53 pm

Okay, I've finished testing. I am really sorry, but streaming doent work. It is necessary to install this one:
http://h264.code-shop.com/trac/wiki/Mod ... e-Version2

At next someone should place the package handbrake-cli as dependency to videos5:

Code: Select all

Launching encode: nice /usr/bin/HandBrakeCLI -i '/var/hda/files/Movies/encodeme/Game of Thrones S01E01 Der Winter naht.mkv' -o '/var/hda/files/Movies/encodeme/Game of Thrones S01E01 Der Winter naht.m4v' -e x264 -q 20.0 -a 1 -E faac -B 160 -6 dpl2 -R 48 -D 0.0 -f mp4 -X 720 -Y 480 --loose-anamorphic -m -x cabac=0:ref=2:me=umh:bframes=0:8x8dct=0:trellis=0:subme=6 nice: /usr/bin/HandBrakeCLI: Datei oder Verzeichnis nicht gefunden
I had to isntall it manually

At next there is a encoding problem, because the syntax was changed for handbrake. Someone has removed the option "-L", so the encoding itself does work, but it is IMHO not a "clean" solution

I see 2 possiblities:
1st) Downgrade Handbrake
To get a version which works with the original command.

2nd) change command
what about using presets??
Last edited by stern88 on Sun Jan 06, 2013 12:57 pm, edited 1 time in total.

stern88
Posts: 134
Joined: Thu Oct 13, 2011 8:03 am

Re: videos5 on Ubuntu 12.04 LTS

Postby stern88 » Sun Jan 06, 2013 12:54 pm

As for the other issue, please file a bug. If you have a solution, please include that also.
How?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: videos5 on Ubuntu 12.04 LTS

Postby bigfoot65 » Sun Jan 06, 2013 1:27 pm

Those issues were already resolved.

When you first install Videos5, you need to ensure you have done sudo apt-get update. This will not be necessary for most HDAs, but for a new VM that has not been updated it will be needed. Might wanna fall back to your snapshot and try installing again or remove the packages manually.

As for the bug, go to the issue tracker:

http://bugs.amahi.org
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

stern88
Posts: 134
Joined: Thu Oct 13, 2011 8:03 am

Re: videos5 on Ubuntu 12.04 LTS

Postby stern88 » Sun Jan 06, 2013 3:18 pm

Those issues were already resolved.

When you first install Videos5, you need to ensure you have done sudo apt-get update.
Indeed. I repeated my test and it seems like everything works.

Lets start with encoding:

Code: Select all

Launching encode: nice /usr/bin/HandBrakeCLI -i '/var/hda/files/Movies/encodeme/Game of Thrones S01E01 Der Winter naht.mkv' -o '/var/hda/files/Movies/encodeme/Game of Thrones S01E01 Der Winter naht.m4v' -e x264 -q 20.0 -a 1 -E faac -B 160 -6 dpl2 -R 48 -D 0.0 -f mp4 -X 720 -Y 480 --loose-anamorphic -m -x cabac=0:ref=2:me=umh:bframes=0:8x8dct=0:trellis=0:subme=6 [22:56:01] hb_init: starting libhb thread HandBrake 0.9.8 (2012071800) - Linux x86_64 - http://handbrake.fr 1 CPU detected Opening /var/hda/files/Movies/encodeme/Game of Thrones S01E01 Der Winter naht.mkv... ... Input #0, matroska,webm, from '/var/hda/files/Movies/encodeme/Game of Thrones S01E01 Der Winter naht.mkv': Duration: 01:01:37.18, start: 0.000000, bitrate: 1280 kb/s Chapter #0.0: start 0.000000, end 6.006000 Metadata: title : 00:00:00.000
Well it works, but nevertheless I recommend using presets.

Playing streams:

Code: Select all

[Sun Jan 06 23:02:34 2013] [error] [client 10.0.2.15] PHP Notice: Undefined index: p in /var/hda/web-apps/videos5/html/index.php on line 514, referer: http://videos5/index.php?q=%2Fvar%2Fhda%2Ffiles%2FMovies%2Fencodeme%2F [Sun Jan 06 23:02:42 2013] [error] [client 10.0.2.15] File does not exist: /var/hda/web-apps/videos5/html/favicon.ico [Sun Jan 06 23:02:44 2013] [error] [client 10.0.2.15] PHP Notice: Undefined index: p in /var/hda/web-apps/videos5/html/index.php on line 514, referer: http://videos5/index.php?e=%2Fvar%2Fhda%2Ffiles%2FMovies%2Fencodeme%2FGame+of+Thrones+S01E01+Der+Winter+naht.mkv [Sun Jan 06 23:02:47 2013] [error] [client 10.0.2.15] File does not exist: /var/hda/web-apps/videos5/html/favicon.ico [Sun Jan 06 23:03:12 2013] [error] [client 10.0.2.15] File does not exist: /var/hda/web-apps/videos5/html/favicon.ico [Sun Jan 06 23:03:14 2013] [error] [client 10.0.2.15] File does not exist: /var/hda/web-apps/videos5/html/favicon.ico [Sun Jan 06 23:03:15 2013] [error] [client 10.0.2.15] File does not exist: /var/hda/web-apps/videos5/html/favicon.ico [Sun Jan 06 23:03:20 2013] [error] [client 10.0.2.15] PHP Notice: Undefined index: p in /var/hda/web-apps/videos5/html/index.php on line 514, referer: http://videos5/index.php?p=%2Fvar%2Fhda%2Ffiles%2FMovies%2Fwatchme%2F [Sun Jan 06 23:03:21 2013] [error] [client 10.0.2.15] File does not exist: /var/hda/web-apps/videos5/html/favicon.ico [Sun Jan 06 23:06:45 2013] [error] [client 10.0.2.15] File does not exist: /var/hda/web-apps/videos5/html/favicon.ico, referer: http://videos5/ [Sun Jan 06 23:06:46 2013] [error] [client 10.0.2.15] PHP Notice: Trying to get property of non-object in /var/hda/web-apps/videos5/html/index.php on line 1688, referer: http://videos5/ [Sun Jan 06 23:06:54 2013] [error] [client 10.0.2.15] PHP Notice: Undefined index: p in /var/hda/web-apps/videos5/html/index.php on line 514, referer: http://videos5/index.php?p=%2Fvar%2Fhda%2Ffiles%2FMovies%2Fwatchme%2F
Streaming works, but not with Chromium-Browser. I dont know why. But it is possible to watch streams with Epiphany.
Maybe there is VM related problem why Chromium doesnt play streams..?

There are some "php notice"-entrys, but nevertheless I can see the stream
As for the bug, go to the issue tracker:

http://bugs.amahi.org
Oh! Amahi has a bugtracker!

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: videos5 on Ubuntu 12.04 LTS

Postby bigfoot65 » Sun Jan 06, 2013 3:28 pm

Good, looks like we have made progress. The favicon thing is no big deal. Not sure about the other one though.

Will have to get a few others to test and see how it goes.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 33 guests