-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Duncan Webb wrote: | Andrew Jeffery wrote: |> Dirk Meyer wrote: | |> What I was going to work on was automagically re-encoding programs |> (create a TV_RECORD_REENCODE config var or something) after they've |> finished recording (less space required and (hopefully) working |> commercial detection), but came up against the encoding server failing |> because the time wasn't reported properly. The first traceback in the |> first email posted isn't relevant using svn head, the massive length |> problem seems to have been fixed somewhere. I'm thinking the 'None' |> issue could be fixed with something like: |> |> Index: encodingcore.py |> =================================================================== |> --- encodingcore.py (revision 10613) |> +++ encodingcore.py (working copy) |> @@ -318,7 +318,7 @@ |> ~ if config.DEBUG >= 2: |> ~ for f in dir(data): |> ~ _debug_('%s: %s' % (f, eval('data["%s"]' % f)), 2) |> - if data.has_key('length'): |> + if data.has_key('length') and data['length'] is not None: |> ~ self.length = data['length'] |> ~ _debug_('Video length is %s' % self.length) |> ~ else: |> |> i.e. if length is 'None' letting it fall into the else block as it might |> as well have not been specified. | | Do this work, it looks like it should work? If it does that I'll add it | to encodingcode, would like a tracker request though. Dunno, haven't tested it - I was reading the encodingcore code as I was writing the email and spotted that it could be changed. I'll try it and add it to the tracker if it's working :) | |> And midentify at Duncan's suggestion: |> |> [EMAIL PROTECTED] /var/tv/recordings $ ~/mplayer-svn/TOOLS/midentify |> 02-14_21\:30_Kitchen_Nightmares_Usa.ts |> ID_FILENAME=02-14_21:30_Kitchen_Nightmares_Usa.ts |> ID_DEMUXER=mpegts |> ID_VIDEO_FORMAT=0x10000002 |> ID_VIDEO_BITRATE=15000000 |> ID_VIDEO_WIDTH=720 |> ID_VIDEO_HEIGHT=576 |> ID_VIDEO_FPS=25.000 |> ID_VIDEO_ASPECT=0.0000 |> ID_AUDIO_FORMAT=80 |> ID_AUDIO_BITRATE=0 |> ID_AUDIO_RATE=0 |> ID_AUDIO_NCH=0 |> ID_LENGTH=1143.82 |> ID_VIDEO_CODEC=mpegpes |> ID_AUDIO_BITRATE=256000 |> ID_AUDIO_RATE=48000 |> ID_AUDIO_NCH=2 |> ID_AUDIO_CODEC=mp3 |> |> Length is a bit strange... | | | The length is not so strange as the source is interlaced, I would say | that it means 19 mins 03 secs 21 frames 1 field. Of actual playing length? The playing length is meant to be something like 75 minutes... Andrew | | Duncan | | ------------------------------------------------------------------------- | 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 - -- "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 iD8DBQFIArCW/5R+ugbygqQRAm0kAJ4ttTgwfRC7Q+1vgbDrsDaeSxMfHwCfdL1z 9eXuXUg9q0dt8oMEjjeAFHA= =kRlq -----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