ydegoyon@gmail.com | 15 Oct 08:47
Picon

theora streamer for Android anyone?

ola,

i am one of the developers of http://giss.tv,
some people here might know about it.

we use since 5 years some tools
( gstreamer, ffmpeg2theora, pure data, ... )
to make Ogg/Theora/Vorbis
streams related to media-hacktivism
and social movements.

lately, we realized how important it becomes to
have lighter tools in some contexts where you cannot set
a medialab and a decent network,
like in pacific occupation of public spaces
( plaza catalunya, puerta del sol, ... ).

that's why we are trying now to develop
some streaming solutions for mobile phones
and, logically, we try right now to make this work
on Android.

i compiled libogg, libvorbis and libtheora for ARM
and linked it to the Java interface using JNI...
but alas, no luck, it crashes in various places
of the native code, so i guess i need a proper port of the libraries
to Android ( that should work on ARM processors
with fixed point processing no ? ).

i'm writing now this message to know
(Continue reading)

j | 31 Jul 18:28
Favicon

ffmpeg2theora 0.28 released

ffmpeg2theora 0.28 - http://v2v.cc/~j/ffmpeg2theora/

Some changes that went into this release:
 - select resize method via commandline
 - fix 5.1 channel ordering
 - update to FFmpeg 0.7 branch
 - additional bug fixes

Source:
 http://v2v.cc/~j/ffmpeg2theora/downloads/ffmpeg2theora-0.28.tar.bz2
 svn co https://svn.xiph.org/tags/ffmpeg2theora/ffmpeg2theora-0.28

Binaries:
 Linux 32bit
     http://v2v.cc/~j/ffmpeg2theora/ffmpeg2theora-0.28.linux32.bin
 Linux 64bit
     http://v2v.cc/~j/ffmpeg2theora/ffmpeg2theora-0.28.linux64.bin
 Mac OS X
     http://v2v.cc/~j/ffmpeg2theora/ffmpeg2theora-0.28.pkg
 Windows
     http://v2v.cc/~j/ffmpeg2theora/ffmpeg2theora-0.28.exe
_______________________________________________
theora-dev mailing list
theora-dev <at> xiph.org
http://lists.xiph.org/mailman/listinfo/theora-dev
Ralph Giles | 27 May 01:01
Favicon

media.xiph.org y4m rearrangement

All,

