Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)
Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)
I created an hls stream from yuv frames with ffmpeg which appears to work just fine. It creates a playlist and updates that, and all .ts files as expected. However even videojs refuses to play it, and I really run out of ideas, probably missing the obvious ?


First, the m3u8 list which is continuously updated :
I open this in Firefox (or Chrome, or Edge, none works) and use its debugger which in the console shows :




VIDEOJS : WARN : A plugin named "reloadSourceOnError" already exists.
You may want to avoid re-registering plugins ! video.min.js:12:977
Specified “type” attribute of “application/x-mpegURL” is not
supported. Load of media resource test.m3u8 failed. vstream.html All
candidate resources failed to load. Media load paused. vstream.html
XML Parsing Error : syntax error Location : file :///C :/test/test.m3u8
Line Number 1, Column 1 : 2 test.m3u8:1:1 MouseEvent.mozPressure is
deprecated. Use PointerEvent.pressure instead. video.min.js:12:9031
VIDEOJS : ERROR : (CODE:3 MEDIA_ERR_DECODE) Playback cannot continue. No
available working or supported playlists. Object code : 3, message :
"Playback cannot continue. No available working or supported
playlists." video.min.js:12:977




This doesn't make much sense to me. Why would it throw an XML parsing error for an m3u8 file ? Of course, the MEDIA_ERR_DECODE points in some direction, but the same problem persists with fMP4 files.


The relevant ffmpeg c++ code (format is "hls" and formatContext works well in other scenarios, gop is 2) :
(videoStream here is an internal object representing the avstream).
I've omitted error checks for clarity. All return values show success.
Thanks for any help on this !
I am trying to create a python lambda that uploads an mp3 file into an S3 bucket, converts it to wav and then transcripts the wav to text using speech_recognition.


Currently, I used os.system('ffmpeg -i {} -acodec pcm_s16le -ar 16000 {}.wav'.format(filename, wav_filename)) to convert the mp3 to wav in local and it downloads the file to the same path as the python file. But it doesn't work in lambda when I try fetching it from S3 and download the converted wav file inside lambda.


Here is the current code :


import os
import speech_recognition as sr
import json
import boto3

r = sr.Recognizer()

def lambda_handler(event, context):

 s3 = boto3.resource('s3')

 obj_audio_file = s3.Object('s3-bucket-audio-files', 'audio-mp3-format.mp3') # assuming audio-mp3-format.mp3 already exists in S3
 body = obj.get()['Body'].read()

 wav_filename = 'audio-wav-format'

 os.system('ffmpeg -i {} -acodec pcm_s16le -ar 16000 {}.wav'.format(obj_audio_file, actual_filename))
 audio_file = sr.AudioFile('audio-wav-format.wav') # new wav file created

 with audio_file as source:
 r.adjust_for_ambient_noise(source)
 audio = r.record(source)

 type(audio)
 print(r.recognize_google(audio))



I am getting sh: ffmpeg: command not found error when I run the lambda.


Could someone please help me with how to fix these issues ?
so I am currently building a Website for School and implemented an Upload-System. Now I want People to be able to watch uploaded Videos. Currently if you try to watch a Video, lets say test.mp4 it takes over a minute to load. I know that using : ffmpeg -i inputvideo.mp4 -movflags faststart -acodec copy -vcodec copy outputvideo.mp4 moves the atom moov to the beginning of the file. And when I manually convert the mp4 using the previous command the file starts playing instantly. But now my problem is, that I don't want to convert each file manually. Is there another way of playing user-uploaded Videos instantly ? Thanks for your help in advance.


I am using this Code, but it has nothing to do with the streaming itself I guess :


<source src="Clap.mp4" type="video/mp4">
Your browser does not support the video tag. 

</source>