Re: [CinCVS] Will not compile - Open SUSE 10.1

2006-09-11 Thread ga
Hi Pierre

 Looking at the href you gave, I agree that your patch seems alright.
 Can't really apply it to svn until merge is complete...
 Pierre

I wonder if this patch can be apply now that the merge is almost finished
(I guess at least).

Agur


 Alexis Ballier wrote:
 Yes I think the best solution is to ask x264 devs.
 Before writing this patch I had a look at how it has been fixed in
 other softs, and for the ffmpeg part included in cinelerra it's how it
 has been fixed by ffmpeg devs. The part I had to think more about is
 the quicktime part, but it should be similar to the fixes I've seen.
 You might also want to have a look at [1] to see how the api changed,
 and I agree that's strange to replace cbr by abr...




 [1] https://trac.videolan.org/x264/changeset/537
 https://trac.videolan.org/x264/changeset/537



 --
 Alexis Ballier.


 ___
 Cinelerra mailing list
 Cinelerra@skolelinux.no
 https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra



-- 



___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCVS] Will not compile - Open SUSE 10.1

2006-09-11 Thread Pierre Dumuid

Applied.

ga wrote:

Hi Pierre

  

Looking at the href you gave, I agree that your patch seems alright.
Can't really apply it to svn until merge is complete...
Pierre



I wonder if this patch can be apply now that the merge is almost finished
(I guess at least).

Agur

  

Alexis Ballier wrote:


Yes I think the best solution is to ask x264 devs.
Before writing this patch I had a look at how it has been fixed in
other softs, and for the ffmpeg part included in cinelerra it's how it
has been fixed by ffmpeg devs. The part I had to think more about is
the quicktime part, but it should be similar to the fixes I've seen.
You might also want to have a look at [1] to see how the api changed,
and I agree that's strange to replace cbr by abr...




[1] https://trac.videolan.org/x264/changeset/537
https://trac.videolan.org/x264/changeset/537



--
Alexis Ballier.
  

___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra





  



--
__

Get Firefox! http://www.mozilla.org/products/firefox/

Mr Pierre Dumuid
Phd Student

Active Noise and Vibration Control Group
School of Mechanical Engineering
The University of Adelaide 
SA 5005

AUSTRALIA

Email:  [EMAIL PROTECTED]
[EMAIL PROTECTED]
Work:   +61 (0)8 8303 3847

Mobile: 0407 570 263

Web Page : http://www.mecheng.adelaide.edu.au/
__

CRICOS Provider Number 00123M
--- 


This email message is intended only for the addressee(s) and contains
information that may be confidential and/or copyright.  If you are not
the intended recipient please notify the sender by reply email and
immediately delete this email. Use, disclosure or reproduction of this
email by anyone other than the intended recipient(s) is strictly
prohibited. No representation is made that this email or any attachments
are free of viruses. Virus scanning is recommended and is the
responsibility of the recipient.

begin:vcard
fn:Pierre Dumuid
n:Dumuid;Pierre
org:The University of Adelaide;Mechanical Engineering
adr:;;;Adelaide;South Australia;5005;Australia
email;internet:[EMAIL PROTECTED]
title:Postgraduate Student
tel;work:8303 3847
tel;home:8388 5727
tel;cell:0407570263
note:CRICOS Provider Number 00123M
x-mozilla-html:TRUE
url:http://www.adelaide.edu.au
version:2.1
end:vcard



Re: [CinCVS] Will not compile - Open SUSE 10.1

2006-08-29 Thread Alex Fernandez

Hi Scott,


What is the preferred capture method from DV everyone uses?  Cinelerra
internal, or other applications?


I have used Kino before to capture DV, under OpenSUSE. It was not easy
to do, as OpenSUSE's version of Kino does not support Quicktime DV out
of the box; and Cinelerra does not understand raw DV, so I had to
recompile Kino and update a lot of libraries.

Having DV capture in Cinelerra  would have been great, but
unfortunately it does not seem to be very stable.

Alex Fernandez.

___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: libx264 fix WORKED! was Re: newbie here, was Re: [CinCVS] Will not compile - Open SUSE 10.1

2006-08-28 Thread Johannes Sixt
On Sunday 27 August 2006 23:28, Yama Ploskonka wrote:
 ln -s libx264.so.46 libx264.so.45

 This apparently (?) makes Cinelerra believe you have libx264.so.45 while
 it actually uses libx264.so.46.

This will likely crash cinelerra, _if_ you use h264 encoding.

 It still has that runaway thing that when I start play, sometimes it
 will not want to stop and will become completely unresponsive.  Any fix
 for that?

Go to Settings-Preferences-Playback; if you have choosen the ALSA audio 
driver, then enable Stop playback locks up.

-- Hannes

___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCVS] Will not compile - Open SUSE 10.1

2006-08-28 Thread Daniel Jircik
Thank you the x264 patch  worked for me as well. Suse 10.1 amdx2 64 I 
love cinelerra on amd 64 this it's so fast. The future is almost here.

Kudos and Thanks Again
Daniel

___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCVS] Will not compile - Open SUSE 10.1

2006-08-27 Thread Yama Ploskonka
Scott,

If you manage to get things working on Suse 10.1, I for one will want to
 know.  I am happy with my setup, but my Cine is not stable, and I don't
quite feel like getting into another distro just to make Cine happy.  (I
might, though. I'm starting to be that desperate :-)

Yama

Scott Forbes wrote:
 Hi All,
 I'm really sorry to ask a question that has probably been asked before.
  I cannot get a fresh svn copy, version 840, of Cinelerra to compile.
 
 Here is the output from make:
 
 x264.c: In function 'X264_init':
 x264.c:139: error: 'struct anonymous' has no member named 'b_cbr'
 make[5]: *** [x264.lo] Error 1
 make[5]: Leaving directory
 `/home/scott/svn/hvirtual/quicktime/ffmpeg/libavcodec'
 make[4]: *** [all-recursive] Error 1
 make[4]: Leaving directory
 `/home/scott/svn/hvirtual/quicktime/ffmpeg/libavcodec'
 make[3]: *** [all-recursive] Error 1
 make[3]: Leaving directory `/home/scott/svn/hvirtual/quicktime/ffmpeg'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory `/home/scott/svn/hvirtual/quicktime'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/scott/svn/hvirtual'
 make: *** [all] Error 2
 
 I did do some research in the archives, and I am gathering that it is a
 problem with the ffmpeg b_cbr stuff, but I could not find a solution.
 
 I  am not having much luck, I first worked with the source from Heroine
 Virtual, but gave up on that one in about 2 weeks of trying to get it to
 compile.  I found the CV version and thought I would give it a try.
 
 I do have all the required libraries, etc.  The configure script runs
 without errors.  My platform is a 1700MHz Pentium M in a Compaq notebook.
 
 I appreciate any help you can provide, please let me know if you need
 version info on tools, libs, etc.
 
 Thank you so much,
 Scott
 
 ___
 Cinelerra mailing list
 Cinelerra@skolelinux.no
 https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra
 

___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCVS] Will not compile - Open SUSE 10.1

2006-08-27 Thread Scott Forbes
Yama,
I know what you mean.  I did get the Heroin Virt one to compile once
after messing with everything for two weeks, but it crashed all the
time.  Is this a SUSE thing with Cinelerra?  Are the various Distros
that different now?

