EDIT - SOLUTION FOUND :I changed output container to m4a & problem's solved!
Got the idea from 4th comment of top answer here: https://stackoverflow.com/questions/9913032/how-can-i-extract-audio-from-video-with-ffmpeg
Not really well versed with codecs & stuff, I was using aac container as original MP4 showed it contained an AAC codec in the audio track.
ORIGINAL QUESTION:
Hi all, trying to use ffmpeg to batch process multiple files, but faltering at the very first step. Below problem happens with multiple input files.
Output file should be: 12m10s duration. Actual turns out to be: 11m19s duration.
But actual file keeps playing beyond 11m19s even though timestamp halts there. So cutting is done properly, just the ending timestamp is wrong.
FFMPEG command I run (to extract audio from a big file): `ffmpeg -f concat -i input.txt -vn -acodec copy out.aac`
input.txt:
file 'input.mp4'
inpoint 40:45
outpoint 47:02
file 'input.mp4'
inpoint 47:19
outpoint 48:24
file 'input.mp4'
inpoint 49:43
outpoint 52:42
file 'input.mp4'
inpoint 52:53
outpoint 54:42
Get a bunch of "application provided invalid non monotonically increasing dts to muxer in stream" warnings. Any ideas how to fix? Thank you.
FFMPEG full log: [https://pastebin.com/m9iHgz8P](https://pastebin.com/m9iHgz8P)
input.mp4 metadata: [https://pastebin.com/S2GmMgz9](https://pastebin.com/S2GmMgz9)
FFMPEG version - 4.2
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 1 of 1
Thread
-
Last edited by BillyP; 18th Sep 2022 at 14:18.
Similar Threads
-
FFMPEG incorrect audio stream size for encoded file
By iKron in forum AudioReplies: 12Last Post: 14th May 2022, 16:28 -
FFMpeg Auto output Name on .bat Script file
By Daringbaaz in forum Newbie / General discussionsReplies: 10Last Post: 6th Dec 2020, 08:44 -
Create batch file for ffmpeg to increment the file output
By Bassquake in forum Video ConversionReplies: 2Last Post: 25th Nov 2019, 05:03 -
ffmpeg 4.1.4 question regarding "limited color range" output file
By bokeron2020 in forum Newbie / General discussionsReplies: 12Last Post: 1st Aug 2019, 17:28 -
FFMpeg merging audio files truncates output to shortest audio file
By Wayneos in forum Video ConversionReplies: 0Last Post: 3rd Jul 2019, 07:07