Discussion:
No video displayed
Ramin2c
2017-02-21 14:45:25 UTC
Permalink
Hi,
I'm quite new to GStreamer and my first try to compile and run the basic
Tutorial 1 partially failed by not being able to see any video, but the
audio can be heard and the pipeline stops when reaches the end of the
stream.
I tried basic Tutorial 2 (building a pipeline manually) with videotestsrc
element and the result is the same.
Both of the examples can work fine though if corresponding gst-launch-1.0 is
run instead from the command line; i.e.:

/Tutorial 1: ./gst-launch-1.0 playbin
uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm
Tutorial 2: ./gst-launch-1.0 videotestsrc ! autovideosink/

Even more, did the compilation directly from the command line like:

/gcc main.c -I/Library/Frameworks/GStreamer.framework/Headers
-L/Library/Frameworks/GStreamer.framework/Libraries -lgstreamer-1.0 -o
testApp
/
And neither one could bring up the video window.

I'm using GStreame 1.0 on Mac OSX Sierra 10.12.3 and XCode for Developing,
with different project types, Cocoa, command line and even importing all the
Tutorial codes directly into en empty project.

Does anyone know why if fails to show the video? or any tips what I should
look at?

Thanks
Ramin

PS: Links to GStreamer basic tutorials:
https://gstreamer.freedesktop.org/documentation/tutorials/basic/index.html





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/No-video-displayed-tp4681973.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
Ramin2c
2017-07-30 17:56:10 UTC
Permalink
I hope it would work then.
Regarding the selection of streaming frameworks, I guess it really depends
on what you want to do. In our case, G-Streamer was selected because it is
cross platform and (even more important) we have a lot of image processing
stuff as well as low level coding which demanded to have a strong media
framework.
I have experience with Microsoft Directshow and Media Framework which former
is my favorit but they are MS Windows dependent.
You might even wish to look at the simpler solutions, Node JS, Java Script.
There are some more advanced frameworks as well, e.g.
https://www.meteor.com/ .
All-in-all, don't go for G-Streamer and similar frameworks if you don't need
to!

R.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/No-video-displayed-tp4681973p4684027.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
Arvin6
2017-07-31 15:46:12 UTC
Permalink
Thank you so much for helping me out. It works now. The problem was, there
were many plugins missing. Running a simple

sudo port install gstreamer1-gst-plugins-good solved my problem



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/No-video-displayed-tp4681973p4684032.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
Ramin2c
2017-08-08 21:39:16 UTC
Permalink
Good to hear that and thanks for sharing!




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/No-video-displayed-tp4681973p4684128.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
seany
2017-09-02 22:30:01 UTC
Permalink
I can exactly same problem. I used homebrew to install all the plugins.
Howecer my "Hello world" program from
https://gstreamer.freedesktop.org/documentation/tutorials/basic/hello-world.html
still have same problem. I.e. audio only, no Video. At end of program when
no more audio is playing, the windows pops up with blank page.

Appreciate any guidance.

Thanks

Sean



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
Ramin2c
2017-09-03 09:11:10 UTC
Permalink
Have you tried what Arvid did?

sudo port install gstreamer1-gst-plugins-good

Otherwise, I had an alternative solution which might work (perhaps with some
tweaks). find it here:
https://github.com/Ramin2c/G-Tutorials/blob/master/Tutorial%201%20alt/main.c

Good Luck!





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
seany
2017-09-04 06:50:48 UTC
Permalink
Yes I did. I even redid everything but with latest

*Update to latest Sierra (10.12.6)*

*Reinstalled gstreamer latest (1.12.2)*

*Installed latest Xcode*

*Installed MacPorts*
- for the sudo ports install ....

*Installed Gstreamer Plugins:*
sudo port install gstreamer1 gstreamer1-gst-plugins-base
gstreamer1-gst-plugins-good gstreamer1-gst-plugins-bad
gstreamer1-gst-plugins-ugly

*Installed codec H264 (for .mp4 video that was missing from all the above
installs):*
sudo port install gstreamer1-gst-libav

Debugging:

1) Ran native GStreamer launch program: Worked
gst-launch-1.0 playbin uri='file:///Users/test.mp4'

2) Ran GStreamer 'Hello World' program - Audio only, no Video.
At the end of program execution, Video renderer window is displayed (black
background, no Video)

Seans-MBP:MacOS seanyiu1$ export GST_DEBUG=2
Seans-MBP:MacOS seanyiu1$ ./test_gs
0:00:00.021033000 13401 0x7ff5477ec390 WARN basesrc
gstbasesrc.c:3480:void gst_base_src_start_complete(GstBaseSrc *,
GstFlowReturn):<source> pad not activated yet
0:00:00.021512000 13401 0x7ff5477ec390 WARN basesrc
gstbasesrc.c:3480:void gst_base_src_start_complete(GstBaseSrc *,
GstFlowReturn):<source> pad not activated yet
0:00:00.034842000 13401 0x7ff5460eef70 WARN qtdemux
qtdemux.c:3008:qtdemux_parse_trex:<qtdemux0> failed to find fragment
defaults for stream 1
0:00:00.034906000 13401 0x7ff5460eef70 WARN qtdemux
qtdemux.c:3008:qtdemux_parse_trex:<qtdemux0> failed to find fragment
defaults for stream 2
0:00:00.034955000 13401 0x7ff5460eef70 WARN basesrc
gstbasesrc.c:2389:gboolean gst_base_src_update_length(GstBaseSrc *, guint64,
guint *, gboolean):<source> processing at or past EOS
Seans-MBP:MacOS seanyiu1$

Didn't see any apparent errors in GStreamer Debug Log above. Why is it that
'gst-launch-1.0 playbin....' runs but not the 'hello world' program ? They
should do essentially the same thing. The GST execution Path should be the
same also.

This problem I am seeing probably belies the many problems I am seeing with
my app which calls the GStreamer dylibs which runs fine on Windows but not
on MAC OS X. I am just using the GStreamer 'Hello World' program as a
baseline to try to isolate the issue.

I am hitting a brick wall here. Appreciate yours or anyone's help.

Thanks

Sean



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/

Loading...