Answer the question
In order to leave comments, you need to log in
Where would you implement image and video compression (server or client)?
Consecutive user actions:
1) Photographs / shoots an object (video limit is 10 seconds)
(Why can't you just tell the camera what quality to shoot in? Because not on all devices the "camera" application understands these restrictions, at least they say so, for example, on stackoverflow (no, I did not ask this question there, just checked different options))
2) Clicks on the button, after which the magic happens
Magic:
1) Sending the image to the server
2) Sending the image to the devices of ~5 other people
There is a question - where to make photo/video compression? On the one hand, doing it on the client is "not good", because it acts as an "interface", something like a "thin client",
Due to my inexperience (student), I cannot say exactly how costly these operations are (if they are too resource-intensive, then they are absolutely impossible to carry out on the client), so the question is - how labor-intensive are these operations?
PS It is also worth considering the client's Internet connection, for which photo / video compression is undoubtedly a plus (mainly mobile Internet).
Answer the question
In order to leave comments, you need to log in
I'm just a pass here and just the same back-end developer, but let me answer. How do you imagine the transmission of even 10 seconds of 4k video over the mobile Internet? Yes, devices capable of 4k have lte, but nevertheless, I think this is not advisable. Although I'm a complete zero in client side programming, so don't take it seriously.
On the client, compression is even more expensive. The battery will eat - mom do not worry. Plus unpleasant expectation and brakes at the user
On the other hand - communication channels. If your application is only on Wi-Fi, then you can not compress on the client.
In short, a dilemma.
As for server compression, it is not at all expensive. There are specialized services (not Youtube, but raw, for creating their own video services), which, for a small amount of money on their special hardware, will compress and store and distribute videos in several resolutions and formats.
Writing the server part yourself is very expensive.
I have not seen such that you can get raw from the camera. To pinch on the device - you first have to unpack, then pack again. Reasonable question - why? IMHO, if you need to compress - then only serverside. On the device, this will be painfully expensive.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question