GithubHelp home page GithubHelp logo

Comments (9)

audiamus avatar audiamus commented on July 16, 2024 1

The problem may be caused by the way the chapter meta data is added to the file. For MPEG4 (m4a/m4b) this is currently handled by FFmpeg.

MPEG4 chapters come in two flavors, nicknamed after their origin: "Nero" and "Quicktime". Some players can only interpret one of the two. iTunes, for instance, can read Quicktime, but not Nero, VLC on Android only Nero. For maximum compatibility, FFmpeg attempts to write both. Which will explain why tools like MediaInfo report two chapter lists ("menus").

However, it appears that the FFmpeg chapter encoding may corrupt one of the two chapter encodings and possibly the entire file. I can reproduce the problem for the chapter list, where I only get correct output for one.

As it is unlikely to get this resolved with FFmpeg, my approach was to find a different method for adding the chapter data. And I discovered another library which supports MPEG4 chapters: https://github.com/Zeugma440/atldotnet. It looks very promising, for both Nero and Quicktime, particularly as its developer is very helpful. So I will replace FFmpeg with ATL.net for the MPEG4 chapter adding task.

(I can only award a single GitHub star to him, but he deserves many more.)

from aaxaudioconverter.

audiamus avatar audiamus commented on July 16, 2024

Can you upload a log file for each of the two cases: unplayable, playable on some? If it is related to meta data then log level 3 should suffice.

AAX Audio Converter uses up to three different methods to add meta data, depending on the current parameters and on the book. The log file will list all parameters, the chapter meta data and which methods it applies.

from aaxaudioconverter.

Chirishman avatar Chirishman commented on July 16, 2024

Sorry about not getting back to you promptly with the logs, just started a new job and I've been busy getting up to speed/unscrewing their documentation.

Super glad that you've been able to repro the issue. I'll still get you some logs tomorrow though for both types of result I'm seeing.

The two players I've been testing this with are Plex Media Server (which uses ffmpeg) and Media Player Classic Home Cinema (x64)/Combined Community Codec Pack

from aaxaudioconverter.

audiamus avatar audiamus commented on July 16, 2024

I'll still get you some logs tomorrow though for both types of result I'm seeing.

Yes, please. Can you make them log level 4? The FFmpeg output might provide additional clues.

from aaxaudioconverter.

Chirishman avatar Chirishman commented on July 16, 2024

AaxAudioConverter_2020-09-09_001.log
Here you go. This shows generation of two files with the corrupted-looking second menu in mediainfo and which will not play back in Plex.

I'm having trouble reproing the completely unplayable behavior even with all of the same files. Maybe it was something weird/transitory in memory that was cleared by a reboot or maybe it was something that only happens when you try to process a very large number of files at once. Unsure.

from aaxaudioconverter.

audiamus avatar audiamus commented on July 16, 2024

Thanks a lot. I have looked into it. No, there isn't the slightest hint that FFmpeg has any problems. So, this just confirms my decision to go for a totally different method and switch over to ATL.net.

or maybe it was something that only happens when you try to process a very large number of files at once.

Even then this shouldn't happen. If you encounter it again, please save the log file. Log level 3 should do. (If you remember to clear the log directory from time to time, you can leave logging on. It won't slow down the conversion much, definitely not at level 3.)

from aaxaudioconverter.

Chirishman avatar Chirishman commented on July 16, 2024

Hey, the files that are being output still won't play in certain players (Plex) so I don't think this is really resolved.

Are there currently any startup flags/options that I could use to make it try only one of the three metadata writing options at a time or just skip the metadata so I can try manually adding it later? The only way that I can think of to do that at the moment is to go to MP3 and then back to m4v and I'd rather not do that as I'd get some quality loss due to the repeated transcoding between lossy formats.

from aaxaudioconverter.

audiamus avatar audiamus commented on July 16, 2024

The modified chapter meta creation will come with the next version 1.15.

Until then one option is to convert to MP3. Disadvantage is that this is quite slow. With MP3, chapters are encoded as ID3v2 and that does not seem to cause problems - except that very few players are able to read ID3v2 chapter data.

The other and probably better option is to split the book into chapters, either MP3 or M4A/M4B. In that case no chapter data will be written.

from aaxaudioconverter.

mcrommert avatar mcrommert commented on July 16, 2024

Excellent to hear this as this is my only current issue - converted a library of around sixty titles and 5-7 were broken this way

from aaxaudioconverter.

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.