NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 867 868 869 870 871 … 1231 Next »
Xvid decoder problem?

 
  • 0 Vote(s) - 0 Average
Xvid decoder problem?
Humperdinck
Offline

Junior Member

Posts: 18
Threads: 3
Joined: Sep 2005
#51
2005-12-25, 11:12 AM (This post was last modified: 2005-12-25, 03:33 PM by Humperdinck.)
Ok, heheh, silly me. The 0.4.9-pre1 is even so old that there's no xvid support in it. What's strange is that it encoded to divx anyway, probably trying to use the 'risky codecs'.

Now, I grabbed the latest CVS 25/12 and compiled in the xvid library again (http://www.xvid.org, not xlib as it says on soenkeohde) and got yet another version of ffmpeg.

Let's do it like this instead. Edit the source code for the xvidff.c in the libavcodec directory. Look for the lines that says:

} else {
/* We are claiming to be XviD */
x->quicktime_format = 0;
avctx->codec_tag = ff_get_fourcc("xvid");
}

And change ff_get_fourcc("xvid"); to ff_get_fourcc("XVID");

Compile and run. (I had to omit the --enable-faad and --enable-faac, I'm probably missing some code for it.)

Use it with the below settings in config.xml.

<Conversion name="XviD" cmd="-y -i {SOURCE_FILE} -f avi -ab 224 -ac 2 -acodec mp3 -vcodec xvid -b 1250 {DEST_FILE}" targetExtension=".avi" />

However, the resulting files are blocky if there's fast motion involved. Maybe this can be tuned away by using another bitrate or some other ffmpeg setting?

I'll try and attach the files to this post later since it's not working now.

Merry Christmas!
LilY0da
Offline

Senior Member

Posts: 442
Threads: 25
Joined: Jul 2005
#52
2005-12-25, 04:32 PM
If that works and it sets the FourCC correctly, I'll take it and try it!!!
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#53
2005-12-25, 05:11 PM
Quote:Let's do it like this instead. Edit the source code for the xvidff.c in the libavcodec directory. Look for the lines that says:

} else {
/* We are claiming to be XviD */
x->quicktime_format = 0;
avctx->codec_tag = ff_get_fourcc("xvid");
}

And change ff_get_fourcc("xvid"); to ff_get_fourcc("XVID");
Thanks for the tip.
Humperdinck
Offline

Junior Member

Posts: 18
Threads: 3
Joined: Sep 2005
#54
2005-12-25, 11:11 PM (This post was last modified: 2005-12-27, 11:48 PM by Humperdinck.)
Yep, it seems to work fine, been playing all day with the settings for it. I now use the below that seems to give me nice quality. It's a guesswork trying to figure out which settings does what, I'm guessing by looking at the xvid windows settings and trying to translate those to ffmpegs.

<Conversion name="XviD" cmd="-y -i {SOURCE_FILE} -intra -qmin 2 -qmax 8 -bf 3 -aic -umv -b_qoffset 75 -i_qfactor 250 -me full -g 300 -vcodec xvid -ac 2 -ab 224 -acodec mp3 {DEST_FILE}" targetExtension=".avi" />
Humperdinck
Offline

Junior Member

Posts: 18
Threads: 3
Joined: Sep 2005
#55
2005-12-27, 10:16 PM (This post was last modified: 2005-12-27, 11:49 PM by Humperdinck.)
Ok, since I have some issue with uploading to the forum I put the files on a web link. You can download them from http://mychat.mine.nu/FFmpeg.zip

Any tips on making the settings improve are welcome. I recorded a 4Gb movie and it packed it to a 725Mb xvid file. The movie was Daredevil and that one is kind of dark in itself but converting to xvid doesn't make it brighter....Anyone know how to compensate for darkness?
Humperdinck
Offline

Junior Member

Posts: 18
Threads: 3
Joined: Sep 2005
#56
2006-01-01, 08:58 PM (This post was last modified: 2006-01-01, 09:51 PM by Humperdinck.)
Dear Forum,

A small update. I noticed xvid has gone out of beta and reached 1.1.0 so I recompiled xvid and ffmpeg for it. The binaries for those that want to test are at the link in my earlier post. I now use the following line (in config.xml) for the encoding:

<Conversion name="XviD" cmd="-y -i {SOURCE_FILE} -intra -qmin 3 -qmax 9 -bf 3 -aic -umv -b_qoffset 75 -i_qfactor 250 -me full -g 300 -b 1250 -vcodec xvid -ac 2 -ab 224 -acodec mp3 {DEST_FILE}" targetExtension=".avi" />

It seems to encode to a decent-looking result, although I have noticed that there's some problem with every second line, making movement blurry. Anyone knows how to fix this?

/Humperdinck
LilY0da
Offline

Senior Member

Posts: 442
Threads: 25
Joined: Jul 2005
#57
2006-01-01, 09:52 PM
maybe add "-deinterlace" in your command line?
Humperdinck
Offline

Junior Member

Posts: 18
Threads: 3
Joined: Sep 2005
#58
2006-01-01, 10:31 PM
That's it! Excellent! Thanks for the tip!

/Humperdinck
Humperdinck
Offline

Junior Member

Posts: 18
Threads: 3
Joined: Sep 2005
#59
2006-01-04, 09:55 PM
Humperdinck Wrote:Dear Forum,

A small update. I noticed xvid has gone out of beta and reached 1.1.0 so I recompiled xvid and ffmpeg for it. The binaries for those that want to test are at the link in my earlier post. I now use the following line (in config.xml) for the encoding:

<Conversion name="XviD" cmd="-y -i {SOURCE_FILE} -intra -qmin 3 -qmax 9 -bf 3 -aic -umv -b_qoffset 75 -i_qfactor 250 -me full -g 300 -b 1250 -vcodec xvid -ac 2 -ab 224 -acodec mp3 {DEST_FILE}" targetExtension=".avi" />

It seems to encode to a decent-looking result, although I have noticed that there's some problem with every second line, making movement blurry. Anyone knows how to fix this?

/Humperdinck

Dear Forum,

Here is yet another small update. I managed to compile liba52 and libfaac and added support for those in the resulting ffmpeg. I didn't manage to compile in faad though, something is broken there.

With liba52 and libffac and of course libmp3lame I use the following ./configure:

./configure --enable-mp3lame --enable-faac --enable-xvid --enable-mingw32 --enable-a52 --enable-pp --enable-amr_nb --enable-amr_wb --enable-amr_if2 --enable-gpl --enable-memalign-hack --extra-cflags=-I/local/include--extra-ldflags=-L/local/lib


I have also been encoding and trying out the ffmpeg settings to achieve (for my purposes) a good result. For my recordings (Hauppauge PVR 250) I now use the following line in config.xml:

<Conversion name="XviD" cmd="-y -i {SOURCE_FILE} -vcodec xvid -qcomp 0.7 -qblur 0.3 -mbd 2 -qmin 3 -qscale 4 -qmax 31 -qdiff 2 -bt 8000 -bf 3 -aic -umv -b_qoffset 75 -i_qfactor 250 -me full -g 300 -ac 2 -ab 224 -acodec mp3 -deinterlace -ec 2 -b_qoffset 1 {DEST_FILE}" targetExtension=".avi" />

The files are at the link in my earlier post as usual. And if someone has tips on how to optimize the settings, please post in this thread.

Oh, maybe I should mention that I posted my small change in the source to make the fourcc capitalized to the ffmpeg developers mailing list as well, hopefully they will notice it.

Have a good 2006! Thanks for GBPVR and comskip/comclean!

/Humperdinck
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#60
2006-01-04, 09:59 PM
Cheers, keep us up to date. I'm absorbing all this info for incorporation into the next release of GB-PVR.

Unfortunately I find it difficult to find time to tinker to this low level myself.
« Next Oldest | Next Newest »

Users browsing this thread:

Pages (8): « Previous 1 … 4 5 6 7 8 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Composite channel configuration problem. seymoria 6 4,701 2012-01-15, 10:15 PM
Last Post: seymoria
  Recording problem with Hauppauge Nova-S USB2 ... softfoot 4 3,463 2011-06-27, 02:06 AM
Last Post: sub
  Problem with GB-PVR - Cannot Watch Channels and Administrator Problem Greg Smith 10 4,595 2011-05-22, 05:09 PM
Last Post: sub
  GB-PVR + LAVF Audio decoder (DVD) hoborg 0 1,908 2011-04-06, 04:15 PM
Last Post: hoborg
  Problem with switch to DST next 4 2,426 2011-03-29, 08:42 PM
Last Post: darag2358
  Huge database (+27GB) - is it a problem? pme 7 3,131 2011-01-24, 12:37 AM
Last Post: gEd
  MCE 2005 IR Blaster problem persim 6 3,508 2010-12-29, 01:28 AM
Last Post: persim
  Another pause problem fleapower 10 3,904 2010-12-15, 09:33 PM
Last Post: fleapower
  remote problem in GBPVR Zacken 5 2,674 2010-12-08, 09:00 PM
Last Post: Zacken
  Transcode Problem axeman91 7 3,398 2010-11-22, 09:02 AM
Last Post: goelectric

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode