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

Closed
opened 2026-02-20 21:11:42 -05:00 by deekerman · 2 comments
Owner

Originally created by @ghost on GitHub (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)

Originally created by @ghost on GitHub (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)
Author
Owner

@FiloSottile commented on GitHub (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 commented on GitHub (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).
Author
Owner

@ghost commented on GitHub (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?

@ghost commented on GitHub (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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#397
No description provided.