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 img2 demuxer for mjpeg2000 f

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 ? > > > > We separated the jpg from

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 like a jpg image and cont

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 bui

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 with only the j2k-pid using my patch), >> >

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 them. > > Maybe you c

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 PMT/PAT is missing ffmpeg is unable to decode i

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 that can be decoded b

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 decoded, mjpeg probe is less str

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 samples produced? Do you h

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); > > +if

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 place,

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 > stream

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 http://ffmpeg.org/mail

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

2016-10-11 Thread Ståle kristoffersen
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 stream of jpeg 2000, but I am not sure if this is the correct approach. Also, should L