[FFmpeg-devel] SMPTE 339M [was Re: st 0339-2008 format support]

Patrick Shirkey pshirkey at boosthardware.com
Mon Oct 29 02:58:58 CET 2012


On Sun, October 28, 2012 5:00 am, Patrick Shirkey wrote:
>
> On Sun, October 28, 2012 4:34 am, Kieran Kunhya wrote:
>> On Sat, Oct 27, 2012 at 5:38 PM, Patrick Shirkey
>> <pshirkey at boosthardware.com> wrote:
>>>
>>> On Sat, October 27, 2012 4:10 pm, Kieran Kunhya wrote:
>>>> On Sat, Oct 27, 2012 at 5:39 AM, compn <tempn at twmi.rr.com> wrote:
>>>>> On Sat, 27 Oct 2012 13:37:47 +1100 (EST), Patrick Shirkey wrote:
>>>>>>Hi,
>>>>>>
>>>>>>Does ffmpeg have support for encoding/decoding this format?
>>>>
>>>> It is a case of extending lavf/spdif.c to handle 20/24-bit audio.
>>>
>>>
>>> Like this?
>>>
>>> //TODO move to DSP
>>> void ff_spdif_bswap_buf24(uint24_t *dst, const uint24_t *src, int w)
>>> {
>>>     int i;
>>>
>>>     for (i = 0; i + 8 <= w; i += 8) {
>>>         dst[i + 0] = av_bswap24(src[i + 0]);
>>>         dst[i + 1] = av_bswap24(src[i + 1]);
>>>         dst[i + 2] = av_bswap24(src[i + 2]);
>>>         dst[i + 3] = av_bswap24(src[i + 3]);
>>>         dst[i + 4] = av_bswap24(src[i + 4]);
>>>         dst[i + 5] = av_bswap24(src[i + 5]);
>>>         dst[i + 6] = av_bswap24(src[i + 6]);
>>>         dst[i + 7] = av_bswap24(src[i + 7]);
>>>     }
>>>     for (; i < w; i++)
>>>         dst[i + 0] = av_bswap24(src[i + 0]);
>>> }
>>>
>>
>> No, read the spec and see how it's done.
>
> I have the spec but it's not really my field of expertise. Seeing as you
> wrote a decoder and it was apparently integrated into VLC in 2010 maybe
> you can offer some more specific pointers?
>
> I can obtain sample files if required and can even chip in a limited
> amount of cash (approx USD$300) to get the ball rolling.
>

FYI, the only option for encoding SMPTE 339M I can find at the moment does
not run on Linux, costs $300 to hire for a week or $2000 to purchase
outright and requires a usb dongle for an additional $50 to run. Is there
anyone who is interested in receiving that money round here to implement
support for the SMPTE 339M standard in FFMPEG?

We can give you $350 this week if we can get a encoded sample file for
testing purposes, no need to publicly release the code at this point.



--
Patrick Shirkey
Boost Hardware Ltd


More information about the ffmpeg-devel mailing list