Discussion:
[osg-users] playing videos with audio channels with the ffmpeg plugin
Trajce Nikolov NICK
2018-11-21 21:16:18 UTC
Permalink
Hi Community,

I have video with audio and when I playback the file with osgmovie I see in
the debug the audio channel is attached but can not hear anything :-). Is
there any magic, perheps to set the audio device somehow? Thank you for any
hint!

Here is the ouput

osgmovie VID00032.mpg.ffmpeg
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
ffmpeg::open(VID00032.mpg) size(720, 480) aspect ratio 1.18519
Attaching FFmpegAudioStream
image->s()720 image-t()=480 aspectRatio=1.18519
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
--
trajce nikolov nick
Chris Hanson
2018-11-21 21:31:30 UTC
Permalink
Refer to Mattias Helsing's answer here:
http://forum.openscenegraph.org/viewtopic.php?t=9707

You need an audio subsystem like osgAudio or even SDL to output the audio
to.

On Wed, Nov 21, 2018 at 10:16 PM Trajce Nikolov NICK <
Post by Trajce Nikolov NICK
Hi Community,
I have video with audio and when I playback the file with osgmovie I see
in the debug the audio channel is attached but can not hear anything :-).
Is there any magic, perheps to set the audio device somehow? Thank you for
any hint!
Here is the ouput
osgmovie VID00032.mpg.ffmpeg
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
ffmpeg::open(VID00032.mpg) size(720, 480) aspect ratio 1.18519
Attaching FFmpegAudioStream
image->s()720 image-t()=480 aspectRatio=1.18519
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
--
trajce nikolov nick
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
Chris 'Xenon' Hanson, omo sanza lettere. ***@AlphaPixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
Raymond de Vries
2018-11-22 07:47:20 UTC
Permalink
Hi,

Reading the source code of the osgmovie example there is sample code for
using SDL or SDL2. Maybe that helps?

Cheers, good luck,
Raymond
Post by Chris Hanson
http://forum.openscenegraph.org/viewtopic.php?t=9707
You need an audio subsystem like osgAudio or even SDL to output the
audio to.
On Wed, Nov 21, 2018 at 10:16 PM Trajce Nikolov NICK
Hi Community,
I have video with audio and when I playback the file with osgmovie
I see in the debug the audio channel is attached but can not hear
anything :-). Is there any magic, perheps to set the audio device
somehow? Thank you for any hint!
Here is the ouput
osgmovie VID00032.mpg.ffmpeg
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
ffmpeg::open(VID00032.mpg) size(720, 480) aspect ratio 1.18519
Attaching FFmpegAudioStream
image->s()720 image-t()=480 aspectRatio=1.18519
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
--
trajce nikolov nick
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 •
OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP •Forensics •Imaging •UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded •
Mobile • iPhone/iPad/iOS • Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel
<http://facebook.com/alphapixel> (775) 623-PIXL [7495]
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
Virus-free. www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Trajce Nikolov NICK
2018-11-22 18:29:05 UTC
Permalink
Hi all,

anyone has libVLC compiled for Windows and willing to share?

Thanks a bunch!
Post by Raymond de Vries
Hi,
Reading the source code of the osgmovie example there is sample code for
using SDL or SDL2. Maybe that helps?
Cheers, good luck,
Raymond
http://forum.openscenegraph.org/viewtopic.php?t=9707
You need an audio subsystem like osgAudio or even SDL to output the audio
to.
On Wed, Nov 21, 2018 at 10:16 PM Trajce Nikolov NICK <
Post by Trajce Nikolov NICK
Hi Community,
I have video with audio and when I playback the file with osgmovie I see
in the debug the audio channel is attached but can not hear anything :-).
Is there any magic, perheps to set the audio device somehow? Thank you for
any hint!
Here is the ouput
osgmovie VID00032.mpg.ffmpeg
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
ffmpeg::open(VID00032.mpg) size(720, 480) aspect ratio 1.18519
Attaching FFmpegAudioStream
image->s()720 image-t()=480 aspectRatio=1.18519
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
--
trajce nikolov nick
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4
• GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Virus-free.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
<#m_-2018913617241985491_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
_______________________________________________
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
trajce nikolov nick
Raymond de Vries
2018-11-22 22:40:42 UTC
Permalink
Hi,

That's not necessary, it is included in the vlc installers and installed
in the sdk directory. Some versions don't contain it though so check
different versions.

