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

Petter Reinholdtsen pere at hungry.com
Mon Jun 22 06:14:24 UTC 2015


[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 the output when running bs1770gain:

% ./bs1770gain/bs1770gain 20030213-cvs.mpeg -a -o foo
analyzing ...
  [1/1] "20030213-cvs.mpeg": 7%Error decoding audio, skipping audio package: frame_reader_run(), "ffsox_frame_reader.c" (148).
        
      integrated:  -34.7 LUFS / 11.7 LU
transcoding ...
  [1/1] "20030213-cvs.mkv" 7%Error decoding audio, skipping audio package: frame_reader_run(), "ffsox_frame_reader.c" (148).
    
done.
%

--- bs1770gain-0.4.3.orig/libffsox-2/ffsox_frame_reader.c
+++ bs1770gain-0.4.3/libffsox-2/ffsox_frame_reader.c
@@ -145,8 +145,10 @@ static int frame_reader_run(frame_reader
       }
 
       if ((size=avcodec_decode_audio4(cc,frame,&got_frame,pkt))<0) {
-        DMESSAGE("decoding audio");
-        return -1;
+        DMESSAGE("decoding audio, skipping audio package");
+        // skip the package.
+        pkt->size=0;
+        return 0;
       }
 
       pkt->size-=size;

-- 
Happy hacking
Petter Reinholdtsen



More information about the pkg-multimedia-maintainers mailing list