Git Product home page Git Product logo

Comments (12)

lazka avatar lazka commented on May 24, 2024

Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):


From [email protected] on July 25, 2012 02:06:08

This issue was closed by revision r122 .

Status: Fixed

from mutagen.

lazka avatar lazka commented on May 24, 2024

Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):


From towolf on April 16, 2012 09:35:51

Joe? Will you merge this?

from mutagen.

lazka avatar lazka commented on May 24, 2024

Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):


From [email protected] on April 19, 2011 08:16:15

Changes:

 - get bitrate using file size; the calculation was wrong for sv4-7: bps/1000+0.5 instead of just bps
 - move sv8_int, peak/gain in functions, IOError in sv8_int after limit is reached
 - move sv8 parsing in a seperate method
 - I've checked the replaygain calculation with GStreamer and it's correct.
 - correctly ignore empty gain/peak fields (this needs to be fixed in QL).
 - include version and bitrate in pprint

Attachment: mpc-sv8-v3.patch

from mutagen.

lazka avatar lazka commented on May 24, 2024

Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):


From [email protected] on October 31, 2010 05:20:54

Sorry it's taken so long. I guess it's still technically October...

Comments on the patch:

I really don't like the "while 1". Can it be replaced with a real loop invariant? I'd rather just chunk frames as we go rather than repeat the validation logic for each frame type we care about, stopping as soon as we find an AP.

Do we really need to parse every frame in the file just to get the approximate bitrate? It's going to be very slow (and still not accurate at all). Just let the file length / time case take care of it.

I don't like the get_sv8_int staticmethod. This should probably be a bare function or part of the cdata module. I also don't see a reason why it stops after 9 bytes except as a sanity check - in which case it should throw an exception, not return 0, after failing to stop after reading 8 bytes.

If the exceptions are going to claim it's a Musepack file with an invalid frame, it should explain why it's an invalid frame.

I'd like someone from the Musepack team to explain why their new Replay Gain format is so incredibly bad. Until then, Mutagen shouldn't try to parse it.

from mutagen.

lazka avatar lazka commented on May 24, 2024

Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):


From [email protected] on August 22, 2010 13:36:38

For the record, this is the #1 thing in my Mutagen pile right now; unfortunately Mutagen is about the #-1 thing in my overall pile. I'm hoping to get to it by October.

from mutagen.

lazka avatar lazka commented on May 24, 2024

Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):


From [email protected] on August 15, 2010 15:37:19

> Hi, it would be nice to merge this patch into the trunk :) cheers
another cheers on that :D

from mutagen.

lazka avatar lazka commented on May 24, 2024

Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):


From [email protected] on July 15, 2010 14:10:00

Hi, it would be nice to merge this patch into the trunk :) cheers

from mutagen.

lazka avatar lazka commented on May 24, 2024

Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):


From [email protected] on April 13, 2010 02:50:27

Thanks Philipp.

Updated patch and test sample attached.

Attachment: mpc-sv8-v2.patch sv8_header.mpc

from mutagen.

lazka avatar lazka commented on May 24, 2024

Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):


From ph.wolfer on April 12, 2010 12:46:07

I just played with your patch and found a file that will cause a
MusepackHeaderError("Invalid Frame") in line 84. The attached file is a SV8 file with
zero audio length. I have also attached the WAV source from which I generated the
file. The SV7 version of the same file can be read without problems.

Other files seemed to work so far.

Attachment: test_sv8.mpc test.wav

from mutagen.

lazka avatar lazka commented on May 24, 2024

Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):


From [email protected] on March 24, 2010 13:21:59

Patch+Testfile attached.

I made the peak calculation the same as with SV7, but I think it is wrong in both
cases, or QL needs to convert them somehow.. I guess you know more about this.

Attachment: mpc-sv8.patch sv8_header.mpc

from mutagen.

lazka avatar lazka commented on May 24, 2024

Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):


From [email protected] on July 19, 2009 19:48:57

Summary: Musepack: Support new Musepack SV8 API

from mutagen.

lazka avatar lazka commented on May 24, 2024

Original comment by Christoph Reiter (Bitbucket: lazka, GitHub: lazka):


From [email protected] on July 06, 2009 00:00:45

Wow, they made the header format really crap.

Labels: -Type-Defect Type-Enhancement Component-Logic

from mutagen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.