Cheers,
Raymond
Post by Trajce Nikolov NICK
Hi all,
anyone has libVLC compiled for Windows and willing to share?
Thanks a bunch!
Hi,
Reading the source code of the osgmovie example there is sample
code for using SDL or SDL2. Maybe that helps?
Cheers, good luck,
Raymond
Post by Chris Hanson
http://forum.openscenegraph.org/viewtopic.php?t=9707
You need an audio subsystem like osgAudio or even SDL to output
the audio to.
On Wed, Nov 21, 2018 at 10:16 PM Trajce Nikolov NICK
Hi Community,
I have video with audio and when I playback the file with
osgmovie I see in the debug the audio channel is attached but
can not hear anything :-). Is there any magic, perheps to set
the audio device somehow? Thank you for any hint!
Here is the ouput
osgmovie VID00032.mpg.ffmpeg
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
ffmpeg::open(VID00032.mpg) size(720, 480) aspect ratio 1.18519
Attaching FFmpegAudioStream
image->s()720 image-t()=480 aspectRatio=1.18519
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
--
trajce nikolov nick
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 •
OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP •Forensics •Imaging •UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded
• Mobile • iPhone/iPad/iOS • Android
@alphapixel <https://twitter.com/alphapixel>
facebook.com/alphapixel <http://facebook.com/alphapixel> (775)
623-PIXL [7495]
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
Virus-free. www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
<#m_-2018913617241985491_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
trajce nikolov nick
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Trajce Nikolov NICK
2018-11-23 15:06:39 UTC
Permalink
Thanks Raymond ! I will look into it
Post by Raymond de Vries
Hi,
That's not necessary, it is included in the vlc installers and installed
in the sdk directory. Some versions don't contain it though so check
different versions.
Cheers,
Raymond
Hi all,
anyone has libVLC compiled for Windows and willing to share?
Thanks a bunch!
Post by Raymond de Vries
Hi,
Reading the source code of the osgmovie example there is sample code for
using SDL or SDL2. Maybe that helps?
Cheers, good luck,
Raymond
http://forum.openscenegraph.org/viewtopic.php?t=9707
You need an audio subsystem like osgAudio or even SDL to output the audio
to.
On Wed, Nov 21, 2018 at 10:16 PM Trajce Nikolov NICK <
Post by Trajce Nikolov NICK
Hi Community,
I have video with audio and when I playback the file with osgmovie I see
in the debug the audio channel is attached but can not hear anything :-).
Is there any magic, perheps to set the audio device somehow? Thank you for
any hint!
Here is the ouput
osgmovie VID00032.mpg.ffmpeg
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
ffmpeg::open(VID00032.mpg) size(720, 480) aspect ratio 1.18519
Attaching FFmpegAudioStream
image->s()720 image-t()=480 aspectRatio=1.18519
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
--
trajce nikolov nick
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4
• GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Virus-free.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
<#m_2638975204706327138_m_-2018913617241985491_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
_______________________________________________
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
trajce nikolov nick
_______________________________________________
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
trajce nikolov nick
Raymond de Vries
2018-11-22 07:52:19 UTC
Permalink
Hi,

Also check this one: https://github.com/xarray/osgRecipes/wiki and then
search for VLC. The VLC will play your audio too, and is synchronised.
Not ready for spatial audio though...

Cheers, hth,
Raymond
Post by Chris Hanson
http://forum.openscenegraph.org/viewtopic.php?t=9707
You need an audio subsystem like osgAudio or even SDL to output the
audio to.
On Wed, Nov 21, 2018 at 10:16 PM Trajce Nikolov NICK
Hi Community,
I have video with audio and when I playback the file with osgmovie
I see in the debug the audio channel is attached but can not hear
anything :-). Is there any magic, perheps to set the audio device
somehow? Thank you for any hint!
Here is the ouput
osgmovie VID00032.mpg.ffmpeg
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
ffmpeg::open(VID00032.mpg) size(720, 480) aspect ratio 1.18519
Attaching FFmpegAudioStream
image->s()720 image-t()=480 aspectRatio=1.18519
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
--
trajce nikolov nick
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 •
OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP •Forensics •Imaging •UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded •
Mobile • iPhone/iPad/iOS • Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel
<http://facebook.com/alphapixel> (775) 623-PIXL [7495]
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
Virus-free. www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Trajce Nikolov NICK
2018-11-22 09:37:31 UTC
Permalink
Thanks Chris, Raymond!
Post by Raymond de Vries
Hi,
Also check this one: https://github.com/xarray/osgRecipes/wiki and then
search for VLC. The VLC will play your audio too, and is synchronised. Not
ready for spatial audio though...
Cheers, hth,
Raymond
http://forum.openscenegraph.org/viewtopic.php?t=9707
You need an audio subsystem like osgAudio or even SDL to output the audio
to.
On Wed, Nov 21, 2018 at 10:16 PM Trajce Nikolov NICK <
Post by Trajce Nikolov NICK
Hi Community,
I have video with audio and when I playback the file with osgmovie I see
in the debug the audio channel is attached but can not hear anything :-).
Is there any magic, perheps to set the audio device somehow? Thank you for
any hint!
Here is the ouput
osgmovie VID00032.mpg.ffmpeg
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
ffmpeg::open(VID00032.mpg) size(720, 480) aspect ratio 1.18519
Attaching FFmpegAudioStream
image->s()720 image-t()=480 aspectRatio=1.18519
void StateSet::setGlobalDefaults() ShaderPipeline disabled.
--
trajce nikolov nick
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4
• GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Virus-free.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
<#m_-1463051273389647395_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
_______________________________________________
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
trajce nikolov nick
Loading...