
Recherche avancée
Autres articles (104)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (6156)
-
Enable Quality Selector Control in Angular Using Video.js
22 juillet, par Abhay SinghI am using Video.js in an Angular 19.1.3 application, with version 8.21.0 of Video.js. I have successfully set up an HLS stream using a master index.m3u8 file, and the player automatically switches to lower quality segments when the network is slow, and to higher quality when the network is good. This part works as expected.


However, I would like to add a manual quality selection option to allow users to choose the video quality themselves. Despite trying several plugins (such as videojs-hls-quality-selector and videojs-contrib-quality-levels), I haven't been able to get it working.


Can anyone guide me on how to implement this feature in Video.js, ensuring that the quality selector is available for manual selection ?


Below is my Components code -


import {AfterViewInit, Component} from '@angular/core';
import videojs from 'video.js';
import '@videojs/http-streaming';
import 'video.js/dist/video-js.css';

@Component({
 selector: 'app-home',
 imports: [],
 templateUrl: './home.component.html',
 styleUrl: './home.component.css'
})
export class HomeComponent implements AfterViewInit {
 
 ngAfterViewInit(): void {
 const player = videojs('my-video', {
 autoplay: false,
 controls: true,
 preload: 'auto',
 fluid: true,
 aspectRatio: '16:9',
 })
 
 }
}



Below is my HTML code -


<video class="video-js vjs-default-skin" controls="controls">
 <source src="https://localhost:7063/videos/no1lvswh.zdw.mkv/index.m3u8" type="application/x-mpegURL">
 </source></video> 



-
Issue with video.js playing AES encrypted video
2 septembre 2021, par r3dgeI'm trying to use video.js to play an encrypted HLS video. The AES 128 encryption has been done using this method : FFmpeg video encryption


Here is the html code :



 
 <source src="http://192.168.56.1/enc/prog_index.m3u8" type="application/x-mpegURL">
</source>

 
 
 

Video.js is loaded using CDN :


<code class="echappe-js"><script src="https://unpkg.com/video.js/dist/video.js"></script>



<script src="https://unpkg.com/@videojs/http-streaming/dist/videojs-http-streaming.js"></script>



The player is loading and appears in the browser but the video can not be played.


I get two warnings in the console :


video.js:159 VIDEOJS : WARN : A plugin named "reloadSourceOnError" already exists. You may want to avoid re-registering plugins !


VIDEOJS : WARN : Problem encountered with playlist 0-http://192.168.56.1/enc/prog_index.m3u8. Trying again since it is the only playlist.


Server side i'm using Apache with Symphony 5. The server return a HTTP 200 status for the first ts file of the video. When i press the play button of the player seems to retry downloading. It get a 200 each time but the video is not played.


Update : i tried to play the same video without encryption and it works. The problem seems to be due to the encryption itself.


Thanks in advance for any help on that issue.


-
Streaming audio from mac with ffmpeg to nginx and playback with videojs
15 juillet 2020, par Disco FeverI'm playing around trying to get to stream my Mac's sound to a webpage.


Here's what I have so far :


On the mac :


ffmpeg -f avfoundation -i ":2" -acodec libmp3lame -ab32k -ac 1 -f flv rtmp://myserver:8000/hls/live



On the nginx side :


events {
 worker_connections 1024;
}

rtmp {
 server {
 listen 8000;
 chunk_size 4000;
 application hls {
 live on;
 interleave on;
 hls on;
 hls_path /tmp/hls;
 }
 }
}

http {
 default_type application/octet-stream;
 sendfile off;
 tcp_nopush on;
 server {

 listen 8080;
 location /hls {
 add_header Cache-Control no-cache;
 types {
 application/vnd.apple.mpegurl m3u8;
 video/mp2t ts;
 }
 root /tmp;
 }
 }
}



Web side :





 
 

<code class="echappe-js"><script src="//vjs.zencdn.net/7.8.2/video.min.js"></script>








No matter what i do I can't get any sound (it's playing on the Mac 100% sure) ; i've tried also putting a video tag instead, i see the image but no sound. What's missing here ? Can this even be achieved ?


THanks