placeholderfeatureplaceholdersliderplaceholderthumb
video-upload Basic Docs & Discord
Top

video-upload Basic Docs & Discord

by kitty4d

collecting all the stuff i can find about this API endpoint! you can jump around to the different sections here. jump, jump around.

DeSo Official Documentation | OG DeSo Discord - Technical Talk > technical-general | OG DeSo Discord - Technical Talk > technical-backend | DeSo Foundation Tech - DEVELOPERS > dev-general

i haven’t done any testing with any endpoints that attempt to create transactions, though i will start soon i think. probably right after i upload this post in fact. but so i don’t have any of my own code right now. but looking at the diamondapp code, i wonder if i can just test it without even needing to worry about DeSo Identity. i don’t see anything that restricts the upload to only uploads attached to a post. (seems like it would make sense to require it though?~)

but i’ll have to do some testing. i know the files are uploaded to cloudflare, and i think there are some features that might only be possible writing my own code, so it’ll be fun to test it out.

DeSo Documentation


and now for all the discord stuff i could find. not sure if any of it is all that useful though. i did go down some rabbit holes about people claiming they got hacked and stuff though. i wish i could stop myself from trying to figure out what happened LOL.


OG DeSo - Technical Talk > technical_general

Avatar
brootle 06-Oct-21 12:50 PM
guys, are there some limits on video uploads? I tried to upload video, but it's pretty bad quality 240p, I was trying to upload 1 min video
Avatar brootle
guys, are there some limits on video uploads? I tried to upload video, but it's pretty bad quality 240p, I was trying to upload 1 min video
Avatar
Addanus 06-Oct-21 05:00 PM
Video Upload FAQ * Max size: 4gb * Frame rate: upload in any FR, but videos re-encoded to 30 FPS * Uses adaptive streaming 360p to 1080p * Supported upload formats: MP4, MKV, MOV, AVI, FLV, MPEG-2 TS, MPEG-2 PS, MXF, LXF, GXF, 3GP, WebM, MPG, QuickTime Recommended video settings: https://developers.cloudflare.com/stream/faq#what-are-the-recom...
👍 2
Avatar HPaulson
If any of ya'll need specific endpoints or features documented, make sure to toss an issue on my repo (edited)
Avatar
FreeTrade (member.cash) 02-May-21 09:54 PM
thanks H - is the youtube link in the metadata yet?
Avatar FreeTrade (member.cash)
thanks H - is the youtube link in the metadata yet?
Avatar
HPaulson 02-May-21 09:56 PM
yeah, it's under a new field though
I think it's videoURL
lemme check again (edited)
@FreeTrade (member.cash) Sorry, it's EmbedVideoURL
It's in PostExtraData
Also Maebeam mentioned that json will be freeform, which is great (edited)
So although there's only one video rn, nodes could easilly implement more (Which is great as ImgClout was planning to do some super hacky shit for multiple media types to exist on one post)
Avatar
FreeTrade (member.cash) 02-May-21 10:05 PM
cool, thanks, i'll have a look for that
👍 1
Avatar
FreeTrade (member.cash) 05-May-21 01:23 PM
@maebeam can't seem to find the video urls in the raw hex of SUBMIT_POST transactions - do the video urls form part of the transactions like the image urls, or are they stored somewhere else?
Avatar FreeTrade (member.cash)
@maebeam can't seem to find the video urls in the raw hex of SUBMIT_POST transactions - do the video urls form part of the transactions like the image urls, or are they stored somewhere else?
Avatar
chapel 05-May-21 01:44 PM
it is in ExtraData or whatever, not apart of the JSON in the raw data
Avatar chapel
it is in ExtraData or whatever, not apart of the JSON in the raw data
Avatar
FreeTrade (member.cash) 05-May-21 01:46 PM
and is ExtraData stored on chain?
Avatar FreeTrade (member.cash)
and is ExtraData stored on chain?
Avatar
chapel 05-May-21 01:47 PM
yes
Avatar
FreeTrade (member.cash) 05-May-21 01:47 PM
it's weird to me that the image url is in the JSON and the video url is somewhere else
Avatar chapel
yes
Avatar
FreeTrade (member.cash) 05-May-21 01:47 PM
is it a separate transaction to the SUBMIT_POST transaction?
Avatar FreeTrade (member.cash)
is it a separate transaction to the SUBMIT_POST transaction?
Avatar
chapel 05-May-21 01:47 PM
Contribute to bitclout/identity development by creating an account on GitHub.
Avatar
FreeTrade (member.cash) 05-May-21 01:49 PM
thanks!
so i guess the video url has got to be in the RawTransactionHex - it's just a matter of working out how to parse it out?
Avatar FreeTrade (member.cash)
so i guess the video url has got to be in the RawTransactionHex - it's just a matter of working out how to parse it out?
Avatar
chapel 05-May-21 02:15 PM
those files there are how you parse it, just translate the binary data structure into your language of choice
Avatar FreeTrade (member.cash)
so I compiled the transaction.ts into javascript - I've got a whole load of classes - but how to use them? I want to parse the raw data of a transaction and get the data inside the transaction
Avatar
Addanus 08-May-21 10:32 PM
Not sure that's gonna work even if you succeed. the final moat is decyphering the final encrypted value - ex: "aF2DJsaf2as34lkjgSAfDJhgas=="
Avatar Addanus
Not sure that's gonna work even if you succeed. the final moat is decyphering the final encrypted value - ex: "aF2DJsaf2as34lkjgSAfDJhgas=="
Avatar
FreeTrade (member.cash) 08-May-21 11:28 PM
Not looking to decrypt private messages! Im just trying to get the video urls.

OG DeSo - Technical Talk > technical-backend

Avatar
johnconnor 29-Dec-21 10:36 AM
How do I upload video/audio to a post using the backend API? (edited)
Avatar
huysaucin 29-Dec-21 03:13 PM
You need gcp buckets I believe and also there’s a cloudflare cdn option
Avatar johnconnor
How do I upload video/audio to a post using the backend API? (edited)
Avatar
huysaucin 29-Dec-21 03:15 PM

DeSo Foundation Tech - DEVELOPERS > dev-general

Avatar
mattpark01 11-Jan-22 05:56 PM
Anyone know how and/or when will high res video uploads be implemented? Not just embedded YT vids Im talking full 1080p or 4k quality like Tiktok or IG
Avatar mattpark01
Anyone know how and/or when will high res video uploads be implemented? Not just embedded YT vids Im talking full 1080p or 4k quality like Tiktok or IG
Avatar
Avatar
mattpark01 11-Jan-22 08:12 PM
Nice is it available for all users tho? When I upload a video it is massively compressed
Avatar mattpark01
Nice is it available for all users tho? When I upload a video it is massively compressed
Avatar
znmead 11-Jan-22 09:03 PM
@lazynina ?
Avatar mattpark01
Nice is it available for all users tho? When I upload a video it is massively compressed
Avatar
brootle 12-Jan-22 06:54 AM
guys! @znmead why do you have to tag @lazynina? just tag me and I will explain to you how video upload works. When you make a post and add video, video is uploaded and url is returned back to you, and player starts to play, as soon as video is uploaded, the transcoding process starts, transcoding takes time, so after high res variants of the video are available, only after that player can play them. There is a trick you can do, add video to the post, but do not submit post, let it stay in separate tab for few min, depends on the size of your video file and transcoding queue
🤣 1