Yama Ploskonka wrote:
 Scott,
 
 If you manage to get things working on Suse 10.1, I for one will want to
  know.  I am happy with my setup, but my Cine is not stable, and I don't
 quite feel like getting into another distro just to make Cine happy.  (I
 might, though. I'm starting to be that desperate :-)
 
 Yama
 
 Scott Forbes wrote:
 Hi All,
 I'm really sorry to ask a question that has probably been asked before.
  I cannot get a fresh svn copy, version 840, of Cinelerra to compile.

 Here is the output from make:

 x264.c: In function 'X264_init':
 x264.c:139: error: 'struct anonymous' has no member named 'b_cbr'
 make[5]: *** [x264.lo] Error 1
 make[5]: Leaving directory
 `/home/scott/svn/hvirtual/quicktime/ffmpeg/libavcodec'
 make[4]: *** [all-recursive] Error 1
 make[4]: Leaving directory
 `/home/scott/svn/hvirtual/quicktime/ffmpeg/libavcodec'
 make[3]: *** [all-recursive] Error 1
 make[3]: Leaving directory `/home/scott/svn/hvirtual/quicktime/ffmpeg'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory `/home/scott/svn/hvirtual/quicktime'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/home/scott/svn/hvirtual'
 make: *** [all] Error 2

 I did do some research in the archives, and I am gathering that it is a
 problem with the ffmpeg b_cbr stuff, but I could not find a solution.

 I  am not having much luck, I first worked with the source from Heroine
 Virtual, but gave up on that one in about 2 weeks of trying to get it to
 compile.  I found the CV version and thought I would give it a try.

 I do have all the required libraries, etc.  The configure script runs
 without errors.  My platform is a 1700MHz Pentium M in a Compaq notebook.

 I appreciate any help you can provide, please let me know if you need
 version info on tools, libs, etc.

 Thank you so much,
 Scott

 ___
 Cinelerra mailing list
 Cinelerra@skolelinux.no
 https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra

 
 ___
 Cinelerra mailing list
 Cinelerra@skolelinux.no
 https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra
 

___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCVS] Will not compile - Open SUSE 10.1

2006-08-27 Thread Alexis Ballier
Hi, I've had exactly the same problem and wrote a patch to fix this. It seems to work, but I think more tests are needed.I'm attaching the patch (against svn of trunk/hvirtual rev 840).Regards, 
-- Alexis Ballier.
--- cinelerra-cvs-20060827/quicktime/qth264.c	2006-08-27 00:32:07.130566427 +0200
+++ working/quicktime/qth264.c	2006-08-27 03:00:58.486699204 +0200
@@ -136,7 +136,11 @@
 		x264_param_t default_params;
 		x264_param_default(default_params);
 // Reset quantizer if fixed bitrate
+#if X264_BUILD  48
 		if(codec-param.rc.b_cbr)
+#else
+		if(codec-param.rc.i_rc_method == X264_RC_ABR )
+#endif
 		{
 			codec-param.rc.i_qp_constant = default_params.rc.i_qp_constant;
 			codec-param.rc.i_qp_min = default_params.rc.i_qp_min;
@@ -469,7 +473,11 @@
 		}
 		else
 		if(!strcasecmp(key, h264_fix_bitrate))
+#if X264_BUILD  48
 			codec-param.rc.b_cbr = (*(int*)value) / 1000;
+#else
+			codec-param.rc.i_bitrate = (*(int*)value) / 1000;
+#endif
 	}
 }
 
--- cinelerra-cvs-20060827/quicktime/ffmpeg/libavcodec/x264.c	2006-08-27 00:32:00.564013252 +0200
+++ working/quicktime/ffmpeg/libavcodec/x264.c	2006-08-27 02:47:49.224599225 +0200
@@ -135,8 +135,13 @@
 x4-params.i_keyint_max = avctx-gop_size;
 x4-params.rc.i_bitrate = avctx-bit_rate / 1000;
 x4-params.rc.i_vbv_buffer_size = avctx-rc_buffer_size / 1000;
-if(avctx-rc_buffer_size)
+if(avctx-rc_buffer_size){
+#if X264_BUILD  48
 x4-params.rc.b_cbr = 1;
+#else
+	x4-params.rc.i_rc_method = X264_RC_ABR;
+#endif
+}
 x4-params.i_bframe = avctx-max_b_frames;
 x4-params.b_cabac = avctx-coder_type == FF_CODER_TYPE_AC;
 


Re: [CinCVS] Will not compile - Open SUSE 10.1

