For <video> tag usage to embed mp4 video see after

Real stream at different bandwidth resolution and scanning

Because the <video> tag streams practically in progressive download (little portions of the video sequentially copied from the server to the client), more that the embedded videos used in this page, to test the bandwidth would be useful to use the following two true realtime streams (usually streamed in loop from this server) may be useful to test the real bandwidth of a website:

http://iginomanfre.it/HD_4000 4 Mbps 1080p25 h264
http://iginomanfre.it/x70_hevc_1200 1.3 Mbps 720p25 h265

Because browsers cannot play them, you must use VLC player: Media, Open Network Stream...

(In Italian: Media, Apri Flusso di Rete)

But sometimes the streaming engines could be down, so the streams could be not available.

After the sufficient bandwidth of the connection, a fluid reproduction depends also on the capability of the device to decode and present it correctly: a dual core pc (eg: my Core2duo) could not be able to decode an HD stream even receiving correctly all the packets. It means that the 1.5 Mbps PAL embedded video could be played more fluently than the HD at 1 Mbps.
This is evidenced in embedded video that - practically - works in progressive download: a copy segment by segment from the server to the device that - in order to be shown smoothly - must processed with a sufficient power.

impegno core2duo HD25p 1 Mbps

performance of a core2duo playing autostrada PAL interlaced

performance of a core2duo playing 1080i50 interlaced and anamorphic
The red line denotes the activity in full screen (when the reproductions hangs)

performance of a core2duo playing Yosemite SD @ 100Kbps
The red line denotes the activity in full screen (here the reproduction does not hangs)

performance of a core2duo playing 1080p25 progressive and anamorphic
The red line denotes the activity in full screen (when the reproduction hangs)




Let me know what you think about sending me a mail to
igino.manfre@gmail.com

autostrada in h264 embedded with html5 <video> tag

In this page are embedded four versions of the same video streamed directly by Apache streaming server in progressive download and presented by the browser.
This tag allows the streaming only of mp4 and webm formats. The video must be declared video/mp4 type data.
The embedded videos are all avc+aac 720i interlaced (PAL), HD 1280x720p, HD 1920x1080p at two bitrates: 4 and 17 Mbps.
It is quite useless to embed a full size HD video within a webpage because the video size would often be greater than the mean displays. So, after recalling them, please double click and it will open in full screen. (double click again to go back to the web page)

The standard call (shown here for the biggest one at 17 Mbps) is the following:

<video width="640" height="360" controls poster="../jpg/autostrada_640_17Mbps.jpg"> <source src="../video/autostrada_HD_17000.mp4" type="video/mp4"> </video>

I shoot the video, 1 minute and 13 seconds long, with my smartphone on a bridge-bar on the A1 highway.
Despite the subject monotony, the vertical car movements force hardly the work of the encoder, deconder, and it is affected by any bandwidth bottleneck. The 17 Mbps of this video may severely affected by the connection bandwidth because the mean ADSL download bandwidth is about 10 Mbps.
Being a progressive download, the video is downloaded on a temp directory of the client and reproduced by the browser. Bandwidth bottlenecks will initially affect the fluency of the video, but after is has been download this will disappear (it is related to the chopping done bu apache).

The original video has been recompressed to many other sizes.


autostrada_HD_17000.mp4

the bitrate evolution of this HD 17 Mbps mp4 video.
17 Mbps is a lot, even in progressive download and it is possible that the player do not get enough material to insure a fluid reproduction

