Re: [CinCVS] [PATCH] Cinelerra paste and load with "align cursor to frame" will do paste so..

2006-10-30 Thread Andraž Tori
On Tue, 2006-10-31 at 18:06 +1030, Pierre Dumuid wrote:
> > This is micromanagement.
> >
> > All you need is simple rule - if align cursor on track is set when
> > putting assets to tracks, they are always 'rounded' to frame boundaries.
> >   
> yes but rounding to which frame boundaries?
> 
> I have mpeg material that in units of video frames has 200 for video, 
> and 209.3 for audio. do we round each to the closest frame, [200,209], 
> the minimum of the two [200,200], the maximmum of the two [209,209].
> 
> I personally on loading an mpeg want it clipped to the minimum of the two.

yes, i agree

> But when pasting a xml project, I'd want it pasted as the maximum to 
> preserve the insertion of space!

i don't quite get this. isn't this much more rare scenario in which you
would simply turn off "autotrimming" and do what you want manually

bye
andraz


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


Re: [CinCVS] [PATCH] Cinelerra paste and load with "align cursor to frame" will do paste so..

2006-10-30 Thread Pierre Dumuid



This is micromanagement.

All you need is simple rule - if align cursor on track is set when
putting assets to tracks, they are always 'rounded' to frame boundaries.
  

yes but rounding to which frame boundaries?

I have mpeg material that in units of video frames has 200 for video, 
and 209.3 for audio. do we round each to the closest frame, [200,209], 
the minimum of the two [200,200], the maximmum of the two [209,209].


I personally on loading an mpeg want it clipped to the minimum of the two.

But when pasting a xml project, I'd want it pasted as the maximum to 
preserve the insertion of space!



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] [PATCH] Cinelerra paste and load with "align cursor to frame" will do paste so..

