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

handshake with text and then pipe binary output to ffmpeg #166

Open
cleoag opened this issue Oct 2, 2022 · 1 comment
Open

handshake with text and then pipe binary output to ffmpeg #166

cleoag opened this issue Oct 2, 2022 · 1 comment

Comments

@cleoag
Copy link

cleoag commented Oct 2, 2022

Hello! Thanx for the great tool!

I have a question. I have following scenario to do:

  1. open wss connection
  2. send 'hello' text to socket
  3. receive some text from socket
  4. send 'start' text to socket
  5. start receiving binary data from socket and need to pipe this to FFmpeg

I tried all possible combinations ) but no luck. one message to socket work ok, but two is not working (

is it possible to achieve at all?

@vi
Copy link
Owner

vi commented Oct 2, 2022

You can have full control over text and binary WebSocket message by using --binary-prefix, --text-prefix and --base64 options.

You'll need strip the output from binary prefixes and filter the output though something like perl -pe 'use MIME::Base64; $_=decode_base64($_);' with --base64 though, prior to feeding it to FFmpeg.

You there is a publicly available endpoint that I can try myself, I can construct a command line for you.

Repository owner deleted a comment from stillborn333 Oct 9, 2022
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