Re: [FFmpeg-devel] [PATCH 3/4] avformat/mpegenc - accept PCM_DVD streams

2018-02-16 Thread Michael Niedermayer
On Thu, Feb 15, 2018 at 06:23:06PM +0530, Gyan Doshi wrote: > > On 2/15/2018 8:57 AM, Michael Niedermayer wrote: > >On Tue, Feb 13, 2018 at 12:33:56AM +0530, Gyan Doshi wrote: > > >>+if (st->codecpar->codec_id == AV_CODEC_ID_PCM_DVD) { > >>+if (size < 3) { > >>+av_log(ctx,

Re: [FFmpeg-devel] [PATCH 3/4] avformat/mpegenc - accept PCM_DVD streams

2018-02-15 Thread Gyan Doshi
On 2/15/2018 8:58 AM, Michael Niedermayer wrote: On Tue, Feb 13, 2018 at 12:36:15AM +0530, Gyan Doshi wrote: FATE patch and sample file attached. Sample file should go into (new) mpegps directory in suite. have you checked that none of the existing fate samples can be used ? Yes. There's

Re: [FFmpeg-devel] [PATCH 3/4] avformat/mpegenc - accept PCM_DVD streams

2018-02-15 Thread Gyan Doshi
On 2/15/2018 8:57 AM, Michael Niedermayer wrote: On Tue, Feb 13, 2018 at 12:33:56AM +0530, Gyan Doshi wrote: +if (st->codecpar->codec_id == AV_CODEC_ID_PCM_DVD) { +if (size < 3) { +av_log(ctx, AV_LOG_ERROR, "Invalid packet size %d\n", size); +return -1;

Re: [FFmpeg-devel] [PATCH 3/4] avformat/mpegenc - accept PCM_DVD streams

2018-02-14 Thread Michael Niedermayer
On Tue, Feb 13, 2018 at 12:36:15AM +0530, Gyan Doshi wrote: > > On 2/3/2018 3:59 AM, Michael Niedermayer wrote: > > >>Subject: [PATCH v2] avformat/mpegenc - accept PCM_DVD streams > >> > >>PCM_S16BE stream packets in MPEG-PS have a 3-byte header > >>and recognized as PCM_DVD by the demuxer which

Re: [FFmpeg-devel] [PATCH 3/4] avformat/mpegenc - accept PCM_DVD streams

2018-02-14 Thread Michael Niedermayer
On Tue, Feb 13, 2018 at 12:33:56AM +0530, Gyan Doshi wrote: > > On 2/3/2018 4:02 AM, Michael Niedermayer wrote: > > >>--- a/libavformat/mpegenc.c > >>+++ b/libavformat/mpegenc.c > > >>+ > >>+if (st->codecpar->codec_id == AV_CODEC_ID_PCM_DVD) { > >>+/* Skip first 3 bytes of packet dat

Re: [FFmpeg-devel] [PATCH 3/4] avformat/mpegenc - accept PCM_DVD streams

2018-02-13 Thread Gyan Doshi
On 2/14/2018 3:59 AM, Michael Niedermayer wrote: On Mon, Jan 29, 2018 at 06:53:06PM +0530, Gyan Doshi wrote: On 1/29/2018 3:47 PM, Carl Eugen Hoyos wrote: How did you test this patch? By remuxing with patched ffmpeg and then checking with ffprobe, but not ffplay! muxer side changes shou

Re: [FFmpeg-devel] [PATCH 3/4] avformat/mpegenc - accept PCM_DVD streams

2018-02-13 Thread Michael Niedermayer
On Mon, Jan 29, 2018 at 06:53:06PM +0530, Gyan Doshi wrote: > > On 1/29/2018 3:47 PM, Carl Eugen Hoyos wrote: > > >How did you test this patch? > > By remuxing with patched ffmpeg and then checking with ffprobe, but not > ffplay! muxer side changes should be tested against something else than f

Re: [FFmpeg-devel] [PATCH 3/4] avformat/mpegenc - accept PCM_DVD streams

2018-02-13 Thread Michael Niedermayer
On Tue, Feb 13, 2018 at 12:36:15AM +0530, Gyan Doshi wrote: > > On 2/3/2018 3:59 AM, Michael Niedermayer wrote: > > >>Subject: [PATCH v2] avformat/mpegenc - accept PCM_DVD streams > >> > >>PCM_S16BE stream packets in MPEG-PS have a 3-byte header > >>and recognized as PCM_DVD by the demuxer which

Re: [FFmpeg-devel] [PATCH 3/4] avformat/mpegenc - accept PCM_DVD streams

2018-02-12 Thread Gyan Doshi
On 2/3/2018 4:02 AM, Michael Niedermayer wrote: --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c + +if (st->codecpar->codec_id == AV_CODEC_ID_PCM_DVD) { +/* Skip first 3 bytes of packet data, which comprise PCM header + and will be written fresh by this muxer. */

Re: [FFmpeg-devel] [PATCH 3/4] avformat/mpegenc - accept PCM_DVD streams

2018-02-12 Thread Gyan Doshi
On 2/3/2018 3:59 AM, Michael Niedermayer wrote: Subject: [PATCH v2] avformat/mpegenc - accept PCM_DVD streams PCM_S16BE stream packets in MPEG-PS have a 3-byte header and recognized as PCM_DVD by the demuxer which prevents their proper remuxing in MPEG-1/2 PS. its probably a good idea to add

Re: [FFmpeg-devel] [PATCH 3/4] avformat/mpegenc - accept PCM_DVD streams

2018-02-08 Thread Michael Niedermayer
On Thu, Feb 08, 2018 at 02:04:57PM +0530, Gyan Doshi wrote: > > > On 2/3/2018 3:59 AM, Michael Niedermayer wrote: > > >>PCM_S16BE stream packets in MPEG-PS have a 3-byte header > >>and recognized as PCM_DVD by the demuxer which prevents > >>their proper remuxing in MPEG-1/2 PS. > > > >its probab

Re: [FFmpeg-devel] [PATCH 3/4] avformat/mpegenc - accept PCM_DVD streams

2018-02-08 Thread Gyan Doshi
On 2/3/2018 3:59 AM, Michael Niedermayer wrote: PCM_S16BE stream packets in MPEG-PS have a 3-byte header and recognized as PCM_DVD by the demuxer which prevents their proper remuxing in MPEG-1/2 PS. its probably a good idea to add a fate test for this too. (could be in a seperate patch) Wh

Re: [FFmpeg-devel] [PATCH 3/4] avformat/mpegenc - accept PCM_DVD streams

2018-02-02 Thread Michael Niedermayer
On Thu, Feb 01, 2018 at 07:52:55PM +0530, Gyan Doshi wrote: > On 1/29/2018 6:53 PM, Gyan Doshi wrote: > > > >On 1/29/2018 3:47 PM, Carl Eugen Hoyos wrote: > > > >>How did you test this patch? > > > >By remuxing with patched ffmpeg and then checking with ffprobe, but not > >ffplay! > ... > >Sorry, I

Re: [FFmpeg-devel] [PATCH 3/4] avformat/mpegenc - accept PCM_DVD streams

2018-02-02 Thread Michael Niedermayer
On Thu, Feb 01, 2018 at 07:52:55PM +0530, Gyan Doshi wrote: > On 1/29/2018 6:53 PM, Gyan Doshi wrote: > > > >On 1/29/2018 3:47 PM, Carl Eugen Hoyos wrote: > > > >>How did you test this patch? > > > >By remuxing with patched ffmpeg and then checking with ffprobe, but not > >ffplay! > ... > >Sorry, I

Re: [FFmpeg-devel] [PATCH 3/4] avformat/mpegenc - accept PCM_DVD streams

2018-02-01 Thread Gyan Doshi
On 1/29/2018 6:53 PM, Gyan Doshi wrote: On 1/29/2018 3:47 PM, Carl Eugen Hoyos wrote: How did you test this patch? By remuxing with patched ffmpeg and then checking with ffprobe, but not ffplay! ... Sorry, I'll rework and submit. Revised and tested patch attached. From 78757309bbfbc9d9e

Re: [FFmpeg-devel] [PATCH 3/4] avformat/mpegenc - accept PCM_DVD streams

2018-01-29 Thread Gyan Doshi
On 1/29/2018 3:47 PM, Carl Eugen Hoyos wrote: How did you test this patch? By remuxing with patched ffmpeg and then checking with ffprobe, but not ffplay! On playback, I see the output is garbled, because the PCM_DVD header carries over from the source packet and also breaks LPCM block a

Re: [FFmpeg-devel] [PATCH 3/4] avformat/mpegenc - accept PCM_DVD streams

2018-01-29 Thread Carl Eugen Hoyos
2018-01-29 8:12 GMT+01:00 Gyan Doshi : How did you test this patch? Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel