[libav-api] mjpeg stream

Luca Barbato lu_zero at gentoo.org
Wed Apr 15 11:00:48 CEST 2015


On 14/04/15 06:55, Ran Shalit wrote:
> On Mon, Apr 13, 2015 at 2:51 PM, Luca Barbato <lu_zero at gentoo.org> wrote:
>> On 13/04/15 13:37, Ran Shalit wrote:
>>> Can I use libav to stream jp2 packets (from camera) with mpeg-ts ?
>>
>> A coursory grep tells me there isn't a specific codec support, so it
>> might work or might not.
>>
>> lu
>
> Hi Luca,
>
> The captured frames from camera are already in JP2 format, so I
> actually only need mux (and demux in the decoder) for network
> streaming.
> Is there any mux which support jp2 ?

matroska for sure.

> How can I verify if this is supported ?

avconv -filter_complex testsrc -c:v libopenjpeg out.mkv

avplay out.mkv

and so on seems the simplest way.

nut and mov seem working fine as well. ts can encapsulate as private 
stream so you'd need to force the decoder in vlc.

lu


More information about the libav-api mailing list