MathewSachin/Captura

Trim tool FFmpeg error on Windows (Unknown decoder 'copy')

Open

#410 opened on May 18, 2019

View on GitHub
 (3 comments) (0 reactions) (0 assignees)C# (10,680 stars) (1,971 forks)batch import
bughelp wanted

Description

I found a bug in order of args in trim tool:

ARGS:
-------------
-ss 00:00:00.0000000 -to 00:01:00.0000000 -acodec copy -i "C:\rec.webm"  "C:\trimmed_rec.webm"

OUTPUT:
-------------
ffmpeg version N-93880-gc3458f06f4 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8.3.1 (GCC) 20190414
... bla-bla
Unknown decoder 'copy'

By little bit of googling, I found the solution lists.ffmpeg.org/why_this_ffmpeg_shell_command_is_wrong:

So, this is okay:
ffmpeg -i input -c:v copy output
This is not okay:
ffmpeg -c:v copy -i input output

So it's true, direct command like this works fine: ffmpeg -i "C:\rec.webm" -ss 00:00:00.0000000 -to 00:01:00.0000000 -acodec copy "C:\trimmed_rec.webm"

Desktop:

  • OS: Windows 10 x64 v1803
  • RAM: 8GB
  • CPU: i5 2.6GHz
  • Graphic Card: GTX760 2GB

Contributor guide