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: foo_onewaysync (Read 114672 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: foo_onewaysync

Reply #75
This plugin needs WMP or newer !!! pops up ...
Any workaround?

Re: foo_onewaysync

Reply #76
How to use this component with ffmpeg as encoder?
Currently it appears to be incompatible with ffmpeg, since ffmepg expects the arguments in a certain order. The component can only use encoders that can be called in the following way:
Code: [Select]
converter.exe options infile outfile
where infile outfile are added by the component itself, no need to specify it in the call path.
I might extend this as you requested for the next release. On the other hand, you should be able to work around it with a batch script. Post the content of your batch file here and we might be able to make it work.

I found no way to (re)-encode m4a or mp3 files, because lame.exe doesn't come with decoders ...
No decoder on the encoder side is required, the component uses foobar to decode to PCM, which is then supplied to the encoder. Thus, any file which is playable by foobar is automatically supported.

(It's also not clear what the field "Convert the following lossy file types" expects as input. A space delimited list of file extensions or comma? mp3 m4a mp4 or mp3,m4a,mp4.
Actually, it doesn't matter, both works.

Thanks for this nice component!
M.
Your welcome!  :)

Re: foo_onewaysync

Reply #77
What are the actually lib files? It works fine on my desktop but not on the portable install which I'm syncing the desktop files from. I've tried installing the redistributable on my work laptop and it still doesn't work.
This plugin needs WMP or newer !!! pops up ...
Any workaround?
fails under wine due to missing windows media player
How do I get those libs or how can I find them?
I can't use this component at all. It allways says it needs at least wmp 10. I have already installed wmp 12
What do I need for a portable install? Thanks
To all those who had problems loading the component: Download release 0.5.5 and give it a try. I believe the WMP related issues should be resolved, though this is kind of untested and MTP support will be missing. Leaving feedback on your experience will help development of this component, thanks. I'm also curious whether this now works under Wine.

Re: foo_onewaysync

Reply #78
I have to copy 150MB of lossless Wavpack files to my wife's phone.

She will mostly listen through a not bad amplifier or, more often, through
a Senheiser wireless closed headphone: would you mind helping me to choose
the best settings for the lossy encoding while copying the files?
Consider two different scenarios: one with a limit of 125GB of space (future)
and another one with a 25GB limit (now).

Thanks.

Re: foo_onewaysync

Reply #79
I'm not quite sure I understand your question:
Do you want to encode a fixed set of files such that they will fit your given space criteria? Then, you'll have a better chance of getting an educated answer in one of the other HA forums, maybe General Audio.
Or do you want to choose files from your lossless files such that after encoding them to a lossy type your space criterion is met? Then, my recommendation is to use the random pools component together with onewaysync.

Regarding lossy encoding, use whatever sounds transparent (or good enough) to you ;)

Re: foo_onewaysync

Reply #80
Thanks for answering.

I'm asking if given a selection of wavpack files, say 150GB,
there is some lame setting that would grant me to end up
with a certain amount of space, say 30GB.

But most importantly I would ask you now if you can understand
why I ended up with a collection of hissing files instead of getting
the right conversion to mp3.
In the encoder setting I read: lame ["lame.exe" --vbr-new -h -V 4]

Let me also ask you if there is a way to know which of my files
have already been transferred to a device or if there is the possibility
to automatically add a tag to know that.

I need to redo the work I've done yesterday and I will have to re-encode
everything so it would be useful to be able to know the already synced
and to tell the plugin to overwrite the encoded ones.

Thanks.

fabio

Re: foo_onewaysync

Reply #81
But most importantly I would ask you now if you can understand
why I ended up with a collection of hissing files instead of getting
the right conversion to mp3.
In the encoder setting I read: lame ["lame.exe" --vbr-new -h -V 4]
Maybe, because it expects a different input format. Add the -r switch (for raw PCM input) and  -s %sr% to pass the correct sampling rate. Your command line should read:
Code: [Select]
"lame.exe" --vbr-new -h -V 4 -r -s %sr%


I need to redo the work I've done yesterday and I will have to re-encode
everything so it would be useful to be able to know the already synced
and to tell the plugin to overwrite the encoded ones.
During sync, the component will not reencode a file if it already exists in the target location. You can simply delete the existing files from the target location and they will be encoded again. That is unless, you checked the 'Save lossy files at lossless sourcepath', in which case you need to delete those as well. You can find them by searching for the file ending '.lossy.mp3'. Check the generated playlist for details on the path of the synced files.

Re: foo_onewaysync

Reply #82
I'm confused about how this plugin works. Using Windows 7 and my phone is connected via MTP. I can copy/erase/transfer files to my phone just fine using either windows explorer or freefilesync.

I opened foobar, went to library-->configure-->components and dragged the file foo_onewaysync.dll into the window, hit apply and the program tells me I need to restart the program so I do.