General Complete name ..\video\autostrada_HD_17000.mp4 Format MPEG-4 Format profile Base Media Codec ID isom (isom/iso2/avc1/mp41) File size 149MiB Duration 1 min 13s Overall bit rate mode Variabile Overall bit rate 17,1 Mb/s Movie name autostrada.mp4 Encoded date UTC 1970-01-01 00:00:00 Tagged date UTC 1970-01-01 00:00:00 Writing application Lavf52.108.0 Video ID 1 Format AVC Format/Info Advanced Video Codec Format profile High@L4 Format set, CABAC Yes Format set, ReFrames 1 frame Format set, GOP M=1, N=30 Codec ID avc1 Codec ID/Info Advanced Video Coding Duration 1 min 13s Bit rate 17,0 Mb/s Width 1.920 pixel Height 1.080 pixel Display aspect ratio 16:9 Frame rate mode Constant Frame rate 29,970 (29970/1000) FPS Color space YUV Chroma subsampling 4:2:0 Bit depth 8 bit Scan type Progressive Bits/(Pixel*Frame) 0.273 Stream size 148MiB (99%) Encoded date UTC 1970-01-01 00:00:00 Tagged date UTC 1970-01-01 00:00:00 Audio ID 2 Format AAC Format/Info Advanced Audio Codec Format profile LC Codec ID 40 Duration 1 min 13s Bit rate mode Variable Bit rate 123 kb/s Maximum bit rate 128 kb/s Channel(s) 2 channels Channel positions Front: L R Sampling rate 48,0 kHz Frame rate 46,875 FPS (1024 spf) Compression mode lossy Stream size 1,07MiB (1%) Encoded date UTC 1970-01-01 00:00:00 Tagged date UTC 1970-01-01 00:00:00


autostrada_1080p25_4Mbps.mp4

the bitrate evolution of this HD 1920p mp4 video.
even 4 Mbps is a lot, and even here - when connected on mobile networks - in progressive download and it is possible that the player do not get enough material to insure a fluid reproduction

General Complete name ..\video\autostrada_1080p25_4Mbps.mp4 Format MPEG-4 Format profile Base Media Codec ID isom (isom/iso2/avc1/mp41) File size 31.3 MiB Duration 1mn 13s Overall bit rate mode Variable Overall bit rate 3 599 Kbps Writing application Lavf57.71.100 Video ID 1 Format AVC Format/Info Advanced Video Codec Format profile High@L4 Format set, CABAC Yes Format set, ReFrames 4 frames Codec ID avc1 Codec ID/Info Advanced Video Coding Duration 1mn 13s Bit rate 3 500 Kbps Width 1 920 pixels Height 1 080 pixels Display aspect ratio 16:9 Frame rate mode Constant Frame rate 25.000 fps Color space YUV Chroma subsampling 4:2:0 Bit depth 8 bits Scan type Progressive Bits/(Pixel*Frame) 0.068 Stream size 30.5 MiB (97%) Writing library x264 core 106 Encoding settings cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x133 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=3500 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00 Audio ID 2 Format AAC Format/Info Advanced Audio Codec Format profile C Codec ID 40 Duration 1mn 2s Bit rate mode Variable Bit rate 102 Kbps Maximum bit rate 128 Kbps Channel(s) 2 channels Channel positions Front: L R Sampling rate 48.0 KHz Frame rate 6.875 fps (1024 spf) Compression mode Lossy Stream size 781 KiB (2%) Language unk Default Yes Alternate group 1




the bitrate evolution of this HD 1028p mp4 video.

General Complete name ..\video\autostrada_720p_2Mbps_VBR.mp4 Format MPEG-4 Format profile Base Media Codec ID isom (isom/iso2/avc1/mp41) File size 9.77 MiB Duration 1mn 12s Overall bit rate mode Variable Overall bit rate 1 124 Kbps Writing application Lavf57.71.100 Video ID 1 Format AVC Format/Info Advanced Video Codec Format profile High@L4.2 Format set, CABAC Yes Format set, ReFrames 4 frames Codec ID avc1 Codec ID/Info Advanced Video Coding Duration 1mn 12s Bit rate 1 015 Kbps Nominal bit rate 2 000 Kbps Width 1 280 pixels Height 720 pixels Display aspect ratio 16:9 Frame rate mode Variable Frame rate 59.940 (59940/1000) fps Minimum frame rate 39.963 fps Maximum frame rate 119.889 fps Original frame rate 119.890 fps Color space YUV Chroma subsampling 4:2:0 Bit depth 8 bits Scan type Progressive Bits/(Pixel*Frame) 0.018 Stream size 8.82 MiB (90%) Writing library x264 core 106 Encoding settings cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x133 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=2000 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00 Audio ID 2 Format AAC Format/Info Advanced Audio Codec Format profile LC Codec ID 40 Duration 1mn 8s Bit rate mode Variable Bit rate 102 Kbps Maximum bit rate 128 Kbps Channel(s) 2 channels Channel positions Front: L R Sampling rate 48.0 KHz Frame rate 46.875 fps (1024 spf) Compression mode Lossy Stream size 854 KiB (9%) Language unk Default Yes Alternate group 1




