Bug#789254: This sample seems not to be processable by FFmpeg

2015-06-22 Thread Carl Eugen Hoyos
Hi! On Mon, 22 Jun 2015, Peter Belkner wrote: if (0!=*got_packet) { av_packet_rescale_ts(pkt,cc->time_base,st->time_base); + // where do the "magic" factor 0.5 come from? + pkt->dts>>=1; + pkt->pts>>=1; + pkt->duration>>=1; if (ffsox_stream_interleaved_write(so,

Bug#789254: This sample seems not to be processable by FFmpeg

2015-06-22 Thread Peter Belkner
On 22.06.2015 10:09, Carl Eugen Hoyos wrote: Hi! On Mon, 22 Jun 2015, Peter Belkner wrote: if (0!=*got_packet) { av_packet_rescale_ts(pkt,cc->time_base,st->time_base); + // where do the "magic" factor 0.5 come from? + pkt->dts>>=1; + pkt->pts>>=1; + pkt->duration>>=1;

Bug#789254: This sample seems not to be processable by FFmpeg

2015-06-22 Thread Peter Belkner
On 22.06.2015 09:55, Petter Reinholdtsen wrote: [Peter Belkner] I was testing with Winamp and the FFmpeg based "in_ffsox" input plugin. It was not "stuttering" at all. I discovered "stuttering" only when testing with VLC player. Aha. Meanwhile I've learned that we have two issues: 1. "2003

Bug#789254: This sample seems not to be processable by FFmpeg

2015-06-22 Thread Petter Reinholdtsen
[Peter Belkner] > I was testing with Winamp and the FFmpeg based "in_ffsox" input plugin. > It was not "stuttering" at all. I discovered "stuttering" only when > testing with VLC player. Aha. > Meanwhile I've learned that we have two issues: > > 1. "20030213-cvs.mpeg" had not processed at all

Bug#789254: This sample seems not to be processable by FFmpeg

2015-06-22 Thread Peter Belkner
On 22.06.2015 08:14, Petter Reinholdtsen wrote: [Peter Belkner] I've made an educated guess on how to continue: simply skip the package, and it seems to work smoothly: How did you test? I was testing with Winamp and the FFmpeg based "in_ffsox" input plugin. It was not "stuttering" at all. I

Bug#789254: This sample seems not to be processable by FFmpeg

2015-06-21 Thread Petter Reinholdtsen
[Peter Belkner] > I've made an educated guess on how to continue: simply skip the > package, and it seems to work smoothly: How did you test? I applied the enclosed patch (notice the DMESSAGE) to see how often it trigger, and processed the MPEG file, and the sound was still stuttering. This was

Bug#789254: This sample seems not to be processable by FFmpeg

2015-06-21 Thread Peter Belkner
I've made an educated guess on how to continue: simply skip the package, and it seems to work smoothly: diff -rc ./bs1770gain-0.4.3/libffsox-2/ffsox_frame_reader.c ./bs1770gain-0.4.4-beta2/libffsox-2/ffsox_frame_reader.c *** ./bs1770gain-0.4.3/libffsox-2/ffsox_frame_reader.c 2015-06

Bug#789254: This sample seems not to be processable by FFmpeg

2015-06-21 Thread Peter Belkner
Hi Carl Eugen, thanks for sharing. The issue under the hood is seems to be that avcodec_decode_audio4() returns with error "[mp2 @ 0x9e527c0] Header missing". How to continue in such a case? Thanks and regards, Peter On 21.06.2015 23:09, Carl Eugen Hoyos wrote: On Sunday 21 June 2015 10:

Bug#789254: This sample seems not to be processable by FFmpeg

2015-06-21 Thread Carl Eugen Hoyos
On Sunday 21 June 2015 10:28:55 pm Peter Belkner wrote: > What BS1770GAIN does is best approximated by the following FFmpeg > command (copying the video stream, transcoding the audio stream into > FLAC and muxing both into a MKV container): > > $ ffmpeg -i sample/20030213-cvs.mpeg -vcodec copy

Bug#789254: This sample seems not to be processable by FFmpeg

2015-06-21 Thread Peter Belkner
What BS1770GAIN does is best approximated by the following FFmpeg command (copying the video stream, transcoding the audio stream into FLAC and muxing both into a MKV container): $ ffmpeg -i sample/20030213-cvs.mpeg -vcodec copy -acodec flac -y ffmpeg/20030213-cvs.mkv FFmpeg aborts with th

Bug#789254: This sample seems not to be processable by FFmpeg

2015-06-21 Thread Petter Reinholdtsen
[Peter Belkner] > BS1770GAIN is based on FFmpeg. If a file is not processable by FFmpeg > it is not processable by BS1770GAIN. > > This particular sample file seems not to be processable by FFmpeg. Try > e.g. the following command > > $ ffmpeg -i samples/20030213-cvs.mpeg -acodec copy -vcodec c

Bug#789254: This sample seems not to be processable by FFmpeg

2015-06-21 Thread Peter Belkner
BS1770GAIN is based on FFmpeg. If a file is not processable by FFmpeg it is not processable by BS1770GAIN. This particular sample file seems not to be processable by FFmpeg. Try e.g. the following command $ ffmpeg -i samples/20030213-cvs.mpeg -acodec copy -vcodec copy -y 20030213-cvs.mpeg