
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (33)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (5286)
-
Running FFmpeg from AWS
11 mai 2019, par JayThis code works perfectly from my local machine.
import subprocess
p = subprocess.call('ffmpeg -r 1 -loop 1 -i "ep1.png" -i "ep1.mp3" -acodec copy -r 1 -shortest -vf scale=1280:720 ep1.flv',shell=True)I would like to run it from AWS
Lambda code
import boto3
import subprocess
s3 = boto3.client('s3')
def lambda_handler(event, context):
ep1PNG = s3.get_object(Bucket='my-buc',Key='ep1.PNG')
ep1MP3 = s3.get_object(Bucket='my-buc',Key='ep1.mp3')
p = subprocess.call(
'/opt/ffmpeg/ffmpeg -r 1 -loop 1 -i ep1PNG -i ep1MP3 -acodec copy -r 1 -shortest -vf scale=1280:720 /tmp/ep1.flv', shell=True)
# TODO implement
return {
'statusCode': 200,
}Questions
Are these correct inside subprocess.call() ?
/opt/ffmpeg/ffmpeg #<-----Is this correct ?
ep1PNG #<-----Is this correct ?
ep1MP3 #<-----Is this correct ?
/tmp/ep1.flv #<----- Not Sending Output to S3 BucketPlease comment if I’m heading in the right direction been trying this for about a week now
ffmpeg is uploaded as a layer
-
how to redirect adb screenrecord output to pc(windows/linux) storage
30 novembre 2018, par asullahercIn linux, I use following code to cast android screen to pc, it work well
adb shell "screenrecord --time-limit 1 --output-format=h264 -; screenrecord --time-limit 180 --output-format=h264 -" | ffplay -
so I think exist way to redirect screenrecord output to pc storage, so I try following code
adb shell "screenrecord --time-limit 1 --output-format=h264 -; screenrecord --time-limit 180 --output-format=h264 -" >> /tmp/t.mp4
but the output video file cannot be opened by vlc and google-chrome, how to fix it ?
ffplay is belongs ffmpeg, so I guess exist similar cli in ffmpeg to output input video streaming into video file
-
Python, FFMPEG : Redirecting output of FFMPEG subprocess call to a string
31 décembre 2019, par user1452030I’ve managed to run an FFMPEG command using the subprocess module as shown below :
output = subprocess.check_output(command, shell=True)
This works fine, but it prints the verbose FFMPEG output to console. The program I’m writing is supposed to run for hundreds/thousands of files in a batch and I don’t want detailed outputs for every file processed, unless the user chooses to do so. Can I redirect the console outputs and errors to strings, so that I can decide when I should and shouldn’t print them ?
This might be lame, but I tried the following snippet :
outputBuffer = BytesIO()
output = subprocess.check_output(command, shell=True, stdout=outputBuffer)But it gave me the following error :
ValueError: stdout argument not allowed, it will be overridden.
I saw other examples where the
POpen
interface was used, but given that I’m not communicating with the external command as it is running, and that I need to run this for a large number of items, I’d prefer something simpler, if possible.Thanks in advance !
Note : I’ve found lots of questions in this broad topic, but I couldn’t find anything perfectly relevant to my situation.