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
translations translations
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
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Ogg Theora Movie Playback
« previous next »
  • Print
Pages: [1]

Author Topic: Ogg Theora Movie Playback  (Read 7396 times)

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2275
  • /usr/local/bin/weirdo
    • The Nostalgia Roadtrip
Ogg Theora Movie Playback
« on: July 08, 2008, 08:58:20 AM »
One idea I've been kicking around for a while is adding support for an additional video codec into Rockbox. In this case, I'm thinking about Theora (part of the Ogg container format).

Stop in and discuss. Theora is open and royalty-free, included with many other projects (including ffmpeg, VLC, and others), and is licensed under a BSD-style license.

For those interested, here's a link to the current SVN trunk of libtheora:

http://www.theora.org/svn/
Logged
Retired Rockbox dev; still a user!

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Ogg Theora Movie Playback
« Reply #1 on: July 08, 2008, 09:24:04 AM »
To save me from having to do a lot of reading, is there any indication of how good this is for an embedded target? Is it nicely fixed point for example ?
Logged

Read The Manual Please

Offline gevaerts

  • Developer
  • Member
  • *
  • Posts: 1076
Re: Ogg Theora Movie Playback
« Reply #2 on: July 08, 2008, 09:55:55 AM »
I think that if we add another codec, we need to think about an audio-codec like architecture (i.e. one player, multiple codecs).

I personally would like to see more intergration of video playing in the "normal" playback system, so you can e.g. have video files in a playlist

(sorry for trying to turn this into a more general video features thread)
Logged

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2275
  • /usr/local/bin/weirdo
    • The Nostalgia Roadtrip
Re: Ogg Theora Movie Playback
« Reply #3 on: July 08, 2008, 11:20:45 AM »
Quote from: gevaerts on July 08, 2008, 09:55:55 AM
I think that if we add another codec, we need to think about an audio-codec like architecture (i.e. one player, multiple codecs).

I personally would like to see more intergration of video playing in the "normal" playback system, so you can e.g. have video files in a playlist

I think that's been brought up a few times before, actually. I wonder if adding another video codec will give us all an excuse to rearrange the architecture for video playback...
Logged
Retired Rockbox dev; still a user!

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline pondlife

  • Developer
  • Member
  • *
  • Posts: 248
Re: Ogg Theora Movie Playback
« Reply #4 on: July 08, 2008, 12:14:52 PM »
I'd suggest that the existing audio buffering could be used for video, and a new codec system written for both audio and video.... if we want to integrate.

pondlife
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Ogg Theora Movie Playback
« Reply #5 on: July 08, 2008, 12:33:23 PM »
I'd have to say, if a new video codec IS going to be added, I'd prefer to encourage someone to do MPEG4/ASP rather than Theora. Theora's quality has never seemed great, and there's just not a lot of enthusiasm for it. In terms of open codecs, Snow is a lot more interesting but it's more or less a given that it's not gonna run on our hardware.

MPEG4/ASP (DivX, XViD, and probably other various implementation-specific names as well) is often implemented by OF manufacturers (including the H300 and I believe the iPod Video which supports it alongside H.264) so it would allow us some limited support of videos for the original firmwares as well.

And while Theora's under a very, very open license, there's at least two FOSS MPEG4/ASP implementations available to pull code from as a starting point as well.

The main point with Theora is, I'm just not sure anyone will ever use it. More stuff already converts to MPEG2 anyway.
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Ogg Theora Movie Playback
« Reply #6 on: July 09, 2008, 02:17:00 AM »
If we're talking about implementing a more flexible video playback engine with pluggable codecs, I don't really see what difference it makes which codecs get implemented. Just my 2 cents.
Logged

Read The Manual Please

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Ogg Theora Movie Playback
« Reply #7 on: July 09, 2008, 02:18:05 AM »
I'm just sayin', if someone is interested in implementing "a new video codec" but doesn't care too much which one they do, I'd personally advocate a different one.
Logged

Offline saanaito

  • Member
  • *
  • Posts: 354
  • Joni Carr
    • Twitter account
Re: Ogg Theora Movie Playback
« Reply #8 on: July 09, 2008, 09:04:22 AM »
Here is a link to the source code for the VLC media player. Not sure what it's written in (I'm on a Windows PC at the moment so I can't check), but I thought it might be interesting.

http://download.videolan.org/pub/videolan/vlc/0.8.6h/vlc-0.8.6h.tar.gz

 or

http://download.videolan.org/pub/videolan/vlc/0.8.6h/vlc-0.8.6h.tar.bz2

EDIT: Aha. There is indeed, a Vorbis.c and a Theora.c file under /modules in the tarball. However, Theora.c wants to include
Code: [Select]
#include <vlc/vlc.h>
#include <vlc/decoder.h>
#include <vlc/input.h>
#include <vlc/sout.h>

#include <ogg/ogg.h>

#include <theora/theora.h>
those files. So I'm under the impression that to use these files (as an example) would require a TON of editing.......

EDIT 2: I really am an idiot. Just ignore everything I've said.
« Last Edit: July 09, 2008, 05:58:22 PM by Strife89 »
Logged
Rockbox: Sansa Clip Zip, iPod Color, iRiver H320

Android: Moto X4, Galaxy Tab S2 T710

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9373
Re: Ogg Theora Movie Playback
« Reply #9 on: July 09, 2008, 06:48:37 PM »
VLC is mostly just using ffmpeg, which is where half our codecs come from anyway.  Its not a big deal that they include other files, thats actually pretty normal for codecs and isn't all that difficult to deal with.

If we were to add a new codec to mpegplayer, it'd be pretty easy to grab it out off ffmpeg.  The hard part would be fitting it into mpegplayer I think.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Ogg Theora Movie Playback
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.13 seconds with 20 queries.