I've an .m4a audio file and wish to take the front 8 secs away and keep the rest of the file intact, then once this first step is done discard the last 8 seconds of the file and keep the rest of the file intact.
So in essence the first 8 seconds will be completley discarded / removed from the file, and the file will start at the 8th second as if the previous 8 seconds never existed.
Similarly the last 8 seconds of the file will be discarded.
Do this all without re-encoding the file.
(EDIT: Other answers on here and elsewhere I have seen, but I could not get to work becasue other answers require the start and end time of the trimmed part to be given. What I need is ffmpeg to provide the end timestamp and start time stamp of the .m4a audio file without having to work this out and feed it into the command)
I have this for trimming the front of the file
ffmpeg -t 00:00:08 -acodec copy -i in_file.m4a out_file.m4a
but nothing for trimming the end of the file.
I can't get what I have to work.
(I've seen some other answers here and elsewhere, but nothing that seems to get me there)