
Advanced search
Other articles (97)
-
Installation en mode ferme
4 February 2011, byLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Websites made with MediaSPIP
2 May 2011, byThis page lists some websites based on MediaSPIP.
-
Possibilité de déploiement en ferme
12 April 2011, byMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus; de pouvoir déployer rapidement une multitude de sites uniques; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)
On other websites (10035)
-
FFmpeg transcoding on Lambda results in unusable (static) audio
17 May 2020, by jmkmayI'd like to move towards serverless for audio transcoding routines in AWS. I've been trying to setup a Lambda function to do just that; execute a static FFmpeg binary and re-upload the resulting audio file. The static binary I'm using is here.



The Lambda function I'm using in Python looks like this:



import boto3

s3client = boto3.client('s3')
s3resource = boto3.client('s3')

import json
import subprocess 

from io import BytesIO

import os

os.system("cp -ra ./bin/ffmpeg /tmp/")
os.system("chmod -R 775 /tmp")

def lambda_handler(event, context):

 bucketname = event["Records"][0]["s3"]["bucket"]["name"]
 filename = event["Records"][0]["s3"]["object"]["key"]

 audioData = grabFromS3(bucketname, filename)

 with open('/tmp/' + filename, 'wb') as f:
 f.write(audioData.read())

 os.chdir('/tmp/')

 try:
 process = subprocess.check_output(['./ffmpeg -i /tmp/joe_and_bill.wav /tmp/joe_and_bill.aac'], shell=True, stderr=subprocess.STDOUT)
 pushToS3(bucketname, filename)
 return process.decode('utf-8')
 except subprocess.CalledProcessError as e:
 return e.output.decode('utf-8'), os.listdir()


def grabFromS3(bucket, file):

 obj = s3client.get_object(Bucket=bucket, Key=file)
 data = BytesIO(obj['Body'].read())

 return(data)

def pushToS3(bucket, file):

 s3client.upload_file('/tmp/' + file[:-4] + '.aac', bucket, file[:-4] + '.aac')

 return




You can listen to the output of this here. WARNING: Turn your volume down or your ears will bleed.



The original file can be heard here.



Does anyone have any idea what might be causing the encoding errors? It doesn't seem to be an issue with the file upload, since the md5 on the Lambda fs matches the MD5 of the uploaded file.



I've also tried building the static binary on an Amazon Linux instance in EC2, then zipping and porting it into the Lambda project, but the same issue persists.



I'm stumped! :(


-
Read H264 streaming from Elp H264 with OpenCV + Python
3 February 2017, by Francesco PaissanI’m trying to read an udp streaming of a H264 encoded image. The software structure is like follows:
On a BeagleBoneBlack (Ubuntu 16.04) I’ve an Elp H264 cam (see here: https://www.amazon.com/ELP-Support-Android-Windows-Surveillance/dp/B00VDSBH9G ). I stream frames with ffmpeg on a Unicast UDP Stream.
I want to read this images from python and opencv to be able to process them.
I tried with this simple code to see if the cap is opened or not:
import cv2
try:
cap = cv2.VideoCapture("udp://localhost:1234/")
cap.set(CV_CAP_PROP_FOURCC, CV_FOURCC('H', '2', '6', '4'));
except Exception, e:
print str(e)But when I run this script python says:
DtsGetHWFeatures: Create File Failed DtsGetHWFeatures: Create File
Failed Running DIL (3.22.0) Version DtsDeviceOpen: Opening HW in mode
0 DtsDeviceOpen: Create File Failed libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns -1 libva error:
va_getDriverName() failed with unknown libva error,driver_name=(null)
libva info: VA-API version 0.38.1 libva info: va_getDriverName()
returns -1 libva error: va_getDriverName() failed with unknown libva
error,driver_name=(null) libva info: VA-API version 0.38.1 libva info:
va_getDriverName() returns -1 libva error: va_getDriverName() failed
with unknown libva error,driver_name=(null) libva info: VA-API version
0.38.1 libva info: va_getDriverName() returns -1 libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
GStreamer Plugin: Embedded video playback halted; module vaapidecode
reported: Could not initialize supporting library. OpenCV
Error: Unspecified error (GStreamer: unable to start pipeline ) in
cvCaptureFromCAM_GStreamer, file /builddir/build/BUILD/opencv-
2.4.12.3/modules/highgui/src/cap_gstreamer.cpp, line 816 /builddir/build/BUILD/opencv-2.4.12.3/modules/highgui/src/cap_gstreamer.cpp:816:
error: (-2) GStreamer: unable to start pipeline in function
cvCaptureFromCAM_GStreamerCan anybody help me?
Thanks,
Francesco.
-
Read H264 streaming from Elp H264 with OpenCV + Pyhton
15 January 2017, by Francesco PaissanI’m trying to read an udp streaming of a H264 encoded image. The software structure is like follows:
On a BeagleBoneBlack (Ubuntu 16.04) I’ve an Elp H264 cam (see here: https://www.amazon.com/ELP-Support-Android-Windows-Surveillance/dp/B00VDSBH9G ). I stream frames with ffmpeg on a Unicast UDP Stream.
I want to read this images from python and opencv to be able to process them.
I tried with this simple code to see if the cap is opened or not:
import cv2
try:
cap = cv2.VideoCapture("udp://localhost:1234/")
cap.set(CV_CAP_PROP_FOURCC, CV_FOURCC('H', '2', '6', '4'));
except Exception, e:
print str(e)But when I run this script python says:
DtsGetHWFeatures: Create File Failed DtsGetHWFeatures: Create File
Failed Running DIL (3.22.0) Version DtsDeviceOpen: Opening HW in mode
0 DtsDeviceOpen: Create File Failed libva info: VA-API version 0.38.1
libva info: va_getDriverName() returns -1 libva error:
va_getDriverName() failed with unknown libva error,driver_name=(null)
libva info: VA-API version 0.38.1 libva info: va_getDriverName()
returns -1 libva error: va_getDriverName() failed with unknown libva
error,driver_name=(null) libva info: VA-API version 0.38.1 libva info:
va_getDriverName() returns -1 libva error: va_getDriverName() failed
with unknown libva error,driver_name=(null) libva info: VA-API version
0.38.1 libva info: va_getDriverName() returns -1 libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
GStreamer Plugin: Embedded video playback halted; module vaapidecode
reported: Could not initialize supporting library. OpenCV
Error: Unspecified error (GStreamer: unable to start pipeline ) in
cvCaptureFromCAM_GStreamer, file /builddir/build/BUILD/opencv-
2.4.12.3/modules/highgui/src/cap_gstreamer.cpp, line 816 /builddir/build/BUILD/opencv-2.4.12.3/modules/highgui/src/cap_gstreamer.cpp:816:
error: (-2) GStreamer: unable to start pipeline in function
cvCaptureFromCAM_GStreamerCan anybody help me?
Thanks,
Francesco.