Ticket #54 (closed enhancement: fixed)

Opened 12 months ago

Last modified 9 months ago

0016815: 4 [Core] Ondersteuning voor OGG Vorbis en Theora formaten (ogg en ogv)

Reported by: admin Owned by:
Priority: major Milestone: MediaMosa 1.6
Component: Transcoding Version: Tested and Accepted
Keywords: Cc:
MoSCoW: Estimated time after impact analysis:
Related to project: none Tested:
Accepted: yes Estimated Hours:

Description


0016815: 4 [Core] Ondersteuning voor OGG Vorbis en Theora formaten (ogg en ogv)
http://mantis.kennisnet.nl/view.php?id=16815

Vanuit verschillende kanten krijgen we vragen over de mogelijkheden voor SURFmedia om open formaten te kunnen streamen. De vragen gaan dan voornamelijk over het ogg-formaat (ogg-vorbis voor audio en ogg-theora voor video).

We zien dat als we .ogv uploaden in SURFmedia 2 via VP-Core, er zelfs een mooie flash transcoding wordt gemaakt. Via de 'download-knop' is het mogelijk om de bestanden aan te bieden aan de gebruikers. Een programma als VLC, en vast ook andere players gaan prima om met progressive download van het videomateriaal.

Jens (zie de mail hieronder) heeft nog wat uitgezocht rondom streaming - oplossingen. Er zijn zowel varianten voor 'ogg' als voor 'any waaronder ogg'. Vooral die eerste (icecast of flumotion) lijken me kandidaten die met relatief weinig werk ingezet zouden kunnen worden, vooral als ze dan alleen gekoppeld hoeven te worden aan content-types die daarvoor niet gestreamed konden worden. Er is dan geen legacy backlog.

As promised wat info over Ogg streaming. Op de website van Theora, de Ogg video codec, noemen ze Icecast (www.icecast.org) en Flumotion
(www.flumotion.net) als mogelijke oplossingen (zie ook
http://theora.org/benefits/). [] Googlen op "icecast theora" en "streaming theora" levert nog veel meer interessante info op, zoals deze uitgebreide howto: http://www.oddsock.org/guides/video.php [] . De WikiPedia?-pagina http://en.wikipedia.org/wiki/Theora [] noemt ook programma's als VLC en FreeJ als mogelijke streamers. Bijkomend voordeel is dat de meeste (zoniet alle) oplossingen die hier genoemd worden ook Ogg Vorbis en MP3 aankunnen, twee populaire audioformaten waar we nog geen streamer voor hebben.

In het kader van architectuurverbetering is het wellicht ook verstandig te kijken naar GStreamer (voor zover dat nog niet is gedaan):
http://en.wikipedia.org/wiki/GStreamer, []
http://gstreamer.freedesktop.org/. [
] GStreamer is een plugin-based filter pipeliner, met andere woorden: met de juiste plugins kun je er van alles in stoppen en er ook weer op legio manieren uitkrijgen en ondertussen ook nog van alles mee doen. Misschien een beetje hoog gegrepen voor VP-core om er nu nog in te stoppen, maar misschien dat er ooit nog development komt...

Change History

Changed 12 months ago by admin

Hoe maken we OGV files?

High Level:
use ffmpeg to turn any video to "rawvideo"
pipe its output to *another* ffmpeg to turn the video to "yuv4mpegpipe"
pipe its output to the libtheora tool
for videos with audio, ffmpeg create a vorbis audio .ogg file.
add tasty metadata (with liboggz utils).
combine the video and audio ogg files to an .ogv output!

Code:
ffmpeg -an -deinterlace -s 400x300 -r 20.00 -i CapeCodMarsh?.avi

-vcodec rawvideo -pix_fmt yuv420p -f rawvideo -
| ffmpeg -an -f rawvideo -s 400x300 -r 20.00 -i - -f yuv4mpegpipe -
| libtheora-1.0/lt-encoder_example --video-rate-target 512k

  • -o tmp.ogv;

ffmpeg -i CapeCodMarsh?.avi -vn -acodec libvorbis

-ac 2 -ab 128k -ar 44100 audio.ogg;

oggz-comment audio.ogg -o audio2.ogg TITLE="Cape Cod Marsh"

ARTIST="Tracey Jaquith"
LICENSE="http://creativecommons.org/licenses/publicdomain/" []
DATE="2004" ORGANIZATION="Dumb Bunny Productions"
LOCATION=http://www.archive.org/details/CapeCodMarsh [
]

Changed 11 months ago by MC-arjen

  • status changed from new to closed
  • resolution set to fixed
  • component set to Transcoding

Fixed in 1.6

We created a transcode profile: 15, with the following settings:

videobitrate:500000;videocodec:libtheora;audiocodec:libvorbis;maintain_aspect_ratio:yes

We also created a 'streaming' server through apache for video's of type ogg. So these files are transcodable and playable in 1.6

Changed 11 months ago by Frans

  • related_to set to none

Mixed feelings. OGG plays in SURFmedia (with some tweaks to SURFmedia
settings). Transcoding of OGG files lack a video stream (see
http://www.20.test.surfmedia.nl/medialibrary/item.html?id=ZMZYcTkcl6YcujTKaXNn6rnW
and
http://www.20.test.surfmedia.nl/medialibrary/item.html?id=2lEn3X8KZ6GZac8uFNMGrzf5).
1.5.x does not support OGG streaming but transcodes made with 1.5.x look
fine (do have a video stream).

Changed 10 months ago by Michiel.Schok

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 10 months ago by Frans

  • version set to Not Accepted

Changed 10 months ago by Frans

Any feedback yet?
Core issue as far as we are concerned.

Changed 9 months ago by MC-arjen

  • status changed from reopened to closed
  • resolution set to fixed

We added an extention to the ogg ticket for better support in html.

Changed 9 months ago by Michiel.Schok

  • accepted changed from no to yes

The problem that our preview transcode was missing a video-stream has been tackled as an univeral transcoding issue. See:http://vpcore-trac.madcap.nl/ticket/42
We now observe that regular transcodings are allright, but we have a strange one in asset FeARYzHQpSePZjJytAWgLnpY.
It's visible on the http://www.20.test.surfmedia.nl/medialibrary/item.html?id=FeARYzHQpSePZjJytAWgLnpY webpage as the preview in top-left.

On core-production it's the same, so it won't stop a 1.6.3 deployment. But there's something going on which has to be investigated.

Streaming on the staging environment (core acceptatie) is working great, but that was also in the 1.6.0 time... We cross our fingers for deployment to production. See http://vpcore-trac.madcap.nl/ticket/31

Changed 9 months ago by Michiel.Schok

  • version changed from Not Accepted to Tested and Accepted
Note: See TracTickets for help on using tickets.