[FFmpeg-devel] [PATCH] AVFoundation: Add -pixel_format option

Thilo Borgmann thilo.borgmann at mail.de
Sun May 25 09:19:18 CEST 2014


Am 21.05.14 16:46, schrieb sfan5:
> Am 20.05.2014 23:57, schrieb Carl Eugen Hoyos:
>> sfan5 <sfan5 <at> live.de> writes:
>>
>>>> since AVFoundation provides transparent images for 32 bit
>>>> RGB it has to be mapped to RGB0 to work at all. (If a
>>>> user ever protests that his alpha channel disappears, we
>>>> will have to find a solution.)
>>> I've changed the mapping as suggested.
>>>
>>> (patch attached)
>>>   @example
>>> -ffmpeg -f avfoundation -i "default" out.mpg
>>> +ffmpeg -f avfoundation -pixel_format bgra -i "default" out.mpg
>> I believe the example does not work anymore or am I wrong?
>>
>> Thank you, Carl Eugen
> Yes, you are right, I corrected the example.

This means specifying the pixel format is necessary?
It should not. IIRC I've read that the first pixel format listed in the
capabilities should be used as an efficient default. This is what it should do
if the user does not specify another.

For the rest of the code I need some more time, unfortunately.

-Thilo


More information about the ffmpeg-devel mailing list