2006-08-27 Thread Pierre Marc Dumuid
I don't know much about the x264 stuff, but was thinking of forwarding 
this patch on to the x264 mailing list to ask if the changes look about 
right? (I am sure they'd know the best...)


Looking at the patch, I can guess that b_cbr means ?? constant 
bit-rate and X264_RC_ABR means ?? average bit rate,


Just a quick (possibly dumb) question:  Aren't constant and average 
might be different??  (i.e. constant would be constant frame size, 
whilst average, would be varying frame size, but average over the whole 
file)


Alexis Ballier wrote:

Hi,
I've had exactly the same problem and wrote a patch to fix this. It 
seems to work, but I think more tests are needed.


I'm attaching the patch (against svn of trunk/hvirtual rev 840).

Regards,

--
Alexis Ballier.


--- cinelerra-cvs-20060827/quicktime/qth264.c   2006-08-27 00:32:07.130566427 
+0200
+++ working/quicktime/qth264.c  2006-08-27 03:00:58.486699204 +0200
@@ -136,7 +136,11 @@
x264_param_t default_params;
x264_param_default(default_params);
 // Reset quantizer if fixed bitrate
+#if X264_BUILD  48
if(codec-param.rc.b_cbr)
+#else
+   if(codec-param.rc.i_rc_method == X264_RC_ABR )
+#endif
{
codec-param.rc.i_qp_constant = 
default_params.rc.i_qp_constant;
codec-param.rc.i_qp_min = default_params.rc.i_qp_min;
@@ -469,7 +473,11 @@
}
else
if(!strcasecmp(key, h264_fix_bitrate))
+#if X264_BUILD  48
codec-param.rc.b_cbr = (*(int*)value) / 1000;
+#else
+   codec-param.rc.i_bitrate = (*(int*)value) / 1000;
+#endif
}
 }
 
--- cinelerra-cvs-20060827/quicktime/ffmpeg/libavcodec/x264.c	2006-08-27 00:32:00.564013252 +0200

+++ working/quicktime/ffmpeg/libavcodec/x264.c  2006-08-27 02:47:49.224599225 
+0200
@@ -135,8 +135,13 @@
 x4-params.i_keyint_max = avctx-gop_size;
 x4-params.rc.i_bitrate = avctx-bit_rate / 1000;
 x4-params.rc.i_vbv_buffer_size = avctx-rc_buffer_size / 1000;
-if(avctx-rc_buffer_size)
+if(avctx-rc_buffer_size){
+#if X264_BUILD  48
 x4-params.rc.b_cbr = 1;
+#else
+   x4-params.rc.i_rc_method = X264_RC_ABR;
+#endif
+}
 x4-params.i_bframe = avctx-max_b_frames;
 x4-params.b_cabac = avctx-coder_type == FF_CODER_TYPE_AC;
 
  



___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCVS] Will not compile - Open SUSE 10.1

2006-08-27 Thread Alexis Ballier
Yes I think the best solution is to ask x264 devs.Before writing this patch I had a look at how it has been fixed in other softs, and for the ffmpeg part included in cinelerra it's how it has been fixed by ffmpeg devs. The part I had to think more about is the quicktime part, but it should be similar to the fixes I've seen.
You might also want to have a look at [1] to see how the api changed, and I agree that's strange to replace cbr by abr...[1] https://trac.videolan.org/x264/changeset/537
-- Alexis Ballier.


Re: [CinCVS] Will not compile - Open SUSE 10.1

2006-08-27 Thread Pierre Marc Dumuid

Looking at the href you gave, I agree that your patch seems alright.
Can't really apply it to svn until merge is complete...
Pierre

Alexis Ballier wrote:

Yes I think the best solution is to ask x264 devs.
Before writing this patch I had a look at how it has been fixed in 
other softs, and for the ffmpeg part included in cinelerra it's how it 
has been fixed by ffmpeg devs. The part I had to think more about is 
the quicktime part, but it should be similar to the fixes I've seen.
You might also want to have a look at [1] to see how the api changed, 
and I agree that's strange to replace cbr by abr...





[1] https://trac.videolan.org/x264/changeset/537 
https://trac.videolan.org/x264/changeset/537




--
Alexis Ballier. 



___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCVS] Will not compile - Open SUSE 10.1

2006-08-27 Thread Scott Forbes
Alexis,
Thank you so much for the patch, it worked great!  I was able to
re-update my x264 libs and compile after I patched the code.

Is Cinelerra able to use accelerated video drivers?  I have a ATI Raedon
Mobility 9000 in this machine.  I quickly played a couple of clips I had
captured with Kino and the Audio / video does not sync then I got a
couple of crashes.  Time to read the docs now that I got it compiled.

What is the preferred capture method from DV everyone uses?  Cinelerra
internal, or other applications?

Thank you Alexis and all the rest!

Scott


Alexis Ballier wrote:
 Hi,
 I've had exactly the same problem and wrote a patch to fix this. It
 seems to work, but I think more tests are needed.
 
 I'm attaching the patch (against svn of trunk/hvirtual rev 840).
 
 Regards,
 
 -- 
 Alexis Ballier.
 
 
snip

___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


newbie here, was Re: [CinCVS] Will not compile - Open SUSE 10.1

2006-08-27 Thread Yama Ploskonka
oh my.  How do I run Alexis' patch?

BTW, it seems a bunch of people have this issue,
http://www.google.com/search?q=libx264+cinelerra+suse

one interesting suggestion (that didn't work for me) was to try this
from console

su
/usr/lib
ln -s libx264.so.48 libx264.so.45


Yama

Alexis Ballier wrote:
 Hi,
 I've had exactly the same problem and wrote a patch to fix this. It
 seems to
 work, but I think more tests are needed.
 
 I'm attaching the patch (against svn of trunk/hvirtual rev 840).
 
 Regards,
 
 
 
 
 --- cinelerra-cvs-20060827/quicktime/qth264.c 2006-08-27 00:32:07.130566427 
 +0200
 +++ working/quicktime/qth264.c2006-08-27 03:00:58.486699204 +0200
 @@ -136,7 +136,11 @@
   x264_param_t default_params;
   x264_param_default(default_params);
  // Reset quantizer if fixed bitrate
 +#if X264_BUILD  48
   if(codec-param.rc.b_cbr)
 +#else
 + if(codec-param.rc.i_rc_method == X264_RC_ABR )
 +#endif
   {
   codec-param.rc.i_qp_constant = 
 default_params.rc.i_qp_constant;
   codec-param.rc.i_qp_min = default_params.rc.i_qp_min;
 @@ -469,7 +473,11 @@
   }
   else
   if(!strcasecmp(key, h264_fix_bitrate))
 +#if X264_BUILD  48
   codec-param.rc.b_cbr = (*(int*)value) / 1000;
 +#else
 + codec-param.rc.i_bitrate = (*(int*)value) / 1000;
 +#endif
   }
  }
  
 --- cinelerra-cvs-20060827/quicktime/ffmpeg/libavcodec/x264.c 2006-08-27 
 00:32:00.564013252 +0200
 +++ working/quicktime/ffmpeg/libavcodec/x264.c2006-08-27 
 02:47:49.224599225 +0200
 @@ -135,8 +135,13 @@
  x4-params.i_keyint_max = avctx-gop_size;
  x4-params.rc.i_bitrate = avctx-bit_rate / 1000;
  x4-params.rc.i_vbv_buffer_size = avctx-rc_buffer_size / 1000;
 -if(avctx-rc_buffer_size)
 +if(avctx-rc_buffer_size){
 +#if X264_BUILD  48
  x4-params.rc.b_cbr = 1;
 +#else
 + x4-params.rc.i_rc_method = X264_RC_ABR;
 +#endif
 +}
  x4-params.i_bframe = avctx-max_b_frames;
  x4-params.b_cabac = avctx-coder_type == FF_CODER_TYPE_AC;
  

___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


libx264 fix WORKED! was Re: newbie here, was Re: [CinCVS] Will not compile - Open SUSE 10.1

2006-08-27 Thread Yama Ploskonka
actually a bit differently from what I posted previously

1) Run Cinelerra from console
/usr/bin/cinelerra
in my case that told me that libx264.so.45 was missing.

2) see what libx264 you have.
in the console,
cd /usr/lib
ls libx264*

that showed me I had libx264.so.46

3) link that libx264 version to the one Cinelerra requests
You will need to enter as root
su
(enter password)
ln -s libx264.so.46 libx264.so.45

This apparently (?) makes Cinelerra believe you have libx264.so.45 while
it actually uses libx264.so.46.

4) Run Cinelerra

well, it hasn't crashed yet.  It complains it cannot find a couple
plugins and cannot open the usr/bin/cinelerra directory, but otherwise
seems fine.

It still has that runaway thing that when I start play, sometimes it
will not want to stop and will become completely unresponsive.  Any fix
for that?


Yama