2006-10-30 Thread Andraž Tori
On Tue, 2006-10-31 at 14:27 +1030, Pierre Marc Dumuid wrote:
> > It introduces an annoyance (that is resolve by turning off "align  
> > cursor to frame" ) where a clip having tracks of intentionally 
> > different frame length (that is already cut properly) will be pasted 
> > incorrectly..
> >
> 
> 
> This problem is more annoying that I initially first thought!  Realise 
> that the states of pasting / loading are needed:
> 
>   1. Load / Paste to max of all track lengths (non-frame aligned)
>   2. Load / Paste to min of all track lengths (frame aligned)  --
>  needed when loading a video file for first time, we want audio and
>  video to be the same length.
>   3. Load / Paste to max of all track lengths (frame aligned)  --
>  needed when loading a project that has multiple tracks, and some
>  tracks are intentionally shorter (quite commin)
> 
> Given this, i can't simply use the "align_cursor_on_frame" setting, and 
> would need a 3 state toggle somehow.. what do people think? (should 
> there be an icon on the toolbar? - would need to re-work the bc_toggle 
> to include multi-state buttons to do this!)  Should there be an option 
> on loading?

This is micromanagement.

All you need is simple rule - if align cursor on track is set when
putting assets to tracks, they are always 'rounded' to frame boundaries.

if it is not set, user has a lot of ways to have full control of what is
happening - and then it is user's decision what to do about it.

btw: loading strategies are already confusing enough... especially
having load resources on and then trying to load last project. users go
beserk when they believe they lost all their work.

Bye
andraz



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


Re: [CinCVS] [PATCH] Cinelerra paste and load with "align cursor to frame" will do paste so..

2006-10-30 Thread Pierre Marc Dumuid


It introduces an annoyance (that is resolve by turning off "align  
cursor to frame" ) where a clip having tracks of intentionally 
different frame length (that is already cut properly) will be pasted 
incorrectly..





This problem is more annoying that I initially first thought!  Realise 
that the states of pasting / loading are needed:


 1. Load / Paste to max of all track lengths (non-frame aligned)
 2. Load / Paste to min of all track lengths (frame aligned)  --
needed when loading a video file for first time, we want audio and
video to be the same length.
 3. Load / Paste to max of all track lengths (frame aligned)  --
needed when loading a project that has multiple tracks, and some
tracks are intentionally shorter (quite commin)

Given this, i can't simply use the "align_cursor_on_frame" setting, and 
would need a 3 state toggle somehow.. what do people think? (should 
there be an icon on the toolbar? - would need to re-work the bc_toggle 
to include multi-state buttons to do this!)  Should there be an option 
on loading?



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


Re: [CinCVS] FC6 and Ubuntu 6.10

2006-10-30 Thread Wesley T Allen
On Monday 30 October 2006 11:25 am, William Witt wrote:
> Aaron Newcomb wrote:
> > I know these distros just came out, but I am just wondering who has
> > tried running Cinelerra on them yet? I am a Fedora user primarily
> > (although I run Ubuntu on my laptop) and I am excited about some of
> > the upgrades in FC6, but I am also tied to Cinelerra. Does anyone
> > anticipate any problems other than having to compile a few packages by
> > hand?
>
> I just compiled on 6.10 and had no issues.  All of the dependencies are
> available through the standard repos.
>
> Will
>

Thanks to all who responded, I've got a presentation on Cinelerra later this 
week so I'm waiting on upgrading to edgy but this encourages me for my future 
upgrade...

Wes

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

-- 
"The only way to stay sane in an insane world is to be insane."
 --Me

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


[CinCVS] About Debian SID packages

2006-10-30 Thread Nicolas
Hello,

When having a look at that page:
http://cvs.cinelerra.org/getting_cinelerra.php

I noticed it's written:

"You will need some additional packages not found in Debian's official
repositories, provided by Christian Marillat:
deb http://www.debian-multimedia.org/ sid main"

That URL can't be used in sources.list. One has to choose a mirror on
that page:
http://www.debian-multimedia.org/mirrors.html

As Christian says:
"I'm seeking for public mirror to complete my mirrors list, because I'm
short with my band width quota (1200 GB/month)."

In fact, the main website can't be used at all.

Nicolas.

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


Re: [CinCVS] bclistbox.h:365: error: extra qualification 'BC_ListBox::' on member 'calculate_last_coords_recursive'

2006-10-30 Thread mack allison
Ah yes, there was the problem, I checked out sources at 4am, and must have been blurrier than I thought because I checked them out of the svn://svn.skolelinux.org/cinelerra/tags/r1_2_2-last/hvirtual
for no logical reason I can recall.I agree the way SVN handles revisions made it hard to find the fault, but I feel dumb none the less.  Thanks for the fix.MackOn 10/29/06, 
Pierre Marc Dumuid <[EMAIL PROTECTED]> wrote:
It seems you checked out an incorrect branch in the repository sincethis error was fixed ages ago.  The reason the version in 950 is becausesvn increments the version across all branches (which I think is stupid!).
make sure you're checking out from:svn://svn.skolelinux.org/cinelerra/trunk/hvirtualExecute:$ svn infoto see where the repository is from... It should say:URL: svn://svn.skolelinux.org/cinelerra/trunk/hvirtual
Repository Root: svn://svn.skolelinux.org/cinelerra/trunk/hvirtualPierremack allison wrote:> I'm building cinelerra (r950) on ubuntu 6.10-amd64, and this is what> I've come to.  A search of lists and google for info related to
> guicast and bclistbox.h only yield svn links to the code itself (a> little over my head) .>> This one has got me stumped.  I've met all the dependancies looked for> in configure. All of the dependancies were met from the 
6.10 package> tree except libquicktime, which is  libquicktime-0.9.10, compiled from> thier latest sourceforge release tarball, and x264, which is r596> --enable-pic.  I've run into this wall:>
> Making all in guicast> make[2]: Entering directory `/usr/src/hvirtual/guicast'> if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H> -I. -I. -I.. -I../quicktime   -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -g -O2 -MT bcbitmap.lo> -MD -MP -MF ".deps/bcbitmap.Tpo" \>   -c -o bcbitmap.lo `test -f 'bcbitmap.C' || echo> './'`bcbitmap.C; \
> then mv -f ".deps/bcbitmap.Tpo" ".deps/bcbitmap.Plo"; \> else rm -f ".deps/bcbitmap.Tpo"; exit 1; \> fi> mkdir .libs>  g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../quicktime -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -MT bcbitmap.lo> -MD -MP -MF .deps/bcbitmap.Tpo -c bcbitmap.C  -fPIC -DPIC -o> .libs/bcbitmap.o> bclistbox.h:365: error: extra qualification 'BC_ListBox::' on member
> 'calculate_last_coords_recursive'> make[2]: *** [bcbitmap.lo ] Error 1> make[2]: Leaving directory `/usr/src/hvirtual/guicast'> make[1]: *** [all-recursive] Error 1> make[1]: Leaving directory `/usr/src/hvirtual'
> make: *** [all] Error 2>>___Cinelerra mailing listCinelerra@skolelinux.no
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra


Re: [CinCVS] FC6 and Ubuntu 6.10

2006-10-30 Thread Pierre Marc Dumuid
I upgraded to FC6 w/out problems, (I had to recompile entire source 
after yum upgrading -- I use livna repository).


Aaron Newcomb wrote:

I know these distros just came out, but I am just wondering who has
tried running Cinelerra on them yet? I am a Fedora user primarily
(although I run Ubuntu on my laptop) and I am excited about some of
the upgrades in FC6, but I am also tied to Cinelerra. Does anyone
anticipate any problems other than having to compile a few packages by
hand?




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


Re: [CinCVS] play looped?

2006-10-30 Thread Johannes Sixt
On Monday 30 October 2006 21:16, Ed Colmar wrote:
> I do a lot of work with looping video (and audio).  Is there a way to
> loop playback to the in/out markers (or any markers), so I can evaluate
> the clip before cutting it into a new resource?

How about Shift-L (or Settings->Loop playback)? ;)

-- Hannes

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


[CinCVS] play looped?

2006-10-30 Thread Ed Colmar
I do a lot of work with looping video (and audio).  Is there a way to 
loop playback to the in/out markers (or any markers), so I can evaluate 
the clip before cutting it into a new resource?


I've played with the Loop effect, but that takes longer to get dialed in 
than just re-cutting the clip until its properly looped.


In soundforge (and a bunch of other audio editors) there is "play 
looped" icon, right next to the play icon.  Any chance we can get that 
tossed in?


-e-

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


Re: [CinCVS] FC6 and Ubuntu 6.10

2006-10-30 Thread William Witt

Aaron Newcomb wrote:

I know these distros just came out, but I am just wondering who has
tried running Cinelerra on them yet? I am a Fedora user primarily
(although I run Ubuntu on my laptop) and I am excited about some of
the upgrades in FC6, but I am also tied to Cinelerra. Does anyone
anticipate any problems other than having to compile a few packages by
hand?

I just compiled on 6.10 and had no issues.  All of the dependencies are 
available through the standard repos.


Will

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


Re: [CinCVS] FC6 and Ubuntu 6.10

2006-10-30 Thread peter_westenberg

Aaron Newcomb wrote:

I know these distros just came out, but I am just wondering who has
tried running Cinelerra on them yet? I am a Fedora user primarily
(although I run Ubuntu on my laptop) and I am excited about some of
the upgrades in FC6, but I am also tied to Cinelerra. Does anyone
anticipate any problems other than having to compile a few packages by
hand?



if you're talking about cinelerra on ubuntu ...
i work with that
i just upgraded to ubuntu 6.10 Edgy Something
cinelerra runs fine. no prob , what was your question again ..

oh yeah compiling ... i experienced no real problem installing from the 
herroine warrior site, just minor things that could be solved, try it 
see how far you get,
I guess the capacities of your laptop could be decisive in whether 
Cinelerra runs smoothly or not

Same question for you: what are your experiences with Fedora + video?
what upgrades are you excited about?

--
Peter Westenberg
http://www.constant.irisnet.be/vaa

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


[CinCVS] FC6 and Ubuntu 6.10

2006-10-30 Thread Aaron Newcomb

I know these distros just came out, but I am just wondering who has
tried running Cinelerra on them yet? I am a Fedora user primarily
(although I run Ubuntu on my laptop) and I am excited about some of
the upgrades in FC6, but I am also tied to Cinelerra. Does anyone
anticipate any problems other than having to compile a few packages by
hand?

--
Thanks,
Aaron Newcomb
http://www.thesourceshow.org

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


[CinCVS] [PATCH] Cinelerra paste and load with "align cursor to frame" will do paste so..

2006-10-30 Thread Pierre Marc Dumuid
The following is a patch so that when loading and pasting  / dragging 
onto timeline, etc.. the length of the inserted material is the minimum 
of all the  the tracks rounded to the nearest frame.  This fixes issues  
I (and others) have when working with mpeg files that audio and video of 
different lengths.


It introduces an annoyance (that is resolve by turning off "align  
cursor to frame" ) where a clip having tracks of intentionally different 
frame length (that is already cut properly) will be pasted incorrectly..


Can people test before committing?

pierre

diff --git a/cinelerra/asset.C b/cinelerra/asset.C
index 1610374..2fc4772 100644
--- a/cinelerra/asset.C
+++ b/cinelerra/asset.C
@@ -3,6 +3,7 @@ #include "asset.h"
 #include "assets.h"
 #include "bchash.h"
 #include "bcsignals.h"
+#include "clip.h"
 #include "edl.h"
 #include "file.h"
 #include "filesystem.h"
@@ -1200,6 +1201,21 @@ int Asset::update_path(char *new_path)
 	return 0;
 }
 
+double Asset::total_length_framealigned(double fps) 
+{
+	if (video_data && audio_data) {
+		double aud = floor(( (double)audio_length / sample_rate) * fps) / fps;
+		double vid = floor(( (double)video_length / frame_rate) * fps) / fps;
+		return MIN(aud,vid);
+	}
+	
+	if (audio_data)
+		return (double)audio_length / sample_rate;
+	
+	if (video_data)
+		return (double)video_length / frame_rate;
+}
+
 void Asset::update_index(Asset *asset)
 {
 //printf("Asset::update_index 1 %d\n", index_status);
diff --git a/cinelerra/asset.h b/cinelerra/asset.h
index ee289fa..8e3fd49 100644
--- a/cinelerra/asset.h
+++ b/cinelerra/asset.h
@@ -101,6 +101,8 @@ public:
 	int write_index(FileXML *xml);
 	int update_path(char *new_path);
 
+	double total_length_framealigned(double fps);
+
 // Path to file
 	char path[BCTEXTLEN];
 
diff --git a/cinelerra/edits.C b/cinelerra/edits.C
index 35956ac..f9d6fb7 100644
--- a/cinelerra/edits.C
+++ b/cinelerra/edits.C
@@ -701,6 +701,8 @@ void Edits::clear(int64_t start, int64_t
 	}
 
 	optimize();
+// Reset the loaded_length value. (the last edit should always be a silence going to infinityish)
+	loaded_length = last->startproject;
 }
 
 // Used by edit handle and plugin handle movement but plugin handle movement
diff --git a/cinelerra/mwindowedit.C b/cinelerra/mwindowedit.C
index bf5e2e0..c5b341a 100644
--- a/cinelerra/mwindowedit.C
+++ b/cinelerra/mwindowedit.C
@@ -1421,6 +1421,12 @@ SET_TRACE
 			edl->session->frame_rate, 
 			TRACK_VIDEO);
 
