nuvexport Bugs

Posted on Saturday 11 November 2006

It seems as though nuvexport development has slowed recently. I’ve run into problems with ffmpeg throwing floating point exceptions when invoked from nuvexport.

After some discussion on the official nuvexport trac about the problem. It seems that the following patch fixes the problem:

--- nuvinfo.pm.orig     2006-10-02 23:42:17.000000000 -0400
+++ nuvinfo.pm  2006-10-12 16:58:12.000000000 -0400
@@ -184,10 +184,10 @@ package mythtv::nuvinfo;
($info{'width'})                 = $data =~ m/^ID_VIDEO_WIDTH=(d+)/m;
($info{'height'})                = $data =~ m/^ID_VIDEO_HEIGHT=(d+)/m;
($info{'fps'})                   = $data =~ m/^ID_VIDEO_FPS=(d+(?:.d*)?)/m;
-        ($info{'audio_sample_rate'})     = $data =~ m/^ID_AUDIO_RATE=(d+)/m;
-        ($info{'audio_bitrate'})         = $data =~ m/^ID_AUDIO_BITRATE=(d+)/m;
+        ($info{'audio_sample_rate'})     = $data =~ m/^ID_AUDIO_RATE=([1-9]d*)/m;
+        ($info{'audio_bitrate'})         = $data =~ m/^ID_AUDIO_BITRATE=([1-9]d*)/m;
($info{'audio_bits_per_sample'}) = $data =~ m/^AUDIO:.+?ch,s*[su](8|16)/mi;
-        ($info{'audio_channels'})        = $data =~ m/^ID_AUDIO_NCH=(d+)/m;
+        ($info{'audio_channels'})        = $data =~ m/^ID_AUDIO_NCH=([1-9]d*)/m;
($info{'fps'})                   = $data =~ m/^ID_VIDEO_FPS=(d+(?:.d*)?)/m;
($info{'aspect'})                = $data =~ m/^ID_VIDEO_ASPECT=(d+(?:[.,]d*)?)/m;
($info{'audio_type'})            = $data =~ m/^ID_AUDIO_CODEC=(d+(?:.d*)?)/m;

I didn’t write this, but it solved a currently unresolved bug. Here’s a link to the original author’s patch.


No comments have been added to this post yet.

Leave a comment

(required)

(required)


Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.


RSS feed for comments on this post |