[theora] Add an intro to a theora file without re-encoding?

yorn at gmx.net yorn at gmx.net
Thu Jul 23 13:50:48 PDT 2009


Hi Michael,

> I still have warnings with my output file, though. Would you mind have
> yet another look, please? All the input and output files (+ my script)
> are available on
> http://free-electrons.com/issues/oggvideotools-jul23-2009/
> 
> $ogginfo output.ogv
> Processing file "output.ogv"...
> 
> New logical stream (#1, serial: 1d630bff): type theora
> New logical stream (#2, serial: 5e2bb0d2): type vorbis
> Theora headers parsed for stream 1, information follows...
> Version: 3.2.1
> Vendor: Xiph.Org libTheora I 20081020 3 2 1
> Width: 1280
> Height: 720
> Total image: 1280 by 720, crop offset (0, 0)
> Framerate 25/1 (25.00 fps)
> Aspect ratio undefined
> Colourspace: Rec. ITU-R BT.470-6 Systems B and G (PAL)
> Pixel format 4:2:0
> Target bitrate: 0 kbps
> Nominal quality setting (0-63): 63
> User comments section follows...
>     ENCODER=ffmpeg2theora-0.23
> Vorbis headers parsed for stream 2, information follows...
> Version: 0
> Vendor: Xiph.Org libVorbis I 20070622 (1.2.0)
> Channels: 2
> Rate: 48000
> 
> Nominal bitrate: 48.000000 kb/s
> Upper bitrate not set
> Lower bitrate not set
> User comments section follows...
>     ENCODER=oggVideoTools 0.8
> Warning: Expected frame 5265, got 5266
> Warning: Expected frame 5270, got 5269
> Warning: Expected frame 12663, got 12664
> Warning: Expected frame 12667, got 12666
> Warning: Expected frame 13657, got 13658
> Warning: Expected frame 13660, got 13659
> Warning: Expected frame 14213, got 14214
> Warning: Expected frame 14218, got 14217
> Warning: Expected frame 14875, got 14876
> Warning: Expected frame 14879, got 14878
> Warning: Expected frame 17635, got 17636
> Warning: Expected frame 17638, got 17637
> Vorbis stream 2:
>     Total data length: 4322809 bytes
>     Playback length: 11m:57.264s
>     Average bitrate: 48.214426 kb/s
> Logical stream 2 ended
> Theora stream 1:
>     Total data length: 49279360 bytes
>     Playback length: 11m:57.320s
>     Average bitrate: 549.594156 kb/s
> Logical stream 1 ended
> 
> Actually, these warnings are also present in the resampled video (before
> oggCat):

When I use oggz-validate, everything is ok.
When I use oggz-dump, the packets are displayed (they should correspond with the frame number - see below)

A bit strange ... 

BTW: input.ogv has some incorrect information
#oggz-validate input.ogv
input.ogv: Error:
serialno 1101839243: Terminal header page has non-zero granulepos
serialno 1101839243: Terminal header page contains non-header segment 

This may be the reason for the different stream size (plus the additional encoder information).

oggResize has corrected this.

-Yorn


# oggz-dump -s 0346393738  input2.ogv  | grep "packetno " | less
[...]
00:03:23.588: serialno 0346393738, granulepos 323629, packetno 5104: 1.332 kB
16202995x: serialno 0346393738, calc. gpos 0, packetno 5105: 1.065 kB
16202995x: serialno 0346393738, calc. gpos 0, packetno 5106: 1.033 kB
16202995x: serialno 0346393738, calc. gpos 0, packetno 5107: 921 bytes
00:03:24.100: serialno 0346393738, granulepos 323633, packetno 5108: 984 bytes
16207296x: serialno 0346393738, calc. gpos 0, packetno 5109: 801 bytes
16207296x: serialno 0346393738, calc. gpos 0, packetno 5110: 813 bytes
16207296x: serialno 0346393738, calc. gpos 0, packetno 5111: 961 bytes
16207296x: serialno 0346393738, calc. gpos 0, packetno 5112: 857 bytes
00:03:24.100: serialno 0346393738, granulepos 323638, packetno 5113: 822 bytes
16215838x: serialno 0346393738, calc. gpos 0, packetno 5114: 827 bytes
16215838x: serialno 0346393738, calc. gpos 0, packetno 5115: 718 bytes
16215838x: serialno 0346393738, calc. gpos 0, packetno 5116: 692 bytes
16215838x: serialno 0346393738, calc. gpos 0, packetno 5117: 669 bytes
00:03:24.633: serialno 0346393738, granulepos 323644, packetno 5118: 1.017 kB
16220182x: serialno 0346393738, calc. gpos 0, packetno 5119: 765 bytes
16220182x: serialno 0346393738, calc. gpos 0, packetno 5120: 696 bytes
16220182x: serialno 0346393738, calc. gpos 0, packetno 5121: 596 bytes
00:03:24.633: serialno 0346393738, granulepos 323647, packetno 5122: 711 bytes
00:03:24.633: serialno 0346393738, granulepos 327680, packetno 5123: 31.678 kB
16254916x: serialno 0346393738, calc. gpos 0, packetno 5124: 670 bytes
16254916x: serialno 0346393738, calc. gpos 0, packetno 5125: 458 bytes
16254916x: serialno 0346393738, calc. gpos 0, packetno 5126: 481 bytes
16254916x: serialno 0346393738, calc. gpos 0, packetno 5127: 381 bytes
16254916x: serialno 0346393738, calc. gpos 0, packetno 5128: 490 bytes
16254916x: serialno 0346393738, calc. gpos 0, packetno 5129: 538 bytes
[...]


More information about the theora mailing list