+// Align cursor on frames:: clip the new edl to paste to the last joint frame.
+		if (edl->session->cursor_on_frames)
+		{
+			edl_length = new_edl->tracks->total_length_framealigned(edl->session->frame_rate);
+			new_edl->tracks->clear(edl_length, new_edl->tracks->total_length() + 100, 1);
+		}
 SET_TRACE
 
 
diff --git a/cinelerra/track.C b/cinelerra/track.C
index 00e893f..4d8333b 100644
--- a/cinelerra/track.C
+++ b/cinelerra/track.C
@@ -1148,6 +1148,7 @@ int Track::clear(double start, 
 
 	if(edit_edits)
 		edits->clear((int64_t)start, (int64_t)end);
+
 	return 0;
 }
 
diff --git a/cinelerra/trackcanvas.C b/cinelerra/trackcanvas.C
index 04dad9a..56277df 100644
--- a/cinelerra/trackcanvas.C
+++ b/cinelerra/trackcanvas.C
@@ -1097,6 +1097,67 @@ void TrackCanvas::draw_paste_destination
 			mwindow->session->drag_clips->total)
 			clip = mwindow->session->drag_clips->values[0];
 
+// 'Align cursor of frame' lengths calculations
+		double paste_audio_length, paste_video_length;
+		int64_t asset_length;
+		double desta_position = 0;
+		double destv_position = 0;
+
+		if (asset)
+		{
+			double asset_length_ac = asset->total_length_framealigned(mwindow->edl->session->frame_rate);
+			if (mwindow->edl->session->cursor_on_frames)
+			{
+paste_video_length = paste_audio_length = asset_length_ac;
+			} 
+			else 
+			{
+paste_audio_length = (double)asset->audio_length / asset->sample_rate;
+paste_video_length = (double)asset->video_length / asset->frame_rate;
+			}
+
+			// Images have length -1 (they are a single image!!)
+			if (asset->video_data && asset->video_length < 0)
+			{
+if(mwindow->edl->session->si_useduration)
+	paste_video_length = mwindow->edl->session->si_duration / asset->frame_rate;
+else	
+	paste_video_length = 1.0 / asset->frame_rate;  // bit confused!! (this is 1 frame)
+			}
+
+			int64_t asset_length = 0;
+
+			if(asset->audio_data)
+			{
+// we use video if we are over video and audio if we are over audio
+if(asset->video_data && mwindow->session->track_highlighted->data_type == TRACK_VIDEO)
+	asset_length = mwindow->session->track_highlighted->to_units(paste_video_length, 1);
+else
+	asset_length = mwindow->session->track_highlighted->to_units(paste_audio_length, 1);
+
+desta_position = mwindow->session->track_highlighted->from_units(get_drop_position(&insertion, NULL, asset_length));
+			}
+
+			if(asset->video_data)
+			{
+asset_length = mwindow->session->track_highlighted->to_units((double)paste_video_length, 1);
+destv_

Re: [CinCVS] ubuntu package maintainer

2006-10-30 Thread Andraž Tori
can you please prepare the ubuntu deb of the lastest svn version, i
really need it fast- tell me where to find it.

bye
andraz

On Sun, 2006-10-29 at 16:08 +0100, Bas Alphenaar wrote:
> I made a .deb some weeks ago and uploaded it somewhere but after that I 
> didn't hear anything anymore from the person who offered me the FTP 
> account. I still want to volunteer for this, I can compile for x386. If 
> someone can help me hosting the packages or make a apt-get repository or 
> whatever, I am willing to help.
> 
> Jeroen van de Nieuwenhof wrote:
> > There where some people who said they are willing to make debs and put
> > them online. But they dn't repond to the ml anymore.
> > 
> > Jeroen
> > KenSentMe
> > 
> > Wesley T Allen wrote:
> >> On Tuesday 24 October 2006 7:43 pm, Andraž Tori wrote:
> >>> we really need ubuntu package maintainer.
> >> Andraz, I can barely make it compile and know nothing about compiling for
> >> other architectures - or I'd at least ATTEMPT it.  I've also never created
> >> a .deb in my life.
> >>
> >> Didn't someone have some packages they were willing ot maintain a week or
> >> so
> >> ago?
> >>
> >> WEs
> >>>
> >>>
> >>> bye
> >>> andraz
> >>>
> >>>
> >>> ___
> >>> Cinelerra mailing list
> >>> Cinelerra@skolelinux.no
> >>> https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra
> >> --
> >> "The only way to stay sane in an insane world is to be insane."
> >>  --Me
> >>
> >> ___
> >> 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


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