Re: Does ffmpeg adapter need ffmpeg-php extension or is ffmpeg sufficient?

2010-01-26 Thread Deine Mutter
just wanted to add the info for interested people that they might
consider the perl module ffmpeg-perl (http://search.cpan.org/~ALLENDAY/
FFmpeg-6036/FFmpeg.pm) as an alternative to ffmpeg-php.

On 24 Jan., 14:05, David Persson  wrote:
> Oh that's great to hear!
>
> As for interfacing with the ffmpeg binary you may want to have a look
> into the ImagickShell adapter[1] which comes with the plugin for a
> working example. Regarding the (blocking) on the fly manipulation,
> I've been using (as cricket pointed out) a queue for spinning the task
> off to workers. My favourite queue server is beanstalkd which I also
> wrote a plugin for.
>
> - David
>
> [1]http://github.com/davidpersson/media/blob/1.3/vendors/media/adapter/i...
>
> On 21 Jan., 19:11, Deine Mutter
>
>  wrote:
> > okay, i'll look into it, since i am in need of a working adapter. it
> > might however take some time since my personal resources are scarce as
> > well.
>
> > besides, have you ever considered implementing a built-in
> > functionality that outsources the version generation of uploaded media
> > to a cron job? a basic setup would probably be rather simple, just
> > marking respective data sets in the table as "todo" or sth alike and
> > treating them as nonexistent in the application as long as they're in
> > this state. it just occurs to me, because especially video
> > manipulation shouldn't be something you do on the fly.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Does ffmpeg adapter need ffmpeg-php extension or is ffmpeg sufficient?

2010-01-24 Thread David Persson
Oh that's great to hear!

As for interfacing with the ffmpeg binary you may want to have a look
into the ImagickShell adapter[1] which comes with the plugin for a
working example. Regarding the (blocking) on the fly manipulation,
I've been using (as cricket pointed out) a queue for spinning the task
off to workers. My favourite queue server is beanstalkd which I also
wrote a plugin for.

- David

[1] 
http://github.com/davidpersson/media/blob/1.3/vendors/media/adapter/imagick_shell.php

On 21 Jan., 19:11, Deine Mutter
 wrote:
> okay, i'll look into it, since i am in need of a working adapter. it
> might however take some time since my personal resources are scarce as
> well.
>
> besides, have you ever considered implementing a built-in
> functionality that outsources the version generation of uploaded media
> to a cron job? a basic setup would probably be rather simple, just
> marking respective data sets in the table as "todo" or sth alike and
> treating them as nonexistent in the application as long as they're in
> this state. it just occurs to me, because especially video
> manipulation shouldn't be something you do on the fly.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Does ffmpeg adapter need ffmpeg-php extension or is ffmpeg sufficient?

2010-01-21 Thread cricket
On Jan 21, 1:11 pm, Deine Mutter
 wrote:
> okay, i'll look into it, since i am in need of a working adapter. it
> might however take some time since my personal resources are scarce as
> well.
>
> besides, have you ever considered implementing a built-in
> functionality that outsources the version generation of uploaded media
> to a cron job? a basic setup would probably be rather simple, just
> marking respective data sets in the table as "todo" or sth alike and
> treating them as nonexistent in the application as long as they're in
> this state. it just occurs to me, because especially video
> manipulation shouldn't be something you do on the fly.

Try the Queue plugin.

http://bakery.cakephp.org/articles/view/cakephp-simple-queue-plugin
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Does ffmpeg adapter need ffmpeg-php extension or is ffmpeg sufficient?

2010-01-21 Thread Deine Mutter
okay, i'll look into it, since i am in need of a working adapter. it
might however take some time since my personal resources are scarce as
well.

besides, have you ever considered implementing a built-in
functionality that outsources the version generation of uploaded media
to a cron job? a basic setup would probably be rather simple, just
marking respective data sets in the table as "todo" or sth alike and
treating them as nonexistent in the application as long as they're in
this state. it just occurs to me, because especially video
manipulation shouldn't be something you do on the fly.
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Does ffmpeg adapter need ffmpeg-php extension or is ffmpeg sufficient?

2010-01-20 Thread David Persson


On 20 Jan., 19:07, Deine Mutter
 wrote:
> okay the answer is clear, it needs ffmpeg extension.
> this is stupid for the following reasons: if ffmpeg is compiled with
> libswscale, the image extraction method of ffmpeg-php (ffmpeg.so) is
> not available (as written somewhere in the respective google group).
> starting at one of the newer releases of ffmpeg, the option to compile
> ffmpeg without libswcale is not available anymore (that is just my own
> humble experience).
>
> thus i suggest to write an adapter for ffmpeg w/o the use of ffmpeg-
> php extension, i.e. with direct command line execution (basically not
> that difficult). being a linux novice this might be a naive suggestion
> since probably it opens up massive security holes. would be nice if
> someone here would have an opinion on that!
>
> thx

Yo Alter,

You're correct the Media Plugin's ffmpeg adapter needs the ffmpeg php
extension which I also found to compile/install is very hard (or
"impossible" with my current setup). Since the extension itself does
only support reading meta data from the files is also by times useless
when it comes to actual manipulation of the videos. Because I can't
run the tests for it and the reasons I've given above the adapter is
going to be deprecated and removed later from version 1.3 of the
plugin.

I see an adapter using - as you've suggested - the ffmpeg binary
directly as the solution to a new ffmpeg video adapter. But due to the
lack of resources (and just because I personally I'm not in the need
of one) I won't provide an implementation of it. If you're up to
writing a working adapter for ffmpeg possibly supporting just a subset
of the tons of ffmpeg's features and switches for the beginning, I'd
be glad to merge it into the plugin.

Anyway, thank you for putting that topic up for discussion,
- David
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Does ffmpeg adapter need ffmpeg-php extension or is ffmpeg sufficient?

2010-01-20 Thread Deine Mutter
okay the answer is clear, it needs ffmpeg extension.
this is stupid for the following reasons: if ffmpeg is compiled with
libswscale, the image extraction method of ffmpeg-php (ffmpeg.so) is
not available (as written somewhere in the respective google group).
starting at one of the newer releases of ffmpeg, the option to compile
ffmpeg without libswcale is not available anymore (that is just my own
humble experience).

thus i suggest to write an adapter for ffmpeg w/o the use of ffmpeg-
php extension, i.e. with direct command line execution (basically not
that difficult). being a linux novice this might be a naive suggestion
since probably it opens up massive security holes. would be nice if
someone here would have an opinion on that!

thx
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


[Media Plugin] Does ffmpeg adapter need ffmpeg-php extension or is ffmpeg sufficient?

2010-01-20 Thread Deine Mutter
Hey,

is the php extension ffmpeg-php necessary for the media plugin's
ffmpeg adapter to work? or does it interact with ffmpeg directly via
command line? I was having a look at the ffmpeg_video.php in plugins/
media/vendors/medium/adapter and it seemed to me that it rather needs
ffmpeg-php, since haven't seen anything like command line execution.
however, in the slides of the media plugin presentation at cake fest
it is written that there is "native support" for ffmpeg. How do i have
to understand that?

Thanks.
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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