> Unfortunately, the ogg stack is likely broken and in thet case will be
> fixed ASAP.

yup.
9,223,372,036,854,775,936
exa,p,t,g,m,k,b
9 exabytes!

./configure \
      --enable-ogg \
      --enable-vorbis \
      --enable-vorbisenc \
      --enable-theora \
      --enable-libdv \


+ transcode -i test-1.dv -x dv -y V=theora,A=vorbis,M=ogg -o test.ogg
transcode v1.2.0-dev3 (C) 2001-2003 Thomas Oestreich, 2003-2009 Transcode Team
libdvdread: Encrypted DVD support unavailable.
************************************************
**                                            **
**  No css library available. See             **
**  /usr/share/doc/libdvdread4/README.Debian  **
**  for more information.                     **
**                                            **
************************************************
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdread: Encrypted DVD support unavailable.
************************************************
**                                            **
**  No css library available. See             **
**  /usr/share/doc/libdvdread4/README.Debian  **
**  for more information.                     **
**                                            **
************************************************
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
[transcode] V: auto-probing     | test-1.dv (OK)
[transcode] V: import format    | DigitalVideo in unknown (module=dv)
[transcode] A: auto-probing     | test-1.dv (OK)
[transcode] A: import format    | PCM in unknown (module=dv)
[transcode] V: AV demux/sync    | (1) sync AV at initial MPEG sequence
[transcode] V: import frame     | 720x480  1.50:1  encoded @ 4:3
[transcode] V: bits/pixel       | 0.174
[transcode] V: decoding fps,frc | 29.970,4
[transcode] V: video format     | YUV420 (4:2:0) aka I420
[transcode] A: import format    | 0x1     PCM          [48000,16,2] 1536 kbps
[transcode] A: export format    | 0xffffffff unknown      [48000,16,2]  128 kbps
[transcode] V: export format    | (null)
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame  | 7680 (7680.000000)
[transcode] A: adjustment       | 0...@1000
[transcode] H: worker threads   | 2 (2 hardware)
[transcode] H: IA32/AMD64 accel | sse3 sse2 sse mmx cmove asm
[transcode] V: video buffer     | 10 @ 720x480 [0x30323449]
[transcode] A: audio buffer     | 10 @ 48000x2x16
[import_dv.so] v0.3.1 (2003-10-14) (video) DV | (audio) PCM
[encode_vorbis.so] v0.0.7 (2009-02-07) vorbis audio encoder using libvorbis
[encode_theora.so] v0.1.2 (2009-02-07) theora video encoder using libtheora
[write_ogg.so] v0.1.0 (2008-01-01) create an ogg stream using libogg
[import_dv.so] tcextract -x dv -i "test-1.dv" -d 0 | tcdecode -x dv -y pcm -d 0
[import_dv.so] tcextract -x dv -i "test-1.dv" -d 0 | tcdecode -x dv -y
yuv420p -d 0 -Q 5
[tcframes.c:230] tc_bufalloc(): can't allocate 9223372036854775936 bytes
[export.c] critical: can't allocate encoder buffers
[transcode] critical: failed to init encoder


test-1.dv was generated:


#!/usr/bin/python

import Image, ImageDraw, ImageFont

import subprocess
from optparse import OptionParser

def shell(cmd):
        if not isinstance(cmd,list):
                cmd = cmd.split()
        print cmd
        return subprocess.Popen(cmd)

fontdir='/usr/share/fonts/truetype/freefont'

def mktest(slide_size,p):

    im=Image.new("RGBA",slide_size,colors[0])
    draw = ImageDraw.Draw(im)
    steps = 10
    for i in xrange(steps):
        # j goes from 0 to 1, k goes from 1 to 0.
        j = i/float(steps)
        k = 1-j
        # print i,j,k
        center = slide_size[0]/2,slide_size[1]/2
        fill=[
            (256*j,256*j,256*k),
            (256*j,256*k,256*k),
            (256*j,256*k,256*j),
            ][p-1]
        draw.rectangle([
          (center[0]-(slide_size[0]*k/2),center[1]-(slide_size[1]*k/2)),
          (center[0]+(slide_size[0]*k/2),center[1]+(slide_size[1]*k/2))
          ], fill=fill)

    font = ImageFont.truetype('%s/FreeSans.ttf'%fontdir, 400 )
    text=str(p)
    (width, height)=font.getsize(text)
    x,y=center[0]-width/2, center[1]-height/2 +40
    draw.text((x,y),text,fill='white',font=font)

    name='test-%s'%p
    pngname,dvname="/tmp/%s.png"%name,"/home/carl/temp/%s.dv"%name
    im.save(pngname, format='PNG')
    shell("ffmpeg -loop_input -i %s -f s16le -i /dev/zero -target
ntsc-dv -vframes 2 -y %s" % (pngname,dvname) ).wait()


if __name__=='__main__':

    slide_size=(720,480)
    # slide_size=(360,288)
    colors=('#0c002b','#d8d2c3')
    # colors=('white','#d8d2c3')

    mktest(slide_size,1)
    mktest(slide_size,2)
    mktest(slide_size,3)



-- 
Carl K

Reply via email to