MathewSachin/Captura

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

Open

#410 ouverte le 18 mai 2019

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)C# (1 971 forks)batch import
bughelp wanted

Métriques du dépôt

Stars
 (10 680 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur