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: [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.
> 
> 


___
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 ' 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


[CinCVS] Will not compile - Open SUSE 10.1

2006-08-26 Thread Scott Forbes
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 ' 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