Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown decoder 'copy' #4

Open
dmitry-rutsky opened this issue Apr 15, 2012 · 2 comments
Open

Unknown decoder 'copy' #4

dmitry-rutsky opened this issue Apr 15, 2012 · 2 comments

Comments

@dmitry-rutsky
Copy link

There is an error with newer versions of ffmpeg under some conditions that has to do with order of arguments in the ffmpeg call. I fixed it as follows:

--- /library/arts/artacademy.com/m4b.py 2012-04-15 23:57:27.000000000 +0400
+++ m4b.py      2012-04-16 00:40:22.000000000 +0400
@@ -296,7 +296,7 @@
 
         values = dict(ffmpeg=args.ffmpeg, duration=str(chapter.duration()),
             start=str(chapter.start), outfile=encoded_file, infile=fname)
-        split_cmd = '%(ffmpeg)s -y -acodec copy -t %(duration)s -ss %(start)s -i %(outfile)s %(infile)s'
+        split_cmd = '%(ffmpeg)s -y -t %(duration)s -ss %(start)s -i %(outfile)s -acodec copy %(infile)s'
 
         log.info("Splitting chapter %2d/%2d '%s'..." % (chapter.num, len(chapters), chapter_name))
         log.debug('Splitting with command: %s' % (split_cmd % values))
@markcross
Copy link

Hi I got this error as well and dmitry's patch worked for me to.

THANK YOU

@jpswade
Copy link

jpswade commented Sep 28, 2015

👍

parsoj pushed a commit to parsoj/m4b-converter that referenced this issue Aug 30, 2016
from valekhz#4
a patch is suggested to fix an """ nknown decoder 'copy'" issue.
This commit is just an application of that patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants