Panda dashboard - Upload a test video

3 views
Skip to first unread message

spezam

unread,
Oct 17, 2008, 2:39:54 PM10/17/08
to Panda
Hi guys,
I followed the 'Installing Panda locally' documentation to deploy a
local version of Panda on my linux machine.
I used the filesystem storage option and also emulate SimpleDB
locally.

I managed to populate the simpleDB database with all the profiles and
to access the web interface.

The problem is, when I click on 'Upload a test video' no form is
popping up, only a blank page with a button that says "Continue to
upload form".
I would like to test the transcoding from there before starting to
integrate with the API.

Do you have any idea why this happens?

thanks,
Matteo

Martyn Loughran

unread,
Oct 17, 2008, 5:01:47 PM10/17/08
to panda...@googlegroups.com
Matteo,

That's expected. After clicking that button you should be redirected
to the upload form. If you don't check the url - if it's got something
like #<UUID:0x510658> in the url you've hit a little bug with the
incompatible versions of the UUID gem.

sudo gem uninstall uuid
sudo gem install uuid -v 1.0.4

will get you running.

I'm just going to push a fix to this if you wait a moment.

Apart from this did the install instructions work ok for linux? I only
tested locally so if there are any niggles do let me know!

Martyn

Message has been deleted

spezam

unread,
Oct 17, 2008, 5:31:06 PM10/17/08
to Panda
Martyn,
thanks for the quick answer. I tried to uninstall and install the gem
you mentioned but I still have the same problem.
The page I'm redirected is
http://spark:99/videos/new
but the form seems incomplete.

About the instructions, I tried them on a Linux Centos 5.2
installation and was bit of a pain.
Had to compile ruby and rubygems because the repository version was
too old.
Also I had to compile and install Python 2.5 in a different folder
(otherwise yum stops working) because of the SimpleDB emulator.

Still, I'm not to the bit where I can say everything is working fine.

If you're interested I can write down some notes as soon as I finish,
so you can include in the documentation.

We're trying to deploy this solution and test it against a big
project. We would like to get rid of the third party transcoding
provider we're using for video and audio (we already have our internal
solution for images).

.m.

spezam

unread,
Oct 17, 2008, 5:42:29 PM10/17/08
to Panda
Martyn,
sorry I was in the wrong form page, now I can see the transcoding
form.

I'm trying to run some transcoding jobs but the status is always
'Queued'. All I can see from the console is:

merb : worker (port 4001) ~ Started request handling: Fri Oct 17
12:37:14 -0400 2008
merb : worker (port 4001) ~ Params: {"format"=>nil,
"action"=>"upload", "iframe"=>"true", "id"=>"c12e2020-7e97-012b-
b9c8-001ec9ff8581", "controller"=>"videos", "file"=>{"size"=>1243134,
"content_type"=>"video/x-ms-wmv",
"filename"=>"GTI_UnpimpYourRide_Catapult_123_456_123_165_456_723_123_343_fdasfdfasfasdsa.wmv",
"tempfile"=>#<File:/tmp/Merb20081017-5384-1f2euwi-0>}, "X-Progress-
ID"=>"c12e2020-7e97-012b-b9c8-001ec9ff8581"}
merb : worker (port 4001) ~ c12e2020-7e97-012b-b9c8-001ec9ff8581:
Reading metadata of video file
merb : worker (port 4001) ~
{:dispatch_time=>0.070163, :after_filters_time=>2.0e-05, :action_time=>0.054325, :before_filters_time=>1.7e-05}
merb : worker (port 4001) ~

merb : worker (port 4001) ~ Started request handling: Fri Oct 17
12:37:15 -0400 2008
merb : worker (port 4001) ~ Params: {"format"=>nil, "action"=>"done",
"id"=>"c12e2020-7e97-012b-b9c8-001ec9ff8581", "controller"=>"videos"}
merb : worker (port 4001) ~
{:dispatch_time=>0.017544, :after_filters_time=>1.0e-05, :action_time=>0.017134, :before_filters_time=>0.016776}
merb : worker (port 4001) ~



Any idea what I should check?

.m.






On Oct 17, 5:31 pm, spezam <spe...@gmail.com> wrote:
> Martyn,
> thanks for the quick answer. I tried to uninstall and install the gem
> you mentioned but I still have the same problem.
> The page I'm redirected ishttp://spark:99/videos/new

Martyn Loughran

unread,
Oct 17, 2008, 5:51:20 PM10/17/08
to panda...@googlegroups.com
Getting close! Looks like you haven't started the encoder. You'll need
to start that in a different terminal

merb -r lib/encoder.rb

spezam

unread,
Oct 17, 2008, 5:55:06 PM10/17/08
to Panda
mmmh, now I get an exception

root@spark /usr/local/www/panda $ merb -r lib/encoder.rb
Loading init file from /usr/local/www/panda/config/init.rb
Loading /usr/local/www/panda/config/environments/development.rb
~ Parent pid: 5544
~ Compiling routes...
./config/aws.rb:2: warning: already initialized constant BASE_PATH
/usr/lib/ruby/gems/1.8/gems/merb-core-0.9.9/lib/merb-core/rack/adapter/
runner.rb:21: undefined local variable or method `lib' for main:Object
(NameError)

Martyn Loughran

unread,
Oct 17, 2008, 5:59:16 PM10/17/08
to panda...@googlegroups.com
Oh - if you've checked out the master branch the encoder moved to
bin/encoder.rb. Is that it?

spezam

unread,
Oct 17, 2008, 6:07:57 PM10/17/08
to Panda
Great, that was the problem.

Now need to do some testing with some videos and check the results.

Thanks
.m.
Reply all
Reply to author
Forward
0 new messages