[FFmpeg-devel] [PATCH] Scalar: Multiple ouput with different resolutions, Issue 2040
msiddaiah at rgbnetworks.com
Thu Mar 17 21:07:41 CET 2011
If "CONFIG_AVFILTER" is enabled, scaling goes through filtering path. Since "AVFilterContext" variables are in
"AVInputStream" structure we can't have different context for different outputs in case of multiple outputs. Because of this there will be video distortions or segmentation fault if we do multiple outputs with different resolutions.
The solution is to move the "AVFilterContext" from "AVInputStream" to "AVOutputStream" structure so that there will be different filter contexts for each and every stream for multiple outputs.
Tested the patch with taking single input stream and doing outputs with different resolutions as follows.
./ffmpeg -i ../MP4_009-720x480_100_128_44.1_30.mp4 -s 176x144 ../out1.mp4 -s 320x240 ../out2.mp4 -s 352x288 ../out3.mp4 -s 640x480 ../out4.mp4
The same command now gives segmentation fault or distorted video outputs.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the ffmpeg-devel