IPB

Welcome Guest ( Log In | Register )

> foobar2000 Tech Support Forum Rules

Please read foobar2000 Tech Support Forum Rules before posting and comply with all the points.
Failure to provide all the information pointed out in the above document in your post is considered wasting other people's time and in extreme cases will lead to your topic getting locked without a reply.


See also: Hydrogenaudio Terms of Service.

 
Reply to this topicStart new topic
converter error with multiple encoder instances, overwrighting a file that's being encoded results in the encoding
kotekzot
post Feb 11 2008, 15:45
Post #1





Group: Members
Posts: 26
Joined: 9-May 06
Member No.: 30599



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.

This post has been edited by kotekzot: Feb 11 2008, 15:48
Go to the top of the page
+Quote Post
Purple Monkey
post Feb 11 2008, 18:50
Post #2





Group: Members
Posts: 473
Joined: 25-June 05
Member No.: 22962



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.
Go to the top of the page
+Quote Post
kotekzot
post Feb 11 2008, 19:37
Post #3





Group: Members
Posts: 26
Joined: 9-May 06
Member No.: 30599



thanks, i know that, but i don't want to let my other 3 cores idle wink.gif
Go to the top of the page
+Quote Post
thuan
post Feb 12 2008, 03:32
Post #4





Group: Members
Posts: 964
Joined: 10-June 06
Member No.: 31716



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?
Go to the top of the page
+Quote Post
kotekzot
post Feb 12 2008, 11:44
Post #5





Group: Members
Posts: 26
Joined: 9-May 06
Member No.: 30599



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.
Go to the top of the page
+Quote Post
foosion
post Feb 12 2008, 11:55
Post #6





Group: FB2K Moderator (Donating)
Posts: 4489
Joined: 24-February 03
Member No.: 5153



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?


--------------------
http://foosion.foobar2000.org/ - my components for foobar2000
Go to the top of the page
+Quote Post
kotekzot
post Feb 12 2008, 12:00
Post #7





Group: Members
Posts: 26
Joined: 9-May 06
Member No.: 30599



you make it sound like i'm an idiot wink.gif
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.
Go to the top of the page
+Quote Post
nilla
post Feb 13 2008, 06:24
Post #8





Group: Members
Posts: 42
Joined: 21-October 07
Member No.: 48032



(EDIT: Nevermind...)

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

This post has been edited by nilla: Feb 13 2008, 06:25
Go to the top of the page
+Quote Post
foosion
post Feb 13 2008, 10:01
Post #9





Group: FB2K Moderator (Donating)
Posts: 4489
Joined: 24-February 03
Member No.: 5153



QUOTE (kotekzot @ Feb 12 2008, 12:00) *
you make it sound like i'm an idiot wink.gif
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. tongue.gif

Anyway, thanks for clearing up what triggers the problem.


--------------------
http://foosion.foobar2000.org/ - my components for foobar2000
Go to the top of the page
+Quote Post
kotekzot
post Feb 13 2008, 10:08
Post #10





Group: Members
Posts: 26
Joined: 9-May 06
Member No.: 30599



glad i could help smile.gif
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 28th December 2014 - 22:19