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.
Tt 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) 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.




the bitrate evolution of this HD 17 Mbps mp4 video.

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




the bitrate evolution of this HD 1920p mp4 video.

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).

Wifi is easy to use, but the fluidity of the video - expecially the highest bitrate - will be affected by the wireless bottlenecks.
In fact, despite the 54 Mbps bandwidth of the wifi connection, are sufficient even a couple of mobile phones to reduce drastically the effective available bandwidth.

These videos are also really stream as listed in the following table, but they cannot be embedded in page because browsers since the middle of 2017 do not support any more the required VLC video plug-in.

specs generated by vlc proxed by apache filename
720p 2Mbps avc+aac http://95.110.164.61:64065/HD_2000 http://iginomanfre.it/HD_2000 autostrada_720p_2Mbps_VBR.ts
1080p 4Mbps avc+aac http://95.110.164.61:64060/autostrada_1080p25_4Mbps http://iginomanfre.it/HD_4000 autostrada_1080p25_4Mbps.ts
1080p 17Mbps avc+aac http://95.110.164.61:64062/HD_17000 http://iginomanfre.it/HD_17000 autostrada_HD_17000.ts
PAL 1.5 Mbps avc+aac 16:9 interlaced
wrapped ISO Base Media (mpeg4)
http://95.110.164.61:64064/autostrada_PAL http://iginomanfre.it/autostrada_PAL autostrada_PALi.mp4
PAL 1.5 Mbps avc+aac 16:9 interlaced
wrapped Transport Stream
http://95.110.164.61:64066/autostrada_PAL_ts http://iginomanfre.it/autostrada_PAL_ts autostrada_PALi.ts


Importance of wrapping in presence of interlaced essences: left you can see the macroblocks stripes with the wrapper TS, right wrapper ISO mp4.
In broadcasting television this is avoided adding the forward error correction that can be as big as the content itself.
With this kind of streaming (VLC streaming, really quite naive) with wrapper TS progressive is better

The reproduction of these streams could suffer of continuity problem due to the connection bandwidth or the computational power required to decode it, see here
On the other hand it is a true real time streaming, not the same of HSL, that is a chopped progressive download. It require a very limited receiver storage, at the limit a GoP (but in hevc the GoP disappears!).
Anyhow the market standard lobbies decided its dead in favor of HLS/DASH family and last with the lack of further support of VLC plug-in in architectures (see this subject).

mediainfo of the single program transport stream

General ID 1 (0x1) Complete name C:\video\autostrada_PALi.ts Format MPEG-TS File size 18.6 MiB Duration 1mn 27s Overall bit rate mode Variable Overall bit rate 1 785 Kbps Video ID 256 (0x100) Menu ID 1 (0x1) 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 27 Duration 1mn 27s Bit rate mode Constant Nominal bit rate 1 500 Kbps Width 720 pixels Height 576 pixels Display aspect ratio 16:9 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 Color range Limited Color primaries BT.601 PAL Transfer characteristics BT.470 System B, BT.470 System G Matrix coefficients BT.601 Audio ID 257 (0x101) Menu ID 1 (0x1) Format AAC Format/Info Advanced Audio Codec Format version Version 4 Format profile LC Muxing mode ADTS Codec ID 15 Duration 1mn 27s Bit rate mode Variable Channel(s) 2 channels Channel positions Front: L R Sampling rate 48.0 KHz Frame rate 46.875 fps (1024 spf) Compression mode Lossy Delay relative to video -40ms Menu ID 4096 (0x1000) Menu ID 1 (0x1) Duration 1mn 27s List 256 (0x100) (AVC) / 257 (0x101) (AAC) Service name Service01 Service provider FFmpeg Service type digital television

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