Streaming a window's contents

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Streaming a window's contents

Stefan Reich

Hi!

I'm looking for the right parameters to stream the contents of a window into a file on Linux with GStreamer.

Here's what I have:

gst-launch-1.0 ximagesrc xid=0x03c00006 \
    ! videoconvert \
    ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast \
    ! filesink location=~/Videos/window.mp4

It does something, but the output file is very small and seems broken.

Any suggestions? Thanks!

Stefan


--
Stefan Reich
BotCompany.de // Java-based operating systems

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Streaming a window's contents

Stefan Reich
I just need to know roughly which parameters to use, please.

On Mon, 17 Jun 2019 at 14:22, Stefan Reich <[hidden email]> wrote:

Hi!

I'm looking for the right parameters to stream the contents of a window into a file on Linux with GStreamer.

Here's what I have:

gst-launch-1.0 ximagesrc xid=0x03c00006 \
    ! videoconvert \
    ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast \
    ! filesink location=~/Videos/window.mp4

It does something, but the output file is very small and seems broken.

Any suggestions? Thanks!

Stefan


--
Stefan Reich
BotCompany.de // Java-based operating systems


--
Stefan Reich
BotCompany.de // Java-based operating systems

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Streaming a window's contents

Stefan Reich
Screw it

On Fri, 21 Jun 2019 at 12:03, Stefan Reich <[hidden email]> wrote:
I just need to know roughly which parameters to use, please.

On Mon, 17 Jun 2019 at 14:22, Stefan Reich <[hidden email]> wrote:

Hi!

I'm looking for the right parameters to stream the contents of a window into a file on Linux with GStreamer.

Here's what I have:

gst-launch-1.0 ximagesrc xid=0x03c00006 \
    ! videoconvert \
    ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast \
    ! filesink location=~/Videos/window.mp4

It does something, but the output file is very small and seems broken.

Any suggestions? Thanks!

Stefan


--
Stefan Reich
BotCompany.de // Java-based operating systems


--
Stefan Reich
BotCompany.de // Java-based operating systems


--
Stefan Reich
BotCompany.de // Java-based operating systems

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Streaming a window's contents

Krzysztof Konopko-3
As a casual user, I'm not sure, but you're definitely missing a muxer. Based on the file extension you provided to 'filesink', looks like you want 'qtmux' after 'x264enc'. AFAICT, if you want to test it with `gst-launch-1.0`, you'll also need `-e` option to send EOS when you stop it with Crtl+C so that the MP4 file is correctly finalised (some headers need to be written out).

Maybe others will be able to provide more help.

Kris

On Sat, 2019-06-22 at 01:03 +0200, Stefan Reich wrote:
Screw it

On Fri, 21 Jun 2019 at 12:03, Stefan Reich <[hidden email]> wrote:
I just need to know roughly which parameters to use, please.

On Mon, 17 Jun 2019 at 14:22, Stefan Reich <[hidden email]> wrote:

Hi!

I'm looking for the right parameters to stream the contents of a window into a file on Linux with GStreamer.

Here's what I have:

gst-launch-1.0 ximagesrc xid=0x03c00006 \
    ! videoconvert \
    ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast \
    ! filesink location=~/Videos/window.mp4

It does something, but the output file is very small and seems broken.

Any suggestions? Thanks!

Stefan


--
Stefan Reich
BotCompany.de // Java-based operating systems


--
Stefan Reich
BotCompany.de // Java-based operating systems


_______________________________________________
gstreamer-devel mailing list
[hidden email]

https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel