L
L
lumb2018-11-07 23:11:53
Video
lumb, 2018-11-07 23:11:53

What is the best way to upload videos to your website?

Good day everyone!
There is this video:


Format : MPEG-4
Format Profile : Base Media / Version 2
Codec ID : mp42 (mp42/mp41)
File Size : 521MB Length :
4m 44s
Total Stream : 15.3 Mbps
Encode Date : UTC 2018-11-07 15:23:09 Tag
Date : UTC 2018-11-07 15:26:33
TIM : 00:00:00:00
TSC : 25
TSZ : 1
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format Profile : [email protected] Format
Settings : CABAC / 4 Ref Frames
Format CABAC Parameter : Yes
Format RefFrames Parameter : 4 frames
Format GOP Parameter : M=4, N=25
Codec ID : avc1 Codec
ID/Info : Advanced Video Coding
Duration : 4m 44s
Bit rate : 15.0 Mbps
Width : 1920 pixels
Height : 1080 pixels
Aspect Ratio : 16:9 Frame Rate
Mode : Constant
Frame Rate : 25,000 fps
Broadcast Standard : PAL
Color Space : YUV
Saturation Subsampling : 4:2:0
Bit Depth : 8 bit
Scan Type : Progressive
Bit/( Pixels*Frames) : 0.290 Stream
Size : 510 MB (98%)
Language : English
Code Date : UTC 2018-11-07 15:23:09 Tag
Date : UTC 2018-11-07 15:23:09
Color Range : Limited
Primary Colors : BT.709
Transfer Characteristics : BT.709
Matrix Coefficients : BT.709
Codec configuration box : avcC
Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity Codec
ID : mp4a-40-2
Duration : 4m 44s.
Duration of the original: 4 m. 44 s.
Bit rate type : Constant
Nominal bit rate : 317Kbps
Channels : 2 channels
Channel layout : LR
Frequency : 48.0 kHz
Frame rate : 46.875 fps (1024 SPF)
Compression method : Lossy
Original stream size : 10.8 MB ( 2%)
Language : English
Code Date : UTC 2018-11-07 15:23:09 Tag
Date : UTC 2018-11-07 15:23:09

It is necessary to place it on the site without using video hosting (youtube, vimeo, etc.).
It is clear that 521 MB cannot be uploaded to the site. What's the best way to scale down a video while leaving 1080p? (I tried uploading it to youtube and picking up a recoded reduced version from there - the quality turned out to be much worse and the main inconvenience - it started to twitch, as if the number of frames per second had decreased, although this is not the case)
How, in principle, they now upload one video for different devices ( maybe there are examples of how and in what formats they compress video and give it to different devices (screen resolutions))
How is this organized now? I myself have never worked with video, and now there was a one-time task to do this. I want to understand. (you have your own vds on ubuntu+nginx+php-fpm)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2018-11-08
@saboteur_kiev

1. The easiest way to reduce it is by squeezing it with ffmpeg under several resolutions.
2. Why can't 512 MB be uploaded to the site? If there is not enough space on the hosting, then maybe you should not deal with video hosting?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question