Converting unnecessarily on sync

Beta Testing for Windows Products and plugins

Moderator: Gurus

dl__
Posts: 4
Joined: Thu Sep 26, 2013 11:56 am

Converting unnecessarily on sync

Post by dl__ »

Clean portable install of Mediamonkey
Downloaded some video podcasts in mp4
Tried to sync wirelessly to Android phone

Told that there's no codec to convert the files.

Why are they being converted? The S4 should play mp4s natively shouldn't it?
MediaMonkey for windows beta 1661
Win7 Home Premium 64 bit
Galaxy S4
Peke
Posts: 18542
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Converting unnecessarily on sync

Post by Peke »

Hi,
See in SDevice profile that it is correctly set as supported format.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
dl__
Posts: 4
Joined: Thu Sep 26, 2013 11:56 am

Re: Converting unnecessarily on sync

Post by dl__ »

Under supported formats MP4 is listed as both a supported audio and video format.

One thing to add. I just successfully completed a wired synch without asking about conversion.
MediaMonkey for windows beta 1661
Win7 Home Premium 64 bit
Galaxy S4
Ludek
Posts: 5115
Joined: Fri Mar 09, 2007 9:00 am

Re: Converting unnecessarily on sync

Post by Ludek »

Strange, both wired and wireless sync uses the same device profile and the same Auto-conversion settings so there really shouldn't be a difference.

Maybe you tested a different video this time? I had a look at the default android profile and there is a limitation to 800x480 px, couldn't this be the issue? Had the video more than 800x480?

Nevertheless because the newest android devices are full HD, I modified the default android profile to accept up to 1920x1080 as supported video.


See the following image to see what I mean:

Image
rivorson
Posts: 594
Joined: Thu Jul 25, 2013 4:17 am

Re: Converting unnecessarily on sync

Post by rivorson »

I am experiencing a similar disparity in the syncing of video files. I have my device profile set up with all the correct container formats and codecs and have a number of video files of different codecs in a playlist on the sync list.

Wifi sync completely ignores all of the video files. It doesn't report any errors after the sync.
USB syncs the video files exactly as expected.
Running another wifi sync then prompts me to delete all of the video files as though they are not on the sync list.


I'm not sure when this behaviour started, but I am currently using MMA 167 and MMW 1661.
Lowlander
Posts: 59231
Joined: Sat Sep 06, 2003 5:53 pm

Re: Converting unnecessarily on sync

Post by Lowlander »

Have you checked that you don't have 2 profiles for the device?
rivorson
Posts: 594
Joined: Thu Jul 25, 2013 4:17 am

Re: Converting unnecessarily on sync

Post by rivorson »

I do have only one profile for the device, but your suggestion has led me to discover the fault.

I have a phone and a tablet. Each has a profile for device sync. The sync list is almost identical, but the tablet has a playlist for videos which is not on the phone's sync list.
During USB sync, each uses the correct profile. However, using wifi sync both devices are using the phone's device profile; when I sync the tablet with wifi it will use the phone's sync list.
Ludek
Posts: 5115
Joined: Fri Mar 09, 2007 9:00 am

Re: Converting unnecessarily on sync

Post by Ludek »

rivorson wrote:I do have only one profile for the device, but your suggestion has led me to discover the fault.

I have a phone and a tablet. Each has a profile for device sync. The sync list is almost identical, but the tablet has a playlist for videos which is not on the phone's sync list.
During USB sync, each uses the correct profile. However, using wifi sync both devices are using the phone's device profile; when I sync the tablet with wifi it will use the phone's sync list.
That is quite strange, could you please
1) export the profiles as MMDC files for both tablet/phone and attach? Just go to <Device> -> [Options] tab -> Device Profile -> [Export device options...] button
2) get /MediaMonkey/files/StorageInfo.xml files from the device for both tablet/phone?

Thx.
rivorson
Posts: 594
Joined: Thu Jul 25, 2013 4:17 am

Re: Converting unnecessarily on sync

Post by rivorson »

All four files can be downloaded here:
https://www.dropbox.com/sh/rb03t3r2w5cokwi/ksSBWxZbwD
Ludek
Posts: 5115
Joined: Fri Mar 09, 2007 9:00 am

Re: Converting unnecessarily on sync

Post by Ludek »

I can confirm that indeed the key included within Nexus4.mmdc matches the key included within 'storageInfo Nexus 7 2013.xml'

Couldn't you switch the SD memory cards between the two devices?

Strangelly enough the key within Nexus4.mmdc doesn't match the key within 'storageInfo Nexus 4.xml', this implies that WiFi sync shouldn't work at all for Nexus 4 (unless there is another profile).

Could you please also generate debog log ( item 4b here http://www.mediamonkey.com/forum/viewto ... ?f=6&t=341 )
of WiFi sync for both the devices?
rivorson
Posts: 594
Joined: Thu Jul 25, 2013 4:17 am

Re: Converting unnecessarily on sync

Post by rivorson »

Nexus phones and tablets don't have SD card slots, so I can only use the internal storage.

I have created a debug log capturing the events of syncing the phone and subsequently syncing the tablet. It can be accessed using the link in my previous post.

Is the device key included when importing a device profile? If so, this may be the cause of the problem. When I am setting up a new Android device I usually export the profile of an existing device and import it on the new device. There are three Nexus 4 phones and three Nexus 7 tablets in my family, so importing existing profiles saves a lot of time when setting up devices.
Ludek
Posts: 5115
Joined: Fri Mar 09, 2007 9:00 am

Re: Converting unnecessarily on sync

Post by Ludek »

No, the key is not included when importing the device profile from MMDC.

In the log I see that Nexus4 is paired by Serial Number during WiFi sync, therefore it works.

So the question is how could the key of Nexus7 got to the profile of Nexus4.

Anyhow I should probably check content of the StorageInfo.xml file on each USB connection and sync the keys. Currently I do it only on initial sync, but the key might change e.g. when SD cards are switched etc. I will fix it.
rivorson
Posts: 594
Joined: Thu Jul 25, 2013 4:17 am

Re: Converting unnecessarily on sync

Post by rivorson »

I think I have made some progress in discovering the cause of this problem. I had previously fixed it by deleting both device profiles and recreating them. Today I deleted the phone's device profile then immediately attempted a wifi sync from the phone. Instead of creating a new device profile it used the tablet's profile and sync list.

It seems that when one device profile is deleted the key may not be completely removed from the database and somehow ends up pointing to another profile.
Ludek
Posts: 5115
Joined: Fri Mar 09, 2007 9:00 am

Re: Converting unnecessarily on sync

Post by Ludek »

rivorson wrote: It seems that when one device profile is deleted the key may not be completely removed from the database and somehow ends up pointing to another profile.
This should not happen, but previous analyze shown that the key of Nexus7 got to the profile of Nexus4. The question was how is that possible?
My only idea is that it got there somehow on USB connection. If you connect your Nexus7 via USB, is it correctly recognized as Nexus7 or Nexus4 and vice versa? Could you generate debug log using DbgView (item 4b here: http://www.mediamonkey.com/forum/viewto ... ?f=6&t=341 ) while connecting your Nexus7/Nexus4 via USB?

EDIT: Before this it would be probably more usable to catch in the debug log what you have described,
i.e. delete the phone's device profile then immediately attempts a wifi sync from the phone

Thank you for helping us to debug this.
rivorson
Posts: 594
Joined: Thu Jul 25, 2013 4:17 am

Re: Converting unnecessarily on sync

Post by rivorson »

Ludek wrote: If you connect your Nexus7 via USB, is it correctly recognized as Nexus7 or Nexus4 and vice versa?
When I did this a few days ago each device was identified correctly when connected by USB. The phone's profile had been deleted and I connected the tablet first, which was identified correctly as the tablet, then I connected the phone which correctly created the new profile for the phone.
I have just tried this again while creating the debug logs but this time I connected the phone first and it was identified erroneously as the tablet. Then I connected the tablet which was not identified with the existing profile so MM created a duplicate profile for the tablet.
Basically, whichever device is connected by USB first becomes linked to the existing device profile, but each device will use the existing profile for WiFi sync if it is not connected by USB at some point.

Here are the steps I took to create the debug logs:

1. Delete all content from the phone so that it would appear as a new device, including music already on the device, the MediaMonkey directory, db_debug.trace, and SyncListQuery.trace.

2. Launch DbgView.

3. Launch MMW build 1668 debug version.

4. In the MMW Options, delete the 'My Nexus 4' phone profile.

5. Open MMA build 175 and launch initiate WiFi sync.

The sync then proceeds without MMW asking to allow the new device. The tracks and playlists downloaded are those on the tablet's sync list.
From the debug log, the WiFi sync matched the UPnP request with the existing tablet profile named 'My Nexus 7 2013'.
After the sync completed I submitted debug log 249BWAARGZ from MMA.

6. Connect the phone via USB. MMW identifies it as 'My Nexus 7 2013'.

7. Disconnect the phone and then connect the tablet via USB which is identified as a new device and given the name 'Nexus 7'.


The DbgView log can be found here:
https://www.dropbox.com/s/ii86upxsze8fg ... rofile.LOG
Post Reply