[mythtv-users] Problems get thumbnails for mythburn
David Asher
david.asher at caviumnetworks.com
Mon Feb 13 22:14:08 UTC 2006
I installed the mythburn scripts from CVS, and am trying to understand
how to add the ability to transcode from HD resolution to DVD resolution
as part of the scripts. As such, I've modified the scripts a bit to run
ffmpeg to reencode to ntsc-dvd format (720x480, with VOBUs) in place of
running projectx/mplex.
Most things are working, but the thumbnails are all coming out green
from transcode. Here's the really odd part, however: the transcode
command run from an xterm works correctly! It only fails when run from
mythweb. To try and rule out permission issues, I su'ed to the apache
user (switched to bash from nologin) and ran the same command and it
still worked! It ONLY produces green thumbnails when run from mythweb.
I've run out of ideas how to debug this.
My system is FC4, transcode 1.0.2 from atrpms (transcode-1.0.2-21.rhfc4.at)
Below are the transcode logs (-q 2) for both runs.
Any suggestions greatly appreciated. (including a better place to post
this question)
David.
mythweb (green thumbnail) log:
transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
[tcprobe] MPEG program stream (PS)
att0=0, att1=0
tc_memcpy: using sse for memcpy
[import_null.so] v0.2.0 (2002-01-19) (video) null | (audio) null
Audio capability flag 0xffffffff | 0x1
Video capability flag 0xffffffff | 0x2
[export_null.so] v0.1.2 (2001-08-17) (video) null | (audio) null
(encoder.c) audio capability flag 0xffffffff | 0x1
[export_jpg.so] v0.2.1 (2003-08-06) (video) *
(encoder.c) video capability flag 0x1b | 0x2
(decoder.c) audio thread id=-1246520400
(decoder.c) video thread id=-1257010256
(encoder.c) encoder last frame finished (2/2)
(encoder.c) encoder closed
(decoder.c) import stop requested by client=-1208649152
(main=-1208649152) import status=1
(decoder.c) audio import cancelation requested (2)
(decoder.c) A/V import canceled (-1208649152) (-1208649152)
(decoder.c) video thread exit (ret_code=0) (status_code=4294967295)
(decoder.c) audio thread exit (ret_code=0) (status_code=14)
(decoder.c) vframe_list_lock=0
(decoder.c) aframe_list_lock=0
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
(probe.c) V magic=0x0, A magic=0x0, V codec=0x0, A codec=0x0
(probe.c) V magic=, A magic=, V codec=unknown, A codec=unknown
[transcode] auto-probing source
/myth/mythburn/mythburn/temp/1071_20060209203000.mpg (ok)
[transcode] V: import format | unknown (V=null|A=null)
5994 frames to 5995 frames
searching /myth/mythburn/mythburn/temp/1071_20060209203000.mpg.tcindex
for frame 5994
/myth/mythburn/mythburn/temp/1071_20060209203000.mpg.tcindex: -c
5994-5995 -> -L 49316 -c 1-2
[transcode] V: import frame | disabled
[transcode] V: zoom | 140x105 nan:1 (Lanczos3)
[transcode] V: bits/pixel | 4.898
[transcode] V: decoding fps,frc | 25.000,0
[transcode] V: Y'CbCr | YV12/I420
[transcode] A: import format | 0x2000 AC3 [ 0,16,0]
[transcode] A: export | disabled
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame | 0 (0.000000)
[transcode] A: adjustment | 0 at 1000
[transcode] V: IA32/AMD64 accel | sse2 (sse2 sse mmxext mmx asm C)
[transcode] encoder delay = decode=40000 encode=40000 usec
[transcode] V: video buffer | 10 @ 140x105
[transcode] allocating 10 framebuffer (static)
loading audio import module /usr/lib/transcode/import_null.so
loading video import module /usr/lib/transcode/import_null.so
loading audio export module /usr/lib/transcode/export_null.so
loading video export module /usr/lib/transcode/export_jpg.so
[transcode] starting 1 frame processing thread(s)
[transcode] starting 1 frame processing thread(s)
clean up |(frame_threads.c) audio frame processing threads canceled
(frame_threads.c) video frame processing threads canceled
frame threads |(decoder.c) unloading audio import module
(decoder.c) unloading video import module
unloading export modules
unload modules | cancel signal | internal threads |[transcode] encoded
1 frames (0 dropped, 0 cloned), clip length 0.04 s
[transcode] buffer released
done
xterm (good thumbnail) log:
transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
[tcprobe] MPEG program stream (PS)
SCR= 0 ( 0) unit=0 @ offset 0.0000 (sec)
att0=0, att1=94
tc_memcpy: using sse for memcpy
[import_null.so] v0.2.0 (2002-01-19) (video) null | (audio) null
Audio capability flag 0xffffffff | 0x1
[import_vob.so] v0.6.0 (2003-10-02) (video) MPEG-2 | (audio)
MPEG/AC3/PCM | (subtitle)
Video capability flag 0x2f | 0x2
[export_null.so] v0.1.2 (2001-08-17) (video) null | (audio) null
(encoder.c) audio capability flag 0xffffffff | 0x1
[export_jpg.so] v0.2.1 (2003-08-06) (video) *
(encoder.c) video capability flag 0x1b | 0x2
(iodump.c) RAW stream
tc_memcpy: using sse for memcpy
[tcextract] (pid=17434) starting, doing mpeg2
[packets.c] allocating 16384 framebuffer (static)
[decode_mpeg2.c] libmpeg2 0.4.0b loop decoder
[decode_mpeg2.c] libmpeg2 acceleration: mmxext
(clone.c) reading video frame sync data from /tmp/filez00BnT
[demuxer.c] (pid=17433) MPEG sequence start code in packet 000000 for PU [0]
[demuxer.c] (pid=17433) processing PU [0], on at PTS=200.4664 sec
(decoder.c) audio thread id=-1282552912
(decoder.c) video thread id=-1293042768
[demuxer.c] (pid=17433) audio packet 000026 for PU [0] skipped (-0.1598)
[demuxer.c] AV fine-tuning: 31 ms
[demuxer.c] (pid=17433) audio packet 000046 for PU [0] skipped (-0.1278)
[demuxer.c] (pid=17433) audio packet 000064 for PU [0] skipped (-0.0638)
[demuxer.c] (pid=17433) AV sync established for PU [0] at PTS=200.4680
(-0.0318)
(encoder.c) encoder last frame finished (2/2)
(encoder.c) encoder closed
(decoder.c) import stop requested by client=-1208681920
(main=-1208681920) import status=1
(decoder.c) A/V import canceled (-1208681920) (-1208681920)
(decoder.c) video thread exit (ret_code=0) (status_code=4294967295)
(decoder.c) audio thread exit (ret_code=0) (status_code=4294967295)
(decoder.c) vframe_list_lock=0
(decoder.c) aframe_list_lock=0
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
(probe.c) V magic=0x0, A magic=0x0, V codec=0x10000, A codec=0x2000
(probe.c) V magic=, A magic=, V codec=MPEG-2, A codec=AC3
[transcode] auto-probing source
/myth/mythburn/mythburn/temp/1071_20060209203000.mpg (ok)
[transcode] V: import format | MPEG-2 (V=vob|A=null)
5994 frames to 5995 frames
searching /myth/mythburn/mythburn/temp/1071_20060209203000.mpg.tcindex
for frame 5994
/myth/mythburn/mythburn/temp/1071_20060209203000.mpg.tcindex: -c
5994-5995 -> -L 49316 -c 1-2
[transcode] V: AV demux/sync | (2) initial MPEG sequence / enforce
frame rate
[transcode] V: import frame | 720x480 1.50:1 encoded @ 16:9
[transcode] V: zoom | 140x105 1.33:1 (Lanczos3)
[transcode] V: bits/pixel | 5.107
[transcode] V: decoding fps,frc | 23.976,1
[transcode] V: Y'CbCr | YV12/I420
[transcode] A: import format | 0x2000 AC3 [48000,16,2] 384
kbps
[transcode] A: export | disabled
[transcode] V: encoding fps,frc | 23.976,1
[transcode] A: bytes per frame | 8008 (8008.000000)
[transcode] A: adjustment | 0 at 1000
[transcode] V: IA32/AMD64 accel | sse2 (sse2 sse mmxext mmx asm C)
[transcode] encoder delay = decode=40000 encode=40000 usec
[transcode] V: video buffer | 10 @ 720x480
[transcode] allocating 10 framebuffer (static)
loading audio import module /usr/lib/transcode/import_null.so
loading video import module /usr/lib/transcode/import_vob.so
loading audio export module /usr/lib/transcode/export_null.so
loading video export module /usr/lib/transcode/export_jpg.so
[transcode] starting 1 frame processing thread(s)
[transcode] starting 1 frame processing thread(s)
[import_vob.so] tccat -i
"/myth/mythburn/mythburn/temp/1071_20060209203000.mpg" -t vob -d 3 -S
49316 | tcdemux -s 0x80 -x mpeg2 -S 0 -M 2 -f 23.976024 -P
/tmp/filez00BnT -d 3 | tcextract -t vob -a 0 -x mpeg2 -d 3 | tcdecode
-x mpeg2 -d 3 -y yv12
clean up |(frame_threads.c) audio frame processing threads canceled
(frame_threads.c) video frame processing threads canceled
frame threads |(decoder.c) unloading audio import module
(decoder.c) unloading video import module
unloading export modules
unload modules | cancel signal | internal threads |[transcode] encoded
1 frames (1 dropped, 0 cloned), clip length 0.04 s
[transcode] buffer released
done
More information about the mythtv-users
mailing list