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

Unrecognized option 'newaudio' #20

Open
ricardofunke opened this issue Mar 26, 2013 · 2 comments
Open

Unrecognized option 'newaudio' #20

ricardofunke opened this issue Mar 26, 2013 · 2 comments

Comments

@ricardofunke
Copy link

It seems that the ffmpeg -newaudio option doesn't exists anymore. So I can't convert to devede with error:

Unrecognized option 'newaudio'.
Error splitting the argument list: Option not found

My ffmpeg version: 1:1.1.3
My devede version: 3.23.0

@ricardofunke
Copy link
Author

I've commented the line 546 of devede_ffmpeg_convert.py and it seems it's working...

The block code is:

            while (at>1):
                    if (volume!=100):
                            command_var.append("-vol")
                            command_var.append(str((256*volume)/100))
                    #command_var.append("-newaudio")
                    at-=1

@hencepersson
Copy link

Your solution doesnt work if the user wants to preserve several audio tracks..
I have made a FIX but as I am not a PC programmer and this is in the middle of the night the fix aint pretty and imposes some new problems..

To get it to work i made some changes to the devede_ffmpeg_convert.py

I choose the option that the tracks are in AC3 and to copy them then I made these changes in the script file:

240 if (audiodelay!=0.0) and (copy_audio==False) and (isvob==False):
241 command_var.append("-itsoffset")
242 command_var.append(str(audiodelay))
243 command_var.append("-i")
244 command_var.append(videofile["path"])
245
246 if (isvob==False):
247 command_var.append("-map")
248 command_var.append("0:0")
249 for l in range(audio_tracks):
250 command_var.append("-map")
251 command_var.append("0"+":"+str(l+1))

543 #at=audio_tracks
544 #while (at>1):
545 #if (volume!=100):
546 #command_var.append("-vol")
547 #command_var.append(str((256*volume)/100))
548 #command_var.append("-newaudio")
549 #at-=1

My fix wont work if you change the audio delay setting..
Hopefully someone can fix this in a future version of DEVEDE..

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

2 participants