Bug 267539 - Cannot copy unsupported formats to iPod even after transcoding.
Summary: Cannot copy unsupported formats to iPod even after transcoding.
Status: RESOLVED DUPLICATE of bug 265731
Alias: None
Product: amarok
Classification: Applications
Component: Transcoding (show other bugs)
Version: 2.4.0.90
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: 2.4.1
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-03 10:31 UTC by Hakan Bayindir
Modified: 2011-03-29 08:43 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hakan Bayindir 2011-03-03 10:31:33 UTC
Version:           2.4.0 (using KDE 4.4.5) 
OS:                Linux

All of the music I own doesn't come in MP3, I have some FLAC files and iPod naturally doesn't support them. But even after I try to transcode them, I get the same misleading error of "The files you try to copy are already on your device" and this is not true. OTOH, I'm trying to trancode them to make them compatible :)

Unfortunately this time I'm unable to reproduce "again" for this bug because my iPod nano 2G is stolen somehow. I'm using a 6G now and I had no time to try it with Amarok yet (I was in need of music and My MBP formatted it to HFS and personal matters leave no time for me changing it for now, sorry again).

Reproducible: Always

Steps to Reproduce:
1- Open Amarok
2- Plug your iPod
3- Mount it, Amarok will mount it too
4- Try to copy some of your favorite FLAC files to your iPod
5- The transcoding dialog appears. Set appropriate MP3 options and click transcode.


Actual Results:  
6- An error dialog appears, reads "The files you are trying to copy
are already on your device."
7- Hey, you reproduced the bug successfully!

Expected Results:  
6- The files are transcoded first and then copied to your iPod as it should be.
7- Bliss.

OS: Linux (i686) release 2.6.32-5-686-bigmem
Compiler: cc
Comment 1 Dave 2011-03-06 01:31:45 UTC
I'm seeing this exact behavior as well.  My configuration is:
Archlinux kernel26-ck 2.6.37-6
KDE 4.6
Amarok 2.4.0

My iPod is a 2nd Gen Video.  80G black.  Formatted HFS (via mkfs.hfsplus -v iPod /dev/ipod).

I suspect the new transcoding functionality doesn't work with iPods.  Here's another interesting facet of this behavior:  I go to copy an MP3 file by right click, Copy to Collection -> iPod.  The trancoding dialog pops up, I select Transcode With Custom Parameters -> AAC -> Transcode.  The files are copied to the iPod as-is (as MP3 files, not AAC files).  Whats more, if I select cancel when the transcoding dialog pops up the file are copied anyway.
Comment 2 Egbert König 2011-03-27 19:18:18 UTC
I can confirm this behavior. My configuration is

- iPod Classic 160 GB
- amarok 2.4.0.90
- openSuSE 11.4
Comment 3 Egbert König 2011-03-27 23:22:40 UTC
If I copy to USB mass storage with transcoding option, amarok is not doing any transcoding at all, it is just copying the files. The error message while transcoding flac to the iPod is probably originating from MediaDeviceHandler::copyTrackListToFile(). Tracks are refused there, if the format is not supported by the target device, which is the case for flac files and the iPod target. Later the message is shown, if no files have passed the filter.

        // Check for compatible formats
        format = track->type();

        if( !m_wcb->supportedFormats().contains( format ) )
        {
             const QString error = i18n("Unsupported format: %1", format);
             m_tracksFailed.insert( track, error );
	     hasError = true;
             continue;
        }

....


    // Do not bother copying 0 tracks
    // This could happen if all tracks to copy are dupes

    if( m_tracksToCopy.size() == 0 )
    {
        KMessageBox::error( 0, i18n( "Tracks not copied: the device already has these tracks" ), copyErrorCaption );
        m_isCopying = false;
        emit copyTracksDone( false );
        return;
    }

The root cause is probably not related to the iPod handler but instead to amarok not doing transcoding at all.
Comment 4 Egbert König 2011-03-27 23:26:08 UTC
Please see also bug 265731
Comment 5 Myriam Schweingruber 2011-03-29 08:43:03 UTC

*** This bug has been marked as a duplicate of bug 265731 ***