-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
M4Bs modified by Tone 0.1.6+ will not show when played in mpv #79
Comments
I'm going to take a look. Could you provide a non copyrighted example file and the commands to reproduce this, would save me a lot of time. |
Hello,
Thank you for your reply!
I checked, but all my m4b contain copyrighted or private materials. I tested on my system with 3 different m4b from different sources, and the problem persisted. I could maybe send you an m4b I create myself, but I am unsure whether that would be useful.
Here is the steps I followed for each test:
- create copy of file
`cp linux_org.m4b linux.m4b`
- - check tone version
`tone -v`
- - change metadata w. tone 0.1.5
`tone tag linux.m4b --meta-genre=Audiobook`
- - open file in player -> plays with window
`mpv linux.m4b --force-window=yes`
- change version, curl, tar, mv, check tone version, repeat
- - open file -> plays without window (unexpected)
- - "fix" file with ffmpeg, removes some metadata and a lot of new streams
`ffmpeg -i linux.m4b -map 0:0 -c copy linux_fix.m4b`
- - open file in player -> plays with window
- change version, repeat, results for all tested same as before
|
Ok, I reproduced it with one file, but it's not that easy. Usually I use the following commands to reproduce it on a non-copyrighted file: # create a 5 seconds sample silence
ffmpeg -ar 48000 -ac 1 -f s16le -i /dev/zero -t 5 -y sample.wav
# convert wav to m4b
ffmpeg -i sample.wav -f mp4 sample.m4b
# download a sample cover
wget -c https://picsum.photos/id/237/500/500 -O cover.jpg
# embed the cover into the sample
ffmpeg -i sample.m4b -i cover.jpg -map 0 -map 1 -c copy -disposition:v:1 attached_pic -f mp4 ready.m4b Now, if I use tone to tag this file, everything works flawless. |
Hello, thank you for your reply. I used it as a base and created a non-copyright file. Important: skipping the embed cover step seems key! Github does not support m4b attachments, so I attached two silent m4b files as zip.
Here are my steps for creating the m4b, I wanted to get as close to my copyrighted file in terms of metadata as possible, so there are likely some unnecessary steps. click to show
|
@99bugsleft BTW: I changed your comment to include a I let you know as soon as I find out something, may take a while though. |
Hello. I am not very familiar with audio formats, so please bear with me. If this is a bug in mpv and not tone, please close the ticket.
I use debian based. x64.
mpv:
Tone version works with mpv:
Tone version does not work with mpv:
I did not test 0.1.7, 0.1.9, and 0.2.0.
I use tone to add metadata to my m4b files. Today, I checked if there is a new version as I had been using v1.4 for some time. I used 2.3 to modify my audio. Afterwards, it would still play in mpv but the window would be hidden/cannot be seen/there is no GUI.
ffprobe shows this:
If I do this, the file opens as expected again:
ffmpeg -i "linux.m4b" -map 0:0 -c copy "linux_fix.m4b"
But it removes some of the metadata.
If I use tone 0.1.4 or 0.1.5, no new stream is created when changing the metadata:
As tone 0.1.5 does everything I need, I will just use the old version for now, but I am curious what the issue is.
If you need more data, I am happy to provide. Thank you for developing this amazing tool!
The text was updated successfully, but these errors were encountered: