Re: [FFmpeg-devel] [RFC] avdevice/lavfi: output wrapped AVFrames

2022-07-03 Thread Timo Rothenpieler
On 03.07.2022 15:19, Nicolas George wrote: Timo Rothenpieler (12022-06-29): The lavfi avdevice as it is right now can't output "special frames" like hardware frames. This patch makes the lavfi avdevice output wrapped AVFrames instead of copying the actual data, greatly simplifying it in the proc

Re: [FFmpeg-devel] [RFC] avdevice/lavfi: output wrapped AVFrames

2022-07-03 Thread Nicolas George
Timo Rothenpieler (12022-06-29): > The lavfi avdevice as it is right now can't output "special frames" > like hardware frames. > This patch makes the lavfi avdevice output wrapped AVFrames instead > of copying the actual data, greatly simplifying it in the process. Thanks for the patch. I am not f

Re: [FFmpeg-devel] [RFC] avdevice/lavfi: output wrapped AVFrames

2022-07-02 Thread Timo Rothenpieler
On 02.07.2022 19:26, Nicolas George wrote: It is already possible. Yeah, I noticed that shortly after. Never before thought to run ffmpeg.c without any inputs, but as long as you stick to -filter_complex instead of plain -filter, it works great. But this device is not meant for ffmpeg.c alo

Re: [FFmpeg-devel] [RFC] avdevice/lavfi: output wrapped AVFrames

2022-07-02 Thread Nicolas George
Timo Rothenpieler (12022-06-30): > It should be definitely possible to make ffmpeg.c directly use a source > filter, but it's a bigger undertaking than fixing the shortcoming of the > lavfi avdevice for now. It is already possible. But this device is not meant for ffmpeg.c alone. It has been exp

Re: [FFmpeg-devel] [RFC] avdevice/lavfi: output wrapped AVFrames

2022-06-30 Thread Timo Rothenpieler
On 30.06.2022 10:46, Anton Khirnov wrote: Hardware frames wrapped in frames pretending to be packets. Hacks upon hacks upon hacks. Why do we need this "device" again? Why not just use lavfi directly? It should be definitely possible to make ffmpeg.c directly use a source filter, but it's a big

Re: [FFmpeg-devel] [RFC] avdevice/lavfi: output wrapped AVFrames

2022-06-30 Thread Anton Khirnov
Quoting Timo Rothenpieler (2022-06-29 21:52:50) > The lavfi avdevice as it is right now can't output "special frames" > like hardware frames. > This patch makes the lavfi avdevice output wrapped AVFrames instead > of copying the actual data, greatly simplifying it in the process. > > --- > I am no

[FFmpeg-devel] [RFC] avdevice/lavfi: output wrapped AVFrames

2022-06-29 Thread Timo Rothenpieler
The lavfi avdevice as it is right now can't output "special frames" like hardware frames. This patch makes the lavfi avdevice output wrapped AVFrames instead of copying the actual data, greatly simplifying it in the process. --- I am not at all sure if this has some unexpected consequences. It wor