Now when I open foobar again, I can right click on either a file or a playlist and goto file operations-->onewaysync-->select and then I get a new window with two popup options an "OK" button and a cancel button. The first popup name is destination, the other is blank. Neither populate anything when I click on them, they are empty menus. I manually tried to add the address of my phones card in the destination field but it didn't do anything. I've tried about 10 times and one of the times it said need Windows Media player version 10 or higher. I have version 12 (Win7) already installed?

I go into settings and find the one way sync section under tools and try to configure a device command and destination there but it still won't do anything. First the Windows Media Player 10 error pops up, then I get to the window which has my device listed and I hit okay, the I get the error:
"One way sync failed: The target device is currently not connected to the system. Try again when device is reconnected. Devicename: \MacS4Mini\Card."

The destination for my phone self populates in the configuration/settings screen and is listed as wpd:\MacS4Mini\Card

Is this the proper syntax?

This is the first plugin I've ever had trouble trying to use. Is there a simple set of instructions on how to use this plugin?

Any help would be great, thanks.

Re: foo_onewaysync

Reply #83
Now when I open foobar again, I can right click on either a file or a playlist and goto file operations-->onewaysync-->select and then I get a new window with two popup options an "OK" button and a cancel button. The first popup name is destination, the other is blank. Neither populate anything when I click on them, they are empty menus. I manually tried to add the address of my phones card in the destination field but it didn't do anything. I've tried about 10 times and one of the times it said need Windows Media player version 10 or higher. I have version 12 (Win7) already installed?
It shouldnt show you the dialog if you didnt make any settings in the preferences. Make sure you have set up a device command in preferences/devices and a titleformatting script in preferences/tasks before using the context command, they should be initialized with default values though. This might be a glitch, i'll have to look into this.
The WMP error means that there was a problem accessing the device with the WPD API, which enables MTP.

Is this the proper syntax?
That's the device you want to use! If you have problems, try closing all other programs that access the device, such as WMP.

Re: foo_onewaysync

Reply #84
So is this plugin currently not working? When I use version 0.5.4 I get the "This plugin needs WMP 10 or newer" error. When I use version 0.5.5 I get the error "The target device is currently not connected to the system." Any suggestions? P.S. Thanks zimjo for finally giving us a solution for syncing to our phones!

Re: foo_onewaysync

Reply #85
Syncing via MTP works for me with my Android phones. So far I suspected a Win 10 incompatibility, but apparently some people get this also on Win 7. It's hard to find the problem and fix it if I cannot reproduce the issue!
Could you post the console output from onewaysync after opening the device preferences page and after starting a sync? It is prefixed with foo_ows.

Re: foo_onewaysync

Reply #86
Syncing via MTP works for me with my Android phones. So far I suspected a Win 10 incompatibility, but apparently some people get this also on Win 7. It's hard to find the problem and fix it if I cannot reproduce the issue!
Could you post the console output from onewaysync after opening the device preferences page and after starting a sync? It is prefixed with foo_ows.
I am also on Windows 7. Here is the console output when opening the device preferences page:
foo_ows: Found 6 WPD devices.
foo_ows: Found storage object SAMSUNG-SM-G930V\Phone
foo_ows: Found storage object SAMSUNG-SM-G930V\Card
foo_ows: WPD device I: object 0 is not accessible.
foo_ows: WPD device K: object 0 is not accessible.
foo_ows: WPD device L: object 0 is not accessible.
foo_ows: WPD device J: object 0 is not accessible.
foo_ows: WPD device M: object 0 is not accessible.

and when attempting to send an album to my android phone:
foo_ows: Exporting selection to  wpd:\SAMSUNG-SM-G930V\Card\Music\$swapprefix(%Album Artist%)\'['%date%']' %album%\%filename%
foo_ows: Error: The target device is currently not connected to the system. Try again when device is reconnected.
Devicename: \SAMSUNG-SM-G930V\Card

Re: foo_onewaysync

Reply #87
The device is configured properly. There seems to be an internal problem with onewaysync or the library I use for MTP access.
I've uploaded a version that prints additional info to the console. People with MTP issues please follow the procedure described above and post the console output. Thanks.

Re: foo_onewaysync

Reply #88
The device is configured properly. There seems to be an internal problem with onewaysync or the library I use for MTP access.
I've uploaded a version that prints additional info to the console. People with MTP issues please follow the procedure described above and post the console output. Thanks.
Here is the console output with the new version:
foo_ows: Found 6 WPD devices.
foo_ows: Found storage object SAMSUNG-SM-G930V\Phone
foo_ows: Found storage object SAMSUNG-SM-G930V\Card
foo_ows: WPD device I: object 0 is not accessible.
foo_ows: WPD device K: object 0 is not accessible.
foo_ows: WPD device L: object 0 is not accessible.
foo_ows: WPD device J: object 0 is not accessible.
foo_ows: WPD device M: object 0 is not accessible.
foo_ows: Exporting selection to  wpd:\SAMSUNG-SM-G930V\Card\Music\$swapprefix(%Album Artist%)\'['%date%']' %album%\%filename%
foo_ows: Found 0 WPD devices.
foo_ows: Error: The target device is currently not connected to the system. Try again when device is reconnected.
   Devicename: \SAMSUNG-SM-G930V\Card
   Number of available devices 0
