Re: Fixing Ogg Vorbis files with incorrectly framed headers

Tristan Miller <[email protected]> Sun, 20 Aug 2017 13:19:05 +0200
Newsgroups gmane.comp.multimedia.ogg.vorbis.general
Message-ID <[email protected]>
--===============5680886470531995292==
Content-Type: multipart/signed; micalg=pgp-sha512;
 boundary="Sig_/efbdm8PAY9eq7wEluHAbHn5"; protocol="application/pgp-signature"

--Sig_/efbdm8PAY9eq7wEluHAbHn5
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Greetings.

On Thu, 27 Jul 2017 21:18:42 +0200, Tristan Miller
<[email protected]> wrote:
> Possibly as the result of buggy tagging software, several hundred of
> my Ogg Vorbis files exhibit the following warning when examined by
> ogginfo:
>=20
> WARNING: Vorbis stream 1 does not have headers correctly framed.
> Terminal header page contains additional packets or has non-zero
> granulepos
>=20
> Nonetheless, most media players can play these files without any
> problem.  A notable exception is any player using the recently
> released GStreamer 1.12.1 (see
> <https://bugzilla.gnome.org/show_bug.cgi?id=3D784530>).  In fact, even
> though my files were corrupted several years ago, I hadn't noticed
> this until a few weeks ago when I upgraded GStreamer to the latest
> version.
>=20
> Can anyone advise me how I can fix my files short of re-encoding them?

I believe I've discovered how the files can be repaired without
re-encoding them:

$ ffmpeg -i corruptfile.ogg -acodec copy fixedfile.ogg

Regards,
Tristan

--=20
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D-
                  Tristan Miller
Free Software developer, ferret herder, logologist
             https://logological.org/
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D-

--Sig_/efbdm8PAY9eq7wEluHAbHn5
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE2WFch0UdorzrkBIENu7AW7+KLuQFAlmZcCkACgkQNu7AW7+K
LuS3ORAAoqemOSGysX/brVRK7/cz7rc50B1ASr5yoqXq/RsHVB/rboEyglR1jNgE
xa9+yYRy+cvmTECsMYY9zWBB3XhMQuPtGbOXHB7tsHY1Tti52Q9lLFPd1SlWbDrK
nAzZdx8sJEjZ5zmP1jsgwES1Poz/1mJWiLSF2FgZ7cRcYAyQDsExhOJ7HdREzMa3
LyuqISlHeD1jV0OEKLTQ2gof4/DCALucA3I1OtX24uDPT54kG8UAjdu5BlP9Rme8
CVD69Y+EfshxH2+4Qs5hrS/rybSiuREE9hBPuj448Ptla+YtRiIHc3N16DNLxGk/
a68Trckgg5aUdN6/KBLZuvKpn+V5+qOKuCCMBYULWLOFxqN0ncAzUlFXw2HTqFh8
I4DOfNynrs0bchtplUCtKNZOZwpRUPNSJO6VMRKKNNPds1sFP2ho2BWxf5wQMI0U
4oW1DATAz1bDoZ/JA40uP8OEnHqxiW7OvqPs4o2v5GzZHISkuKD9605rS4btHCX9
fd/IQCaG54HKNUpzBH08G+6WInFXZLht7WO2QkjSxBEexh8fN18cSw3FO3Mcx9oq
ZBYijC+lji6VpSjo8hp0qvZSN94rXqqZCZs13T8zIwdVk8HOpJXyr2VqIQtAWNGo
XcfqlrnGGrrk3SrNmdrrPQzkkZ+lzsDHPtL09gQxM/v6rbFaBg0=
=fX5Y
-----END PGP SIGNATURE-----

--Sig_/efbdm8PAY9eq7wEluHAbHn5--

--===============5680886470531995292==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KVm9yYmlzIG1h
aWxpbmcgbGlzdApWb3JiaXNAeGlwaC5vcmcKaHR0cDovL2xpc3RzLnhpcGgub3JnL21haWxtYW4v
bGlzdGluZm8vdm9yYmlzCg==

--===============5680886470531995292==--