[osg-users] exception occurs when play video without audio

Dan Liu 139250065 at qq.com
Thu Feb 25 00:21:10 PST 2016


The problem disappear after I run command: export DISPLAY=:0.0 under ssh window. But osgmovie runs fine without set DISPLAY enviroment.




------------------ Original ------------------
From:  "Dan Liu";<139250065 at qq.com>;
Date:  Thu, Feb 25, 2016 04:05 PM
To:  "OpenSceneGraph Users"<osg-users at lists.openscenegraph.org>; 

Subject:  [osg-users] exception occurs when play video without audio



Hello all:
    When I write a program according to osgmovie example using OSG 3.4 and SDL2. It works fine when I run it under GUI windows. But if I run my program in ssh terminal, an exception occurs, and video stops on first frame. And the original osgmovie has no problem. Does anybody know the reason? Below is the output:


ffmpeg::open(/film/rio.mov) size(1920, 816) aspect ratio 1
Attaching FFmpegAudioStream
FFmpegAudioStream::setAudioSink( 0x9d7f80)
Assigning 0x9d7f80
GraphicsWindowX11::realizeImplementation() Already realized
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused


FFmpegDecoderAudio::run : unhandled exception
Finished FFmpegImageStream::run()
FFmpegAudioStream::setAudioSink( 0)
Assigning 0
Calling avformat_close_input(0x8c1fe8)


With best regards
daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160225/cd75dc6a/attachment-0003.htm>


More information about the osg-users mailing list