[R-pkg-team] Bug#963153: ffmpeg breaks r-cran-av autopkgtest: error in 'avcodec_open2 (audio)': Invalid argument

Sebastian Ramacher sramacher at debian.org
Tue Jun 23 10:39:15 BST 2020


On 2020-06-23 11:15:52 +0200, Andreas Tille wrote:
> Hi Sebastian,
> 
> On Tue, Jun 23, 2020 at 10:50:50AM +0200, Sebastian Ramacher wrote:
> > Control: notfound -1 ffmpeg/7:4.3-2
> > Control: tags -1 + patch
> > 
> > Hi Andreas
> > 
> > ...
> > The attached patch fixes this issue by generting an empty mp3 with the
> > default sampling rate of 44.1 KHz during package build instead of
> > copying the file from libmp3-tag-perl. If you want, I can upload it as
> > NMU.
> 
> Any NMU or team upload is perfectly welcome.

Uploaded to DELAYED/2 with the attached diff. Please let me know if I
should delay it longer.

Cheers
-- 
Sebastian Ramacher
-------------- next part --------------
diff -Nru r-cran-av-0.5.0+dfsg/debian/changelog r-cran-av-0.5.0+dfsg/debian/changelog
--- r-cran-av-0.5.0+dfsg/debian/changelog	2020-05-20 09:34:42.000000000 +0200
+++ r-cran-av-0.5.0+dfsg/debian/changelog	2020-06-23 11:31:26.000000000 +0200
@@ -1,3 +1,11 @@
+r-cran-av (0.5.0+dfsg-3.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * debian/rules: Generate empty mp3 file with ffmpeg with a sample rate
+    supported by all formats used in the tests (Closes: #965153)
+
+ -- Sebastian Ramacher <sramacher at debian.org>  Tue, 23 Jun 2020 11:31:26 +0200
+
 r-cran-av (0.5.0+dfsg-3) unstable; urgency=medium
 
   * Provide mp3 example properly
diff -Nru r-cran-av-0.5.0+dfsg/debian/control r-cran-av-0.5.0+dfsg/debian/control
--- r-cran-av-0.5.0+dfsg/debian/control	2020-05-20 09:34:42.000000000 +0200
+++ r-cran-av-0.5.0+dfsg/debian/control	2020-06-23 10:26:49.000000000 +0200
@@ -8,7 +8,7 @@
                dh-r,
                r-base-dev,
                libavfilter-dev,
-               libmp3-tag-perl
+               ffmpeg
 Standards-Version: 4.5.0
 Vcs-Browser: https://salsa.debian.org/r-pkg-team/r-cran-av
 Vcs-Git: https://salsa.debian.org/r-pkg-team/r-cran-av.git
diff -Nru r-cran-av-0.5.0+dfsg/debian/rules r-cran-av-0.5.0+dfsg/debian/rules
--- r-cran-av-0.5.0+dfsg/debian/rules	2020-05-20 09:34:42.000000000 +0200
+++ r-cran-av-0.5.0+dfsg/debian/rules	2020-06-23 10:26:38.000000000 +0200
@@ -7,4 +7,4 @@
 
 override_dh_install:
 	dh_install
-	cp -a /usr/share/doc/libmp3-tag-perl/examples/empty_10sec.mp3 $(debRlib)/$(cranNameOrig)/samples/Synapsis-Wonderland.mp3
+	ffmpeg -f lavfi -i anullsrc=r=44100:cl=mono -t 10 -acodec libmp3lame $(debRlib)/$(cranNameOrig)/samples/Synapsis-Wonderland.mp3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/r-pkg-team/attachments/20200623/2a211169/attachment.sig>


More information about the R-pkg-team mailing list