After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 534832 - Videos not correctly handled on MTP device
Videos not correctly handled on MTP device
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: Device - MTP
0.99.2
Other All
: Normal normal
: 1.x
Assigned To: Banshee Maintainers
Patrick van Staveren
: 549101 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-05-25 23:35 UTC by Trent Yarwood
Modified: 2010-09-20 22:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix the issue (1.44 KB, patch)
2010-09-06 22:36 UTC, Alan McGovern
committed Details | Review

Description Trent Yarwood 2008-05-25 23:35:33 UTC
Please describe the problem:
0.99.1 did not copy videos to the player at all.

0.99.2 copies OK, but the tracks are still sorted in the library under "music" - and the "videos" tag is empty.

Steps to reproduce:
1. Connect player
2. Drag video file to player
3. Click on MTP > Videos
4. Nothing there
5. Click on MTP > Music > Unknown Artist
6. Video tracks!


Actual results:
s/Banshee.Hal/Banshee.HalBackend/Volume.cs:185 
  at Banshee.HalBackend.Volume.Resolve (Banshee.HalBackend.BlockDevice parent, Hal.Manager manager, Hal.Device device) [0x00044] in /build/buildd/banshee-1-0.99.2/src/Backends/Banshee.Hal/Banshee.HalBackend/Volume.cs:56 
PTP: Opening session
Sending file /documents/shared/video/tv/nowhere man/01 - Absolute Zero.avi, is video? True
LIBMTP_Send_Track_From_File_Descriptor(): I don't think this is actually a track, strange filetype...
Sending file /documents/shared/video/tv/nowhere man/02 - Turnabout.avi, is video? True
LIBMTP_Send_Track_From_File_Descriptor(): I don't think this is actually a track, strange filetype...
Sending file /documents/shared/video/tv/nowhere man/03 - The Incredible Derek.avi, is video? True
LIBMTP_Send_Track_From_File_Descriptor(): I don't think this is actually a track, strange filetype...


Recognised as videos, but not sorted appropriately.

Expected results:
Files are listed under the video tag.

Does this happen every time?
Yes

Other information:
Comment 1 Andrea Cimitan 2008-08-23 10:58:53 UTC
*** Bug 549101 has been marked as a duplicate of this bug. ***
Comment 2 Gabriel Burt 2008-10-06 21:56:25 UTC
Is this still happening?  What device do you have?
Comment 3 Andrea Cimitan 2008-10-06 22:01:07 UTC
Here happening with 1.2.1 and Creative Zen
Comment 4 Johnny Harold 2009-05-07 18:25:29 UTC
I have a similar issue.  I don't think my player (Sony Walkman NWZ-A818) is using MTP for transfer, but UMS instead.  But the problem is still the same, however.  When I try to copy a video podcast, it ends up in music-->uknown artist on the device, just like with Trent.  This is especially an issue with my walkman as videos may only be played from the video directory on it.  I wonder if this is not an issue with MTP, but maybe either something with HAL (I looked for a video_folders directive, I don't think it exists) or possibly an issue with the podcast plugin?  I'd be happy to see even a simple workaround which let me instruct banshee which directory to copy videos to.

As far as HAL goes, I added this entry for the walkman:

<!-- Sony Walkman Video MP3 NWZ-A818 -->
          <match key="@storage.originating_device:usb.product_id" int_outof="0x325">
            <addset key="portable_audio_player.access_method.protocols" type="strlist">storage</addset>
            <append key="portable_audio_player.output_formats" type="strlist">audio/x-ms-wma</append>
            <append key="portable_audio_player.output_formats" type="strlist">audio/aac</append>
            <append key="portable_audio_player.output_formats" type="strlist">audio/x-wav</append>
            <append key="portable_audio_player.output_formats" type="strlist">video/mpeg4</append>
            <append key="portable_audio_player.audio_folders" type="strlist">music/</append>
            <append key="portable_audio_player.audio_folders" type="strlist">video/</append>
          </match>
	</match>
Comment 5 Johnny Harold 2009-05-07 21:07:06 UTC
(In reply to comment #4)

Forgot to add, I'm using the latest version: 1.4.3-3
Comment 6 Gabriel Burt 2009-10-27 20:17:57 UTC
Bulk changing the assignee to banshee-maint@gnome.bugs to make it easier for people to get updated on all banshee bugs by following that address.  It's usually quite apparent who is working on a given bug by the comments and/or patches attached.
Comment 7 roadSurfer 2010-02-09 12:24:12 UTC
Using Banshee 1.5.3, Rockbox 3.5 on a Sansa e280v1 and Ubuntu 9.10 I am seeing the same issue.

Video podcasts are appearing under "Music" on the Sansa.
Comment 8 Alan McGovern 2010-09-06 22:36:00 UTC
Created attachment 169626 [details] [review]
Patch to fix the issue

The only easy way to fix this is to just force all videos (podcast or not) into the Video folder. There's no foolproof way of telling my MTP device that a video is a video podcast and then to put it in the ZENcast section in the Videos. Attached patch fixes the issue on my device and should also on yours.
Comment 9 Gabriel Burt 2010-09-20 22:42:11 UTC
Comment on attachment 169626 [details] [review]
Patch to fix the issue

This was already committed