You are not logged in.
Pages: 1
I like to listen to audio books. Unfortunately, they can be very long (3-9 hours or more!). Using ffmpeg it is possible to break the file into smaller segments:
ffmpeg -i infile.mp3 -map 0 -f segment -segment_time seconds -c copy outfile%03d.mp3
where seconds is the length of each segment you want. the %03d adds 3 digit sequential numbers after the outfile name.
There may be easier or more controllable methods but this does work. The main difficulty is that the last word of the out put file may be cut and continued to the next file.
Offline
Depends if it is a question of breaking down to smaller chunks to avoid hitting system resources or just to make it easier to stop part way through.
If the latter then smplayer does a great job as it saves your place with any file it plays.
Offline
Well, actually these are audio books that I download from youtube, then strip off the audo. They are on my shared directory and I often listen from my Android tablet. So far I haven't found anything on Android that will remember my place in an audio file. This is rather an intermediate solution until I do.
Offline
Does the file have pauses between "chapters"? if so you could use ffmpegs -af silencedetect to find them and split the file accordingly, there is a stack overflow question here that might help.
Offline
There is a short pause (usually), but there are times within some chapters where a pause occurs, often even longer than the intra-chapter pauses. What I have started doing is to break the audio in 15 minute segments. Then if I have to stop in the middle of one it is easier to find my place than it is in a 5 hour file!
Offline
Well, actually these are audio books that I download from youtube, then strip off the audo. They are on my shared directory and I often listen from my Android tablet. So far I haven't found anything on Android that will remember my place in an audio file. This is rather an intermediate solution until I do.
Android Audiobook app does that. Interface is a little awkward on a tablet as it is designed for a phone screen - I have it installed for my wife to listen to Agatha Christie books. You have to drag up from the bottom of the screen to get to the play item - just need to fiddle a bit but it works. Not sure if it will work from a network location as blurb says local device only.
Offline
I gave it a try. Like you said it does not seem to have network capabilities. But it does look good.
Thanks for trying!
Offline
I just don't understand what's the deal with several-hours-long audiobooks. Doesn't your playback soft save the timings?
Offline
That depends on the player or device. Some do and some don't. Plus on some devices you have limited space and cannot put several 8 or 9 hour audio files on them. When reading books I may have 3 or 4 going at a time, same with audio books. I may listen to a portion of one book one day and a portion of another on the next day.
Can you think of another reason why the developers of ffmpeg would include the ability to automatically segment an audio file?
Offline
Frankly, I have ever used FFmpeg, which cuts videos and audios based on the command line. However, for new beginners like me, it's really hard to finish it. I have to refer to many articles and cuts with the codec I guess it's right. Anyway, I prefer to use Joyoshare Media Cutter to do the same thing. It's simple, lossless, and fast to cut my MP3 files and other large videos. BTW, FFmpeg may be better for professionals.
Offline
There is also handbrake which is basically a frontend GUI for ffmpeg, and is available in the main Debian repository and although primarily aimed at video cutting I used it for audio too. Although I am not sure if it will cut up an audio CD as I haven't needed to use it in a long time as I find the command line quicker and easier with ffmpeg, but admittedly there is a learning curve.
Offline
I find the command line quicker and easier with ffmpeg, but admittedly there is a learning curve.
There is also a "forgetting curve" that I suffer from! If I don't use a command for a few months I forget the exact syntax. So, I now have a text file I call "tips" that I put such things into.
Offline
I suffer that too and have a handy notepad (real paper!) that I use often, the problem then is finding it as everything is in date order as it happens and I have to remember when i did something to be able to find it
Offline
As I tend to do the same, with files named somewhat haphazardly like 'q4os-install.txt', I resort to Markdown to keep it all sane...
Like thus:
---
<https://www.some.url/>; 2020-07-30
Yadda-yadda-yadda
---
I also try to do the same -- minus the Markdown -- in file comments whenever I change system files.
Offline
Frankly, I have ever used FFmpeg, which cuts videos and audios based on the command line. However, for new beginners like me, it's really hard to finish it. I have to refer to many articles and cuts with the codec I guess it's right. Anyway, I prefer to use Joyoshare Media Cutter to do the same thing. It's simple, lossless, and fast to cut my MP3 files and other large videos. BTW, FFmpeg may be better for professionals.
What are the advantages and disadvantages of using Joyoshare Media Cutter compared to FFmpeg for video and audio editing, especially for beginners?
Offline
Isn't the first a commercial product? That sums it...
BTW, I find the OP command example somewhat over-complicated -- I reckon the following will be more than enough for most folks.
ffmpeg -ss 00:00:00 -to 00:00 -i infile.mp3 -c copy outfile.mp3
Offline
Hi, you could use Audacity...
Offline
Hey! FFMPEG is a great tool, but yeah, cutting words can be a pain. Try using the -af "apad" option – it adds some silence at the end of each segment, which might help. You can also try Audacity for more precise cutting, like the person just above me said.
Of course, Audacity has a bit of a learning curve, but it's worth getting to know. I work on it a lot and it's fun! Good luck!
Offline
Pages: 1