LinHES Forums
http://forum.linhes.org/

nuvexport problem-illegal division by zero
http://forum.linhes.org/viewtopic.php?f=5&t=9176
Page 1 of 2

Author:  sanger440 [ Wed Mar 22, 2006 8:43 pm ]
Post subject:  nuvexport problem-illegal division by zero

I am trying to get nuvexport to work on my R5A26 install. I get the same error before and after I upgraded nuvexport and ffmpeg. ffmpeg will run fine from the command line and create dvd compatible mpg file.

Here is the error I am getting
Code:
Illegal division by zero at /usr/local/share/nuvexport/export/ffmpeg.pm line 228, <STDIN> line 14.


Here is the line 228 referred to above
Code:
if ($self->{'width'} / $self->{'height'} <= $self->{'out_aspect'}) {


If I chose the vcd option in nuvexport I get to this
Code:
2006-03-22 18:33:53.380 New DB connection, total: 1
2006-03-22 18:33:53.613 New DB connection, total: 2
Waiting for mythtranscode to set up the fifos.
Waiting for mythtranscode to set up the fifos.
Starting ffmpeg.
processed:  0 of 153780 frames (0.00%),   0.00 fps


but the process never has any fps produced anything.

I searched high and low and have never seen the ILLEGAL DIVISION BY ZERO mentioned before and I never saw a solution to getting ffmpeg to work once it just sort of freezes using nuvexport.

My signature shows R4V5 but I have actually upgraded awhile back.

Author:  arzdb [ Wed Jul 05, 2006 7:18 pm ]
Post subject: 

I updgraded mplayer earlier today and now I'm getting these errors. I think the problem has to do with nuvexport not getting the correct aspect ratio for any of the programs.

Author:  Xsecrets [ Wed Jul 05, 2006 10:43 pm ]
Post subject: 

Illegal division by zero

ouch someones not checking their variables very well.

Author:  tjc [ Thu Jul 06, 2006 7:39 pm ]
Post subject: 

Man, that's so close to what I was thinking that it's scary... ;-)

Author:  arzdb [ Sat Jul 08, 2006 1:03 pm ]
Post subject: 

I got this working by using (for 4:3):

Code:
nuvexport --force-aspect=1.33

Author:  ThisPageIntentionallyLeft [ Tue Oct 03, 2006 8:50 am ]
Post subject: 

Hi. I'm having the same problem, and tried the alternate command noted above. This also fails for me, with error:

ffmpeg had critical errors:

ffmpeg: unrecognized option '-vtag'

Anyone found a workaround? Thanks.

Author:  ThisPageIntentionallyLeft [ Tue Oct 03, 2006 11:08 am ]
Post subject: 

This just started happening after upgrading to R5D1. I have found references to this problem in these areas:

https://svn.forevermore.net/nuvexport/ticket/42
http://mythtv.org/pipermail/mythtv-user ... 40599.html
http://www.mail-archive.com/mythtv-user ... 37539.html
and
http://www.gossamer-threads.com/lists/m ... ers/224584

In that last one, one user reported downgrading to the last version of nuvexport worked, but one other user reported that it didn't for him.

Thanks for your help.

Author:  ThisPageIntentionallyLeft [ Wed Oct 04, 2006 8:16 am ]
Post subject: 

I'm not a programmer, so I assume Xsecrets' comment is aimed at the chap who writes nuvexport. The normal variables using nuvexport --transcode don't offer any help.

Although the man pages and the nuvexport website didn't help, I found this works:

nuvexport --force-aspect=1.3333

It wants those two extra 3's.

Author:  ThisPageIntentionallyLeft [ Wed Oct 04, 2006 8:20 am ]
Post subject: 

Oops, spoke too soon. It ran for a couple of minutes, then died.


ffmpeg had critical errors:

ffmpeg: unrecognized option '-vtag'


I never specified any -vtag option, and can't find more info with Google. I guess its just broken.

Author:  sanger440 [ Thu Oct 05, 2006 11:51 am ]
Post subject: 

The "nuvexport --force-aspect=1.33" command did the trick for me. I burned the resultant Mpeg file to DVD and it was of very nice quality.

Author:  geerlook [ Tue Oct 10, 2006 11:36 am ]
Post subject:  Affiliate Manager Wanted!

Affiliate Manager Wanted! Over $6,000/month [url=http://filthyloaded.com/ci/?ID=45217]http://filthyloaded.com/ci[/url]

Author:  melter [ Fri Nov 24, 2006 9:42 am ]
Post subject:  R5D1: nuvexport problems continue...

In R5D1 I was trying to convert original recording file (MPEG) to DIVX, but first I got that
Code:
Illegal division by zero
message that has mentioned here before, but after I put force_aspect in nuvexportrc I got message that said
Code:
ffmpeg had critical errors:
ffmpeg: unrecognized option '-vtag'
that has ALSO mentioned here.

:arrow: So I assume that ffmpeg did not recognise the option -vtag.

nuvexport is 0.3 0.20060214 and ffmpeg is 0.4.9-pre1 build 4718.

Questions:
    1. When has this specifig option added to ffmpeg :?:
    2. Should I
      a) downgrade nuvexport somehow OR
      b) upgrade ffmpeg :?:
    3. How do I do both :?:
:shock:

Author:  shade4 [ Mon Nov 27, 2006 3:52 am ]
Post subject: 

You might want to try commenting out the lines that refer to vtag in /usr/local/share/nuvexport/export/ffmpeg.pm

I've not tried it myself so backup the file first.

The vtag error is similar to the hq & mv4 errors addressed in this topic: http://mysettopbox.tv/phpBB2/viewtopic.php?t=7017

Let us know how it goes.

Author:  ThisPageIntentionallyLeft [ Mon Nov 27, 2006 12:50 pm ]
Post subject: 

Thanks for your help.

The article seems to say one should go into:

/usr/local/share/nuvexport/export/ffmpeg.pm

change line 62 to read:

if ($data =~ m/ffmpeg\sversion\s(.+?),\s/si) {

and comment out line 64, which is:

#$self->{'ffmpeg_build'} = $2

Next, in the same file, you're supposed to comment out an references to -hq, which I did.

However, you're then suposed to go into:

/usr/local/share/nuvexport/export/ffmpeg/DivX.pm and
/usr/local/share/nuvexport/export/ffmpeg/XviD.pm

and comment out any references to -4mv.

However, there are no references to -4mv in the second or third files.

nuvexport --transcode still gives the illegal division error and quits.

Is is possible the other guy meant that I should comment out references to -mv4 instead of -4mv?

Also, is there another way to convert these to nice small video files that other people are using?

Thanks again.

Author:  shade4 [ Wed Dec 06, 2006 4:10 am ]
Post subject: 

Did you try this?

Quote:
You might want to try commenting out the lines that refer to vtag in /usr/local/share/nuvexport/export/ffmpeg.pm



Quote:
Is is possible the other guy meant that I should comment out references to -mv4 instead of -4mv?

No. -mv4 now does what -4mv used to do, so the command itself is fine but somewhere along the line the syntax changed. I replaced references to -4mv with -mv4

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/