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-14 
18:11:19.000000000 +0200
   --- ./bs1770gain-0.4.4-beta2/libffsox-2/ffsox_frame_reader.c 2015-06-22 
00:22:18.000000000 +0200
   ***************
   *** 145,152 ****
            }
if ((size=avcodec_decode_audio4(cc,frame,&got_frame,pkt))<0) {
   !         DMESSAGE("decoding audio");
   !         return -1;
            }
pkt->size-=size;
   --- 145,153 ----
            }
if ((size=avcodec_decode_audio4(cc,frame,&got_frame,pkt))<0) {
   !         // skip the package.
   !         pkt->size=0;
   !         return 0;
            }
pkt->size-=size;




On 21.06.2015 23:56, Peter Belkner wrote:
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: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 -acodec flac -y
ffmpeg/20030213-cvs.mkv
$ ffmpeg -fflags +genpts -i 20030213-cvs.mpeg -vcodec copy
-acodec flac out.mkv

Carl Eugen



_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to