ffmpeg http filter?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

ffmpeg http filter?

Alex-5
I need to send raw frame/image to server for post processing and server returned new image that I need to complete with ffmpeg. Do any one know how to do this?
Somethink like that:
ffmpeg -i test.jpg -vf format=rgb24,http=localhost:8080 -y out.jpg
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: ffmpeg http filter?

kumowoon1025
Hi,

> ffmpeg -i test.jpg -vf format=rgb24,http=localhost:8080 -y out.jpg


I don't think it's possible using filters, or with a single invocation like that. (The 'http' filter is hypothetical and just meant for illustration right?)

Depending on how you're connected to the server, I think pipes or sockets would be a better place to start. And also separate commands for outputting frames for the server to consume, and another that takes the returned images.


Regards,
Ted Park

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: ffmpeg http filter?

James Darnley
In reply to this post by Alex-5
On 08/09/2020, Alex <[hidden email]> wrote:
> I need to send raw frame/image to server for post processing and server
> returned new image that I need to complete with ffmpeg. Do any one know how
> to do this?
> Somethink like that:
> ffmpeg -i test.jpg -vf format=rgb24,http=localhost:8080 -y out.jpg

If I understand correctly: use two outputs.  One for the rawvideo
which goes over some network protocol to your server and one for that
jpeg output.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: ffmpeg http filter?

Alex-5
Hi! Thank for reply, but no I need next logic:

input.jpg => (ffmpeg decode image/video) => (ffmpeg scale frame to 600x600 pix and convert frame format to rgb24) => (ffmpeg send frame to remote address localhost:8080 for post processing of image/frame) => (ffmpeg get result image from remote server, format + add overlay) => (ffmpeg encode frame/image to output format) => out.jpg


--- Original message ---
From: "James Darnley" <[hidden email]>
Date: 8 September 2020, 12:44:57

On 08/09/2020, Alex <[hidden email]> wrote:
> I need to send raw frame/image to server for post processing and server
> returned new image that I need to complete with ffmpeg. Do any one know how
> to do this?
> Somethink like that:
> ffmpeg -i test.jpg -vf format=rgb24,http=localhost:8080 -y out.jpg

If I understand correctly: use two outputs.  One for the rawvideo
which goes over some network protocol to your server and one for that
jpeg output.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: ffmpeg http filter?

Alex-5
In reply to this post by kumowoon1025
Server just do post processing of raw rgb image/frame and return it as response for request.Something like so: POST http://localhost:8080


--- Original message ---
From: "Edward Park" <[hidden email]>
Date: 8 September 2020, 02:19:21

Hi,

> ffmpeg -i test.jpg -vf format=rgb24,http=localhost:8080 -y out.jpg


I don't think it's possible using filters, or with a single invocation like that. (The 'http' filter is hypothetical and just meant for illustration right?)

Depending on how you're connected to the server, I think pipes or sockets would be a better place to start. And also separate commands for outputting frames for the server to consume, and another that takes the returned images.


Regards,
Ted Park

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

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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