How to split m4b file into many tracks on linux

I do have an audiobook with m4b extension, and I wish to split it into many tracks so that it becomes more manageable on my mobile.

Through splitting m4a into multiple files with ffmpeg, I successfully splitted m4a files.

My working command isffmpeg -i <filename> -map 0 -f segment -segment_time 1800 -reset_timestamps 1 -c copy "$output%03d.m4a" -c:a aac which splits into 0.5 hour chunks.

I wish to do the same with my m4b file. I tried to rename it from .m4a to .m4b, and even though the audio worked on my PC the conversion failed, Showing:

[ipod @ 0x555697bea640] Could not find tag for codec mjpeg in stream #1, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument

enter image description here

1 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like