Local install of panda nearly working: Problem with progress bar

12 views
Skip to first unread message

Feurio

unread,
Jan 26, 2010, 10:24:10 AM1/26/10
to Panda
Hello,

after nearly working a whole day I think I am quite close to getting
panda run locally.

I installed everything as described in the guide for installing panda
locally...

I have a working nginx and merb installation. I can access the admin
panel via nginx and I am able to start the upload of a video with
"Upload a test video" link. But shortly after showing the progress bar
the upload dialog shows an error message:

"Unfortunately there was an error uploading your video. We have been
notified of this issue. Please try uploading your video again
shortly."

The logfile for merb shows me:

merb : worker (port 4001) ~ Params:
{}
merb : worker (port 4001)
~

merb : worker (port 4001) ~ Started request handling: Tue Jan 26
16:13:42 +0100 2010
merb : worker (port 4001) ~ No routes match the request: /progress -
(Merb::ControllerExceptions::NotFound)
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/
router.rb:143:in `route_for'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/
request.rb:116:in `find_route!'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/
dispatcher.rb:56:in `handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/dispatch/
dispatcher.rb:36:in `handle'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/
application.rb:17:in `call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/
middleware/static.rb:28:in `call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/
handler/mongrel.rb:82:in `process'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in
`process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in
`each'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in
`process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
`run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
`initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
`new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
`run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in
`initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in
`new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in
`run'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/
adapter/mongrel.rb:38:in `start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/
adapter/abstract.rb:296:in `start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/
adapter/abstract.rb:128:in `start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:
174:in `bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:
42:in `start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core.rb:173:in
`start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/bin/merb:
11
/usr/bin/merb:19:in
`load'
/usr/bin/merb:19

It would be great if somebody could give me hint what goes wrong and
how I could fix it...

Thanks a lot!

Govinda

Damien Tanner

unread,
Jan 26, 2010, 11:38:07 AM1/26/10
to panda...@googlegroups.com
Hi,

I believe that issue will arise if the nginx install you have doesn't have nginx upload progress module: http://wiki.nginx.org/NginxHttpUploadProgressModule

You also might find the new managed service we're testing. I've added you to the list so you should get an invite in a few minutes.

Let me know if you have any more questions.

Damien Tanner Damien Tanner - Co-Founder and Director, Panda
+44 (0)20 7099 7486 - pandastream.com - @pandastream



--
You received this message because you are subscribed to the Google Groups "Panda" group.
To post to this group, send email to panda...@googlegroups.com.
To unsubscribe from this group, send email to pandastream...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pandastream?hl=en.


Feurio

unread,
Jan 26, 2010, 2:38:35 PM1/26/10
to Panda
Hello Damien,

thanks for your reply. I did compile and install nginx like described
here:

http://github.com/reddavis/panda_cap/blob/master/nginx.rb

How can I see or test if the module was really successfully compiled &
installed & added to nginx?...

My nginx configuration is as follows:

worker_processes 1;

events {
worker_connections 1024;
}


http {
upload_progress proxied 1m;

server {
listen 81;
server_name myapp.com;
root /usr/local/www/panda;

location / {
proxy_pass http://127.0.0.1:4001;
# proxy_redirect default;
track_uploads proxied 30s;
client_max_body_size 500m;
}

location ^~ /progress {
report_uploads proxied;
}
}
}

On Jan 26, 5:38 pm, Damien Tanner <dam...@pandastream.com> wrote:
> Hi,
>
> I believe that issue will arise if the nginx install you have doesn't have
> nginx upload progress module:http://wiki.nginx.org/NginxHttpUploadProgressModule
>
> You also might find the new managed service we're testing. I've added you to
> the list so you should get an invite in a few minutes.
>
> Let me know if you have any more questions.
>
>  [image: Damien Tanner] Damien Tanner - Co-Founder and Director, Panda
> +44 (0)20 7099 7486 - pandastream.com -

> @pandastream<http://twitter.com/pandastream>

> > pandastream...@googlegroups.com<pandastream%2Bunsu...@googlegroups.com>

Feurio

unread,
Jan 26, 2010, 2:47:56 PM1/26/10
to Panda
And to make sure that I compiled nginx the right way I did it again.
Some excerpt from the compilation regaring upload_progress_module:

gcc -c -I src/core -I src/event -I src/event/modules -I src/os/unix -
I objs -I src/http -I src/http/modules -I src/mail \
-o objs/addon/nginx-upload-progress-module/
ngx_http_uploadprogress_module.o \
../nginx-upload-progress-module//
ngx_http_uploadprogress_module.c

gcc -o objs/nginx
\
objs/src/core/nginx.o
\
objs/src/core/ngx_log.o
\
objs/src/core/ngx_palloc.o
\
objs/src/core/ngx_array.o
\
objs/src/core/ngx_list.o
\
objs/src/core/ngx_hash.o
\
objs/src/core/ngx_buf.o
\
objs/src/core/ngx_output_chain.o
\
objs/src/core/ngx_string.o
\
objs/src/core/ngx_parse.o
\
objs/src/core/ngx_inet.o
\
objs/src/core/ngx_file.o
\
objs/src/core/ngx_crc32.o
\
objs/src/core/ngx_rbtree.o
\
objs/src/core/ngx_radix_tree.o
\
objs/src/core/ngx_slab.o
\
objs/src/core/ngx_times.o
\
objs/src/core/ngx_shmtx.o
\
objs/src/core/ngx_connection.o
\
objs/src/core/ngx_cycle.o
\
objs/src/core/ngx_spinlock.o
\
objs/src/core/ngx_cpuinfo.o
\
objs/src/core/ngx_conf_file.o
\
objs/src/core/ngx_resolver.o
\
objs/src/core/ngx_open_file_cache.o
\
objs/src/core/ngx_garbage_collector.o
\
objs/src/event/ngx_event.o
\
objs/src/event/ngx_event_timer.o
\
objs/src/event/ngx_event_posted.o
\
objs/src/event/ngx_event_busy_lock.o
\
objs/src/event/ngx_event_accept.o
\
objs/src/event/ngx_event_connect.o
\
objs/src/event/ngx_event_pipe.o
\
objs/src/os/unix/ngx_time.o
\
objs/src/os/unix/ngx_errno.o
\
objs/src/os/unix/ngx_alloc.o
\
objs/src/os/unix/ngx_files.o
\
objs/src/os/unix/ngx_socket.o
\
objs/src/os/unix/ngx_recv.o
\
objs/src/os/unix/ngx_readv_chain.o
\
objs/src/os/unix/ngx_udp_recv.o
\
objs/src/os/unix/ngx_send.o
\
objs/src/os/unix/ngx_writev_chain.o
\
objs/src/os/unix/ngx_channel.o
\
objs/src/os/unix/ngx_shmem.o
\
objs/src/os/unix/ngx_process.o
\
objs/src/os/unix/ngx_daemon.o
\
objs/src/os/unix/ngx_setproctitle.o
\
objs/src/os/unix/ngx_posix_init.o
\
objs/src/os/unix/ngx_user.o
\
objs/src/os/unix/ngx_process_cycle.o
\
objs/src/os/unix/ngx_linux_init.o
\
objs/src/event/modules/ngx_epoll_module.o
\
objs/src/os/unix/ngx_linux_sendfile_chain.o
\
objs/src/event/ngx_event_openssl.o
\
objs/src/core/ngx_regex.o
\
objs/src/http/ngx_http.o
\
objs/src/http/ngx_http_core_module.o
\
objs/src/http/ngx_http_special_response.o
\
objs/src/http/ngx_http_request.o
\
objs/src/http/ngx_http_parse.o
\
objs/src/http/ngx_http_header_filter_module.o
\
objs/src/http/ngx_http_write_filter_module.o
\
objs/src/http/ngx_http_copy_filter_module.o \
objs/src/http/modules/ngx_http_log_module.o \
objs/src/http/ngx_http_request_body.o \
objs/src/http/ngx_http_variables.o \
objs/src/http/ngx_http_script.o \
objs/src/http/ngx_http_upstream.o \
objs/src/http/ngx_http_upstream_round_robin.o \
objs/src/http/ngx_http_parse_time.o \
objs/src/http/modules/ngx_http_static_module.o \
objs/src/http/modules/ngx_http_index_module.o \
objs/src/http/modules/ngx_http_chunked_filter_module.o \
objs/src/http/modules/ngx_http_range_filter_module.o \
objs/src/http/modules/ngx_http_headers_filter_module.o \
objs/src/http/modules/ngx_http_not_modified_filter_module.o \
objs/src/http/ngx_http_busy_lock.o \
objs/src/http/modules/ngx_http_gzip_filter_module.o \
objs/src/http/ngx_http_postpone_filter_module.o \
objs/src/http/modules/ngx_http_charset_filter_module.o \
objs/src/http/modules/ngx_http_ssi_filter_module.o \
objs/src/http/modules/ngx_http_userid_filter_module.o \
objs/src/http/modules/ngx_http_autoindex_module.o \
objs/src/http/modules/ngx_http_auth_basic_module.o \
objs/src/http/modules/ngx_http_access_module.o \
objs/src/http/modules/ngx_http_limit_zone_module.o \
objs/src/http/modules/ngx_http_geo_module.o \
objs/src/http/modules/ngx_http_map_module.o \
objs/src/http/modules/ngx_http_referer_module.o \
objs/src/http/modules/ngx_http_rewrite_module.o \
objs/src/http/modules/ngx_http_ssl_module.o \
objs/src/http/modules/ngx_http_proxy_module.o \
objs/src/http/modules/ngx_http_fastcgi_module.o \
objs/src/http/modules/ngx_http_memcached_module.o \
objs/src/http/modules/ngx_http_empty_gif_module.o \
objs/src/http/modules/ngx_http_browser_module.o \
objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
objs/addon/nginx-upload-progress-module/
ngx_http_uploadprogress_module.o \
objs/ngx_modules.o \
-lcrypt -lpcre -lssl -lcrypto -lz


On Jan 26, 8:38 pm, Feurio <govinda.pfis...@beagile.de> wrote:
> Hello Damien,
>
> thanks for your reply. I did compile and install nginx like described
> here:
>
> http://github.com/reddavis/panda_cap/blob/master/nginx.rb
>
> How can I see or test if the module was really successfully compiled &
> installed & added to nginx?...
>
> My nginx configuration is as follows:
>
> worker_processes  1;
>
> events {
>     worker_connections  1024;
>
> }
>
> http {
>         upload_progress proxied 1m;
>
>         server {
>                 listen 81;
>                 server_name myapp.com;
>                 root /usr/local/www/panda;
>
>                 location / {

>                         proxy_passhttp://127.0.0.1:4001;

Feurio

unread,
Jan 26, 2010, 2:48:20 PM1/26/10
to Panda

> Hello Damien,
>
> thanks for your reply. I did compile and install nginx like described
> here:
>
> http://github.com/reddavis/panda_cap/blob/master/nginx.rb
>
> How can I see or test if the module was really successfully compiled &
> installed & added to nginx?...
>
> My nginx configuration is as follows:
>
> worker_processes  1;
>
> events {
>     worker_connections  1024;
>
> }
>
> http {
>         upload_progress proxied 1m;
>
>         server {
>                 listen 81;
>                 server_name myapp.com;
>                 root /usr/local/www/panda;
>
>                 location / {

>                         proxy_passhttp://127.0.0.1:4001;

Feurio

unread,
Jan 26, 2010, 2:56:39 PM1/26/10
to Panda

> Hello Damien,
>
> thanks for your reply. I did compile and install nginx like described
> here:
>
> http://github.com/reddavis/panda_cap/blob/master/nginx.rb
>
> How can I see or test if the module was really successfully compiled &
> installed & added to nginx?...
>
> My nginx configuration is as follows:
>
> worker_processes  1;
>
> events {
>     worker_connections  1024;
>
> }
>
> http {
>         upload_progress proxied 1m;
>
>         server {
>                 listen 81;
>                 server_name myapp.com;
>                 root /usr/local/www/panda;
>
>                 location / {

>                         proxy_passhttp://127.0.0.1:4001;

Feurio

unread,
Jan 26, 2010, 3:09:33 PM1/26/10
to Panda

> Hello Damien,
>
> thanks for your reply. I did compile and install nginx like described
> here:
>
> http://github.com/reddavis/panda_cap/blob/master/nginx.rb
>
> How can I see or test if the module was really successfully compiled &
> installed & added to nginx?...
>
> My nginx configuration is as follows:
>
> worker_processes  1;
>
> events {
>     worker_connections  1024;
>
> }
>
> http {
>         upload_progress proxied 1m;
>
>         server {
>                 listen 81;
>                 server_name myapp.com;
>                 root /usr/local/www/panda;
>
>                 location / {

>                         proxy_passhttp://127.0.0.1:4001;

Feurio

unread,
Jan 26, 2010, 3:40:17 PM1/26/10
to Panda

> Hello Damien,
>
> thanks for your reply. I did compile and install nginx like described
> here:
>
> http://github.com/reddavis/panda_cap/blob/master/nginx.rb
>
> How can I see or test if the module was really successfully compiled &
> installed & added to nginx?...
>
> My nginx configuration is as follows:
>
> worker_processes  1;
>
> events {
>     worker_connections  1024;
>
> }
>
> http {
>         upload_progress proxied 1m;
>
>         server {
>                 listen 81;
>                 server_name myapp.com;
>                 root /usr/local/www/panda;
>
>                 location / {

>                         proxy_passhttp://127.0.0.1:4001;

Feurio

unread,
Jan 26, 2010, 3:47:48 PM1/26/10
to Panda
OK. I think it is not the upload_progress_module, because while trying
to upload with the panda upload dialog I get the following in the
nginx error log:

2010/01/26 21:39:18 [warn] 22337#0: *56 a client request body is
buffered to a temporary file /usr/local/nginx/client_body_temp/
0000000003, client: 127.0.0.1, server: myapp.com, request: "POST /
videos/c1dfa260-ece8-012c-2e6e-001d09248ccc/upload?X-Progress-
ID=c1dfa260-ece8-012c-2e6e-001d09248ccc HTTP/1.1", host: "localhost:
81", referrer: "http://localhost:81/videos/c1dfa260-
ece8-012c-2e6e-001d09248ccc/upload_form"

So I guess that it is working.

But I also get this in the merb server log:

merb : worker (port 4001) ~ Started request handling: Tue Jan 26

21:33:56 +0100 2010
merb : worker (port 4001) ~ Params: {"format"=>nil,
"action"=>"upload", "iframe"=>"true", "id"=>"a8bdd5a0-
ece7-012c-2e6e-001d09248ccc", "controller"=>"videos", "file"=>
{"size"=>1003793, "content_type"=>"video/quicktime",
"tempfile"=>#<File:/tmp/Merb20100126-5554-zw12bu-0>,
"filename"=>"12angrymen_trailer.mov"}, "X-Progress-ID"=>"a8bdd5a0-
ece7-012c-2e6e-001d09248ccc"}
merb : worker (port 4001) ~ a8bdd5a0-ece7-012c-2e6e-001d09248ccc:
Reading metadata of video
file
merb : worker (port 4001) ~ a8bdd5a0-ece7-012c-2e6e-001d09248ccc: (500
returned to client)
FormatNotRecognised


merb : worker (port 4001) ~

{:after_filters_time=>2.6e-05, :before_filters_time=>3.6e-05, :action_time=>0.041272, :dispatch_time=>0.18653}

merb : worker (port 4001) ~ Started request handling: Tue Jan 26

21:35:10 +0100 2010
merb : worker (port 4001) ~ Params: {"format"=>nil,
"action"=>"upload", "iframe"=>"true", "id"=>"3059ecd0-
ece8-012c-2e6e-001d09248ccc", "controller"=>"videos", "file"=>
{"size"=>49425012, "content_type"=>"video/mpeg", "tempfile"=>#<File:/
tmp/Merb20100126-5554-xtzvc8-0>, "filename"=>"hdtest.mpg"}, "X-
Progress-ID"=>"3059ecd0-ece8-012c-2e6e-001d09248ccc"}
merb : worker (port 4001) ~ 3059ecd0-ece8-012c-2e6e-001d09248ccc:
Reading metadata of video file
merb : worker (port 4001) ~ 3059ecd0-ece8-012c-2e6e-001d09248ccc: (500
returned to client) FormatNotRecognised


merb : worker (port 4001) ~

{:after_filters_time=>2.0e-05, :before_filters_time=>2.3e-05, :action_time=>0.210519, :dispatch_time=>1.077698}


merb : worker (port 4001) ~

merb : worker (port 4001) ~ Started request handling: Tue Jan 26

21:39:18 +0100 2010
merb : worker (port 4001) ~ Params: {"format"=>nil,
"action"=>"upload", "iframe"=>"true", "id"=>"c1dfa260-
ece8-012c-2e6e-001d09248ccc", "controller"=>"videos", "file"=>
{"size"=>8735597, "content_type"=>"audio/ogg", "tempfile"=>#<File:/tmp/
Merb20100126-5554-1l6b86o-0>, "filename"=>"STS-114-launch-
Jul26-2005.ogg"}, "X-Progress-ID"=>"c1dfa260-
ece8-012c-2e6e-001d09248ccc"}
merb : worker (port 4001) ~ c1dfa260-ece8-012c-2e6e-001d09248ccc:
Reading metadata of video file
merb : worker (port 4001) ~ c1dfa260-ece8-012c-2e6e-001d09248ccc: (500
returned to client) FormatNotRecognised


merb : worker (port 4001) ~

{:after_filters_time=>2.5e-05, :before_filters_time=>2.3e-05, :action_time=>0.103055, :dispatch_time=>0.280868}


merb : worker (port 4001) ~

As you can see I tried all kind of file formats like ogg, mov, mpg and
even avi... so I now think it might be a problem with ffmpeg or the
installed codecs. Now I will try to find out what the panda merb
application is doing while reading the metadata of a video. Maybe I
can do it manually on the command line and see what happens.

If somebody has some tips how to approach this problem I would very
happy...

Thanks.

Govinda

> ...
>
> read more »

Feurio

unread,
Jan 26, 2010, 4:23:40 PM1/26/10
to Panda
OK. I think it is not the upload_progress_module, because while trying
to upload with the panda upload dialog I get the following in the
nginx error log:

2010/01/26 21:39:18 [warn] 22337#0: *56 a client request body is
buffered to a temporary file /usr/local/nginx/client_body_temp/
0000000003, client: 127.0.0.1, server: myapp.com, request: "POST /
videos/c1dfa260-ece8-012c-2e6e-001d09248ccc/upload?X-Progress-
ID=c1dfa260-ece8-012c-2e6e-001d09248ccc HTTP/1.1", host: "localhost:
81", referrer: "http://localhost:81/videos/c1dfa260-
ece8-012c-2e6e-001d09248ccc/upload_form"

So I guess that it is working.

But I also get this in the merb server log:

merb : worker (port 4001) ~ Started request handling: Tue Jan 26


21:33:56 +0100 2010
merb : worker (port 4001) ~ Params: {"format"=>nil,
"action"=>"upload", "iframe"=>"true", "id"=>"a8bdd5a0-
ece7-012c-2e6e-001d09248ccc", "controller"=>"videos", "file"=>
{"size"=>1003793, "content_type"=>"video/quicktime",
"tempfile"=>#<File:/tmp/Merb20100126-5554-zw12bu-0>,
"filename"=>"12angrymen_trailer.mov"}, "X-Progress-ID"=>"a8bdd5a0-
ece7-012c-2e6e-001d09248ccc"}
merb : worker (port 4001) ~ a8bdd5a0-ece7-012c-2e6e-001d09248ccc:
Reading metadata of video
file
merb : worker (port 4001) ~ a8bdd5a0-ece7-012c-2e6e-001d09248ccc: (500
returned to client)
FormatNotRecognised

merb : worker (port 4001) ~

{:after_filters_time=>2.6e-05, :before_filters_time=>3.6e-05, :action_time=>0.041272, :dispatch_time=>0.18653}

merb : worker (port 4001) ~ Started request handling: Tue Jan 26


21:35:10 +0100 2010
merb : worker (port 4001) ~ Params: {"format"=>nil,
"action"=>"upload", "iframe"=>"true", "id"=>"3059ecd0-
ece8-012c-2e6e-001d09248ccc", "controller"=>"videos", "file"=>
{"size"=>49425012, "content_type"=>"video/mpeg", "tempfile"=>#<File:/
tmp/Merb20100126-5554-xtzvc8-0>, "filename"=>"hdtest.mpg"}, "X-
Progress-ID"=>"3059ecd0-ece8-012c-2e6e-001d09248ccc"}
merb : worker (port 4001) ~ 3059ecd0-ece8-012c-2e6e-001d09248ccc:
Reading metadata of video file
merb : worker (port 4001) ~ 3059ecd0-ece8-012c-2e6e-001d09248ccc: (500
returned to client) FormatNotRecognised

merb : worker (port 4001) ~

{:after_filters_time=>2.0e-05, :before_filters_time=>2.3e-05, :action_time=>0.210519, :dispatch_time=>1.077698}

merb : worker (port 4001) ~

merb : worker (port 4001) ~ Started request handling: Tue Jan 26

21:39:18 +0100 2010
merb : worker (port 4001) ~ Params: {"format"=>nil,
"action"=>"upload", "iframe"=>"true", "id"=>"c1dfa260-
ece8-012c-2e6e-001d09248ccc", "controller"=>"videos", "file"=>
{"size"=>8735597, "content_type"=>"audio/ogg", "tempfile"=>#<File:/tmp/
Merb20100126-5554-1l6b86o-0>, "filename"=>"STS-114-launch-
Jul26-2005.ogg"}, "X-Progress-ID"=>"c1dfa260-
ece8-012c-2e6e-001d09248ccc"}
merb : worker (port 4001) ~ c1dfa260-ece8-012c-2e6e-001d09248ccc:
Reading metadata of video file
merb : worker (port 4001) ~ c1dfa260-ece8-012c-2e6e-001d09248ccc: (500
returned to client) FormatNotRecognised

merb : worker (port 4001) ~

{:after_filters_time=>2.5e-05, :before_filters_time=>2.3e-05, :action_time=>0.103055, :dispatch_time=>0.280868}

merb : worker (port 4001) ~

As you can see I tried all kind of file formats like ogg, mov, mpg and


even avi... so I now think it might be a problem with ffmpeg or the
installed codecs. Now I will try to find out what the panda merb
application is doing while reading the metadata of a video. Maybe I
can do it manually on the command line and see what happens.

If somebody has some tips how to approach this problem I would very
happy...

Thanks.

Govinda

On Jan 26, 9:09 pm, Feurio <govinda.pfis...@beagile.de> wrote:

> ...
>
> read more »

Feurio

unread,
Jan 26, 2010, 4:44:22 PM1/26/10
to Panda
OK. Now I found the source of the problem. The ffmpeg version (0.5-
svn17737+3:0.svn20090303-1ubuntu6) I have seems not to be compatible
with the rvideo gem that I had... only after I downloaded and
installed the rvideo source on github from new_bamboos the
RVideo::Inspector class works again.

Before every file just was not valid!

But now I get another error:

Tue Jan 26 22:38:23 +0100 2010: Read error: #<NoMethodError: undefined
method `capture_frame' for #<RVideo::Inspector:0xb71e07b4>>
/usr/local/www/panda/app/models/clipping.rb:41:in `capture'
/usr/local/www/panda/app/models/video.rb:215:in
`generate_thumbnail_selection'
/usr/local/www/panda/app/models/video.rb:214:in `each'
/usr/local/www/panda/app/models/video.rb:214:in
`generate_thumbnail_selection'
/usr/local/www/panda/app/models/video.rb:262:in
`finish_processing_and_queue_encodings'
/usr/local/www/panda/app/controllers/videos.rb:98:in `upload'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/
mixins/controller.rb:107:in `call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/controller/
mixins/controller.rb:107:in `render_then_call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/
stream_wrapper.rb:14:in `call'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/
stream_wrapper.rb:14:in `each'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/
handler/mongrel.rb:92:in `process'


/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in
`process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in
`process_client'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
`initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in
`initialize'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/
adapter/mongrel.rb:38:in `start_server'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/
adapter/abstract.rb:296:in `start_at_port'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/rack/

adapter/abstract.rb:128:in `start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:
174:in `bootup'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core/server.rb:
42:in `start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/lib/merb-core.rb:173:in
`start'
/usr/lib/ruby/gems/1.8/gems/merb-core-1.0.15/bin/merb:11
/usr/bin/merb:19:in `load'
/usr/bin/merb:19


So this is the next problem I have to fix...

Feurio

unread,
Jan 26, 2010, 5:04:16 PM1/26/10
to Panda
OK. After some testing with irb/rvideo alone it seems as if the
capture_frame method is somehow not present.

I found this google groups entry that explains why:

http://groups.google.com/group/rvideo/browse_thread/thread/9b5805cc98a5f851/3e40fa69625c0f8a?lnk=gst&q=capture_frame#3e40fa69625c0f8a

So the question for me is, what version combination of rvideo and
ffmpeg is still working? And where do I get it (for ubuntu)?


irb(main):005:0> inspector.capture_frame("3%", '/home/BEAGILE/
govinda.fichtner/downloads/hdtest.jpg')


NoMethodError: undefined method `capture_frame' for

#<RVideo::Inspector:0xb763bfd4>
from (irb):5

Feurio

unread,
Jan 26, 2010, 5:04:26 PM1/26/10
to Panda
OK. After some testing with irb/rvideo alone it seems as if the
capture_frame method is somehow not present.

I found this google groups entry that explains why:

http://groups.google.com/group/rvideo/browse_thread/thread/9b5805cc98a5f851/3e40fa69625c0f8a?lnk=gst&q=capture_frame#3e40fa69625c0f8a

So the question for me is, what version combination of rvideo and
ffmpeg is still working? And where do I get it (for ubuntu)?


irb(main):005:0> inspector.capture_frame("3%", '/home/BEAGILE/
govinda.fichtner/downloads/hdtest.jpg')

NoMethodError: undefined method `capture_frame' for

#<RVideo::Inspector:0xb763bfd4>
from (irb):5


On Jan 26, 10:44 pm, Feurio <govinda.pfis...@beagile.de> wrote:

Feurio

unread,
Jan 27, 2010, 11:05:23 AM1/27/10
to Panda
Hello again,

I got everything working now! I am using ffmpeg 0.5 and a customized
panda and rvideo version....

Govinda

On Jan 26, 11:04 pm, Feurio <govinda.pfis...@beagile.de> wrote:
> OK. After some testing with irb/rvideo alone it seems as if the
> capture_frame method is somehow not present.
>
> I found this google groups entry that explains why:
>

> http://groups.google.com/group/rvideo/browse_thread/thread/9b5805cc98...

> ...
>
> read more »

Damien Tanner

unread,
Jan 27, 2010, 1:53:29 PM1/27/10
to panda...@googlegroups.com
Hi Govinda,

I'm glad to hear you have it all sorted! If you have any changes to panda and rvideo please do commit them to your github and let me know so I can merge into master if necessary.

Damien Tanner Damien Tanner - Co-Founder and Director, Panda
+44 (0)20 7099 7486 - pandastream.com - @pandastream


> ...
>
> read more »

--
You received this message because you are subscribed to the Google Groups "Panda" group.
To post to this group, send email to panda...@googlegroups.com.
To unsubscribe from this group, send email to pandastream...@googlegroups.com.

Damien Tanner

unread,
Jan 26, 2010, 2:42:24 PM1/26/10
to panda...@googlegroups.com
You may actually have another issue, because the video should upload without progress working. Was there no more info in the logs?

Damien Tanner Damien Tanner - Co-Founder and Director, Panda
+44 (0)20 7099 7486 - pandastream.com - @pandastream


To unsubscribe from this group, send email to pandastream...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages