Page 1 of 1

Duration is always shown as 00:00 in podcast listing

Posted: 13 Feb 2010 13:42
by berend
Hello,

I am a web software developer and currently we're adding podcast support (both server and client) to our software. I noticed that VLC does have OK support for podcasts, but I did not manage to convince it that my mp3s really have a non-zero duration:

Image

I use the standard itunes:duration tag for specifying stream duration, that is as far as I know the only option for doing that. A copy of the generated xml of my podcast can be found here: [url]htttp://support.decos.nl/berend/podcast.xml[/url], or if you prefer, you can download a zipped xml file here.

The podcast is a valid rss feed (feedvalidator result) and the itunes:duration tags work fine in iTunes:

Image

My rss item xml looks like this:

Code: Select all

<item> <title>1. Coldplay - See you soon</title> <description> Volgnr.: 1<BR /> Titel: Coldplay - See you soon<BR /> </description> <link>http://5.10.6.200/decosweb/aspx/item.aspx?I=6D4D516489B5CD44B26AAA6DFEB7D4E4</link> <pubDate>Wed, 10 Feb 2010 10:47:17 GMT</pubDate> <category>Berend's Podcast</category> <guid isPermaLink="false">6D4D516489B5CD44B26AAA6DFEB7D4E4</guid> <enclosure url="http://5.10.6.200/decosweb/aspx/3206525912BC363F26985B4A67FCA2E1653BD9E8/950D8DD657B0894ABC11F92F20C5C8B9.mp3" length="2704112" type="audio/mpeg" /> <itunes:duration>00:02:49</itunes:duration> </item>
The format of the duration tag is not complex, and I don't see what I could have done wrong there. It looks like a small bug in VLC player to me. I tried a sample podcast from podCast411, that has the same problem. VLC player versions that I tried were versions 1.0.2, 1.0.3 and 1.0.5 Goldeneye for Windows, using Dutch and US English locale settings under Windows XP.

I hope you will find the time to fix this minor problem. I much prefer to use VLC over iTunes and I really do not want to install iTunes for Windows ...

Re: Duration is always shown as 00:00 in podcast listing

Posted: 14 Feb 2010 16:58
by Jean-Baptiste Kempf
File a bug on trac.videolan.org

Re: Duration is always shown as 00:00 in podcast listing

Posted: 14 Feb 2010 20:38
by berend
I filed ticket #3299. I have looked at the code and I think I identified the point of failure in demux/playlist/podcast.c by comparing the code in that module to the equivalent working code in m3u.c. In a reply to the ticket I have suggested a fix to the podcast code. Unfortunately, I did not manage to get a VLC development environment up and running under Windows, so I do not feel confident to do the correction myself (without development environment I would not be able to test my changes).

Thanks and best regards,

Berend

Re: Duration is always shown as 00:00 in podcast listing

Posted: 14 Feb 2010 21:11
by berend
I have been informed that this was fixed "ages ago". It does work in the latest nightly. There still is a bug though:
For items that are played, the duration reverts to 00:00:
Image

Thanks,

Berend