Just to let you know, we've flattened the file hierarchy in Tim's
(derf's) collection of y4m-format test clips. Previously, the HD
content was sorted into separate directories. Now it's all in the same
directory as the SD and CIF-resolution files.

If you have a mirror, you can save yourself some bandwidth by manually
moving everything up a level: 'cd y4m; mv *p/* .' before rsyncing
again.

If you don't have a mirror and would like one, the archive is
available over anonymous rsync:

rsync rsync://media.xiph.org/y4m/  # for a file listing
rsync -a --progress rsync://media.xiph.org/y4m/ y4m/ # for a complete copy

If you're using test scripts which assume the old layout, they will
need updating.

 -r

--

-- 
Ralph Giles
Xiph.org Foundation for open multimedia
David Schueler | 23 May 12:02
Picon
Favicon

[Cortado] How to support seeking in on-the-fly generated Theora stream?

Hello all!

i want to use Theora in a little video portal, because its free and open 
source and i want to contribute some code to get the Java Theora player 
(Cortado) more feature-rich.
But now I'm stuck and hope that someone can point me into the right 
direction.

I have videos stored in several formats (mostly H.264 or MPEG4) and use 
ffmpeg2theora to recode them on the fly. The recoded output is send via 
HTTP stream directly to the Cotrado player which stores the data and 
begins playing if enough data is buffered.
In practice this looks like this is a PHP file:
passthru("ffmpeg2theora -o - ".$source." 2> /dev/null");

I recoded the Queue.java (Queue class) that the queue array is not a dump 
FIFO anymore and called it QueueSeek.java.
Now the Buffer array is filled at the end and a variable points to the 
current play position which gets increased on every loop and sends the 
data to the next sink pad (at OggDemux).

QueueSeek Buffer:

           +--# data added at the end
+0-1-2-3-4-v-------
|#|#|#|#|#| | | | -> unlimited capacity
+----|-------------
     v
current play position
data will be send to demuxer
(Continue reading)

andrew aspden | 27 Apr 17:28
Picon

Re: theora-dev Digest, Vol 81, Issue 9

The one I got was the download on the download page, the svn version seems to be working just fine

On Tue, Apr 26, 2011 at 12:00 PM, <theora-dev-request <at> xiph.org> wrote:
Send theora-dev mailing list submissions to
       theora-dev <at> xiph.org

To subscribe or unsubscribe via the World Wide Web, visit
       http://lists.xiph.org/mailman/listinfo/theora-dev
or, via email, send a message with subject or body 'help' to
       theora-dev-request <at> xiph.org

You can reach the person managing the list at
       theora-dev-owner <at> xiph.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of theora-dev digest..."


Today's Topics:

  1. Re: Can't compile libtheora vs2010 (Timothy B. Terriberry)


----------------------------------------------------------------------

Message: 1
Date: Mon, 25 Apr 2011 13:32:44 -0700
From: "Timothy B. Terriberry" <tterribe <at> xiph.org>
Subject: Re: [theora-dev] Can't compile libtheora vs2010
Cc: theora-dev <at> xiph.org
Message-ID: <4DB5DA6C.7010805 <at> xiph.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I haven't seen our normal win32 maintainer online for a few days, so
I'll jump in here and respond to this.

> 1>c1 : fatal error C1083: Cannot open source file:
> '..\lib\dec\x86_vc\x86stat.c': No such file or directory

The project file in svn has x86state.c, not x86stat.c. I just checked.
Where did you get your project file?

As for the rest, perhaps you moved the project file relative to the
source files? (I'll note that the project files in svn are in
win32/VS2010/libtheora and the path starts with "..\..\..", not simply
".."). If so, you'll need to either delete and re-add the source files
or update your path settings.


------------------------------

_______________________________________________
theora-dev mailing list
theora-dev <at> xiph.org
http://lists.xiph.org/mailman/listinfo/theora-dev


End of theora-dev Digest, Vol 81, Issue 9
*****************************************

_______________________________________________
theora-dev mailing list
theora-dev <at> xiph.org
http://lists.xiph.org/mailman/listinfo/theora-dev
andrew aspden | 22 Apr 21:04
Picon

Can't compile libtheora vs2010

I'm getting errors like so on initial build of libtheora -
 

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\x86_vc\x86stat.c': No such file or directory

1> mmxstate.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\x86_vc\mmxstate.c': No such file or directory

1> mmxloopfilter.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\x86_vc\mmxloopfilter.c': No such file or directory

1> mmxidct.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\x86_vc\mmxidct.c': No such file or directory

1> mmxfrag.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\x86_vc\mmxfrag.c': No such file or directory

1> state.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\state.c': No such file or directory

1> quant.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\quant.c': No such file or directory

1> internal.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\internal.c': No such file or directory

1> info.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\info.c': No such file or directory

1> idct.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\idct.c': No such file or directory

1> huffdec.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\huffdec.c': No such file or directory

1> fragment.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\fragment.c': No such file or directory

1> dequant.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\dequant.c': No such file or directory

1> decode.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\decode.c': No such file or directory

1> decinfo.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\decinfo.c': No such file or directory

1> decapiwrapper.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\decapiwrapper.c': No such file or directory

1> bitpack.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\bitpack.c': No such file or directory

1> apiwrapper.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\dec\apiwrapper.c': No such file or directory

1> recon_mmx.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\x86_32_vs\recon_mmx.c': No such file or directory

1> fdct_mmx.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\x86_32_vs\fdct_mmx.c': No such file or directory

1> Generating Code... (TaskId:16)

1> Compiling... (TaskId:16)

1> dsp_mmx.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\x86_32_vs\dsp_mmx.c': No such file or directory

1> reconstruct.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\reconstruct.c': No such file or directory

1> mode.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\mode.c': No such file or directory

1> mcenc.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\mcenc.c': No such file or directory

1> mathops.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\mathops.c': No such file or directory

1> frinit.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\frinit.c': No such file or directory

1> frarray.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\frarray.c': No such file or directory

1> encoder_quant.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\encoder_quant.c': No such file or directory

1> encoder_toplevel.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\encoder_toplevel.c': No such file or directory

1> encoder_idct.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\encoder_idct.c': No such file or directory

1> encoder_huffman.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\encoder_huffman.c': No such file or directory

1> encode.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\encode.c': No such file or directory

1> encapiwrapper.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\encapiwrapper.c': No such file or directory

1> dct_encode.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\dct_encode.c': No such file or directory

1> dct_decode.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\dct_decode.c': No such file or directory

1> dct.c (TaskId:16)

1>c1 : fatal error C1083: Cannot open source file: '..\lib\enc\dct.c': No such file or directory

1> Generating Code... (TaskId:16)

1> The command exited with code 2. (TaskId:16)

1>Done executing task "CL" -- FAILED. (TaskId:16)

1>Done building target "ClCompile" in project "theora_static.vcxproj" -- FAILED.: (TargetId:37)

_______________________________________________
theora-dev mailing list
theora-dev <at> xiph.org
http://lists.xiph.org/mailman/listinfo/theora-dev
Silvia Pfeiffer | 12 Apr 02:44
Picon
Gravatar

using Kate for WebVTT encapsulation

(sending this publicly so the discussion about this is in the open)

Hi OggK, all,

OggK, you've probably seen that the bug in Firefox for adding Kate
support has been closed as WONTFIX:
https://bugzilla.mozilla.org/show_bug.cgi?id=481529

I've just posted a reply there mentioning how I envisage in-band
WebVTT support to be provided through Kate. I want to ask your
opinion.

In case you haven't heard about WebVTT yet, it's the time-aligned text
format that has been developed by the WHATWG as the baseline text
format for HTML5 media elements, see
http://www.whatwg.org/specs/web-apps/current-work/webvtt.html .
Also see http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#the-track-element
for how to include it with a audio or video element.

My idea is that - because WebVTT is so similar to SRT - it would be
simple to support WebVTT in Ogg by encapsulating it in a Kate track
and making sure that it can be extracted again without loss of
information through the kate libraries.

There would only be a few changes necessary:
* WebVTT has a header which needs to be parsed and re-created.
* Also, there is a suggestion for inclusion of name-value Metadata at
the top right after the header, which we'd want to retain (maybe in a
header or a first packet).
* Then there are cue settings, which are position modifiers on each
cue (segment of timed text). They need to be recreated, too.

