Skip to main content
Topic: Converter problems with qaac (Sharing violation) (Read 12677 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Converter problems with qaac (Sharing violation)

Hello,
qaac is a tool that allows commandline alac and aac encoding. I'm using it for alac with the following converter options:

Extension: m4a
Paramenters: -A - -o %d
Format is: lossless or hybrid
Highest BPS Mode: 24
Output Bit Depth: Auto
Dither: Never

Processing: None
Other: Show status report

Quicktime 7.6.6

When converting foobar2000 logs the following errors:

Code: [Select]
13 out of 45 tracks converted with major problems.

Source: "ACDC - 1979 - Highway To Hell.wv" / index: 1
  Track converted successfully.
Source: "ACDC - 1979 - Highway To Hell.wv" / index: 2
  Track converted successfully.
Source: "ACDC - 1979 - Highway To Hell.wv" / index: 3
  An error occurred while finalizing the encoding process (Sharing violation) : "03. Walk All Over You.m4a"
  Conversion failed: Sharing violation
Source: "ACDC - 1979 - Highway To Hell.wv" / index: 4
  Track converted successfully.
Source: "ACDC - 1979 - Highway To Hell.wv" / index: 5
  An error occurred while finalizing the encoding process (Sharing violation) : "05. Beating Around The Bush.m4a"
  Conversion failed: Sharing violation
Source: "ACDC - 1979 - Highway To Hell.wv" / index: 6
  Track converted successfully.
Source: "ACDC - 1979 - Highway To Hell.wv" / index: 7
  An error occurred while finalizing the encoding process (Sharing violation) : "07. Get It Hot.m4a"
  Conversion failed: Sharing violation
Source: "ACDC - 1979 - Highway To Hell.wv" / index: 8
  An error occurred while finalizing the encoding process (Sharing violation) : "08. If You Want Blood (You've Got It).m4a"
  Conversion failed: Sharing violation
Source: "ACDC - 1979 - Highway To Hell.wv" / index: 9
  Track converted successfully.
Source: "ACDC - 1979 - Highway To Hell.wv" / index: 10
  Track converted successfully.
Source: "ACDC - 1992 - Live [Disc 1].wv" / index: 1
  An error occurred while finalizing the encoding process (Sharing violation) : "01. Thunderstruck.m4a"
  Conversion failed: Sharing violation
Source: "ACDC - 1992 - Live [Disc 1].wv" / index: 2
  Track converted successfully.
Source: "ACDC - 1992 - Live [Disc 1].wv" / index: 3
  An error occurred while finalizing the encoding process (Sharing violation) : "03. Back In Black.m4a"
  Conversion failed: Sharing violation
Source: "ACDC - 1992 - Live [Disc 1].wv" / index: 4
  An error occurred while finalizing the encoding process (Sharing violation) : "04. Sin City.m4a"
  Conversion failed: Sharing violation
Source: "ACDC - 1992 - Live [Disc 1].wv" / index: 5
  Track converted successfully.
Source: "ACDC - 1992 - Live [Disc 1].wv" / index: 6
  Track converted successfully.
Source: "ACDC - 1992 - Live [Disc 1].wv" / index: 7
  An error occurred while finalizing the encoding process (Sharing violation) : "07. Jailbreak.m4a"
  Conversion failed: Sharing violation
Source: "ACDC - 1992 - Live [Disc 1].wv" / index: 8
  An error occurred while finalizing the encoding process (Sharing violation) : "08. The Jack.m4a"
  Conversion failed: Sharing violation
Source: "ACDC - 1992 - Live [Disc 1].wv" / index: 9
  Track converted successfully.
Source: "ACDC - 1992 - Live [Disc 1].wv" / index: 10
  Track converted successfully.
Source: "ACDC - 1992 - Live [Disc 2].wv" / index: 1
  Track converted successfully.
Source: "ACDC - 1992 - Live [Disc 2].wv" / index: 2
  An error occurred while finalizing the encoding process (Sharing violation) : "02. Heatseeker.m4a"
  Conversion failed: Sharing violation
Source: "ACDC - 1992 - Live [Disc 2].wv" / index: 3
  Track converted successfully.
Source: "ACDC - 1992 - Live [Disc 2].wv" / index: 4
  Track converted successfully.
Source: "ACDC - 1992 - Live [Disc 2].wv" / index: 5
  Track converted successfully.
Source: "ACDC - 1992 - Live [Disc 2].wv" / index: 6
  An error occurred while finalizing the encoding process (Sharing violation) : "06. Whole Lotta Rosie.m4a"
  Conversion failed: Sharing violation
Source: "ACDC - 1992 - Live [Disc 2].wv" / index: 7
  Track converted successfully.
Source: "ACDC - 1992 - Live [Disc 2].wv" / index: 8
  An error occurred while finalizing the encoding process (Sharing violation) : "08. Highway To Hell.m4a"
  Conversion failed: Sharing violation
Source: "ACDC - 1992 - Live [Disc 2].wv" / index: 9
  Track converted successfully.
Source: "ACDC - 1992 - Live [Disc 2].wv" / index: 10
  Track converted successfully.
Source: "ACDC - 2008 - Black Ice.wv" / index: 1
  Track converted successfully.
Source: "ACDC - 2008 - Black Ice.wv" / index: 2
  An error occurred while finalizing the encoding process (Sharing violation) : "02. Skies On Fire.m4a"
  Conversion failed: Sharing violation
Source: "ACDC - 2008 - Black Ice.wv" / index: 3
  Track converted successfully.
Source: "ACDC - 2008 - Black Ice.wv" / index: 4
  Track converted successfully.
Source: "ACDC - 2008 - Black Ice.wv" / index: 5
  Track converted successfully.
Source: "ACDC - 2008 - Black Ice.wv" / index: 6
  Track converted successfully.
Source: "ACDC - 2008 - Black Ice.wv" / index: 7
  Track converted successfully.
Source: "ACDC - 2008 - Black Ice.wv" / index: 8
  Track converted successfully.
Source: "ACDC - 2008 - Black Ice.wv" / index: 9
  Track converted successfully.
Source: "ACDC - 2008 - Black Ice.wv" / index: 10
  Track converted successfully.
Source: "ACDC - 2008 - Black Ice.wv" / index: 11
  Track converted successfully.
Source: "ACDC - 2008 - Black Ice.wv" / index: 12
  Track converted successfully.
Source: "ACDC - 2008 - Black Ice.wv" / index: 13
  Track converted successfully.
Source: "ACDC - 2008 - Black Ice.wv" / index: 14
  Track converted successfully.
Source: "ACDC - 2008 - Black Ice.wv" / index: 15
  Track converted successfully.

As you can see the error happens on random basis. I don't know if this is a foobar2000 or qaac problem.

Thanks

Converter problems with qaac (Sharing violation)

Reply #1
I've noticed failure with qaac on some files altough IIRC it was reporting "error code 2". I fixed it by setting "Number of concurrent encodings" to 1
which will only launch 1 instance of qaac at a time.
I think there is a problem with multiple instance of qaac and it's unsure if the problem is in qaac or foo_dop.

Converter problems with qaac (Sharing violation)

Reply #2
"Number of concurrent encodings" is a foo_dop option. I'm talking about the bulit in foobar converter

Converter problems with qaac (Sharing violation)

Reply #3
I believe he is talking about setting Preferences->Advanced->Tools->Converter->Thread count to a value of 1.
elevatorladylevitateme

Converter problems with qaac (Sharing violation)

Reply #4
I didn't see this was about the converter, but there's the same problem with foo_dop. So it is likely a qaac problem when several instances are launched concurrently.

Converter problems with qaac (Sharing violation)

Reply #5
Yes, you are right. That fixes the problem. Thanks.
I made a bug report to the qaac developer.

Converter problems with qaac (Sharing violation)

Reply #6
fixed in this new release:

Quote
release 0.15
posted 2 hours ago by n u

Important bug fix release.

libmp4v2's MP4 optimize function was using temporary file in an inadequate manner by default, and causing problems below:

    * Same temporary filename was used between multiple instances of qaac, which resulted in a failure at the end of the encoding stage.
    * Tempfile's directory was fixed to "..", which means you might have failed encoding if ".." was not writable.

_

Converter problems with qaac (Sharing violation)

Reply #7
The new release does not fix it. The error still persists. The console of foobar tells some more details. It seems to have something to do with tagging:

Code: [Select]
Console Output:
CLI encoder: C:\qaac_0.15\qaac.exe
Destination file: 01. Highway To Hell.m4a
Encoder stream format: 44100Hz / 2ch / 16bps
Command line: "C:\qaac_0.15\qaac.exe" -A - -o "01. Highway To Hell.m4a"
Working folder:
CLI encoder: C:\qaac_0.15\qaac.exe
Destination file: 02. Girls Got Rhythm.m4a
CLI encoder: C:\qaac_0.15\qaac.exe
Destination file: 03. Walk All Over You.m4a
Encoder stream format: 44100Hz / 2ch / 16bps
Command line: "C:\qaac_0.15\qaac.exe" -A - -o "02. Girls Got Rhythm.m4a"
Working folder:
CLI encoder: C:\qaac_0.15\qaac.exe
Destination file: 04. Touch Too Much.m4a
Encoder stream format: 44100Hz / 2ch / 16bps
Command line: "C:\qaac_0.15\qaac.exe" -A - -o "03. Walk All Over You.m4a"
Working folder:
Encoder stream format: 44100Hz / 2ch / 16bps
Command line: "C:\qaac_0.15\qaac.exe" -A - -o "04. Touch Too Much.m4a"
Working folder:
Encoder process still running, waiting...
Encoder process still running, waiting...
Encoder process still running, waiting...
Encoder process still running, waiting...
Encoder process terminated cleanly.
Track converted successfully.
CLI encoder: C:\qaac_0.15\qaac.exe
Destination file: 05. Beating Around The Bush.m4a
Encoder stream format: 44100Hz / 2ch / 16bps
Command line: "C:\qaac_0.15\qaac.exe" -A - -o "05. Beating Around The Bush.m4a"
Working folder:
Encoder process terminated cleanly.
Track converted successfully.
CLI encoder: C:\qaac_0.15\qaac.exe
Destination file: 06. Shot Down In Flames.m4a
Encoder stream format: 44100Hz / 2ch / 16bps
Command line: "C:\qaac_0.15\qaac.exe" -A - -o "06. Shot Down In Flames.m4a"
Working folder:
Encoder process terminated cleanly.
Track converted successfully.
CLI encoder: C:\qaac_0.15\qaac.exe
Destination file: 07. Get It Hot.m4a
Encoder stream format: 44100Hz / 2ch / 16bps
Command line: "C:\qaac_0.15\qaac.exe" -A - -o "07. Get It Hot.m4a"
Working folder:
Encoder process terminated cleanly.
Track converted successfully.
CLI encoder: C:\qaac_0.15\qaac.exe
Destination file: 08. If You Want Blood (You've Got It).m4a
Encoder stream format: 44100Hz / 2ch / 16bps
Command line: "C:\qaac_0.15\qaac.exe" -A - -o "08. If You Want Blood (You've Got It).m4a"
Working folder:
Encoder process still running, waiting...
Encoder process still running, waiting...
Encoder process still running, waiting...
Encoder process terminated cleanly.
Track converted successfully.
CLI encoder: C:\qaac_0.15\qaac.exe
Destination file: 09. Love Hungry Man.m4a
Encoder stream format: 44100Hz / 2ch / 16bps
Command line: "C:\qaac_0.15\qaac.exe" -A - -o "09. Love Hungry Man.m4a"
Working folder:
Encoder process terminated cleanly.
Writing tags to encoded file failed: Sharing violation
An error occurred while finalizing the encoding process (Sharing violation) : "06. Shot Down In Flames.m4a"
Conversion failed: Sharing violation
Encoder process still running, waiting...
CLI encoder: C:\qaac_0.15\qaac.exe
Destination file: 10. Night Prowler.m4a
Encoder stream format: 44100Hz / 2ch / 16bps
Command line: "C:\qaac_0.15\qaac.exe" -A - -o "10. Night Prowler.m4a"
Working folder:
Encoder process terminated cleanly.
Track converted successfully.
Encoder process terminated cleanly.
Writing tags to encoded file failed: Sharing violation
An error occurred while finalizing the encoding process (Sharing violation) : "08. If You Want Blood (You've Got It).m4a"
Conversion failed: Sharing violation
Encoder process still running, waiting...
Encoder process still running, waiting...
Encoder process terminated cleanly.
Track converted successfully.
Encoder process terminated cleanly.
Track converted successfully.
Total encoding time: 0:53.540, 46.50x realtime

Converter problems with qaac (Sharing violation)

Reply #8
The new qaac version fixed the problem I had with foo_dop (which was not reported as a sharing violation) and concurrent encodings.
There's maybe another issue. Possibly qaac do not close the generated file correclty ?

Converter problems with qaac (Sharing violation)

Reply #9
There have been several threads referring to Sharing violation issues and IIRC especially on Windows 7.

One solution I do remember was to deactivate Windows' automatic file indexing. Another one can be found here and a search for "Sharing violation" +index or something similar may provide further hits.
This is HA. Not the Jerry Springer Show.

Converter problems with qaac (Sharing violation)

Reply #10
with indexing turned off and pointing the output file to a folder not being watched by foobar it still happens. only way to workaround the problem, is to turn multicore encoding off

Converter problems with qaac (Sharing violation)

Reply #11
Hi
I am having troubles using qaac with foobar. I am using  foobar 1.1.1 and qaac 0.25. My conversion parameters are:

Encoder: Custom
Encoder: qaac.exe (0.25)
Extension; m4a
Parameters:-A -o %d -

Format is: Lossless (hybrid)
Highets bps...:24
Encoder name: AAC
Bitrate:
Settings:ALAC

This is what I get

1 out of 1 tracks converted with major problems.

Source: "E:\Data\GJDMusic\Joel Frederiksen\10 Brave Lord Willoughby.flac"
  An error occurred while writing to file (The encoder has terminated
prematurely with code 2 (0x00000002); please re-check parameters) :
"C:\Documents and Settings\Milos\Desktop\test\10-Brave Lord Willoughby.m4a"
  Additional information:
  Encoder stream format: 44100Hz / 2ch / 16bps
  Command line: "C:\Documents and Settings\Milos\My
Documents\Downloads\qaac_0.25\qaac_0.25\qaac.exe" -A -o "10-Brave Lord
Willoughby.m4a" -
  Working folder: C:\Documents and Settings\Milos\Desktop\test\
 
  Conversion failed: The encoder has terminated prematurely with code 2
(0x00000002); please re-check parameters

I have to mention that I get the error in winxp and win 7 machines running foobar 1.1.1. The author of qaac states that msvcr71.dll and msvcp71.dll are needed or must be installed, but it does not mention where. I put a copy in the same directory as qaac.exe and no luck at all.

Thanks before hand

Antropoid

Converter problems with qaac (Sharing violation)

Reply #12
It works for me. I have the dll files in C:\Windows\System32\ .

This may be a stupid question, but do you have QT installed?

From: http://sites.google.com/site/qaacpage/home
Quote
Of course, you must install the latest Apple QuickTime to run the app.


Assuming QT is installed, as a test, you could try to encode without using the piping feature:

-A -o %d %s

Converter problems with qaac (Sharing violation)

Reply #13
Sometimes I can be so stupid

Yes that was it, once installed quiktime I was able to do it.

Thanks for your quick and accurate answer

Antropoid

(this can be marked as solved)

Converter problems with qaac (Sharing violation)

Reply #14
I am having an issue ripping a CD to ALAC using qaac. I get this error: Can't write to the source folder with these tracks.

Converter settings: -A -o %d -

Advanced>Tools>Converter: Thread Count:0  Thread Priority:1

Using iTunes 10.5.0.142 QuickTime 7.7

Any help getting this figured out is most welcome. Thank you.


EDIT: Using fb 1.1.8
Surf's Up!
"Columnated Ruins Domino"

Converter problems with qaac (Sharing violation)

Reply #15
Bumping this.

I tried using qaac with MusicBee (Another player and ripper) using the same settings and the CDs ripped with no problems. I cannot figure out why I'm having issues with it in fb2000. I upgraded to the latest beta, but still having the same issue. Again, any help or ideas would be a great help. Thanks!
Surf's Up!
"Columnated Ruins Domino"

Converter problems with qaac (Sharing violation)

Reply #16
Quote
Can't write to the source folder with these tracks.


looking at that and given you're ripping from CD, i'd say you need to check the destination on the converter dialog. it needs to be a folder foobar can write to.

Converter problems with qaac (Sharing violation)

Reply #17
Quote
Can't write to the source folder with these tracks.


looking at that and given you're ripping from CD, i'd say you need to check the destination on the converter dialog. it needs to be a folder foobar can write to.
The destination folder used in converter works with lame, flac, and wav. Why it doen't work with qaac is weird. The fact that it says "source folder" has me confused, as the source is the CD or CD Drive. I use the same destination folders in MusicBee and the files write fine to it.
Surf's Up!
"Columnated Ruins Domino"

Converter problems with qaac (Sharing violation)

Reply #18
Works here. What's your qaac version? Current is 0.93

Converter problems with qaac (Sharing violation)

Reply #19
Works here. What's your qaac version? Current is 0.93
I'm using 0.91. Is there anything changed that would affect it working with fb2k? As I stated earlier, qaac works ok using a different ripper.
Surf's Up!
"Columnated Ruins Domino"


Converter problems with qaac (Sharing violation)

Reply #21
I tried with non-writable source folder, but I couldn't get the message like yours -- foobar 2000 (v1.1.8) said something like the following in this case;
Quote
Unable to open file for writing (Access denied) : "E:\Music\flac\Lali Puna\Our Inventions\01 Rest Your Head.m4a"
  Conversion failed: Access denied

Anyway, it would be helpful if you provide the foobar2000 console message (view->console).

Converter problems with qaac (Sharing violation)

Reply #22
I can get this message if destination folder is set to "source track folder". So it seems that marc2003 was right.

Converter problems with qaac (Sharing violation)

Reply #23
I can get this message if destination folder is set to "source track folder". So it seems that marc2003 was right.
That indeed was the case. I cannot believe that I missed that. Thank you all ever so much for the help.
Surf's Up!
"Columnated Ruins Domino"

 
SimplePortal 1.0.0 RC1 © 2008-2019