Devede
Devede copied to clipboard
Unrecognized option 'newaudio'
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
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
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..