The marked-up text inside cues needs to be retrieved unchanged.

For an old, but still mostly correct explanation with examples of some
of the things see:
http://annodex.net/~silvia/tmp/WebSRT/ (WebSRT got renamed to WebVTT)
and for something a bit newer see:
http://www.html5videoguide.net/presentations/WebVTT/

I'm just wondering what you think about this kind of approach.

Cheers,
Silvia.
Alexander Lubyagin | 8 Apr 14:54
Picon
Favicon
Gravatar

Inverse DCT in coding stage

Why in the procedure oc_enc_block_transform_quantize() is used function oc_idct8x8()?
After all, Inverse DCT only need to decoding stage, rather than coding?
Alexander Lubyagin | 7 Apr 22:33
Picon
Favicon
Gravatar

binary stream after tokenizer and huffman

Which procedure/function or structure returns finally formed binary stream?
I see lib/tokenize.c and lib/encode.c. But it is too hard to understand novice.
Theora algorithm differ in coding with JPEG: http://www.pcs-ip.eu/index.php/main/edu/8

Which function/structure returns stream like this:
100000100011001101101101111101011111111010110011010
Alexander Lubyagin | 5 Apr 13:25
Picon
Favicon
Gravatar

quantize after fdct, _dequant table, and idct

1) What are you doing "mathematically" in a procedure x86/x86enquant: oc_enc_quantize_sse2()?
This - the assembler code, and I do not understand mathematically - that's going on there.