the bitrate evolution of this 720i (PAL) mp4 video.

General Complete name ..\video\autostrada_PAL.mp4 Format MPEG-4 Format profile Base Media / Version 2 Codec ID mp42 (mp42/3gp4/isom) File size 16.7 MiB Duration 1mn 27s Overall bit rate mode Variable Overall bit rate 1 595 Kbps Encoded date UTC 2018-01-21 18:00:20 Tagged date UTC 2018-01-21 18:00:20 Video ID 1 Format AVC Format/Info Advanced Video Codec Format profile High@L3.2 Format set, CABAC Yes Format set, ReFrames 2 frames Format set, GOP M=3, N=33 Codec ID avc1 Codec ID/Info Advanced Video Coding Duration 1mn 27s Bit rate mode Constant Bit rate 1 500 Kbps Width 720 pixels Height 576 pixels Display aspect ratio 16:9 Frame rate mode Constant Frame rate 25.000 fps Standard PAL Color space YUV Chroma subsampling 4:2:0 Bit depth 8 bits Scan type Interlaced Scan type, store method Separated fields Scan order Top Field First Bits/(Pixel*Frame) 0.145 Stream size 15.7 MiB (94%) Language English Encoded date UTC 2018-01-21 18:03:21 Tagged date UTC 2018-01-21 18:03:21 Color range Limited Color primaries BT.601 PAL Transfer characteristics BT.470 System B, BT.470 System G Matrix coefficients BT.601 Audio ID 2 Format AAC Format/Info Advanced Audio Codec Format profile LC Codec ID 40 Duration 1mn 27s Bit rate mode Variable Bit rate 91.1 Kbps Maximum bit rate 147 Kbps Channel(s) 2 channels Channel positions Front: L R Sampling rate 48.0 KHz Frame rate 46.875 fps (1024 spf) Compression mode Lossy Stream size 975 KiB (6%) Language English Encoded date UTC 2018-01-21 18:03:21 Tagged date UTC 2018-01-21 18:03:21

These four video are copied on the client (in progressive download as it was called until few years ago).
So, after the transfer, the performance of the network should not affect the continuity of the video.
Only the presentation of the 17Mbps could be affected by the processor performance (the amount of informations to processed is huge).


1080 progressive 25 anamorphic 1Mbps
coded with avidemux (ffmpeg): beware to set the pixel aspect ratio 64:45
(PAL 16:9) available between the predefined Output1 option tab (right in codec ones)


1080 interlaced 50 anamorphic1Mbps
coded with rhozet carbon coder



The profile of the bitrate may affect the reception and availability of info before the presentation both streams have a mean bitrate of about 1Mbps,
but this one has 2.5 Mbps spikes!


As you can see Carbon Coder apply a smooth profiling of the stream.



Avidemux Option 1 encoder tab: adopting the anamorphysm the PAR must be modified accordingly

A lot can done more: if you haven't already seen, (this page is referred therein) compare these result with what shown in only one way of streaming.html.





To know who is writing, click over the language you like
Per sapere qualcosa di chi scrive click-a sul linguaggio che preferisci