|
We need xvimagesink to force frame aspect ratio so the video is not streched. 'force-aspect-ratio' works fine until we haven't added a 'ffdeinterlace' element to enable deinterlacing. With ffdeinterlace element video picture is always stretched regardless of 'force-aspect-ratio' value. Using 'deinterlace' or 'deinterlace2' elements istead solves this issue, but also doubles CPU usage. Adding a queue element after 'ffdeinterlace' also works, but additional CPU load is too high then.
Pipeline looks like this:
filesrc ! decodebin2 ! ffdeinterlace ! ffmpegcolorspace ! xvimagesink force-aspect-ratio=true
Is it a bug in ffdeinterlace?
Additional info:
Adding a small queue (32768 bytes) after the ffdeinterlace solves the issue with minimal CPU overhead (about 3-4%)
|