[osg-users] osgmovie - ffmpeg or Gstreamer
Andrea Martini
martini.andrea at gmail.com
Tue Jun 26 01:06:21 PDT 2018
Hi Filippe,
thank you for your reply.
Well, i tried front slash string for osgMovie parameters:
C:/SVILUPPO/CommonData/Movie/surf360converted.ogg --texture2D --interactive --audio
but _width and _height attribute in GStreamerImageStream::open method, continue to be equal to zero, and so this method returns false.
After that, i tried to call the same pipeline dynamically created in the open method, with gst_launch-1.0:
gst-launch-1.0.exe filesrc location=C:/SVILUPPO/CommonData/Movie/surf360converted.ogg ! decodebin name=deco deco. ! queue ! videoconvert ! video/x-raw,format=RGB ! appsink name=sink emit-signals=true
I get the following console message:
C:\gstreamer\1.0\x86_64\bin>gst-launch-1.0.exe filesrc location=C:/SVILUPPO/CommonData/Movie/surf360converted.ogg ! decodebin name=deco deco. ! queue ! videoconvert ! video/x-raw,format=RGB ! appsink name=sink emit-signals=true
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
and nothing happens. Then i substitued appsink name=sink with autovideosink, but in this case i get the following error message:
C:\gstreamer\1.0\x86_64\bin>gst-launch-1.0.exe filesrc location=C:/SVILUPPO/CommonData/Movie/surf360converted.ogg ! decodebin name=deco deco. ! queue ! videoconvert ! video/x-raw,format=RGB ! autovideosink emit-signals=true
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
WARNING: from element /GstPipeline:pipeline0/GstDecodeBin:deco: Delayed linking failed.
Additional debug info:
./grammar.y(510): gst_parse_no_more_pads (): /GstPipeline:pipeline0/GstDecodeBin:deco:
failed delayed linking some pad of GstDecodeBin named deco to some pad of GstQueue named queue0
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:deco/GstOggDemux:oggdemux0: Internal data stream error.
Additional debug info:
gstoggdemux.c(4936): gst_ogg_demux_loop (): /GstPipeline:pipeline0/GstDecodeBin:deco/GstOggDemux:oggdemux0:
streaming stopped, reason not-linked (-1)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ..
And last, i removed video/x-raw,format=RGB getting the following command line:
gst-launch-1.0.exe filesrc location=C:/SVILUPPO/CommonData/Movie/surf360converted.ogg ! decodebin name=deco deco. ! queue ! videoconvert ! autovideosink emit-signals=true
In this case video starts correctly.
So, i tried to change the pipeline in GStreamerImageStream::open with the following:
filesrc location=C:/SVILUPPO/CommonData/Movie/surf360converted.ogg ! decodebin name=deco deco. ! queue ! videoconvert ! appsink name=sink emit-signals=true
But, i continue to get _width and _height equal to zero, and the open method returns false and no video play.
Cheers,
Andrea
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74165#74165
More information about the osg-users
mailing list