Re: [osg-users] Loading movie

2009-03-03 Thread Carlos Sanches
Cool !
Hey guys how can I use this plugin ?  What that I have to do to install it ?






On Wed, Feb 25, 2009 at 8:21 AM, J.P. Delport jpdelp...@csir.co.za wrote:

 Hi,

 Tanguy Fautre wrote:

 Hi J.P.,

 I've also given Roberts the FFmpeg win32 binaries (headers, libs and
 dlls) we're using with our osgFFmpeg plugin. Because we're making a
 commercial application that cannot be opensourced, we obviously had to
 compile FFmpeg in LGPL (that's what I meant by non-GPL ffmpeg).


 OK good, just wanted to make sure.

 rgds
 jp



 Tanguy


 -Original Message-
 From: osg-users-boun...@lists.openscenegraph.org
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of J.P.
 Delport
 Sent: Tuesday 24 February 2009 06:53
 To: OpenSceneGraph Users
 Subject: Re: [osg-users] Loading movie

 Hi Tanguy, Robert,

 Tanguy Fautre wrote:

 Hi Robert,


 I've uploaded the plugin sources, plus example application and FFmpeg
 Windows binaries (non-GPL) to the FTP.


 When you say non-GPL what do you mean?

 I've done some research into the whole FFmpeg GPL vs LGPL issues, since I
 would like to release our code under LGPL. It is quite easy to build LGPL
 versions of ffmpeg on Debian/Ubuntu. The standard packages contain GPL code.

 If you would like to know the gory details, let me know.

 jp



 --
 This message is subject to the CSIR's copyright terms and conditions,
 e-mail legal notice, and implemented Open Document Format (ODF) standard.
 The full disclaimer details can be found at
 http://www.csir.co.za/disclaimer.html.

 This message has been scanned for viruses and dangerous content by
 MailScanner, and is believed to be clean.  MailScanner thanks Transtec
 Computers for their support.

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




-- 
   Carlos Sanches
Programação Gráfica;

Tel:  55 11 3816 2888
Cel: 55 11 9650 7137

  Somar Meteorologia
www.somarmeteorologia.com.br
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Loading movie

2009-03-03 Thread Robert Osfield
HI Carlos,

On Tue, Mar 3, 2009 at 9:43 AM, Carlos Sanches ces...@gmail.com wrote:
 Hey guys how can I use this plugin ?  What that I have to do to install it ?

The ffmpeg is now checked into svn/trunk, but it's still very much in
development.  Currently it reads video streams but no audio.  Consider
it bleeding edge development.

I'm pretty optimistic about the prospects, ffmpeg is a bit of an odd
beast in terms of the way the project is managed + distributed, but it
is very portable and supports a wide range of formats and looks to be
much cleaner to work with than either xine-lib or Quicktime.  My hope
is that we'll be able to standardise of the ffmpeg plugin and
deprecate the previous Quicktime and xine-lib plugins, but first will
need to get it up to feature equality with these plugins.

To achieve feature equality we'll need to make sure that we have audio
and live video stream support in place, and make sure that we can
build across all the main platforms.   Audio should be supported this
week, then hopefully we'll be able to add live not long after.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Loading movie

2009-02-25 Thread Robert Osfield
HI Thomas,

Thanks for the posting your FFmpeg code.  FYI, I've had feedback from
a windows users that FFmpeg turned out to be perform better than using
DirectShow, so a good FFmpeg plugin might still add value under
Windows.

As for the non power of two issue, this is easy to solve at the scene
graph end, simply attach the ImageStream to a TextureRectangle or a
Texture2D with the setResizeNonPowerOfTwoHint(false) (this only works
with hardware/drivers that support NPOT textures, but that's most
modern hardware these days).

Robert.

On Tue, Feb 24, 2009 at 5:52 PM, Thomas Hogarth
thomas.hoga...@googlemail.com wrote:
 Hi Robert and Tanguy

 I noticed you talking about video plugins. I've written a few image streams
 that allow me to run video files and webcam streams, but haven't taken the
 leap to creating a plug-in. I'd find it very interesting to look at the
 source for this and see what steps are required (as manually attaching the
 images to textures is a nightmare)

 One thing I am keen to solve is the non power of 2 video issue, currently I
 have to create a texture the nearest ^2 up then load the image into the
 corner of it. I then use a TexMat to rescale the texcoords to account for
 this ( the reason for this is pushing non ^2 textures onto graphics cards is
 slow and webcams don't usually do ^2)

 Would a plugin automatically be able to insert this TexMat ?

 Cheers
 Thomas Hogarth (finally my first post :) )

 PS
 Also I've attached my rather limited ffmpeg stream for you guys to look at,
 I never finished as I moved over to Directshow for windows and Quicktime for
 OSX, but it does get the frames out
 I guess your using FFMPEG as it is cross platform ?






 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Loading movie

2009-02-25 Thread Robert Osfield
Hi Tanguy,

On Tue, Feb 24, 2009 at 9:10 AM, Robert Osfield
robert.osfi...@gmail.com wrote:
 I've pulled down your ffmpeg plugin package now and once I've cleared
 my email inbox I'll get to reviewing it.

I spent much of yesterday fitting carpet underlay, so only spent a
couple of hours on the FFmpeg code.  I've got FindFFmpeg.cmake
written, and most of the code ported into a plugin.  The changes so
far have been just adding missing includes as gcc 4.3.2 is much
tighter on the headers pulled in indirectly when you include various
header.  Getting back on the horse this morning I have this error to
resolve:

/home/robert/OpenSceneGraph/src/osgPlugins/ffmpeg/BoundedMessageQueue.hpp:
In member function ‘void
osgFFmpeg::BoundedMessageQueueT::flush(Destructor) [with Destructor
= osgFFmpeg::FFmpegPacketClear, T = osgFFmpeg::FFmpegPacket]’:
/home/robert/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:171:
  instantiated from here
/home/robert/OpenSceneGraph/src/osgPlugins/ffmpeg/BoundedMessageQueue.hpp:118:
error: no match for call to ‘(const osgFFmpeg::FFmpegPacketClear)
(osgFFmpeg::FFmpegPacket)’
/home/robert/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegPacket.hpp:72:
note: candidates are: void
osgFFmpeg::FFmpegPacketClear::operator()(osgFFmpeg::FFmpegPacket)
const

I'm also getting deprecated warnings on FFmpeg features so it looks
like we'll need to find alternatives:

/usr/include/ffmpeg/avcodec.h:2301: warning: ‘ImgReSampleContext’ is
deprecated (declared at /usr/include/ffmpeg/avcodec.h:2295)

Currently I'm just trying to get the code compiled with it all
together in a single src/osgPlugins/ffmpeg directly.  My plan is to
refactor the osg::ImageStream with the additional methods that you've
had to add in your own subclass.  This will allow us to avoid having
to provide a public interface to the plugin's classes.

I'll have look to see if I can track down the cause of the error.  If
you have any ideas then please shout.

Cheers,
Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Loading movie

2009-02-25 Thread Tanguy Fautre
Hi J.P.,

I've also given Roberts the FFmpeg win32 binaries (headers, libs and
dlls) we're using with our osgFFmpeg plugin. Because we're making a
commercial application that cannot be opensourced, we obviously had to
compile FFmpeg in LGPL (that's what I meant by non-GPL ffmpeg).

Tanguy


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of J.P.
Delport
Sent: Tuesday 24 February 2009 06:53
To: OpenSceneGraph Users
Subject: Re: [osg-users] Loading movie

Hi Tanguy, Robert,

Tanguy Fautre wrote:
 Hi Robert,
 
 
 I've uploaded the plugin sources, plus example application and FFmpeg
 Windows binaries (non-GPL) to the FTP. 

When you say non-GPL what do you mean?

I've done some research into the whole FFmpeg GPL vs LGPL issues, since 
I would like to release our code under LGPL. It is quite easy to build 
LGPL versions of ffmpeg on Debian/Ubuntu. The standard packages contain 
GPL code.

If you would like to know the gory details, let me know.

jp


-- 
This message is subject to the CSIR's copyright terms and conditions,
e-mail legal notice, and implemented Open Document Format (ODF)
standard. 
The full disclaimer details can be found at
http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by
MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for
their support.

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Loading movie

2009-02-25 Thread J.P. Delport

Hi,

Tanguy Fautre wrote:

Hi J.P.,

I've also given Roberts the FFmpeg win32 binaries (headers, libs and
dlls) we're using with our osgFFmpeg plugin. Because we're making a
commercial application that cannot be opensourced, we obviously had to
compile FFmpeg in LGPL (that's what I meant by non-GPL ffmpeg).


OK good, just wanted to make sure.

rgds
jp



Tanguy


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of J.P.
Delport
Sent: Tuesday 24 February 2009 06:53
To: OpenSceneGraph Users
Subject: Re: [osg-users] Loading movie

Hi Tanguy, Robert,

Tanguy Fautre wrote:

Hi Robert,


I've uploaded the plugin sources, plus example application and FFmpeg
Windows binaries (non-GPL) to the FTP. 


When you say non-GPL what do you mean?

I've done some research into the whole FFmpeg GPL vs LGPL issues, since 
I would like to release our code under LGPL. It is quite easy to build 
LGPL versions of ffmpeg on Debian/Ubuntu. The standard packages contain 
GPL code.


If you would like to know the gory details, let me know.

jp




--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Loading movie

2009-02-24 Thread Robert Osfield
HI Tanguy,

I've pulled down your ffmpeg plugin package now and once I've cleared
my email inbox I'll get to reviewing it.

Cheers,
Robert.

On Mon, Feb 23, 2009 at 5:59 PM, Tanguy Fautre
tang...@aristechnologies.com wrote:

 Hi Robert,


 I've uploaded the plugin sources, plus example application and FFmpeg Windows 
 binaries (non-GPL) to the FTP.
 The file name is osgFFmpeg_20090223.zip. It also contains a README file for 
 further info.

 I wished the code was a bit more readable, but this is a firt version. Also, 
 FFmpeg API is not very clear in itself.

 I'm not very happy with the current interface of the plugin, as it forces the 
 user to do a dynamic_cast to access additional methods. I'm sure a better 
 solution can be found (e.g. extending osg::ImageStream and/or adding an 
 osg::AudioStream interface class?).

 I've found some rare instances where the sound and the audio can get 
 out-of-sync. This is probably the trickiest part of the plugin.

 Anyway, have a look.

 I have a bus to catch, otherwise I'll be stuck at the office. ;-)

 Cheers,

 T


 -Original Message-
 From: osg-users-boun...@lists.openscenegraph.org 
 [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert 
 Osfield
 Sent: Monday 23 February 2009 15:20
 To: OpenSceneGraph Users
 Subject: Spam: Re: [osg-users] Loading movie

 Hi Tanguy,

 On Mon, Feb 23, 2009 at 3:01 PM, Tanguy Fautre
 tang...@aristechnologies.com wrote:
 Talk about timing...

 That's why it's always worth doing a syncronization step before coding :-)

 I've just got the green light from my boss.

 Excellent news.  Means we all save some time, and we all can work on
 improving the code base.

 Robert, is there a place where I could upload the current plugin 
 implementation, including an example app and the Windows compiled ffmpeg 
 libraries?

 You could ftp them to the openscenegraph.org server, I could grab them
 there and move the pre-compiled binaries to a publically accessible
 place.

 To log in to ftp on the server the user name is OSG, password OSG.

 Cheers,
 Robert.
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Loading movie

2009-02-24 Thread Thomas Hogarth
Hi Robert and Tanguy

I noticed you talking about video plugins. I've written a few image streams
that allow me to run video files and webcam streams, but haven't taken the
leap to creating a plug-in. I'd find it very interesting to look at the
source for this and see what steps are required (as manually attaching the
images to textures is a nightmare)

One thing I am keen to solve is the non power of 2 video issue, currently I
have to create a texture the nearest ^2 up then load the image into the
corner of it. I then use a TexMat to rescale the texcoords to account for
this ( the reason for this is pushing non ^2 textures onto graphics cards is
slow and webcams don't usually do ^2)

Would a plugin automatically be able to insert this TexMat ?

Cheers
Thomas Hogarth (finally my first post :) )

PS
Also I've attached my rather limited ffmpeg stream for you guys to look at,
I never finished as I moved over to Directshow for windows and Quicktime for
OSX, but it does get the frames out
I guess your using FFMPEG as it is cross platform ?
#pragma once
#include VideoStream.h

#//include StdAfx.h

extern C {
#define __STDC_CONSTANT_MACROS
#define __STDC_LIMIT_MACROS
#include avformat.h
#include avcodec.h
}

class CFFMPEGStream : public CVideoStream
{
public:
CFFMPEGStream(void);
CFFMPEGStream(const char* file, bool isRect);
virtual ~CFFMPEGStream(void);

virtual Object* clone() const { return new CFFMPEGStream; }
virtual bool isSameKindAs(const Object* obj) const {
return dynamic_castconst CFFMPEGStream*(obj) != NULL;
}
virtual const char* className() const { return FFMPEGStream; }


/// Start or continue stream.
virtual void StartStream() { CVideoStream::StartStream(); }

/// Stop stream at current position.
virtual void stop() { CVideoStream::stop();  }

/// Rewind stream to beginning.
virtual void rewind() {CVideoStream::rewind();  }

//Inherit from stream
//void run();
void UpdateStream();

protected:

int iFrame; //curent frame number
AVFormatContext *pFormatCtx;
int i, videoStream;
AVCodecContext  *pCodecCtx;
AVCodec *pCodec;
AVFrame *pFrame;  //frame from video file
AVFrame *pFrameRGB; //converted frame
int numBytes;  //size of frame buffer
uint8_t *buffer;
float   timeToNext;
int lastFrame;

int width,height;

public:
bool ReadNextFrame();
bool ConvertFrameToRGB();
bool SaveCurrentFrame();

void CleanUp();

};
#include .\ffmpegstream.h

#include osg/Notify
#include osg/Timer
#include osg/Node

#include iostream

using namespace std;

CFFMPEGStream::CFFMPEGStream(void)
{
}

CFFMPEGStream::~CFFMPEGStream(void)
{
CleanUp();
}

CFFMPEGStream::CFFMPEGStream(const char* file, bool isRect) : 
CVideoStream(isRect)
{
iFrame=0; //start on frame 0
// Register all formats and codecs for the ffmpeg lib
av_register_all();

// Open video file
if(av_open_input_file(pFormatCtx, file, NULL, 0, NULL)!=0)
{
//AfxMessageBox(Failed to open FFMPEG file);
return; // Couldn't open file
}

// Retrieve stream information
if(av_find_stream_info(pFormatCtx)0)
{
//AfxMessageBox(Failed to find FFMPEG stream information);
return; // Couldn't find stream information
}

// Dump information about file onto standard error
dump_format(pFormatCtx, 0, file, false);

// Find the first video stream
videoStream=-1;
for(i=0; ipFormatCtx-nb_streams; i++)
if(pFormatCtx-streams[i]-codec-codec_type==CODEC_TYPE_VIDEO)
{
videoStream=i;
break;
}
if(videoStream==-1)
{
//AfxMessageBox(Failed to find FFMPEG stream);
return; // Didn't find a video stream
}

// Get a pointer to the codec context for the video stream
pCodecCtx=pFormatCtx-streams[videoStream]-codec;

// Find the decoder for the video stream
pCodec=avcodec_find_decoder(pCodecCtx-codec_id);
if(pCodec==NULL)
{
//AfxMessageBox(Failed to open FFMPEG decoder);
return; // Codec not found
}

// Inform the codec that we can handle truncated bitstreams -- i.e.,
// bitstreams where frame boundaries can fall in the middle of packets
if(pCodec-capabilities  CODEC_CAP_TRUNCATED)
pCodecCtx-flags|=CODEC_FLAG_TRUNCATED;

// Open codec
if(avcodec_open(pCodecCtx, pCodec)0)
{
//AfxMessageBox(Failed to open FFMPEG Codec);
return; // Could not open codec
}

// Hack to correct wrong frame rates that seem to be generated by some 
// codecs
   

Re: [osg-users] Loading movie

2009-02-23 Thread J.P. Delport

Hi,

I must admit I had no idea how long something like this would take :/

It is in progress is all I can say. It is something quite new at our 
company and there is no existing process. It is hard to convince people 
that open sourcing != giving away secrets/whatever.


jp

Robert Osfield wrote:

Hi J.P,

On Tue, Jan 13, 2009 at 6:49 AM, J.P. Delport jpdelp...@csir.co.za wrote:

Gerwin
ps. I was hoping for some public ffmpeg plugin implementation to pop
up on the list, but either I missed it or it's not yet been released.

Coming soon..., I hope next week. This would only be one possible
implementation, but we are using it with success.


Any news about this ffmpeg plugin?  Any chance of it being open sourced? ;-)

This week I'll be looking into possibility using ffmpeg for reading
video, if there already some code out there that does the job then
it'll be great to learn form it, enhance and get it integrated into
the core OSG.

If code isn't possible, then pointers about what you've learnt about
what parts of ffmpeg to use would be good too.

Cheers,
Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Loading movie

2009-02-23 Thread Robert Osfield
Hi J.P,

On Mon, Feb 23, 2009 at 1:49 PM, J.P. Delport jpdelp...@csir.co.za wrote:
 I must admit I had no idea how long something like this would take :/

 It is in progress is all I can say. It is something quite new at our company
 and there is no existing process. It is hard to convince people that open
 sourcing != giving away secrets/whatever.

No problem.  Can I pick your brains on ffmpeg integration?

A quick search for tutorials on ffmpeg came up with:

   http://www.dranger.com/ffmpeg/tutorial01.html

Which seems like a pretty decent place to start.  Looks like it'll be
quite straight forward.  Did you use a particular example/tutorial for
inspiration?

Robert.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Loading movie

2009-02-23 Thread Tanguy Fautre

Hi Robert, J.P,

That's one of the tutorials I've used to implement our plugin; probably the 
best I could find. It's a good start, but I found their video/audio 
synchronization to be pretty bad in pratice. I actually rewrote that part from 
scratch.


T


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield
Sent: Monday 23 February 2009 14:16
To: OpenSceneGraph Users
Subject: Spam: Re: [osg-users] Loading movie

Hi J.P,

On Mon, Feb 23, 2009 at 1:49 PM, J.P. Delport jpdelp...@csir.co.za wrote:
 I must admit I had no idea how long something like this would take :/

 It is in progress is all I can say. It is something quite new at our company
 and there is no existing process. It is hard to convince people that open
 sourcing != giving away secrets/whatever.

No problem.  Can I pick your brains on ffmpeg integration?

A quick search for tutorials on ffmpeg came up with:

   http://www.dranger.com/ffmpeg/tutorial01.html

Which seems like a pretty decent place to start.  Looks like it'll be
quite straight forward.  Did you use a particular example/tutorial for
inspiration?

Robert.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Loading movie

2009-02-23 Thread Tanguy Fautre
Talk about timing...

I've just got the green light from my boss.

Robert, is there a place where I could upload the current plugin 
implementation, including an example app and the Windows compiled ffmpeg 
libraries?

Cheers,

Tanguy


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Tanguy Fautre
Sent: Monday 23 February 2009 14:52
To: OpenSceneGraph Users
Subject: Spam: Re: [osg-users] Spam: Re: Loading movie

Hi Robert, J.P.,

I'm checking with my boss whether we can opensource our FFmpeg plugin.
We still haven't implemented the pause() method (and related behaviour), but 
the rest is pretty stable.


T


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield
Sent: Monday 23 February 2009 13:20
To: OpenSceneGraph Users
Subject: Spam: Re: [osg-users] Loading movie

Hi J.P,

On Tue, Jan 13, 2009 at 6:49 AM, J.P. Delport jpdelp...@csir.co.za wrote:
 Gerwin
 ps. I was hoping for some public ffmpeg plugin implementation to pop
 up on the list, but either I missed it or it's not yet been released.

 Coming soon..., I hope next week. This would only be one possible
 implementation, but we are using it with success.

Any news about this ffmpeg plugin?  Any chance of it being open sourced? ;-)

