-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Cannot extract chapters #263
Comments
There is probably an issue with the required dependencies ( |
In Archlinux, using an aur helper: |
Ok, I think that since I did not release a stable version yet, the aur is not using the latest version. Try the following:
Now you have the latest release. If you also use Let me know if this fixes the issue. If not, I'd recommend to use the docker image, which contains all required dependencies and the latest pre-release. |
@sandreas I have done it before but it still no change. sudo ls -l
total 524
-rw-r--r-- 1 wasif wasif 534532 May 15 03:23 m4b-tool.tar.gz
drwx------ 2 root root 40 Aug 24 00:10 snap-private-tmp
drwxr-xr-x 3 wasif wasif 60 Aug 24 00:14 symfony-cache
drwx------ 3 root root 60 Aug 24 00:10 systemd-private-fa07ef3cf9634fe1a45ab7a48ac8c219-bluetooth.service-yU4GGO
drwx------ 3 root root 60 Aug 24 00:10 systemd-private-fa07ef3cf9634fe1a45ab7a48ac8c219-dbus-broker.service-78CGBG
drwx------ 3 root root 60 Aug 24 00:10 systemd-private-fa07ef3cf9634fe1a45ab7a48ac8c219-polkit.service-qa2TXs
drwx------ 3 root root 60 Aug 24 00:10 systemd-private-fa07ef3cf9634fe1a45ab7a48ac8c219-systemd-logind.service-w8dLRr
drwx------ 3 root root 60 Aug 24 00:10 systemd-private-fa07ef3cf9634fe1a45ab7a48ac8c219-systemd-resolved.service-3T8p77
drwx------ 3 root root 60 Aug 24 00:10 systemd-private-fa07ef3cf9634fe1a45ab7a48ac8c219-systemd-timesyncd.service-lvPppf
drwx------ 3 root root 60 Aug 24 00:10 systemd-private-fa07ef3cf9634fe1a45ab7a48ac8c219-upower.service-AVT4n2
Error
|
Ok, I tracked it down to In the meantime it would be great if you could run with ```bash m4b-tool split --debug --audio-format mp3 --audio-channels 2 --audio-samplerate 22100 "sherlock.m4b" |
Thanks @sandreas for wrapping my outputs. I hope you find them well this time. Command: Output:
|
Mmh, could not reproduce it, works for me (I tried hard). Could you as a last step (before the need for sharing the original file) try the following:
# --debug will make m4b-tool keep temp files
m4b-tool split --debug --audio-format mp3 --audio-channels 2 --audio-samplerate 22100 "sherlock.m4b"
# ffmpeg command is executed to extract part of the file and seems to fail
'ffmpeg' '-nostats' '-loglevel' 'panic' '-hide_banner' '-i' 'sherlock_splitted/001-1 - A Scandal in Bohemia.mp3-finished.m4b' '-i' '/tmp/wSk28U.txt' '-map_metadata' '1' '-id3v2_version' '3' '-max_muxing_queue_size' '9999' '-movflags' '+faststart' '-vn' '-ab' '128k' '-ar' '22100' '-ac' '2' '-acodec' 'libmp3lame' '-f' 'mp3' 'sherlock_splitted/001-1 - A Scandal in Bohemia.mp3'
|
As you told:
Command:
No outputs were produced, and no files were extracted. Here is the file I am trying to split: removed to prevent copyright issues (I already got it for reproducing, thanks) |
@Juhayer-Al-Wasif |
So here is the reason, it did not work: You provided m4b-tool split --debug --audio-format mp3 --audio-channels 2 --audio-samplerate 22050 "sherlock.m4b" Since
This is how I will try to improve this in the next pre-release. |
one little question before I close the issue as resolved: Do I need to compile ffmpeg for better quality rather than just installing it even in arch linux? |
Please leave it open, I have to integrate the mentioned improvements. I'm going to close it as soon as it's done.
There is no NEED to recompile it - it is just a slight improvement when using So in your case, I don't think it makes sense to recompile |
m4b-tool split --audio-format mp3 --audio-channels 2 --audio-samplerate 22100 --cover folder.jpg "sherlock.m4b"
In SplitCommand.php line 400:
could not extract chapter 1 - A Scandal in Bohemia: (234)
split [--logfile [LOGFILE]] [--debug] [-f|--force] [--tmp-dir [TMP-DIR]] [--no-cleanup] [--no-cache] [--ffmpeg-threads [FFMPEG-THREADS]] [--platform-charset [PLATFORM-CHARSET]] [--ffmpeg-param [FFMPEG-PARAM]] [-a|--silence-min-length [SILENCE-MIN-LENGTH]] [-b|--silence-max-length [SILENCE-MAX-LENGTH]] [--min-chapter-length [MIN-CHAPTER-LENGTH]] [--max-chapter-length [MAX-CHAPTER-LENGTH]] [--enable-improvers [ENABLE-IMPROVERS]] [--disable-improvers [DISABLE-IMPROVERS]] [-p|--filename-template [FILENAME-TEMPLATE]] [--name [NAME]] [--sortname [SORTNAME]] [--album [ALBUM]] [--sortalbum [SORTALBUM]] [--artist [ARTIST]] [--sortartist [SORTARTIST]] [--genre [GENRE]] [--writer [WRITER]] [--albumartist [ALBUMARTIST]] [--year [YEAR]] [--description [DESCRIPTION]] [--longdesc [LONGDESC]] [--comment [COMMENT]] [--copyright [COPYRIGHT]] [--encoded-by [ENCODED-BY]] [--grouping [GROUPING]] [--purchase-date [PURCHASE-DATE]] [--encoder [ENCODER]] [--cover [COVER]] [--skip-cover-if-exists] [--skip-cover] [--series [SERIES]] [--series-part [SERIES-PART]] [--remove [REMOVE]] [--ignore-source-tags] [--prefer-metadata-tags] [--audio-format [AUDIO-FORMAT]] [--audio-extension [AUDIO-EXTENSION]] [--audio-channels [AUDIO-CHANNELS]] [--audio-bitrate [AUDIO-BITRATE]] [--audio-samplerate [AUDIO-SAMPLERATE]] [--audio-codec [AUDIO-CODEC]] [--audio-quality [AUDIO-QUALITY]] [--audio-profile [AUDIO-PROFILE]] [--adjust-for-ipod] [--use-nero-chapter-format] [--fix-mime-type] [--no-conversion] [--trim-silence] [--add-silence [ADD-SILENCE]] [-o|--output-dir [OUTPUT-DIR]] [--use-existing-chapters-file] [--reindex-chapters] [--fixed-length [FIXED-LENGTH]] [--chapters-filename [CHAPTERS-FILENAME]] [--by-silence] [--]
The text was updated successfully, but these errors were encountered: