Skip to main content

Topic: foo_onewaysync (Read 25818 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • zimjo
  • [*][*][*]
  • Developer
Re: foo_onewaysync
Reply #175
Trying a different browser was a good idea, unfortunately without success. So far I tried with firefox and a fresh install of chrome, both with and without https. With https and chrome I get a ERR_SSL_BAD_RECORD_MAC_ALERT error after attempting the upload, and the file on the server seems to be unchanged. With https and firefox there is a similar error after upload (secure connection was set back), also no file change.
Don't believe that firewall or antivirus are an issue, because I observe similar behaviour with my mobile, which is not running any firewall or antivirus.
  • Last Edit: 07 March, 2017, 05:20:11 PM by zimjo

  • kode54
  • [*][*][*][*][*]
Re: foo_onewaysync
Reply #176
Okay, I tried uploading the forum copy myself, and it errors out randomly, ranging from roughly one thousand bit flips, to taking a full 90 seconds and timing out, to uploading successfully in about 10 seconds.

  • zimjo
  • [*][*][*]
  • Developer
Re: foo_onewaysync
Reply #177
Good to know it's not a problem on my end. And thanks for uploading a working archive.

  • Safranente
  • [*]
Re: foo_onewaysync
Reply #178
@Safranente: Your problem should be fixed with a new version. I have it ready for release, but right now the upload to the components page is not working...

works well now, thank you!

  • jmaeshawn
  • [*]
Re: foo_onewaysync
Reply #179
I don't know if this is a bug with onewaysync, or just me making a mistake, but for some reason onewaysync doesn't want to work with qaac.

I've tested using qaac in foobar, and it converts my FLAC files to m4a just fine:

and qaac also works directly from the command line with this: H:\Install Files\qaac>qaac "C:\song.flac" -V 63 -o "C:\song.m4a"

Since onewaysync passes the encoder a raw PCM16 file and requires the %sr$ variable, I had to adapt the above (basic) command line command to this:
"H:\Install Files\qaac\qaac.exe" %in% --raw --raw-rate %sr% -V 63 --ignorelength -o %out%

When I then run the onewaysync some FLACs to test, it appears to have completed successfully...
"Exported files and playlists succesfully.

1 playlists exported.
1 files converted.
0 files updated."

However, behind that window are two other windows:
Could not load info (Object not found) from:
"C:\Users\jmaeshawn\AppData\Local\Temp\OWS4622.tmp.m4a"

and the second window:
Could not update tags (Object not found) on:
"C:\Users\jmaeshawn\AppData\Local\Temp\OWS4622.tmp.m4a"

The output folder on my phone contains nothing but a file called ".ows_Pixel.sqlite"

I've spent hours trying to figure this problem out . I should also mention that onewaysync converts just fine when using the built-in lame setting and that I'm not the only one having problems with qaac. I googled it, and it came up with a Japanese topic about using onewaysync with foobar. Since I'm bilingual, I read it and took note of the line"ちなみにこれってlame以外のエンコーダーを指定する事は可能ですか?qaacで試してみたらなんかエラー出ちゃいます。"
(Which translates to "By the way, is it possible to set it up with encoders other than lame? When I tried it out with qaac, it brings up some kind of error.")

Could someone explain why the conversion to aac completely fails only when being run through onewaysync, and how to fix the issue?

  • zimjo
  • [*][*][*]
  • Developer
Re: foo_onewaysync
Reply #180
Quote
"H:\Install Files\qaac\qaac.exe" %in% --raw --raw-rate %sr% -V 63 --ignorelength -o %out%
You are using arguments that exclude each other: --ignorelength cannot be used with --raw.

  • jmaeshawn
  • [*]
Re: foo_onewaysync
Reply #181
Thank you for the suggestion, zimjo. This time, I tried eliminating --raw and making the command line:
"H:\Install Files\qaac\qaac.exe" %in% --rate %sr% -V 63 --ignorelength -o %out% -
but this failed again with the same errors I had in my last post.

Doing some more research, I brought up the console window and looked at what foobar itself was passing to qaac as parameters during a successful version from FLAC:
 Command line: "C:\Program Files (x86)\Audio\foobar2000\encoders\qaac.exe" --ignorelength -s --no-optimize -V 64 -o "01 - Song.m4a" -
Working folder: C:\convertTest\
Encoder process still running, waiting...
Encoder process terminated cleanly.
Track converted successfully.
Total encoding time: 0:04.547, 48.90x realtime

Since that worked fine, I copied the parameters into onewaysync exactly, only replacing the "01 - Song.m4a"
 "C:\Program Files (x86)\Audio\foobar2000\encoders\qaac.exe" --ignorelength -s --no-optimize -V 64 -o %out% -
but it still gave the same exact errors as before.

Since I read that out of aac encoders, qaac provides the best quality at the smallest file size compared to other aac encoders, I'd really like to get it working with onewaysync. Do you have any other suggestions, or are onewaysync and qaac just not inter-compatible?

  • zimjo
  • [*][*][*]
  • Developer
Re: foo_onewaysync
Reply #182
You got rid of the wrong one. Try
Code: [Select]
"H:\Install Files\qaac\qaac.exe" %in% --raw --raw-rate %sr% -V 63 -o %out%
As stated in the encoder settings dialog, onewaysync uses the raw format.

  • jmaeshawn
  • [*]
Re: foo_onewaysync
Reply #183
*facepalms*
Thank you so much for helping, zimjo. That worked perfectly!

 Here I was thinking that the reason it said onewaysync uses raw format in the settings dialog is because foobar itself used that format, which led to me removing the wrong thing and copying the settings from the main encoder.

Regardless of how long it took to get here, it finally converted correctly, so I really appreciate the help. Now to figure out how to have it auto attach the cover image as a tag to the resulting m4a file without bringing up a file selection window for every single album in the playlist one by one... Hopefully that doesn't take as long to figure out.

Thanks again!

  • zimjo
  • [*][*][*]
  • Developer
Re: foo_onewaysync
Reply #184
You're welcome!  :)
Onewaysync will automatically transfer tags from the source to the resulting m4a, so that album art is only embedded in the m4a if it was already present in the source file. The other method is to use folder based album art, e.g. folder.jpg. But automatically embedding art that was not present in the source file is not possible with onewaysync. Only possible method would be to specify a context command ('Process destination files with' ...) that does what you want. However, this won't work if the destination is on a MTP device, because such files can not be modified directly.

  • hxrmn
  • [*]
Re: foo_onewaysync
Reply #185
Would it be possible to have a setting per task on whether to create a playlist file for that task?

siiiiiiiiick component anyways tho

  • jmaeshawn
  • [*]
Re: foo_onewaysync
Reply #186
You're welcome!  :)
Onewaysync will automatically transfer tags from the source to the resulting m4a, so that album art is only embedded in the m4a if it was already present in the source file. The other method is to use folder based album art, e.g. folder.jpg.
Thank you for the explanation of how onewaysync's tagging system works. However, while I have been testing it out with converting my flac and mp3 files to my Google Pixel (an MTP device),  it appears to copy the text tags from the source file to the main, but the converted file does not have the album art that was attached to the source. I have over 900 songs all with embedded artwork (and no external artwork in the folders to try the folder method you suggested) , and therefore I would really like to have all the images automatically tagged on the resulting m4a files as well.

Is there a switch or setting I need to turn on in onewaysync to get it to copy album art over to the tags, or is it supposed to be automatic? I do have the "copy cover art" setting under devices checked, though that doesn't seem to be doing anything...

  • zimjo
  • [*][*][*]
  • Developer
Re: foo_onewaysync
Reply #187
Never really used embedded artwork in lossless files, so I never came across this, but you're right, it currently does not get copied. I will adress this with the next release.

  • zimjo
  • [*][*][*]
  • Developer
Re: foo_onewaysync
Reply #188
Would it be possible to have a setting per task on whether to create a playlist file for that task?

A single playlist file for all the playlists in the task? Or do you just want creating playlists turned off for that task?