You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Uploading and Managing Files](#uploading-and-managing-files)
32
32
-[Upload](#upload)
33
+
-[Stream](#stream)
34
+
-[Feed](#feed)
33
35
-[Download](#download)
34
36
-[Update](#update)
35
37
-[Delete](#delete)
@@ -673,12 +675,6 @@ The user must be the owner of the allocation.You can request the file be encrypt
673
675
| remotepath | yes | remote path to upload file to, use to access file later || string |
674
676
| thumbnailpath | no | local path of thumbnaSil || file path |
675
677
| chunksize | no | chunk size | 65536 | int |
676
-
| delay | no | set segment duration to seconds. only works with --live and --sync.| 5 | int |
677
-
| sync | no | enable SyncUpload from remote live feed. disabled it by default. | false | boolean |
678
-
| feed | no | set remote live feed to url. only works with --sync. | false | url |
679
-
| downloader-args | no | pass args to youtube-dl to download video. default is \"-q -f best\". only works with --sync.| -q -f best |[youtube-dl](https://github.com/ytdl-org/youtube-dl/blob/master/README.md#options)|
680
-
| ffmpeg-args | no | pass args to ffmpeg to build segments. only works with --sync. | -loglevel warning |[ffmpeg](https://www.ffmpeg.org/ffmpeg.html)|
681
-
| live | no | enable LiveUpload from local devices. disabled by default. | false | boolean |
682
678
683
679
684
680
<details>
@@ -720,9 +716,60 @@ Response:
720
716
Status completed callback. Type = application/octet-stream. Name = sensitivedata.txt
721
717
```
722
718
723
-
**Download segment files from remote live feed, re-encode and upload**
719
+
## Stream
720
+
721
+
Use `stream` to capture video and audio streaming form local devices, and upload
722
+
723
+
The user must be the owner of the allocation.You can request the file be encrypted before upload, and can send thumbnails with the file.
| allocation | yes | allocation id, sender must be allocation owner || string |
754
+
| commit | no | save metadata to blockchain | false | boolean |
755
+
| encrypt | no | encrypt file before upload | false | boolean |
756
+
| localpath | yes | local path of segment files to download, generate and upload || file path |
757
+
| remotepath | yes | remote path to upload file to, use to access file later || string |
758
+
| thumbnailpath | no | local path of thumbnaSil || file path |
759
+
| chunksize | no | chunk size | 65536 | int |
760
+
| delay | no | set segment duration to seconds. | 5 | int |
761
+
| feed | no | set remote live feed to url. | false | url |
762
+
| downloader-args | no | pass args to youtube-dl to download video. default is \"-q -f best\". | -q -f best |[youtube-dl](https://github.com/ytdl-org/youtube-dl/blob/master/README.md#options)|
763
+
| ffmpeg-args | no | pass args to ffmpeg to build segments. | -loglevel warning |[ffmpeg](https://www.ffmpeg.org/ffmpeg.html)|
Use `upload --sync` command to automatically download segment files from remove live feed with `--downloader-args "-f 22"`, encode them into new segment files with `--delay` and `--ffmpeg-args`, and upload. please use `youtube-dl -F https://www.youtube.com/watch?v=pC5mGB5enkw` to list formats of video (see below).
726
773
727
774
```
728
775
[youtube] pC5mGB5enkw: Downloading webpage
@@ -753,18 +800,9 @@ format code extension resolution note
753
800
`--downloader-args "-f 22"` dowloads video with `22 mp4 1280x676 720p 2117k , avc1.64001F, 30fps, mp4a.40.2 (44100Hz) (best)`
uploadCmd.Flags().Int("delay", 5, "set segment duration to seconds. only works with --live and --sync. default duration is 5s.")
314
-
315
-
// SyncUpload
316
-
uploadCmd.Flags().Bool("sync", false, "enable SyncUpload from remote live feed. disabled by default.")
317
-
uploadCmd.Flags().String("feed", "", "set remote live feed to url. only works with --sync.")
318
-
uploadCmd.Flags().String("downloader-args", "-q -f best", "pass args to youtube-dl to download video. default is \"-q\". only works with --sync.")
319
-
uploadCmd.Flags().String("ffmpeg-args", "-loglevel warning", "pass args to ffmpeg to build segments. default is \"-loglevel warning\". only works with --sync.")
320
-
321
-
// LiveUpload
322
-
uploadCmd.Flags().Bool("live", false, "enable LiveUpload from local devices. disabled by default.")
0 commit comments