This week I'll be looking into possibility using ffmpeg for reading
video, if there already some code out there that does the job then
it'll be great to learn form it, enhance and get it integrated into
the core OSG.

If code isn't possible, then pointers about what you've learnt about
what parts of ffmpeg to use would be good too.

Cheers,
Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Loading movie

2009-02-23 Thread Robert Osfield
Hi Tanguy,

On Mon, Feb 23, 2009 at 3:01 PM, Tanguy Fautre
tang...@aristechnologies.com wrote:
 Talk about timing...

That's why it's always worth doing a syncronization step before coding :-)

 I've just got the green light from my boss.

Excellent news.  Means we all save some time, and we all can work on
improving the code base.

 Robert, is there a place where I could upload the current plugin 
 implementation, including an example app and the Windows compiled ffmpeg 
 libraries?

You could ftp them to the openscenegraph.org server, I could grab them
there and move the pre-compiled binaries to a publically accessible
place.

To log in to ftp on the server the user name is OSG, password OSG.

Cheers,
Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Loading movie

2009-02-23 Thread Tanguy Fautre

Hi Robert,


I've uploaded the plugin sources, plus example application and FFmpeg Windows 
binaries (non-GPL) to the FTP.
The file name is osgFFmpeg_20090223.zip. It also contains a README file for 
further info.

