Currently combining CPU and CUDA filters requires insertion of hwupload and 
download filters. I am trying to simply this by auto insertion of these 
filters. This patch is for hwupload_cuda, but I want to do this for hwdownload 
as well.

The attached patch automatically inserts hwupload_cuda filter when it detects a 
GPU filter  after a CPU component.

Before the patch
ffmpeg.exe -y -i traffic_flow_1280x720_420.y4m -vf "hwupload_cuda, 
scale_npp=176:144" out.h264

After the patch the command line works without inserting the hwupload_cuda 
filter (auto inserted by ffmpeg)
ffmpeg.exe -y -i traffic_flow_1280x720_420.y4m -vf "scale_npp=176:144" out.h264

Thanks,
Yogender

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may 
contain
confidential information.  Any unauthorized review, use, disclosure or 
distribution
is prohibited.  If you are not the intended recipient, please contact the 
sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

Attachment: 0001-avfiltergraph-Auto-insert-hwupload_cuda-when-needed.patch
Description: 0001-avfiltergraph-Auto-insert-hwupload_cuda-when-needed.patch

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to