--- A:
      120      121       28       73      -20      -99      -98     -100
      123      122      112      108       73      -32     -102      -98
      123      123      117      121      100       74      -15      -97
      124      125      125      124      123      116       74      -33
      125      125      125      125      124      124      100       74
      124      124      124      125      125      124      121      114
      125      125      124      125      125      125      120      117
      125      125      125      125      125      125      123      113

--- _dct:
 2767 1165 -439 154 15 24 -87 -53
 -1254 1080 -245 0 125 -15 -101 -67
 -512 260 212 -207 200 -49 -80 -55
 -111 -111 300 -166 125 -17 -70 -45
 -54 -69 127 18 -31 60 -82 -30
 -50 -30 40 83 -74 72 -68 -35
 -31 -33 37 48 -40 40 -28 -44
 -21 -13 29 12 1 -3 11 -44

--- _dequant:
 24 32 32 36 32 32 40 36
 36 36 40 40 40 44 48 56
 48 48 48 48 48 56 56 56
 52 56 60 56 60 60 60 56
 60 56 60 64 64 64 60 60
 64 60 56 60 64 64 64 64
 64 64 64 64 64 60 64 64
 64 64 64 64 64 64 64 64

--- _qdct:
 115 36 -39 -14 34 -14 4 -7
 7 -3 -1 -3 5 0 0 0
 3 -4 6 -1 -1 -1 -1 2
 -3 4 0 -2 -1 -2 -1 2
 0 1 -1 0 0 1 1 -1
 0 -1 -1 -1 -1 1 -1 1
 0 0 -1 1 -1 -1 0 -1
 1 0 0 0 -1 -1 0 -1

So, _qdct[i][j] = _dct[i][j] / _dequant[i][j] ?

2) Second question - you are using:
24 20 20 20 20 16 24 20
20 20 28 24 24 28 32 40
32 32 28 28 32 44 40 40
36 40 44 44 44 44 44 44
44 44 44 48 48 48 44 44
48 44 44 44 48 48 48 48
48 48 48 48 48 44 48 48
48 48 48 48 48 48 48 48
, or
24 32 32 36 32 32 40 36
36 36 40 40 40 44 48 56
48 48 48 48 48 56 56 56
52 56 60 56 60 60 60 56
60 56 60 64 64 64 60 60
64 60 56 60 64 64 64 64
64 64 64 64 64 60 64 64
64 64 64 64 64 64 64 64
for luma plane,

and
28 28 28 36 32 36 52 40
40 52 60 56 52 56 60 60
60 60 60 60 60 60 60 60
60 60 60 60 60 60 60 60
60 60 60 60 60 60 60 60
60 60 60 60 60 60 60 60
60 60 60 60 60 60 60 60
60 60 60 60 60 60 60 60
for chroma plane?

3) Third question. How do you restore the original matrix after fdct and quantize ...
Used dequantize + idct?
Alexander Lubyagin | 4 Apr 11:39
Picon
Favicon
Gravatar

RLE for DC/AC-coefficients separately for the blocks or at whole?

It is proper way - to code DC/AC-coefficients for all macro-blocks at whole?
I think that coding for DC/AC-coefficients for blocks separately gives lesser RLE-compression ratio.
It is right?

For example, at first we code DC-coefficients for all blocks. Compress they by RLE.
Then, AC(1) coefficients. Compress it by RLE.
And ... AC(63) coefficients for all blocks. Compress by RLE.
It is better for RLE-coding?

Gmane