Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

How to use warp for video streaming ? #180

Open
Abhinav0002 opened this issue Jan 6, 2024 · 2 comments
Open

How to use warp for video streaming ? #180

Abhinav0002 opened this issue Jan 6, 2024 · 2 comments
Labels
good first issue Good for newcomers

Comments

@Abhinav0002
Copy link

I want to basically stream data, whether it be video or values using warp, how to write a sender and receiver code, I mean client-server model to utilise QUIC ?

@wanjohiryan
Copy link
Owner

Hey,

How are you doing?

To use Warp for video streaming you will need to download the binary for your system from the releases section of this repo, then run ffmpeg as:

ffmpeg -i ${video_file_name} 
  -f mp4 -movflags cmaf+separate_moof+delay_moov+skip_trailer \
  -frag_duration 1 - \
  warp(.exe) -- https://${your_relay_server_url}:4443/${random_id} # you could use https://quic.relay.video here if you don't have
  # one already setup

You could also capture your x11 screen if you want to.

Make sure to include -f mp4 -movflags cmaf+separate_moof+delay_moov+skip_trailer -frag_duration 1 in whatever you do as warp expects fmp4 atoms.

Did i answer your question?

@wanjohiryan wanjohiryan added the good first issue Good for newcomers label Jan 8, 2024
@Abhinav0002
Copy link
Author

Right now, I am using ffmpeg to stream my laptop screen using UDP to another ip and displaying it using ffplay
I want to achieve the same using QUIC

Also, for normal data transfer I use udp to send a string of values like "a,b,c,d.." and instead I want to use QUIC.

How can I achieve that

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants