@@ -9,7 +9,15 @@ System.put_env("PATH", "/opt/homebrew/bin:#{System.get_env("PATH")}")
9
9
# In case of problems installing Nx/EXLA/Bumblebee,
10
10
# you can remove them and the Nx backend config below.
11
11
# Examples that don't mention them should still work.
12
- Mix .install ([:boombox , :kino , :nx , :exla , :bumblebee , :websockex , :membrane_simple_rtsp_server ])
12
+ Mix .install ([
13
+ {:boombox , path: __DIR__ },
14
+ :kino ,
15
+ :nx ,
16
+ :exla ,
17
+ :bumblebee ,
18
+ :websockex ,
19
+ :membrane_simple_rtsp_server
20
+ ])
13
21
14
22
Nx .global_default_backend (EXLA .Backend )
15
23
```
@@ -27,8 +35,7 @@ File.mkdir_p!(input_dir)
27
35
out_dir = " #{ data_dir } /output"
28
36
File .mkdir_p! (out_dir)
29
37
30
- samples_url =
31
- " https://raw.githubusercontent.com/membraneframework/static/gh-pages/samples"
38
+ samples_url = " https://raw.githubusercontent.com/membraneframework/static/gh-pages/samples"
32
39
33
40
unless File .exists? (" #{ input_dir } /bun.mp4" ) do
34
41
%{status: 200 , body: bbb_mp4} = Req .get! (" #{ samples_url } /big-buck-bunny/bun33s.mp4" )
@@ -77,14 +84,14 @@ Boombox.run(input: {:webrtc, "ws://localhost:8829"}, output: {:webrtc, "ws://loc
77
84
78
85
<!-- livebook:{"branch_parent_index":0} -->
79
86
80
- ## Record WebRTC to MP4
87
+ ## Record WebRTC via WHIP to MP4
81
88
82
- To send the stream, visit http://localhost:1234/webrtc_from_browser .html .
89
+ To send the stream, visit http://localhost:1234/whip .html .
83
90
84
91
Note: don't stop this cell to finish recording - click 'disconnect' or close the browser tab instead, so the recording is finalized properly.
85
92
86
93
``` elixir
87
- Boombox .run (input: {:webrtc , " ws ://localhost:8829" }, output: " #{ out_dir } /webrtc_to_mp4.mp4" )
94
+ Boombox .run (input: {:whip , " http ://localhost:8829" , token: " whip_it! " }, output: " #{ out_dir } /webrtc_to_mp4.mp4" )
88
95
```
89
96
90
97
``` elixir
@@ -539,6 +546,7 @@ To receive the stream, visit http://localhost:1234/hls.html after running the ce
539
546
540
547
``` elixir
541
548
rtp_port = 50001
549
+
542
550
t =
543
551
Task .async (fn ->
544
552
Boombox .run (
0 commit comments