Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DONT KNOW 'How to bring both sounds data and videos data from gstreamer' #26

Open
Hikaru-Furuta opened this issue May 10, 2021 · 2 comments

Comments

@Hikaru-Furuta
Copy link

Hikaru-Furuta commented May 10, 2021

How can I bring both sounds data and videos data from gstreamer simultaneously?

Now I'm trying to implement some applications on 'unity' using inputs, sounds and videos, from 'gstreamer'.
Specifically, what I'm trying to do is to bring sounds data and video data to 'unity' from 'gstreamer' by editing and using 'CustomPipelinePlayer.cs', which is in mrayGStreamerUnity/Unity/UnityTests/Assets/GStreamerUnity/Components/.
I think I need to add a line, like bellow, to 'CustomPipelinePlayer.cs', but don't know how to treat the other parts.

gst-launch-1.0 filesrc location=0.mp4  ! qtdemux name=demux0  demux0.audio_0 ! queue ! decodebin ! audioconvert ! autoaudiosink demux0.video_0 ! queue ! h264parse ! msdkh264dec ! videoconvert ! autovideosink

I know this script was designed for inputting video data to 'unity', however, what I wanna realize is to bring both sounds data and video data at the same time.
If there's any possible way to make it go well, please teach me how to address it!

@mrayy
Copy link
Owner

mrayy commented May 10, 2021

There is a component already addresses the load of file and playing its video and audio contents using the plugin. Please refer to FileVideoPlayer component:
https://github.com/mrayy/mrayGStreamerUnity/blob/master/Unity/UnityTests/Assets/GStreamerUnity/Components/FileVideoPlayer.cs

@Hikaru-Furuta
Copy link
Author

There is a component already addresses the load of file and playing its video and audio contents using the plugin. Please refer to FileVideoPlayer component:
https://github.com/mrayy/mrayGStreamerUnity/blob/master/Unity/UnityTests/Assets/GStreamerUnity/Components/FileVideoPlayer.cs

thank you
I'm gonna try that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants