[PATCH] No need for snow and mpeg1encoder for mplayer
Hi! When configuring with -disable-mencoder, it's not necessary (anymore?) to compile snow.c and mpeg12enc.c. Patch attached, Carl Eugen Index: configure =================================================================== --- configure (Revision 23756) +++ configure (Arbeitskopie) @@ -6458,7 +6458,7 @@ _def_muxers='#define CONFIG_MUXERS 1' else # mpeg1video for vf_lavc, snow for vf_uspp and vf_mcdeint - _libavencoders="MPEG1VIDEO_ENCODER SNOW_ENCODER" + _libavencoders="" _libavmuxers="" fi echores "$_mencoder"
Hi! On 2007-07-09 23:07, Carl Eugen Hoyos wrote:
When configuring with -disable-mencoder, it's not necessary (anymore?) to compile snow.c and mpeg12enc.c.
And now a patch that actually allows to compile with --disable-mencoder. Carl Eugen Index: configure =================================================================== --- configure (Revision 23757) +++ configure (Arbeitskopie) @@ -6453,12 +6453,13 @@ echocheck "mencoder" _mencoder_flag='#undef HAVE_MENCODER' +_def_encoders='#undef CONFIG_ENCODERS' if test "$_mencoder" = yes ; then _mencoder_flag='#define HAVE_MENCODER' _def_muxers='#define CONFIG_MUXERS 1' + _def_encoders='#define CONFIG_ENCODERS 1' else - # mpeg1video for vf_lavc, snow for vf_uspp and vf_mcdeint - _libavencoders="MPEG1VIDEO_ENCODER SNOW_ENCODER" + _libavencoders="" _libavmuxers="" fi echores "$_mencoder" @@ -7934,7 +7935,7 @@ /* Use libavcodec's decoders */ #define CONFIG_DECODERS 1 /* Use libavcodec's encoders */ -#define CONFIG_ENCODERS 1 +$_def_encoders /* Use libavformat's demuxers */ #define CONFIG_DEMUXERS 1
On Tue, Jul 10, 2007 at 11:09:56AM +0200, Carl Eugen Hoyos wrote:
On 2007-07-09 23:07, Carl Eugen Hoyos wrote:
When configuring with -disable-mencoder, it's not necessary (anymore?) to compile snow.c and mpeg12enc.c.
And now a patch that actually allows to compile with --disable-mencoder.
Commit anytime. Diego
Hi On Tue, Jul 10, 2007 at 11:43:28AM +0200, Diego Biurrun wrote:
On Tue, Jul 10, 2007 at 11:09:56AM +0200, Carl Eugen Hoyos wrote:
On 2007-07-09 23:07, Carl Eugen Hoyos wrote:
When configuring with -disable-mencoder, it's not necessary (anymore?) to compile snow.c and mpeg12enc.c.
And now a patch that actually allows to compile with --disable-mencoder.
Commit anytime.
revert anytime you broke vf_uspp.c at least but probably more than just that and note to the "smart" people around here vf_uspp.c uses the snow encoder so no matter how much you split up lavc and mplayer it always will need snow [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I have never wished to cater to the crowd; for what I know they do not approve, and what they approve I do not know. -- Epicurus
Hi,
And now a patch that actually allows to compile with --disable-mencoder.
Commit anytime.
revert anytime you broke vf_uspp.c at least but probably more than just that
and note to the "smart" people around here vf_uspp.c uses the snow encoder so no matter how much you split up lavc and mplayer it always will need snow
What about implementing a similar configure system at mplayer as it is present in ffmpeg? So individual filters/codecs would have nice dependencies. -- Alex
Hi! Michael Niedermayer <michaelni <at> gmx.at> writes:
And now a patch that actually allows to compile with --disable-mencoder.
Commit anytime.
revert anytime you broke vf_uspp.c at least but probably more than just that
What about disabling uspp (ultra slow seems like an understatement to me) and mcdeint for --disable-mencoder? If not, I'll revert tonight.
and note to the "smart" people around here vf_uspp.c uses the snow encoder so no matter how much you split up lavc and mplayer it always will need snow
It was not a question of being "smart", but of how to fix a compilation failure. And yes, I understand your point that a crashing mplayer executable can be worse than none at all. Carl Eugen
Hi On Tue, Jul 10, 2007 at 12:10:53PM +0000, Carl Eugen Hoyos wrote:
Hi!
Michael Niedermayer <michaelni <at> gmx.at> writes:
And now a patch that actually allows to compile with --disable-mencoder.
Commit anytime.
revert anytime you broke vf_uspp.c at least but probably more than just that
What about disabling uspp (ultra slow seems like an understatement to me) and mcdeint for --disable-mencoder?
i am fine with that if its properly documented [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I hate to see young programmers poisoned by the kind of thinking Ulrich Drepper puts forward since it is simply too narrow -- Roman Shaposhnik
Hi! Michael Niedermayer <michaelni <at> gmx.at> writes:
you broke vf_uspp.c at least but probably more than just that
What about disabling uspp (ultra slow seems like an understatement to me) and mcdeint for --disable-mencoder?
i am fine with that if its properly documented
-vf mcdeint and -vf uspp are IMO only useful with mencoder, (I'm not so sure about -vf spp that also crashes if certain encoders are not compiled in.) So perhaps it makes sense to disable them if --disable-mencoder was specified. Necessary would be to disable compilation of vf_mcdeint.c, vf_uspp.c and vf_spp.c and the calls to their inits in vf.c with a configure and Makefile patch. Additionally, a comment about these filters only available if mencoder was also compiled has to be added to the man page. Any opinions on this? I reverted the wrong patch, Carl Eugen
Carl Eugen Hoyos wrote:
Hi!
Michael Niedermayer <michaelni <at> gmx.at> writes:
you broke vf_uspp.c at least but probably more than just that
What about disabling uspp (ultra slow seems like an understatement to me) and mcdeint for --disable-mencoder?
i am fine with that if its properly documented
-vf mcdeint and -vf uspp are IMO only useful with mencoder, (I'm not so sure about -vf spp that also crashes if certain encoders are not compiled in.) So perhaps it makes sense to disable them if --disable-mencoder was specified.
I disagree: they may or may not make sense depending on your cpu horsepower, but they are different and indipendent portions of code
Necessary would be to disable compilation of vf_mcdeint.c, vf_uspp.c and vf_spp.c and the calls to their inits in vf.c with a configure and Makefile patch. Additionally, a comment about these filters only available if mencoder was also compiled has to be added to the man page.
Any opinions on this?
it's a bad idea as far as I'm concerned -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Vuoi un prestito fino a 30.000 Euro? Clicca qui per un preventivo immediato! Prometeo ti propone prestiti personali senza attese e senza spese Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=6831&d=11-7
2007/7/11, Carl Eugen Hoyos <cehoyos@ag.or.at>:
Hi!
Michael Niedermayer <michaelni <at> gmx.at> writes:
you broke vf_uspp.c at least but probably more than just that
What about disabling uspp (ultra slow seems like an understatement to me) and mcdeint for --disable-mencoder?
i am fine with that if its properly documented
-vf mcdeint and -vf uspp are IMO only useful with mencoder, (I'm not so sure about -vf spp that also crashes if certain encoders are not compiled in.) So perhaps it makes sense to disable them if --disable-mencoder was specified. Necessary would be to disable compilation of vf_mcdeint.c, vf_uspp.c and vf_spp.c and the calls to their inits in vf.c with a configure and Makefile =^^^^^
Disable building of spp in MPlayer and you'll face my wrath! There is absolutely no valid reason to disable it if mencoder is not enabled. It works in realtime, gives best results and I DO use it exclusively with MPlayer. I also don't feel good about removing the other filters based on some frivolous dependences, even if it is documented at page 666 in our 2007 page manual. No bad feelings. ;)
On Tuesday 10 July 2007 14:28, Michael Niedermayer wrote:
and note to the "smart" people around here vf_uspp.c uses the snow encoder so no matter how much you split up lavc and mplayer it always will need snow
[thread hijack] Anyone compared postprocessing mpeg-like material with mpeg-based uspp vs snow-based uspp? Wondering a little bit about why it was changed to snow :)
On Wed, 11 Jul 2007, Jan Knutar wrote:
Anyone compared postprocessing mpeg-like material with mpeg-based uspp vs snow-based uspp? Wondering a little bit about why it was changed to snow :)
In mpeg-uspp, no feature of the input picture can affect any point of the output picture more than 8 pixels away. snow-uspp can provide arbitrarily large smoothing if needed. result: blocks may still be visible after mpeg-uspp just smooths the block edges. otoh, snow-uspp adds ringing in some places that didn't have ringing in the compressed video. Both would probably benefit from thresholding the transform coefficients (like spp/fspp) rather than using full quantization. But then they'd take more code than just invoking an existing codec. If someone does go that route, you could also try using an overcomplete wavelet transform instead of repeating the whole encode process at each offset. --Loren Merritt
participants (8)
-
Alex Beregszaszi -
Carl Eugen Hoyos -
Diego Biurrun -
Ivan Kalvachev -
Jan Knutar -
Loren Merritt -
Michael Niedermayer -
Nico Sabbi