-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

This pretty much all started out as trying to get commercial detection
going, and turned out ending down different alleys in a fair few bugs.
They may range across mplayer, freevo and kaa so I thought I'd post them
here first before hitting the tracker. The first was with mplayer and
it's time detection problems in MPEG-TS streams - commercial detection
wasn't working as mplayer seemed to randomly get the starting time
position in the video wrong (i.e. hit play on a video and mplayer
reckoned it was 13 hours or so in - comfortably missing all the edl time
values), more discussion is over here:
http://tvcentric.com/viewvc/freevo/trunk/testing/Dischi/dvb-stuff.txt?view=markup&pathrev=5928

Seeing this I thought maybe transcoding the videos first to say XviD and
then trying the commercial detection could work (should it?). So after
setting up the encoding server, video.reencode and hacking the wiki into
shape on these fronts I've found that the mplayer bug seems to have hit
Freevo as well. I noticed a while back that some of my DVB recordings
had strangely large times reported - an hour long episode of Kitchen
Nightmares USA was supposedly 2973 minutes. It didn't bother me then as
they still played fine.

Trying to put Kitchen Nightmares through the encoding-server using the
video.reencode plugin resulted in a traceback:

2008-04-09 11:03:35,845 DEBUG    encodingserver.py (93):
xmlrpc_initEncodeJob(source='/var/tv/recordings/02-14_21:30_Kitchen_Nightmares_Usa.avi',
output='/var/tv/recordings/02-14_21:30_Kitchen_Nightmares_Usa',
friendlyname='Kitchen Nightmares Usa', chapter=None)
2008-04-09 11:03:35,845 DEBUG    trying ext avi
2008-04-09 11:03:35,854 INFO     No Type found by Extension. Trying all
2008-04-09 11:03:35,923 DEBUG    trying audio/mpeg
2008-04-09 11:03:35,925 DEBUG    encodingcore.py (286):
source="/var/tv/recordings/02-14_21:30_Kitchen_Nightmares_Usa.avi"
2008-04-09 11:03:35,925 DEBUG    encodingcore.py (292): Video length is
178428
2008-04-09 11:03:35,925 DEBUG    encodingcore.py (318): /usr/bin/mplayer
- -vf cropdetect=30 -nosound -vo null -frames 10 -fps=540 -sstep 6608
/var/tv/recordings/02-14_21:30_Kitchen_Nightmares_Usa.avi
2008-04-09 11:03:35,926 DEBUG    encodingcore.py (678):
command="/usr/bin/mplayer -vf cropdetect=30 -nosound -vo null -frames 10
- -fps=540 -sstep 6608
/var/tv/recordings/02-14_21:30_Kitchen_Nightmares_Usa.avi"
2008-04-09 11:03:35,929 DEBUG    encodingcore.py (687): Mencoder running
at PID 23260
2008-04-09 11:03:35,947 DEBUG    encodingcore.py (695): MPlayer
dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2008 MPlayer Team

2008-04-09 11:03:35,948 DEBUG    encodingcore.py (695): CPU: Intel(R)
Core(TM)2 CPU          4300  @ 1.80GHz (Family: 6, Model: 15, Stepping: 2)

2008-04-09 11:03:35,948 DEBUG    encodingcore.py (695): CPUflags:  MMX:
1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1

2008-04-09 11:03:35,948 DEBUG    encodingcore.py (695): Compiled for x86
CPU with extensions: MMX MMX2 SSE SSE2

2008-04-09 11:03:35,949 DEBUG    encodingcore.py (695): Unknown option
on the command line: -fps=540

2008-04-09 11:03:35,949 DEBUG    encodingcore.py (695): Error parsing
option on the command line: -fps=540

2008-04-09 11:03:36,451 DEBUG    encodingcore.py (572): All collected
cropopts: {}
2008-04-09 11:03:36,529 INFO     encodingserver.py (112): Initialized
job Kitchen Nightmares Usa (idnr : 43558540)
2008-04-09 11:03:36,545 DEBUG    encodingserver.py (139):
xmlrpc_setVideoCodec(idnr=43558540, vcodec='XviD', tgtsize=0,
multipass=True, vbitrate==1500)
2008-04-09 11:03:36,545 DEBUG    encodingcore.py (215):
setVideoCodec(self, vcodec=XviD, tgtsize=0, multipass=True, vbitrate=1500)
2008-04-09 11:03:36,555 INFO     encodingserver.py (226): Added job
43558540 to the queue
2008-04-09 11:03:36,556 INFO     encodingcore.py (767): queue started
2008-04-09 11:03:36,556 DEBUG    encodingcore.py (798): runQueue
callback data:
2008-04-09 11:03:36,556 DEBUG    encodingcore.py (802): PID 23260
Traceback (most recent call last):
~  File "/usr/lib64/python2.4/site-packages/twisted/web/http.py", line
601, in requestReceived
~    self.process()
~  File "/usr/lib64/python2.4/site-packages/twisted/web/server.py", line
160, in process
~    self.render(resrc)
~  File "/usr/lib64/python2.4/site-packages/twisted/web/server.py", line
167, in render
~    body = resrc.render(self)
~  File "/usr/lib64/python2.4/site-packages/twisted/web/xmlrpc.py", line
117, in render
~    defer.maybeDeferred(function, *args).addErrback(
- --- <exception caught here> ---
~  File "/usr/lib64/python2.4/site-packages/twisted/internet/defer.py",
line 107, in maybeDeferred
~    result = f(*args, **kw)
~  File
"/usr/lib64/python2.4/site-packages/freevo/helpers/encodingserver.py",
line 228, in xmlrpc_queueIt
~    self.queue.startQueue()
~  File "/usr/lib64/python2.4/site-packages/freevo/encodingcore.py", line
768, in startQueue
~    self._runQueue()
~  File "/usr/lib64/python2.4/site-packages/freevo/encodingcore.py", line
837, in _runQueue
~    self.currentjob._generateCL()
~  File "/usr/lib64/python2.4/site-packages/freevo/encodingcore.py", line
339, in _GenerateCLMencoder
~    videopass1 += self._GCLMVideopass(1)
~  File "/usr/lib64/python2.4/site-packages/freevo/encodingcore.py", line
410, in _GCLMVideopass
~    (self.resx, self.resy) = self._OptimalRes(self.info.video[0].width,
self.info.video[0].height )
exceptions.AttributeError: 'MP3' object has no attribute 'video'


This is followed up by an INPUT_ENTER crash in the GUI

Another issue is that Freevo sees some TS files as having no length
(i.e. displays 'None' for the length). These fail to re-encode as well,
the encoding server fails with:

2008-04-09 11:11:19,924 DEBUG    encodingcore.py (286):
source="/var/tv/recordings/03-06_21:30_Kitchen_Nightmares_USA.avi"
2008-04-09 11:11:19,924 DEBUG    encodingcore.py (292): Video length is None
Failed to analyse
"/var/tv/recordings/03-06_21:30_Kitchen_Nightmares_USA.avi": unsupported
operand type(s) for /: 'NoneType' and 'int'
2008-04-09 11:11:19,924 DEBUG    encodingserver.py (109): Analysis failed


Admittedly, both of these files were reported as bad TS files by the
encoding server, but is the time problem fixable? It seems the mplayer
patch in the link above did, but it's for an older version and won't
apply to the latest releases.

Cheers,

Andrew
- --
"Encouraging innovation by restricting the spread & use of information
seems highly counterintuitive to me." - Slashdot comment
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH/WMS/5R+ugbygqQRAn9FAJ924CklXZsxst+haSXPzcQ+o98wHQCfQz7Q
H6DHfCqLfB4hbLoFBkias54=
=bLMs
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to