Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--extract-audio option doesn't create Xing header #513

Closed
ghost opened this issue Nov 4, 2012 · 2 comments
Closed

--extract-audio option doesn't create Xing header #513

ghost opened this issue Nov 4, 2012 · 2 comments

Comments

@ghost
Copy link

@ghost ghost commented Nov 4, 2012

I'm using the default --extract-audio option which on my system (ubuntu 12.04 with ffmpeg) does the following

ffmpeg -y -i input.flv -vn -acodec libmp3lame -ab 128K -- output.mp3

However this doesn't create the Xing header on the .mp3 when going from aac->libmp3lame. For older media players this causes the audio to loop due to the discrepancy between the song length in the header and the actual song length.

Does anyone know the correct syntax to create Xing headers?

You can close this issue as libmp3lame doesn't have the capability to create xing headers (you need another program like taglib to do that)

@FiloSottile
Copy link
Collaborator

@FiloSottile FiloSottile commented Nov 5, 2012

I think LAME makes his own variation of header.
Ref: http://mp3diags.sourceforge.net/020_mp3_introduction.html

Reopen if there is something we can do to solve this (without adding other dependencies).

@FiloSottile FiloSottile closed this Nov 5, 2012
@ghost
Copy link
Author

@ghost ghost commented Nov 5, 2012

I understand LAME makes it's own variation and it always comes out malformed so that it causes some players to either crash or continually loop the song. Unfortunately the only way we can solve it is by adding other dependencies like the package you suggested.

Does mp3diags have a command-line tool that works on ubuntu (I wasn't able to find one), or can you recommend any other command line mp3 repairing tools for ubuntu?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.