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 » Sun Jan 06, 2013 3:28 pm

EDIT:

But let me finish at least one encoding befor releasing Videos5. I just want to see if everything works fine.

Here is the Virtualhost:

Code: Select all

<VirtualHost *:80> ServerName videos5 ServerAlias videos5.home.com AddType video/mp4 .mp4 AddType video/quicktime .mov DocumentRoot /var/hda/web-apps/videos5/html <Directory "/var/hda/web-apps/videos5/html"> Options Indexes FollowSymLinks +ExecCGI AddHandler fcgid-script .fcg AllowOverride AuthConfig Order allow,deny Allow from all </Directory> ErrorLog /var/hda/web-apps/videos5/logs/error_log CustomLog /var/hda/web-apps/videos5/logs/access_log combined env=!dontlog </VirtualHost>
Handbrake encodes the Videos into the *.m4v format.

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:35 pm

Not gonna be releasing until we do more testing. Yours is just one of the results we can base our decision on.

The virtualhost is preset by the app install. If we need to change it, that will be modified as needed. I did not mean to indicate we were gonna release it now. Want to ensure it's working fully before releasing.
ßîgƒσστ65
Applications Manager

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

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: videos5 on Ubuntu 12.04 LTS

Postby cpg » Tue Jan 08, 2013 5:21 pm

In case it was not clear, we updated the videos5 app to patch how handbrake-cli is invoked. after that, i was able to encode movies properly.

We did the update early last Sunday (Jan 06 02:24:27, US west coast time).

Did you try reinstalling since then?

We are interested in seeing if the encoding queue works. The streaming we only really test on ipad, android and chrome, but not all the time. Can you report?

Thanks!
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

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

Re: videos5 on Ubuntu 12.04 LTS

Postby stern88 » Thu Jan 10, 2013 11:25 am

In case it was not clear, we updated the videos5 app to patch how handbrake-cli is invoked. after that, i was able to encode movies properly.
Me too. I was able to encode movies inside my VM after your update. Now I repeate the steps on my productive Machine. (Cant stream from my VM to external device because of the NAT)
We did the update early last Sunday (Jan 06 02:24:27, US west coast time).

Did you try reinstalling since then?
Yes, I reinstalled now on my productive system. It seems like the uninstalling-routine of Amahi for Videos5 doesnt remove the package "handbrake-cli".
We are interested in seeing if the encoding queue works. The streaming we only really test on ipad, android and chrome, but not all the time. Can you report?

Thanks!
I can test on iphone, an tablet pc with android as OS and on chromium and epiphany.

But first of all I will do some encoding. Will report back.

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

Re: videos5 on Ubuntu 12.04 LTS

Postby bigfoot65 » Thu Jan 10, 2013 11:52 am

By design, Amahi does not often remove dependencies for apps. Doing so can often break other apps that may be using the same package.

You can manually uninstall it of course, but to automate it is not a good idea in my opinion.
ßî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 13, 2013 5:03 am

By design, Amahi does not often remove dependencies for apps. Doing so can often break other apps that may be using the same package.

You can manually uninstall it of course, but to automate it is not a good idea in my opinion.
Ah ok, I understand.

Regarding encoding:
I dont know why, but handbrake encodes my videos till 100% and after reaching 100% handbrake restarts the whole process. I cant finish my encodes.

http://paste.ubuntu.com/1527055/

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: videos5 on Ubuntu 12.04 LTS

Postby cpg » Sun Jan 13, 2013 5:57 am

Got it.

Now the issue is to find out if this fault it's on Videos5's side or on handbrake's side.

One way is to capture the handbrake command exactly and precisely as it happens, then interrupt it, then run handbrake exactly and precisely as videos5 does it and in the proper directory and figure out wether handbrake itself is repeating the encoding over and over.

Do you think you can do that?

If handbrake is not repeating the encoding, then it's perhaps the exit status form it, or something causing videos5 to repeat the encoding for some reason.

In that case it's a bug in how videos5 and handbrake interact.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

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

Re: videos5 on Ubuntu 12.04 LTS

Postby stern88 » Sun Jan 13, 2013 12:17 pm

Now the issue is to find out if this fault it's on Videos5's side or on handbrake's side.
Okay, step-by-step:

Code: Select all

administrator@hda:~/Videos$ pwd /home/administrator/Videos administrator@hda:~/Videos$ ls -rtl total 3446776 -rwxr-xr-x 1 administrator users 3529494132 Jan 13 20:06 Game of Thrones S01E01 Der Winter naht.mkv administrator@hda:~/Videos$
Now encoding:

Code: Select all

administrator@hda:~/Videos$ HandBrakeCLI -i 'Game of Thrones S01E01 Der Winter naht.mkv' -o '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 [20:13:35] hb_init: starting libhb thread HandBrake 0.9.8 (2012071800) - Linux x86_64 - http://handbrake.fr 4 CPUs detected Opening Game of Thrones S01E01 Der Winter naht.mkv... [20:13:35] hb_scan: path=Game of Thrones S01E01 Der Winter naht.mkv, title_index=1 libbluray/bdnav/index_parse.c:157: indx_parse(): error opening Game of Thrones S01E01 Der Winter naht.mkv/BDMV/index.bdmv libbluray/bluray.c:1471: nav_get_title_list(Game of Thrones S01E01 Der Winter naht.mkv) failed (0x7f0524000900) [20:13:35] bd: not a bd - trying as a stream/file instead libdvdnav: Using dvdnav version 4.1.3 libdvdread: Encrypted DVD support unavailable. libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed libdvdread: Can't open file VIDEO_TS.IFO. libdvdnav: vm: failed to read VIDEO_TS.IFO [20:13:35] dvd: not a dvd - trying as a stream/file instead Input #0, matroska,webm, from '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 Chapter #0.1: start 6.006000, end 436.436000 ... Encoding: task 1 of 1, 0.15 % (19.38 fps, avg 17.71 fps, ETA 01h23m19s)[20:13:45] h264: "Chapter 2" (2) at frame 157 time 559350
Will give you feedback in 1,5 hours ^^

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

Re: videos5 on Ubuntu 12.04 LTS

Postby stern88 » Sun Jan 13, 2013 4:40 pm

http://paste.ubuntu.com/1529455/

Handbrake finished the encoding without any problem/loop...

I copy over the encoded Movie and will see if streaming works fine.

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: videos5 on Ubuntu 12.04 LTS

Postby cpg » Sun Jan 13, 2013 5:10 pm

there is one thing i forgot to ask -- the exit code of handbrake.

but in any case it seems like it's a videos5 issue now - something is not right in the way it detects the termination of the encoding process. maybe i can take a quick look, but it may be a little ...

the other thing to look at is the encoding log ... should be in /var/hda/web-apps/videos5/logs/encode.log
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

Who is online

Users browsing this forum: No registered users and 42 guests