I wished the code was a bit more readable, but this is a firt version. Also, 
FFmpeg API is not very clear in itself.

I'm not very happy with the current interface of the plugin, as it forces the 
user to do a dynamic_cast to access additional methods. I'm sure a better 
solution can be found (e.g. extending osg::ImageStream and/or adding an 
osg::AudioStream interface class?).

I've found some rare instances where the sound and the audio can get 
out-of-sync. This is probably the trickiest part of the plugin.

Anyway, have a look.

I have a bus to catch, otherwise I'll be stuck at the office. ;-)

Cheers,

T


-Original Message-
From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield
Sent: Monday 23 February 2009 15:20
To: OpenSceneGraph Users
Subject: Spam: Re: [osg-users] Loading movie

Hi Tanguy,

On Mon, Feb 23, 2009 at 3:01 PM, Tanguy Fautre
tang...@aristechnologies.com wrote:
 Talk about timing...

That's why it's always worth doing a syncronization step before coding :-)

 I've just got the green light from my boss.

Excellent news.  Means we all save some time, and we all can work on
improving the code base.

 Robert, is there a place where I could upload the current plugin 
 implementation, including an example app and the Windows compiled ffmpeg 
 libraries?

You could ftp them to the openscenegraph.org server, I could grab them
there and move the pre-compiled binaries to a publically accessible
place.

To log in to ftp on the server the user name is OSG, password OSG.

Cheers,
Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Loading movie

2009-02-23 Thread J.P. Delport

Hi,

Robert Osfield wrote:

Hi J.P,

On Mon, Feb 23, 2009 at 1:49 PM, J.P. Delport jpdelp...@csir.co.za wrote:

I must admit I had no idea how long something like this would take :/

It is in progress is all I can say. It is something quite new at our company
and there is no existing process. It is hard to convince people that open
sourcing != giving away secrets/whatever.


No problem.  Can I pick your brains on ffmpeg integration?

A quick search for tutorials on ffmpeg came up with:

   http://www.dranger.com/ffmpeg/tutorial01.html

Which seems like a pretty decent place to start.  Looks like it'll be
quite straight forward.  Did you use a particular example/tutorial for
inspiration?


I looked at this and also the simple example that comes with the source 
distribution.


jp



Robert.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Loading movie

2009-02-23 Thread J.P. Delport

Hi,

Robert Osfield wrote:

Hi Tanguy,

On Mon, Feb 23, 2009 at 3:01 PM, Tanguy Fautre
tang...@aristechnologies.com wrote:

Talk about timing...


That's why it's always worth doing a syncronization step before coding :-)


I've just got the green light from my boss.


Excellent news.  Means we all save some time, and we all can work on
improving the code base.


I suggest you use Tanguy's implementation. I'd help where I can.

Our code is not a plugin in the OSG sense, but is part of a framework 
for doing image processing with OSG. I'm trying to get the whole 
framework released. There might be some existing parts of the framework 
we can later include, e.g. movie writing.


jp

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Loading movie

2009-02-23 Thread J.P. Delport

Hi Tanguy, Robert,

Tanguy Fautre wrote:

Hi Robert,


I've uploaded the plugin sources, plus example application and FFmpeg
Windows binaries (non-GPL) to the FTP. 


When you say non-GPL what do you mean?

I've done some research into the whole FFmpeg GPL vs LGPL issues, since 
I would like to release our code under LGPL. It is quite easy to build 
LGPL versions of ffmpeg on Debian/Ubuntu. The standard packages contain 
GPL code.


If you would like to know the gory details, let me know.

jp


--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Loading movie

2009-02-03 Thread Carlos Sanches
ok, but what I have to do to change xine by ffmpeg for example ?
I have to write other plugin ?




On Tue, Jan 13, 2009 at 9:34 AM, Robert Osfield robert.osfi...@gmail.comwrote:

 Hi Carlos,

 From your description this does sound like a threading issue with
 xinelib.  xinelib wasn't really designed for how we use it, rather
 it's a lib designed for writing conventional movies players, and to
 get video support under Linux I had to fit this square peg through a
 round hole.  When I wrote this plugin a few years back I looked at
 various alternatives but none were mature enough/amenable enough to be
 squished through our usage requirements, xinelib ended up being the
 best of bad lot.

 Things under Linux haven't stood still, gstreamer is probably viable
 now, and J.P mentions about a ffmpeg plugin that actually been
 developed and might even be open source soon.  My guess is that now
 both gstreamer and ffmpeg are probably better routes for video support
 under Linux.

 Robert.

 On Tue, Jan 13, 2009 at 11:18 AM, Carlos Sanches ces...@gmail.com wrote:
  if I play only one movie there are no problem . the movie play well.
  if I wish play the second movie . the problem occours when  I call play .
  if I try use the same video to first and second , when I play the second
 the
  program crash.
  the movies are ok . I play it in mplayer
  I m trying to play avi movies without compression .
 
  Remembering if I play only one all is fine .
 
  :(
 
 
 
 
  On Mon, Jan 12, 2009 at 8:42 PM, Gerwin de Haan gerwindeh...@gmail.com
  wrote:
 
  Dear Carlos,
  from my experiments some time ago (osg 2.4, ubuntu 7.10), playing
  _multiple_ movies through ImageStream instances using the osgdb xine
  plugin result in sporadic crashes and funny playback/pause behavior,
  most probably caused by threading issues. At the time I did not have
  the time to go into the problem too deeply, but I recall I found it
  suspicious that only a single xine player instance was responsible for
  handling multiple movies. Again, crashes might also have been caused
  by some video codec used inside xine. What type of movie (container,
  codec, sound, size etc.) are you trying to play?
  regards,
  Gerwin
  ps. I was hoping for some public ffmpeg plugin implementation to pop
  up on the list, but either I missed it or it's not yet been released.
 
  On Mon, Jan 12, 2009 at 6:51 PM, Carlos Sanches ces...@gmail.com
 wrote:
   Excuse-me  I m going crazy.
   My version is OpenSceneGraph Library 2.7.7
   OS Ubuntu 8.04
  
   My program load the movies. I play the first but when I will play the
   second
   the program crash .
   This is what is happening ...
  
  
   *** glibc detected *** ./OSG: double free or corruption (out):
   0xafd31008
   ***
   === Backtrace: =
   /lib/tls/i686/cmov/libc.so.6[0xb7444a85]
   /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb74484f0]
   /usr/local/lib/osgPlugins-2.7.7/osgdb_xine.so[0xb5add753]
   /usr/lib/libxine.so.1[0xb5aa54d8]
   === Memory map: 
   08048000-08071000 r-xp  08:12 6046911
   /dados/workspace/desenv/OSG/Debug/OSG
   08071000-08072000 rw-p 00028000 08:12 6046911
   /dados/workspace/desenv/OSG/Debug/OSG
   08072000-0fd3 rw-p 08072000 00:00 0  [heap]
   a1778000-a1779000 ---p a1778000 00:00 0
   a1779000-a1f79000 rwxp a1779000 00:00 0
   a1f79000-a20a5000 rw-s 2c15f000 00:0e 13809  /dev/nvidia0
   a20a5000-a22ff000 rw-p a20a5000 00:00 0
   a22ff000-a230 ---p a22ff000 00:00 0
   a230-a2b0 rwxp a230 00:00 0
   a2b0-a2bd4000 rw-p a2b0 00:00 0
   a2bd4000-a2c0 ---p a2bd4000 00:00 0
   a2c0-a2c6c000 rw-p a2c0 00:00 0
   a2c6c000-a2d0 ---p a2c6c000 00:00 0
   a2d0-a2dfc000 rw-p a2d0 00:00 0
   a2dfc000-a2e0 ---p a2dfc000 00:00 0
   a2f0-a2ffe000 rw-p a2f0 00:00 0
   a2ffe000-a300 ---p a2ffe000 00:00 0
   a310-a31f7000 rw-p a310 00:00 0
   a31f7000-a320 ---p a31f7000 00:00 0
   a330-a33fc000 rw-p a330 00:00 0
   a33fc000-a340 ---p a33fc000 00:00 0
   a350-a35f9000 rw-p a350 00:00 0
   a35f9000-a360 ---p a35f9000 00:00 0
   a370-a37fc000 rw-p a370 00:00 0
   a37fc000-a380 ---p a37fc000 00:00 0
   a390-a39fe000 rw-p a390 00:00 0
   a39fe000-a3a0 ---p a39fe000 00:00 0
   a3b0-a3bff000 rw-p a3b0 00:00 0
   a3bff000-a3c0 ---p a3bff000 00:00 0
   a3d0-a3df9000 rw-p a3d0 00:00 0
   a3df9000-a3e0 ---p a3df9000 00:00 0
   a3f0-a3fed000 rw-p a3f0 00:00 0
   a3fed000-a400 ---p a3fed000 00:00 0
   a400-a40fb000 rw-p a400 00:00 0
   a40fb000-a410 ---p a40fb000 00:00 0
   a410-a41ff000 rw-p a410 00:00 0
   a41ff000-a420 ---p a41ff000 00:00 0
   a430-a440 rw-p a430 00:00 0
   a450-a45fc000 rw-p a450 00:00 0
   a45fc000-a460 ---p a45fc000 00:00 0
   a470-a47fc000 rw-p a470 00:00 0
   a47fc000-a480 ---p a47fc000 00:00 0
   a490-a49f9000 rw-p a490 

Re: [osg-users] Loading movie

2009-01-13 Thread Carlos Sanches
if I play only one movie there are no problem . the movie play well.
if I wish play the second movie . the problem occours when  I call play .
if I try use the same video to first and second , when I play the second the
program crash.
the movies are ok . I play it in mplayer
I m trying to play avi movies without compression .

Remembering if I play only one all is fine .

:(




On Mon, Jan 12, 2009 at 8:42 PM, Gerwin de Haan gerwindeh...@gmail.comwrote:

 Dear Carlos,
 from my experiments some time ago (osg 2.4, ubuntu 7.10), playing
 _multiple_ movies through ImageStream instances using the osgdb xine
 plugin result in sporadic crashes and funny playback/pause behavior,
 most probably caused by threading issues. At the time I did not have
 the time to go into the problem too deeply, but I recall I found it
 suspicious that only a single xine player instance was responsible for
 handling multiple movies. Again, crashes might also have been caused
 by some video codec used inside xine. What type of movie (container,
 codec, sound, size etc.) are you trying to play?
 regards,
 Gerwin
 ps. I was hoping for some public ffmpeg plugin implementation to pop
 up on the list, but either I missed it or it's not yet been released.

 On Mon, Jan 12, 2009 at 6:51 PM, Carlos Sanches ces...@gmail.com wrote:
  Excuse-me  I m going crazy.
  My version is OpenSceneGraph Library 2.7.7
  OS Ubuntu 8.04
 
  My program load the movies. I play the first but when I will play the
 second
  the program crash .
  This is what is happening ...
 
 
  *** glibc detected *** ./OSG: double free or corruption (out): 0xafd31008
  ***
  === Backtrace: =
  /lib/tls/i686/cmov/libc.so.6[0xb7444a85]
  /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb74484f0]
  /usr/local/lib/osgPlugins-2.7.7/osgdb_xine.so[0xb5add753]
  /usr/lib/libxine.so.1[0xb5aa54d8]
  === Memory map: 
  08048000-08071000 r-xp  08:12 6046911
  /dados/workspace/desenv/OSG/Debug/OSG
  08071000-08072000 rw-p 00028000 08:12 6046911
  /dados/workspace/desenv/OSG/Debug/OSG
  08072000-0fd3 rw-p 08072000 00:00 0  [heap]
  a1778000-a1779000 ---p a1778000 00:00 0
  a1779000-a1f79000 rwxp a1779000 00:00 0
  a1f79000-a20a5000 rw-s 2c15f000 00:0e 13809  /dev/nvidia0
  a20a5000-a22ff000 rw-p a20a5000 00:00 0
  a22ff000-a230 ---p a22ff000 00:00 0
  a230-a2b0 rwxp a230 00:00 0
  a2b0-a2bd4000 rw-p a2b0 00:00 0
  a2bd4000-a2c0 ---p a2bd4000 00:00 0
  a2c0-a2c6c000 rw-p a2c0 00:00 0
  a2c6c000-a2d0 ---p a2c6c000 00:00 0
  a2d0-a2dfc000 rw-p a2d0 00:00 0
  a2dfc000-a2e0 ---p a2dfc000 00:00 0
  a2f0-a2ffe000 rw-p a2f0 00:00 0
  a2ffe000-a300 ---p a2ffe000 00:00 0
  a310-a31f7000 rw-p a310 00:00 0
  a31f7000-a320 ---p a31f7000 00:00 0
  a330-a33fc000 rw-p a330 00:00 0
  a33fc000-a340 ---p a33fc000 00:00 0
  a350-a35f9000 rw-p a350 00:00 0
  a35f9000-a360 ---p a35f9000 00:00 0
  a370-a37fc000 rw-p a370 00:00 0
  a37fc000-a380 ---p a37fc000 00:00 0
  a390-a39fe000 rw-p a390 00:00 0
  a39fe000-a3a0 ---p a39fe000 00:00 0
  a3b0-a3bff000 rw-p a3b0 00:00 0
  a3bff000-a3c0 ---p a3bff000 00:00 0
  a3d0-a3df9000 rw-p a3d0 00:00 0
  a3df9000-a3e0 ---p a3df9000 00:00 0
  a3f0-a3fed000 rw-p a3f0 00:00 0
  a3fed000-a400 ---p a3fed000 00:00 0
  a400-a40fb000 rw-p a400 00:00 0
  a40fb000-a410 ---p a40fb000 00:00 0
  a410-a41ff000 rw-p a410 00:00 0
  a41ff000-a420 ---p a41ff000 00:00 0
  a430-a440 rw-p a430 00:00 0
  a450-a45fc000 rw-p a450 00:00 0
  a45fc000-a460 ---p a45fc000 00:00 0
  a470-a47fc000 rw-p a470 00:00 0
  a47fc000-a480 ---p a47fc000 00:00 0
  a490-a49f9000 rw-p a490 00:00 0
  a49f9000-a4a0 ---p a49f9000 00:00 0
  a4b0-a4c0 rw-p a4b0 00:00 0
  a4d0-a4df8000 rw-p a4d0 00:00 0
  a4df8000-a4e0 ---p a4df8000 00:00 0
  a4e0-a4ef1000 rw-p a4e0 00:00 0
  a4ef1000-a4f0 ---p a4ef1000 00:00 0
  a4f0-a4fff000 rw-p a4f0 00:00 0
  a4fff000-a500 ---p a4fff000 00:00 0
  a510-a51ff000 rw-p a510 00:00 0
  a51ff000-a520 ---p a51ff000 00:00 0
  a530-a53fc000 rw-p a530 00:00 0
  a53fc000-a540 ---p a53fc000 00:00 0
  a550-a56ff000 rw-p a550 00:00 0
  a56ff000-a570 ---p a56ff000 00:00 0
  a570-a57f8000 rw-p a570 00:00 0
  a57f8000-a580 ---p a57f8000 00:00 0
  a590-a59fb000 rw-p a590 00:00 0
  a59fb000-a5a0 ---p a59fb000 00:00 0
  a5b0-a5bf7000 rw-p a5b0 00:00 0
  a5bf7000-a5c0 ---p a5bf7000 00:00 0
  a5d0-a5df8000 rw-p a5d0 00:00 0
  a5df8000-a5e0 ---p a5df8000 00:00 0
  a5e0-a5efb000 rw-p a5e0 00:00 0
  a5efb000-a5f0 ---p a5efb000 00:00 0
  a5f0-a600 rw-p a5f0 00:00 0
  a610-a620 rw-p a610 00:00 0
  a630-a63fa000 rw-p a630 00:00 0
  a63fa000-a640 ---p a63fa000 00:00 0
  

