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

Is it possible to give an example of saving the ndi stream to an mp4 or so #70

Open
f1-outsourcing opened this issue Sep 12, 2021 · 3 comments

Comments

@f1-outsourcing
Copy link

I am new to gstreamer, would be nice to have some example that saves to an mp4.

Currently I am testing with this, and that just generates a 100MB/s file

gst-launch-1.0 -v ndivideosrc url-address="192.168.0.215:5961" ! filesink location=test.raw

[@test /]# mediainfo test.raw
General
Complete name                            : test.raw
File size                                : 214 MiB
@normen
Copy link

normen commented Sep 23, 2021

It depends on your source and what encoders are available on your system. On MacOS I do this to do hardware-encoding of NDI sources:
gst-launch-1.0 ndivideosrc ndi-name='NDI Source Name' ! queue ! videoconvert ! vtenc_h264 ! queue ! h264parse ! mpegtsmux ! filesink location='ndi-source.ts'

@normen
Copy link

normen commented Oct 18, 2021

Heres an updated example for the latest versions, saves a NDI stream as h264 TS using hardware encoding on a NVidia GPU:

gst-launch-1.0 ndisrc ndi-name="NDI Source" ! ndisrcdemux name=demux   demux.video ! queue ! nvh264enc ! h264parse ! mpegtsmux name=muxer ! filesink location="NDI-Source.ts"  demux.audio ! queue ! audioconvert ! avenc_aac ! aacparse ! muxer.

@sdroege
Copy link
Contributor

sdroege commented Oct 19, 2021

You probably want to use avenc_aac instead of faac. The latter produces low quality AAC.

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

3 participants