VideoHelp Forum
+ Reply to Thread
Results 1 to 9 of 9
Thread
  1. I would like to cut out and save an audio section from a mkv file in ffmpeg. The audio track is AAC. Would saving the output as AAC decrease the output quality since it's a lossy format?

    I tried this command, but it didn't work:
    Code:
    ffmpeg -i input.mkv -vn -c:a -ss 00:01:42:11 -t 00:02:02:19 output.aac
    Here is the error description that cmd gave me:
    [NULL @ 0000000005629940] Unable to find a suitable output format for '00:01:42:11'
    00:01:42:11: Invalid argument
    Quote Quote  
  2. No quality loss if you use "copy"

    -c:a copy

    Code:
    ffmpeg -i input.mkv -vn -c:a copy -ss 00:01:42:11 -t 00:02:02:19 output.aac
    Quote Quote  
  3. Ah, I forgot to add that.

    cmd gave me this now:
    Invalid duration specification for ss: 00:01:42:11
    Quote Quote  
  4. Ah, I forgot to add that.

    cmd gave me this now:
    Invalid duration specification for ss: 00:01:42:11
    Quote Quote  
  5. The notation is hh:mms.ms

    -ss 00:01:42.011 -t 00:02:02.019
    Quote Quote  
  6. This gives me a 01:57 minute long audio clip. I was trying to get a 20 second clip (or 00:00:20:007, to be specific).
    Quote Quote  
  7. -t is duration, not end time

    -t 00:00:20.007

    If you still can't get it working, you can demux the audio and use mp3directcut (it works on AAC as well)
    Quote Quote  
  8. I tried that before as well, but it didn't work then. Looks like I used a comma instead of a dot for the microseconds part.
    I have gotten a higher quality audio source now, so I'll just have to redo this with an AC3 track.
    Thanks!
    Quote Quote  
  9. Member
    Join Date
    Feb 2004
    Location
    United States
    Search Comp PM
    This sometimes works better for duration seeking:

    Code:
    ffmpeg -ss 00:01:42.011 -i input.mkv -to 00:00:20.007 -vn -c:a copy output.aac
    PB
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!