Re: [osg-users] Loading movie

2009-01-12 Thread Robert Osfield
On Mon, Jan 12, 2009 at 4:59 PM, Carlos Sanches ces...@gmail.com wrote:
 what is happening ?

You are the only placed to answer that question as non one else knows
how you application is failing.  closing rather covers quite a bit
of scope.

If you want help you need to provide more info, such as a stack trace
if your app is crashing, info on your OSG version, OS version, dev
libraries etc.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Loading movie

2009-01-12 Thread Carlos Sanches
Excuse-me  I m going crazy.
My version is OpenSceneGraph Library 2.7.7
OS Ubuntu 8.04

My program load the movies. I play the first but when I will play the second
the program crash .
This is what is happening ...


*** glibc detected *** ./OSG: double free or corruption (out): 0xafd31008
***
=== Backtrace: =
/lib/tls/i686/cmov/libc.so.6[0xb7444a85]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb74484f0]
/usr/local/lib/osgPlugins-2.7.7/osgdb_xine.so[0xb5add753]
/usr/lib/libxine.so.1[0xb5aa54d8]
=== Memory map: 
08048000-08071000 r-xp  08:12 6046911
/dados/workspace/desenv/OSG/Debug/OSG
08071000-08072000 rw-p 00028000 08:12 6046911
/dados/workspace/desenv/OSG/Debug/OSG
08072000-0fd3 rw-p 08072000 00:00 0  [heap]
a1778000-a1779000 ---p a1778000 00:00 0
a1779000-a1f79000 rwxp a1779000 00:00 0
a1f79000-a20a5000 rw-s 2c15f000 00:0e 13809  /dev/nvidia0
a20a5000-a22ff000 rw-p a20a5000 00:00 0
a22ff000-a230 ---p a22ff000 00:00 0
a230-a2b0 rwxp a230 00:00 0
a2b0-a2bd4000 rw-p a2b0 00:00 0
a2bd4000-a2c0 ---p a2bd4000 00:00 0
a2c0-a2c6c000 rw-p a2c0 00:00 0
a2c6c000-a2d0 ---p a2c6c000 00:00 0
a2d0-a2dfc000 rw-p a2d0 00:00 0
a2dfc000-a2e0 ---p a2dfc000 00:00 0
a2f0-a2ffe000 rw-p a2f0 00:00 0
a2ffe000-a300 ---p a2ffe000 00:00 0
a310-a31f7000 rw-p a310 00:00 0
a31f7000-a320 ---p a31f7000 00:00 0
a330-a33fc000 rw-p a330 00:00 0
a33fc000-a340 ---p a33fc000 00:00 0
a350-a35f9000 rw-p a350 00:00 0
a35f9000-a360 ---p a35f9000 00:00 0
a370-a37fc000 rw-p a370 00:00 0
a37fc000-a380 ---p a37fc000 00:00 0
a390-a39fe000 rw-p a390 00:00 0
a39fe000-a3a0 ---p a39fe000 00:00 0
a3b0-a3bff000 rw-p a3b0 00:00 0
a3bff000-a3c0 ---p a3bff000 00:00 0
a3d0-a3df9000 rw-p a3d0 00:00 0
a3df9000-a3e0 ---p a3df9000 00:00 0
a3f0-a3fed000 rw-p a3f0 00:00 0
a3fed000-a400 ---p a3fed000 00:00 0
a400-a40fb000 rw-p a400 00:00 0
a40fb000-a410 ---p a40fb000 00:00 0
a410-a41ff000 rw-p a410 00:00 0
a41ff000-a420 ---p a41ff000 00:00 0
a430-a440 rw-p a430 00:00 0
a450-a45fc000 rw-p a450 00:00 0
a45fc000-a460 ---p a45fc000 00:00 0
a470-a47fc000 rw-p a470 00:00 0
a47fc000-a480 ---p a47fc000 00:00 0
a490-a49f9000 rw-p a490 00:00 0
a49f9000-a4a0 ---p a49f9000 00:00 0
a4b0-a4c0 rw-p a4b0 00:00 0
a4d0-a4df8000 rw-p a4d0 00:00 0
a4df8000-a4e0 ---p a4df8000 00:00 0
a4e0-a4ef1000 rw-p a4e0 00:00 0
a4ef1000-a4f0 ---p a4ef1000 00:00 0
a4f0-a4fff000 rw-p a4f0 00:00 0
a4fff000-a500 ---p a4fff000 00:00 0
a510-a51ff000 rw-p a510 00:00 0
a51ff000-a520 ---p a51ff000 00:00 0
a530-a53fc000 rw-p a530 00:00 0
a53fc000-a540 ---p a53fc000 00:00 0
a550-a56ff000 rw-p a550 00:00 0
a56ff000-a570 ---p a56ff000 00:00 0
a570-a57f8000 rw-p a570 00:00 0
a57f8000-a580 ---p a57f8000 00:00 0
a590-a59fb000 rw-p a590 00:00 0
a59fb000-a5a0 ---p a59fb000 00:00 0
a5b0-a5bf7000 rw-p a5b0 00:00 0
a5bf7000-a5c0 ---p a5bf7000 00:00 0
a5d0-a5df8000 rw-p a5d0 00:00 0
a5df8000-a5e0 ---p a5df8000 00:00 0
a5e0-a5efb000 rw-p a5e0 00:00 0
a5efb000-a5f0 ---p a5efb000 00:00 0
a5f0-a600 rw-p a5f0 00:00 0
a610-a620 rw-p a610 00:00 0
a630-a63fa000 rw-p a630 00:00 0
a63fa000-a640 ---p a63fa000 00:00 0
a650-a65ff000 rw-p a650 00:00 0
a65ff000-a660 ---p a65ff000 00:00 0
a670-a67f9000 rw-p a670 00:00 0
a67f9000-a680 ---p a67f9000 00:00 0
a690-a69fd000 rw-p a690 00:00 0
a69fd000-a6a0 ---p a69fd000 00:00 0
a6b0-a6bee000 rw-p a6b0 00:00 0
a6bee000-a6c0 ---p a6bee000 00:00 0
a6d0-a6dff000 rw-p a6d0 00:00 0
a6dff000-a6e0 ---p a6dff000 00:00 0
a6f0-a6ff8000 rw-p a6f0 00:00 0
a6ff8000-a700 ---p a6ff8000 00:00 0
a710-a71fe000 rw-p a710 00:00 0
a71fe000-a720 ---p a71fe000 00:00 0
a7269000-a73f2000 rw-p a7269000 00:00 0
a73f2000-a740 ---p a73f2000 00:00 0
a7469000-a75fa000 rw-p a7469000 00:00 0
a75fa000-a760 ---p a75fa000 00:00 0
a7669000-a77fd000 rw-p a7669000 00:00 0
a77fd000-a780 ---p a77fd000 00:00 0
a7869000-a79f7000 rw-p a7869000 00:00 0
a79f7000-a7a0 ---p a79f7000 00:00 0
a7a69000-a7bff000 rw-p a7a69000 00:00 0
a7bff000-a7c0 ---p a7bff000 00:00 0
a7c69000-a7df3000 rw-p a7c69000 00:00 0
a7df3000-a7e0 ---p a7df3000 00:00 0
a7e69000-a800 rw-p a7e69000 00:00 0
a8069000-a81f8000 rw-p a8069000 00:00 0
a81f8000-a820 ---p a81f8000 00:00 0
a820-a8221000 rw-p a820 00:00 0
a8221000-a830 ---p a8221000 00:00 0
a830-a83fa000 rw-p a830 00:00 0
a83fa000-a840 ---p a83fa000 00:00 0
a840-a84e9000 rw-p a840 00:00 0
a84e9000-a850 ---p a84e9000 00:00 0
a850-a85f4000 rw-p a850 00:00 0
a85f4000-a860 ---p a85f4000 00:00 0

Re: [osg-users] Loading movie

2009-01-12 Thread Gerwin de Haan
Dear Carlos,
from my experiments some time ago (osg 2.4, ubuntu 7.10), playing
_multiple_ movies through ImageStream instances using the osgdb xine
plugin result in sporadic crashes and funny playback/pause behavior,
most probably caused by threading issues. At the time I did not have
the time to go into the problem too deeply, but I recall I found it
suspicious that only a single xine player instance was responsible for
handling multiple movies. Again, crashes might also have been caused
by some video codec used inside xine. What type of movie (container,
codec, sound, size etc.) are you trying to play?
regards,
Gerwin
ps. I was hoping for some public ffmpeg plugin implementation to pop
up on the list, but either I missed it or it's not yet been released.

On Mon, Jan 12, 2009 at 6:51 PM, Carlos Sanches ces...@gmail.com wrote:
 Excuse-me  I m going crazy.
 My version is OpenSceneGraph Library 2.7.7
 OS Ubuntu 8.04

 My program load the movies. I play the first but when I will play the second
 the program crash .
 This is what is happening ...


 *** glibc detected *** ./OSG: double free or corruption (out): 0xafd31008
 ***
 === Backtrace: =
 /lib/tls/i686/cmov/libc.so.6[0xb7444a85]
 /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb74484f0]
 /usr/local/lib/osgPlugins-2.7.7/osgdb_xine.so[0xb5add753]
 /usr/lib/libxine.so.1[0xb5aa54d8]
 === Memory map: 
 08048000-08071000 r-xp  08:12 6046911
 /dados/workspace/desenv/OSG/Debug/OSG
 08071000-08072000 rw-p 00028000 08:12 6046911
 /dados/workspace/desenv/OSG/Debug/OSG
 08072000-0fd3 rw-p 08072000 00:00 0  [heap]
 a1778000-a1779000 ---p a1778000 00:00 0
 a1779000-a1f79000 rwxp a1779000 00:00 0
 a1f79000-a20a5000 rw-s 2c15f000 00:0e 13809  /dev/nvidia0
 a20a5000-a22ff000 rw-p a20a5000 00:00 0
 a22ff000-a230 ---p a22ff000 00:00 0
 a230-a2b0 rwxp a230 00:00 0
 a2b0-a2bd4000 rw-p a2b0 00:00 0
 a2bd4000-a2c0 ---p a2bd4000 00:00 0
 a2c0-a2c6c000 rw-p a2c0 00:00 0
 a2c6c000-a2d0 ---p a2c6c000 00:00 0
 a2d0-a2dfc000 rw-p a2d0 00:00 0
 a2dfc000-a2e0 ---p a2dfc000 00:00 0
 a2f0-a2ffe000 rw-p a2f0 00:00 0
 a2ffe000-a300 ---p a2ffe000 00:00 0
 a310-a31f7000 rw-p a310 00:00 0
 a31f7000-a320 ---p a31f7000 00:00 0
 a330-a33fc000 rw-p a330 00:00 0
 a33fc000-a340 ---p a33fc000 00:00 0
 a350-a35f9000 rw-p a350 00:00 0
 a35f9000-a360 ---p a35f9000 00:00 0
 a370-a37fc000 rw-p a370 00:00 0
 a37fc000-a380 ---p a37fc000 00:00 0
 a390-a39fe000 rw-p a390 00:00 0
 a39fe000-a3a0 ---p a39fe000 00:00 0
 a3b0-a3bff000 rw-p a3b0 00:00 0
 a3bff000-a3c0 ---p a3bff000 00:00 0
 a3d0-a3df9000 rw-p a3d0 00:00 0
 a3df9000-a3e0 ---p a3df9000 00:00 0
 a3f0-a3fed000 rw-p a3f0 00:00 0
 a3fed000-a400 ---p a3fed000 00:00 0
 a400-a40fb000 rw-p a400 00:00 0
 a40fb000-a410 ---p a40fb000 00:00 0
 a410-a41ff000 rw-p a410 00:00 0
 a41ff000-a420 ---p a41ff000 00:00 0
 a430-a440 rw-p a430 00:00 0
 a450-a45fc000 rw-p a450 00:00 0
 a45fc000-a460 ---p a45fc000 00:00 0
 a470-a47fc000 rw-p a470 00:00 0
 a47fc000-a480 ---p a47fc000 00:00 0
 a490-a49f9000 rw-p a490 00:00 0
 a49f9000-a4a0 ---p a49f9000 00:00 0
 a4b0-a4c0 rw-p a4b0 00:00 0
 a4d0-a4df8000 rw-p a4d0 00:00 0
 a4df8000-a4e0 ---p a4df8000 00:00 0
 a4e0-a4ef1000 rw-p a4e0 00:00 0
 a4ef1000-a4f0 ---p a4ef1000 00:00 0
 a4f0-a4fff000 rw-p a4f0 00:00 0
 a4fff000-a500 ---p a4fff000 00:00 0
 a510-a51ff000 rw-p a510 00:00 0
 a51ff000-a520 ---p a51ff000 00:00 0
 a530-a53fc000 rw-p a530 00:00 0
 a53fc000-a540 ---p a53fc000 00:00 0
 a550-a56ff000 rw-p a550 00:00 0
 a56ff000-a570 ---p a56ff000 00:00 0
 a570-a57f8000 rw-p a570 00:00 0
 a57f8000-a580 ---p a57f8000 00:00 0
 a590-a59fb000 rw-p a590 00:00 0
 a59fb000-a5a0 ---p a59fb000 00:00 0
 a5b0-a5bf7000 rw-p a5b0 00:00 0
 a5bf7000-a5c0 ---p a5bf7000 00:00 0
 a5d0-a5df8000 rw-p a5d0 00:00 0
 a5df8000-a5e0 ---p a5df8000 00:00 0
 a5e0-a5efb000 rw-p a5e0 00:00 0
 a5efb000-a5f0 ---p a5efb000 00:00 0
 a5f0-a600 rw-p a5f0 00:00 0
 a610-a620 rw-p a610 00:00 0
 a630-a63fa000 rw-p a630 00:00 0
 a63fa000-a640 ---p a63fa000 00:00 0
 a650-a65ff000 rw-p a650 00:00 0
 a65ff000-a660 ---p a65ff000 00:00 0
 a670-a67f9000 rw-p a670 00:00 0
 a67f9000-a680 ---p a67f9000 00:00 0
 a690-a69fd000 rw-p a690 00:00 0
 a69fd000-a6a0 ---p a69fd000 00:00 0
 a6b0-a6bee000 rw-p a6b0 00:00 0
 a6bee000-a6c0 ---p a6bee000 00:00 0
 a6d0-a6dff000 rw-p a6d0 00:00 0
 a6dff000-a6e0 ---p a6dff000 00:00 0
 a6f0-a6ff8000 rw-p a6f0 00:00 0
 a6ff8000-a700 ---p a6ff8000 00:00 0
 a710-a71fe000 rw-p a710 00:00 0
 a71fe000-a720 ---p a71fe000 

