Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: converter error with multiple encoder instances (Read 4259 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

converter error with multiple encoder instances

usually, when telling the converter to overwrite a file it will work without problems, but if multiple encoding threads are running it may return a sharing violation error and quit the conversion (the progress window disappears, foobar runs fine) if the file it tries to overwrite is currently being encoded by another thread.

this problem occurs in foobar2000 0.9.5

ooops, the topic description field is too short.

converter error with multiple encoder instances

Reply #1
You can set Preferences -> Advanced -> Tools -> Converter -> Thread Count to 1 so that foobar will only use one thread at a time. This will stop two instances of that encoder trying to write to the same file.

converter error with multiple encoder instances

Reply #2
thanks, i know that, but i don't want to let my other 3 cores idle

converter error with multiple encoder instances

Reply #3
I don't have a quad-core only a dual, but I haven't encountered this problem once. IIRC there're certain decoders (especially those that decode game music files) that are not thread-safe. So what do you transcode from and to?

converter error with multiple encoder instances

Reply #4
i was using oggenc2 to transcode mp3s to q5 oggs for my flash player. the best way to simulate it would be to add the same track twice and then attempt to transcode it.

converter error with multiple encoder instances

Reply #5
So the problem is that you try to convert the same file multiple times in the same batch set and that converter tries to generate the same output file multiple times?

converter error with multiple encoder instances

Reply #6
you make it sound like i'm an idiot
i was converting multiple albums to the same directory with the following naming scheme %artist% - %title%, so if there were same tracks on different albums they would overlap. i used to do 'overwrite all' so i wouldn't have to skip 100 times on my single core pc, but now that i encode 4 songs at the same time sharing violation occurs.

converter error with multiple encoder instances

Reply #7
(EDIT: Nevermind...)

Sounds like you're going to have to add a unique variable to your file name scheme.

converter error with multiple encoder instances

Reply #8
you make it sound like i'm an idiot
Sorry for that, I was just trying to understand the problem. Never mind that doing idiotic things to software is a good way to reveal bugs, I have quite some experience with that.

Anyway, thanks for clearing up what triggers the problem.

converter error with multiple encoder instances

Reply #9
glad i could help