Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  ipod video hangs on certain mp2 files, maybe bad format or id3 tags?
« previous next »
  • Print
Pages: [1]

Author Topic: ipod video hangs on certain mp2 files, maybe bad format or id3 tags?  (Read 2534 times)

Offline rockport

  • Member
  • *
  • Posts: 4
ipod video hangs on certain mp2 files, maybe bad format or id3 tags?
« on: December 15, 2006, 07:01:16 PM »
Hi,

I'm using the latest nightly release of rockbox with the default
settings on a 30gb ipod video.

For some time, I noticed that rockbox hangs on certain files. These
are mp2 files recorded from digital radio (DVB-S) using vdr on
Linux. The mp2 files are edited (cut) on Linux with mp3DirectCut
(running under Wine). I wrote a script that gets the
playlist/description from the radio station's web page and inserts it
in the mp2 file using the Linux eyeD3 application, limiting the title
text to 255 chars max.

Anyway, I did a test on a file that was causing rockbox to hang. I
edited the id3 tags in iTunes on a mac, just replacing a single letter
and saving the mp2 file back to the rockbox. After that, the file was
slightly larger and no longer caused rockbox to hang.

So, I am assuming the problem was an invalid mp2 file length or maybe
an invalid id3tag formatting that was corrected by iTunes. Rockbox should
still not hang in this case, but I'm not sure how easy it is to fix this.

In the mean time, does anyone know of an easy way to verify and/or
correct the format of mp2 files?
Logged

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: ipod video hangs on certain mp2 files, maybe bad format or id3 tags?
« Reply #1 on: December 17, 2006, 04:19:30 AM »
Quote from: rockport on December 15, 2006, 07:01:16 PM
So, I am assuming the problem was an invalid mp2 file length or maybe
an invalid id3tag formatting that was corrected by iTunes. Rockbox should
still not hang in this case, but I'm not sure how easy it is to fix this.

Do you have an example file, preferably not too large, that I could take a look at?
Logged

Offline rockport

  • Member
  • *
  • Posts: 4
Re: ipod video hangs on certain mp2 files, maybe bad format or id3 tags?
« Reply #2 on: December 17, 2006, 06:51:45 AM »
I could post an example, but it may not be necessary. I did some more tests on plain mp3 files and found that setting an id3v2 title longer than about 132 chars causes the ipod video to hang when playing it. (It could be that a buffer with length 128 is overflowing, and since this is C code, you might not notice it right away until it overflows more than a few bytes).

I did notice a "char temp_buf[128]" in gwps-common.c that deals with displaying id3 tags, but I don't know if this is the cause. I suspect it is something like that though. There probably needs to be a check for buffer overflow there somewhere.

I used the eyeD3 application to set the title, but I noticed the same problem when using the id3v2 application.
The titles are sometimes rather long because I get the description of a broadcast from a web page. I thought it would be enough to limit the length to 256 or so chars, although according to the id3v2 standard there should be no limit, as far as I know.

Logged

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: ipod video hangs on certain mp2 files, maybe bad format or id3 tags?
« Reply #3 on: December 17, 2006, 09:10:41 AM »
There is a bug report about long tags causing problems, but testing in the simulator and looking at the code hasn't really given me any clues as to what the problem might be. I guess it is time to take a look at what happens on a device... :)

temp_buf shouldn't be the problem here, as it is mainly used to format short stuff, like numbers.
Logged

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: ipod video hangs on certain mp2 files, maybe bad format or id3 tags?
« Reply #4 on: December 17, 2006, 10:57:36 AM »
I just fixed a bug that caused long strings to freeze Rockbox when scrolled. Maybe you could test it to see if it fixes your problem?
Logged

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: ipod video hangs on certain mp2 files, maybe bad format or id3 tags?
« Reply #5 on: December 17, 2006, 02:59:01 PM »
As the reporter of that bug, I thank you, Lear.  Rockbox rocks, and this kind of thing is why.
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline Lear

  • Developer
  • Member
  • *
  • Posts: 533
Re: ipod video hangs on certain mp2 files, maybe bad format or id3 tags?
« Reply #6 on: December 17, 2006, 04:23:25 PM »
Rocks because it takes about a year to fix a bug? ;D

Yep, that's how long the bug has been there...
Logged

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: ipod video hangs on certain mp2 files, maybe bad format or id3 tags?
« Reply #7 on: December 17, 2006, 07:23:58 PM »
Yeah, but it was reported like 2 weeks ago.  Maybe the testers don't rock, but the developers sure do :D
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline rockport

  • Member
  • *
  • Posts: 4
Re: ipod video hangs on certain mp2 files, maybe bad format or id3 tags?
« Reply #8 on: December 18, 2006, 06:18:18 AM »
Thanks to King Lear! I can confirm that it now works.
I really didn't expect a fix that soon. This is great!  ;D

Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  ipod video hangs on certain mp2 files, maybe bad format or id3 tags?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.254 seconds with 15 queries.