Re: [osg-users] Loading movie

2009-01-12 Thread J.P. Delport

Hi,

Gerwin de Haan wrote:

Dear Carlos,
from my experiments some time ago (osg 2.4, ubuntu 7.10), playing
_multiple_ movies through ImageStream instances using the osgdb xine
plugin result in sporadic crashes and funny playback/pause behavior,
most probably caused by threading issues. At the time I did not have
the time to go into the problem too deeply, but I recall I found it
suspicious that only a single xine player instance was responsible for
handling multiple movies. Again, crashes might also have been caused
by some video codec used inside xine. What type of movie (container,
codec, sound, size etc.) are you trying to play?
regards,
Gerwin
ps. I was hoping for some public ffmpeg plugin implementation to pop
up on the list, but either I missed it or it's not yet been released.


Coming soon..., I hope next week. This would only be one possible 
implementation, but we are using it with success.


jp



On Mon, Jan 12, 2009 at 6:51 PM, Carlos Sanches ces...@gmail.com wrote:

Excuse-me  I m going crazy.
My version is OpenSceneGraph Library 2.7.7
OS Ubuntu 8.04

My program load the movies. I play the first but when I will play the second
the program crash .
This is what is happening ...


*** glibc detected *** ./OSG: double free or corruption (out): 0xafd31008
***
=== Backtrace: =
/lib/tls/i686/cmov/libc.so.6[0xb7444a85]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb74484f0]
/usr/local/lib/osgPlugins-2.7.7/osgdb_xine.so[0xb5add753]
/usr/lib/libxine.so.1[0xb5aa54d8]
=== Memory map: 
08048000-08071000 r-xp  08:12 6046911
/dados/workspace/desenv/OSG/Debug/OSG
08071000-08072000 rw-p 00028000 08:12 6046911
/dados/workspace/desenv/OSG/Debug/OSG
08072000-0fd3 rw-p 08072000 00:00 0  [heap]
a1778000-a1779000 ---p a1778000 00:00 0
a1779000-a1f79000 rwxp a1779000 00:00 0
a1f79000-a20a5000 rw-s 2c15f000 00:0e 13809  /dev/nvidia0
a20a5000-a22ff000 rw-p a20a5000 00:00 0
a22ff000-a230 ---p a22ff000 00:00 0
a230-a2b0 rwxp a230 00:00 0
a2b0-a2bd4000 rw-p a2b0 00:00 0
a2bd4000-a2c0 ---p a2bd4000 00:00 0
a2c0-a2c6c000 rw-p a2c0 00:00 0
a2c6c000-a2d0 ---p a2c6c000 00:00 0
a2d0-a2dfc000 rw-p a2d0 00:00 0
a2dfc000-a2e0 ---p a2dfc000 00:00 0
a2f0-a2ffe000 rw-p a2f0 00:00 0
a2ffe000-a300 ---p a2ffe000 00:00 0
a310-a31f7000 rw-p a310 00:00 0
a31f7000-a320 ---p a31f7000 00:00 0
a330-a33fc000 rw-p a330 00:00 0
a33fc000-a340 ---p a33fc000 00:00 0
a350-a35f9000 rw-p a350 00:00 0
a35f9000-a360 ---p a35f9000 00:00 0
a370-a37fc000 rw-p a370 00:00 0
a37fc000-a380 ---p a37fc000 00:00 0
a390-a39fe000 rw-p a390 00:00 0
a39fe000-a3a0 ---p a39fe000 00:00 0
a3b0-a3bff000 rw-p a3b0 00:00 0
a3bff000-a3c0 ---p a3bff000 00:00 0
a3d0-a3df9000 rw-p a3d0 00:00 0
a3df9000-a3e0 ---p a3df9000 00:00 0
a3f0-a3fed000 rw-p a3f0 00:00 0
a3fed000-a400 ---p a3fed000 00:00 0
a400-a40fb000 rw-p a400 00:00 0
a40fb000-a410 ---p a40fb000 00:00 0
a410-a41ff000 rw-p a410 00:00 0
a41ff000-a420 ---p a41ff000 00:00 0
a430-a440 rw-p a430 00:00 0
a450-a45fc000 rw-p a450 00:00 0
a45fc000-a460 ---p a45fc000 00:00 0
a470-a47fc000 rw-p a470 00:00 0
a47fc000-a480 ---p a47fc000 00:00 0
a490-a49f9000 rw-p a490 00:00 0
a49f9000-a4a0 ---p a49f9000 00:00 0
a4b0-a4c0 rw-p a4b0 00:00 0
a4d0-a4df8000 rw-p a4d0 00:00 0
a4df8000-a4e0 ---p a4df8000 00:00 0
a4e0-a4ef1000 rw-p a4e0 00:00 0
a4ef1000-a4f0 ---p a4ef1000 00:00 0
a4f0-a4fff000 rw-p a4f0 00:00 0
a4fff000-a500 ---p a4fff000 00:00 0
a510-a51ff000 rw-p a510 00:00 0
a51ff000-a520 ---p a51ff000 00:00 0
a530-a53fc000 rw-p a530 00:00 0
a53fc000-a540 ---p a53fc000 00:00 0
a550-a56ff000 rw-p a550 00:00 0
a56ff000-a570 ---p a56ff000 00:00 0
a570-a57f8000 rw-p a570 00:00 0
a57f8000-a580 ---p a57f8000 00:00 0
a590-a59fb000 rw-p a590 00:00 0
a59fb000-a5a0 ---p a59fb000 00:00 0
a5b0-a5bf7000 rw-p a5b0 00:00 0
a5bf7000-a5c0 ---p a5bf7000 00:00 0
a5d0-a5df8000 rw-p a5d0 00:00 0
a5df8000-a5e0 ---p a5df8000 00:00 0
a5e0-a5efb000 rw-p a5e0 00:00 0
a5efb000-a5f0 ---p a5efb000 00:00 0
a5f0-a600 rw-p a5f0 00:00 0
a610-a620 rw-p a610 00:00 0
a630-a63fa000 rw-p a630 00:00 0
a63fa000-a640 ---p a63fa000 00:00 0
a650-a65ff000 rw-p a650 00:00 0
a65ff000-a660 ---p a65ff000 00:00 0
a670-a67f9000 rw-p a670 00:00 0
a67f9000-a680 ---p a67f9000 00:00 0
a690-a69fd000 rw-p a690 00:00 0
a69fd000-a6a0 ---p a69fd000 00:00 0
a6b0-a6bee000 rw-p a6b0 00:00 0
a6bee000-a6c0 ---p a6bee000 00:00 0
a6d0-a6dff000 rw-p a6d0 00:00 0
a6dff000-a6e0 ---p a6dff000 00:00 0
a6f0-a6ff8000 rw-p a6f0 00:00 0
a6ff8000-a700 ---p a6ff8000 00:00 0
a710-a71fe000