
Recherche avancée
Médias (91)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Wired NextMusic
14 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (45)
-
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. -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (5632)
-
Youtube encoder live streaming by using OpenCV and ffmpeg [closed]
17 mai 2022, par David LogersDoes anyone know the best way to do YouTube livestream using ffmpeg and python's opencv ?
I would be very grateful if you could let me know.
Thank you.


-
Extract thumbnail from video in amazon s3 and store it in amazon s3 [closed]
24 juin 2021, par Kanav RainaI want to extract thumbnail from video and store it on s3.


import ffmpeg

url="https://link_to_s3_video.mp4"

(
 ffmpeg
 .input(url, ss='00:00:03') 
 .output("frame.png", pix_fmt='rgb24', frames='1') 
 .overwrite_output()
 .run()
)



I am able to extract image but now how should I pass this image to file_upload function and store it on s3


def file_upload(file, filename):
 link = f"https://{PUBLIC_BUCKET_NAME}.s3.us-east-2.amazonaws.com/images/{filename}"
 try:
 s3.Object(PUBLIC_BUCKET_NAME, f"images/{filename}").load()
 except ClientError as e:
 if e.response['Error']['Code'] == "404":
 try:
 s3_client.upload_fileobj(
 file,
 PUBLIC_BUCKET_NAME,
 f"images/{filename}",
 ExtraArgs={'ACL': 'public-read'}
 )

 return 200, link
 except ClientError as e:
 logging.error(e)
 return 500, ""
 else:
 return 500, ""
 else:
 return 409, link



Thanks


-
Saving video to SD card while live streaming to YouTube using FFmpeg
15 mai 2020, par Zohair Ul HasanI'm trying to set up a Raspberry Pi so that it live streams video to YouTube using the Raspberry Pi camera and also saves the video to the SD Card for backup, in case the internet gets disconnected. I used Alex Ellis's guide to set it up, which is basically a docker image that anyone can download and set it up. He sets up the live stream to YouTube but doesn't save the video offline.



So, I tinkered with his code and found that he used FFmpeg to stream to YouTube. The following line is basically the heart of his method to stream :



raspivid -o - -t 0 -w 1920 -h 1080 -fps 40 -b 8000000 -g 40 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i pipe:0 -c:v copy -c:a aac -ab 128k -g 40 -strict experimental -f flv -r 30 rtmp://a.rtmp.youtube.com/live2/$1




I read up about FFmpeg and apparently, to save this stream to my SD card all I need to do is add the directory where I want to save my video to the end of this code. I modified it like so at the end of the line :



raspivid -o - -t 0 -w 1920 -h 1080 -fps 40 -b 8000000 -g 40 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i pipe:0 -c:v copy -c:a aac -ab 128k -g 40 -strict experimental -f flv -r 30 rtmp://a.rtmp.youtube.com/live2/$1 /home/pi/Desktop/my_video.mp4




However, when I ran this, the terminal threw this error :



/home/pi/Desktop/my_video.mp4: No such file or directory




This path, however, definitely exists by default in all Raspberry Pi's. I'm not sure what's wrong here, can someone please help me out ?



P.S : as an additional side question, I read up the documentation on FFmpeg and it specifically says not to use the -re argument when using a live input source, but Alex uses it anyways. Should I substitute it with something different ? It works fine right now though.