Re: [FFmpeg-devel] [PATCH] libavf: Auto-detect mjpeg 2000 in mpeg-ts

2016-12-17 Thread Michael Niedermayer
On Fri, Oct 14, 2016 at 01:31:12AM +0200, Michael Niedermayer wrote: > On Thu, Oct 13, 2016 at 04:41:00PM +0200, Ståle Kristoffersen wrote: > > On 2016-10-12 at 13:57, Carl Eugen Hoyos wrote: > > > 2016-10-11 16:27 GMT+02:00 Michael Niedermayer : > > > > > > > also the

Re: [FFmpeg-devel] [PATCH] libavf: Auto-detect mjpeg 2000 in mpeg-ts

2016-10-13 Thread Michael Niedermayer
On Thu, Oct 13, 2016 at 04:41:00PM +0200, Ståle Kristoffersen wrote: > On 2016-10-12 at 13:57, Carl Eugen Hoyos wrote: > > 2016-10-11 16:27 GMT+02:00 Michael Niedermayer : > > > > > also the img2 demuxer for mjpeg2000 from img2dec.c does not work > > > for this ? > > > >

Re: [FFmpeg-devel] [PATCH] libavf: Auto-detect mjpeg 2000 in mpeg-ts

2016-10-13 Thread Ståle Kristoffersen
On 2016-10-12 at 13:57, Carl Eugen Hoyos wrote: > 2016-10-11 16:27 GMT+02:00 Michael Niedermayer : > > > also the img2 demuxer for mjpeg2000 from img2dec.c does not work > > for this ? > > We separated the jpg from the mjpeg probe, jpg makes sure that the > sample starts

Re: [FFmpeg-devel] [PATCH] libavf: Auto-detect mjpeg 2000 in mpeg-ts

2016-10-13 Thread Ståle Kristoffersen
On 2016-10-12 at 23:05, Carl Eugen Hoyos wrote: > Perhaps you can provide ffmpeg -i output for a file with PMT and PAT > if you cannot share a sample? Okay, here are three samples i have: $ ffmpeg -i sample1.ts ffmpeg version N-80172-g79b6c9a Copyright (c) 2000-2016 the FFmpeg developers

Re: [FFmpeg-devel] [PATCH] libavf: Auto-detect mjpeg 2000 in mpeg-ts

2016-10-12 Thread Carl Eugen Hoyos
2016-10-12 17:40 GMT+02:00 Ståle Kristoffersen : > On 2016-10-12 at 17:32, Carl Eugen Hoyos wrote: >> 2016-10-12 16:57 GMT+02:00 Ståle Kristoffersen : >> > I do (they are decodable by ffmpeg without the patch if I take the >> > whole stream with PMT, or

Re: [FFmpeg-devel] [PATCH] libavf: Auto-detect mjpeg 2000 in mpeg-ts

2016-10-12 Thread Ståle Kristoffersen
On 2016-10-12 at 17:32, Carl Eugen Hoyos wrote: > 2016-10-12 16:57 GMT+02:00 Ståle Kristoffersen : > > I do (they are decodable by ffmpeg without the patch if I take the whole > > stream with PMT, or with only the j2k-pid using my patch), but I am unsure > > if I can share

Re: [FFmpeg-devel] [PATCH] libavf: Auto-detect mjpeg 2000 in mpeg-ts

2016-10-12 Thread Carl Eugen Hoyos
2016-10-12 16:57 GMT+02:00 Ståle Kristoffersen : > On 2016-10-12 at 13:54, Carl Eugen Hoyos wrote: >> 2016-10-11 15:52 GMT+02:00 Ståle kristoffersen : >> >> > I have some transport streams with only one pid, containing MJPEG 2000 >> > video. Since the

Re: [FFmpeg-devel] [PATCH] libavf: Auto-detect mjpeg 2000 in mpeg-ts

2016-10-12 Thread Ståle Kristoffersen
On 2016-10-12 at 13:54, Carl Eugen Hoyos wrote: > 2016-10-11 15:52 GMT+02:00 Ståle kristoffersen : > > > I have some transport streams with only one pid, containing MJPEG 2000 > > video. Since the PMT/PAT is missing ffmpeg is unable to decode it. > > Do you also have samples

Re: [FFmpeg-devel] [PATCH] libavf: Auto-detect mjpeg 2000 in mpeg-ts

2016-10-12 Thread Carl Eugen Hoyos
2016-10-11 16:27 GMT+02:00 Michael Niedermayer : > also the img2 demuxer for mjpeg2000 from img2dec.c does not work > for this ? We separated the jpg from the mjpeg probe, jpg makes sure that the sample starts like a jpg image and contains an end marker and can be

Re: [FFmpeg-devel] [PATCH] libavf: Auto-detect mjpeg 2000 in mpeg-ts

2016-10-12 Thread Carl Eugen Hoyos
2016-10-11 15:52 GMT+02:00 Ståle kristoffersen : > I have some transport streams with only one pid, containing MJPEG 2000 > video. Since the PMT/PAT is missing ffmpeg is unable to decode it. Do you also have samples that can be decoded by FFmpeg? (We don't) How are your

Re: [FFmpeg-devel] [PATCH] libavf: Auto-detect mjpeg 2000 in mpeg-ts

2016-10-11 Thread Ståle Kristoffersen
On 2016-10-11 at 16:27, Michael Niedermayer wrote: > > +for (i=0; ibuf_size-5; i++) { > > +soc = AV_RB16(p->buf + i); > > +if (soc == JPEG2000_SOC ) { > > +marker = AV_RB16(p->buf + i + 2); > > +marker_size = AV_RB16(p->buf + i + 4); > > +

Re: [FFmpeg-devel] [PATCH] libavf: Auto-detect mjpeg 2000 in mpeg-ts

2016-10-11 Thread Ståle Kristoffersen
On 2016-10-11 at 16:23, Moritz Barsnick wrote: > On Tue, Oct 11, 2016 at 15:52:33 +0200, Ståle kristoffersen wrote: > > + * VC-1 demuxer > > + * Copyright (c) 2016 Ståle Kristoffersen > > I don't think it's a VC-1 demuxer. ;-) I guess I took the line "Do not copy and paste it from a random

Re: [FFmpeg-devel] [PATCH] libavf: Auto-detect mjpeg 2000 in mpeg-ts

2016-10-11 Thread Michael Niedermayer
On Tue, Oct 11, 2016 at 03:52:33PM +0200, Ståle kristoffersen wrote: > Hi, > I have some transport streams with only one pid, containing MJPEG 2000 > video. Since the PMT/PAT is missing ffmpeg is unable to decode it. > > The attached patch makes ffmpeg able to guess that it does contain a >

Re: [FFmpeg-devel] [PATCH] libavf: Auto-detect mjpeg 2000 in mpeg-ts

2016-10-11 Thread Moritz Barsnick
On Tue, Oct 11, 2016 at 15:52:33 +0200, Ståle kristoffersen wrote: > + * VC-1 demuxer > + * Copyright (c) 2016 Ståle Kristoffersen I don't think it's a VC-1 demuxer. ;-) Moritz ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org