Way to encode and crop dynamically by keyboard

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Way to encode and crop dynamically by keyboard

David Barbassat
Dear All,

I am looking for a way to encode by ffmpeg a video but with a dynamic
crop provided by shell variables

For example is it possible to use ${x} and ${y} in the command line and
change them during the encoding process without launch the encoding each
time ?

Like a crop motion :)

Regards

David
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Way to encode and crop dynamically by keyboard

Lou Logan
On Tue, Jun 5, 2018, at 1:06 PM, David Barbassat wrote:

> Dear All,
>
> I am looking for a way to encode by ffmpeg a video but with a dynamic
> crop provided by shell variables
>
> For example is it possible to use ${x} and ${y} in the command line and
> change them during the encoding process without launch the encoding each
> time ?
>
> Like a crop motion :)

Should be possible with the zmq filter:
https://ffmpeg.org/ffmpeg-filters.html#zmq_002c-azmq

crop supports the following commands usable by (a)zmq and (a)sendcmd:
https://ffmpeg.org/ffmpeg-filters.html#Commands-12
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Way to encode and crop dynamically by keyboard

David Barbassat
Dear Lou,

Thanks for your quik repply... this is exactly what I need :) ...

I will check the ZMQ filter now  !

If someone have different clue it could be great too ;)

Thanks again !

Le 2018-06-05 23:22, Lou Logan a écrit :

> On Tue, Jun 5, 2018, at 1:06 PM, David Barbassat wrote:
>
>> Dear All,
>>
>> I am looking for a way to encode by ffmpeg a video but with a dynamic
>> crop provided by shell variables
>>
>> For example is it possible to use ${x} and ${y} in the command line and
>> change them during the encoding process without launch the encoding each
>> time ?
>>
>> Like a crop motion :)
>
> Should be possible with the zmq filter:
> https://ffmpeg.org/ffmpeg-filters.html#zmq_002c-azmq
>
> crop supports the following commands usable by (a)zmq and (a)sendcmd:
> https://ffmpeg.org/ffmpeg-filters.html#Commands-12
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".