foo_ows: Reinit wpdplug...
   Number of available devices 0

Thanks for looking into it zimjo!

Re: foo_onewaysync

Reply #89
For some reason, I got it set up seemingly correctly, but I can't get it to convert anything. When I start syncing, the progress bar goes way too fast for it to be doing any converting, and afterwards it gives the following errors:

One way sync failed: Error: Could not create file on WPD device. Filename: <destination filename>
It gives this one for the first song in the playlist.

Could not load info (Object not found) from:
"C:\Users\<user>\AppData\Local\Temp\<some code>.tmp.mp3"
Could not update tags (Object not found) on:
"C:\Users\<user>\AppData\Local\Temp\<some code>.tmp.mp3"
These ones appear for every song in the playlist.
During the conversion process, if I look at that temporary folder, I can see .tmp files appearing that are presumably the .wav files, since the filesize is very large. However, no .mp3 files appear, and at the end all the .tmp files are deleted, so I assume all those errors are because the mp3 files are never actually created. lame.exe is in the location the encoder settings are pointing at and I left the options unchanged from default. Trying to convert to aac using neroAacEnc.exe gave the exact same result.

Thanks for making this though! If I can get it to work, it'll be exactly what I was looking for to manage the music on my android phone.


Re: foo_onewaysync

Reply #91
For some reason, I got it set up seemingly correctly, but I can't get it to convert anything.
Please upgrade to newest version 0.5.6. Then remove all encoder settings and restart foobar, this will insert the default encoder with correct options. Adapt the encoder path according to your setup. Let me know if you're still having problems.


 

Re: foo_onewaysync

Reply #93
Please upgrade to newest version 0.5.6. Then remove all encoder settings and restart foobar, this will insert the default encoder with correct options. Adapt the encoder path according to your setup. Let me know if you're still having problems.

Thanks a ton - LAME works now (it seems like the settings carried over from some old version I had installed first were wrong). I still can't get the AAC encoder to work though. Oddly enough, calling the AAC encoder from command line with the same arguments I put into the OWS settings seems to work just fine.


Re: foo_onewaysync

Reply #95
Thanks a ton - LAME works now (it seems like the settings carried over from some old version I had installed first were wrong). I still can't get the AAC encoder to work though. Oddly enough, calling the AAC encoder from command line with the same arguments I put into the OWS settings seems to work just fine.
Great! Regarding the encoder issue: Try reselecting the encoder in your device command and hit apply.

Re: foo_onewaysync

Reply #96
Thanks a ton - LAME works now (it seems like the settings carried over from some old version I had installed first were wrong). I still can't get the AAC encoder to work though. Oddly enough, calling the AAC encoder from command line with the same arguments I put into the OWS settings seems to work just fine.
Great! Regarding the encoder issue: Try reselecting the encoder in your device command and hit apply.
I tried that, but I just can't seem to get it to work. One more thing - it seems that it creates all the temporary files first, then copies everything. It keeps the WAV files too until it's finished, which means it's currently at 15% or so and already using 10GB hard disk space, which is kind of ridiculous. Is it possible to convert, copy and delete an album before moving on to the next one or something?

Re: foo_onewaysync

Reply #97
I tried that, but I just can't seem to get it to work.
I'm not sure if neroaacenc can handle raw pcm streams. When you called the encoder from command line, did you feed it the wav file generated by OWS?
Anyway, with version 0.5.7 you can have additional info printed to the console, which will show you the exact command line called by OWS. This should help resolve your issue.
One more thing...
Done with current version.

Re: foo_onewaysync

Reply #98
I'm not sure if neroaacenc can handle raw pcm streams. When you called the encoder from command line, did you feed it the wav file generated by OWS?
Anyway, with version 0.5.7 you can have additional info printed to the console, which will show you the exact command line called by OWS. This should help resolve your issue.
Done with current version.
Ah, you're right. I didn't realize there was a difference between .wav files and raw PCM streams, that's what was causing it. neroAacEnc only takes actual WAV files. After switching to FFmpeg and searching for the correct arguments (the correct input type is s16le), I got it to work! Thanks for the help!

Re: foo_onewaysync

Reply #99
I tried .flac coversion  with version 0.5.6.

Seems to work like a charm :) Very nice.