Yama Ploskonka wrote:
 one interesting suggestion (that didn't work for me) was to try this
 from console
 
 su
 /usr/lib
 ln -s libx264.so.48 libx264.so.45

___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: newbie here, was Re: [CinCVS] Will not compile - Open SUSE 10.1

2006-08-27 Thread Scott Forbes
Hi,
Here is how I applied the patch to the SVN source tree.

- download patch to the hvirtual directory SVN created
- from a terminal window cd to the hvirtual directory
- run command : patch -i x264.patch

it will display something like this:
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--
|--- cinelerra-cvs-20060827/quicktime/qth264.c  2006-08-27
00:32:07.130566427 +0200
|+++ working/quicktime/qth264.c 2006-08-27 03:00:58.486699204 +0200
--
File to patch:

Type in the path to file as ./quicktime/qth264.c

The next file will be ./quicktime/ffmpeg/libavcodec/x264.c

That should do it, you can now do a make clean, a ./config and build
with make.  It should compile fine, then install from root with make
install.

Hope this helps...

Scott


Yama Ploskonka wrote:
 oh my.  How do I run Alexis' patch?
 
 BTW, it seems a bunch of people have this issue,
 http://www.google.com/search?q=libx264+cinelerra+suse
 
 one interesting suggestion (that didn't work for me) was to try this
 from console
 
 su
 /usr/lib
 ln -s libx264.so.48 libx264.so.45
 
 
 Yama
 
 Alexis Ballier wrote:
 Hi,
 I've had exactly the same problem and wrote a patch to fix this. It
 seems to
 work, but I think more tests are needed.

 I'm attaching the patch (against svn of trunk/hvirtual rev 840).

 Regards,


 

 --- cinelerra-cvs-20060827/quicktime/qth264.c2006-08-27 
 00:32:07.130566427 +0200
 +++ working/quicktime/qth264.c   2006-08-27 03:00:58.486699204 +0200
 @@ -136,7 +136,11 @@
  x264_param_t default_params;
  x264_param_default(default_params);
  // Reset quantizer if fixed bitrate
 +#if X264_BUILD  48
  if(codec-param.rc.b_cbr)
 +#else
 +if(codec-param.rc.i_rc_method == X264_RC_ABR )
 +#endif
  {
  codec-param.rc.i_qp_constant = 
 default_params.rc.i_qp_constant;
  codec-param.rc.i_qp_min = default_params.rc.i_qp_min;
 @@ -469,7 +473,11 @@
  }
  else
  if(!strcasecmp(key, h264_fix_bitrate))
 +#if X264_BUILD  48
  codec-param.rc.b_cbr = (*(int*)value) / 1000;
 +#else
 +codec-param.rc.i_bitrate = (*(int*)value) / 1000;
 +#endif
  }
  }
  
 --- cinelerra-cvs-20060827/quicktime/ffmpeg/libavcodec/x264.c
 2006-08-27 00:32:00.564013252 +0200
 +++ working/quicktime/ffmpeg/libavcodec/x264.c   2006-08-27 
 02:47:49.224599225 +0200
 @@ -135,8 +135,13 @@
  x4-params.i_keyint_max = avctx-gop_size;
  x4-params.rc.i_bitrate = avctx-bit_rate / 1000;
  x4-params.rc.i_vbv_buffer_size = avctx-rc_buffer_size / 1000;
 -if(avctx-rc_buffer_size)
 +if(avctx-rc_buffer_size){
 +#if X264_BUILD  48
  x4-params.rc.b_cbr = 1;
 +#else
 +x4-params.rc.i_rc_method = X264_RC_ABR;
 +#endif
 +}
  x4-params.i_bframe = avctx-max_b_frames;
  x4-params.b_cabac = avctx-coder_type == FF_CODER_TYPE_AC;
  
 
 ___
 Cinelerra mailing list
 Cinelerra@skolelinux.no
 https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra
 

___
Cinelerra mailing list
Cinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: newbie here, was Re: [CinCVS] Will not compile - Open SUSE 10.1

2006-08-27 Thread Alexis Ballier
Hi, cd hvirtualpatch -p1  /path/to/the/patch/x264.patchit was intended to be used like that and it should patch without asking questions ;)Btw, doing a symbolic link of the library will probably make cinelerra unstable, you can expect seg faults when using x264 stuff.
-- Alexis Ballier.