
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (86)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (14911)
-
How to embed subtitles in multiple movies in an automated way using python ?
8 juin 2023, par Ricardo MadelaThis python script identifies all movies with mp4 extension and, if they have subtitles in srt format, converts the subtitle encoding to utf-8 (without this conversion you will get error message) and starts building the movie with the subtitle embedded.


for filename in glob.glob("*.mp4"):
 print(str(filename))
 if 'wsubs' not in filename:
 for legenda in glob.glob(filename.replace(".mp4",".srt")):
 try:
 with open(legenda, 'r') as arquivo_orig:
 conteudo = arquivo_orig.read()
 with open(legenda, 'w', encoding='utf-8') as novo_arquivo:
 novo_arquivo.write(conteudo)
 except Exception as e:
 print("Já codificado")
 print(str(legenda))
 os.system('ffmpeg -i "' + str(filename) + '" -vf subtitles="' + str(legenda) + '" -maxrate 2000000 -crf 20 "' + str(filename.replace('.mp4','-wsubs.mp4')) + '"')



The end result will be a subtitled movie with the expression "wsubs" at the end of the name. The original files will be preserved.


-
PHP-FFMpeg video output is truncated
25 juin 2019, par showdevI’m using the PHP-FFMpeg library found here and code from the "Basic Usage" section.
The outputted video seems to be truncated. I’m using a source video that’s 28 seconds long, but the output is only 9 seconds. What’s going wrong ?
Here, I’m checking the duration of the source video :
$ffprobe = FFMpeg\FFProbe::create();
$duration = $ffprobe
->format('test/source.mp4')
->get('duration');28.700000
Then generating an output video :
$ffmpeg = FFMpeg\FFMpeg::create();
$video = $ffmpeg->open('test/source.mp4');
$video->save(new FFMpeg\Format\Video\X264(), 'test/export.mp4');Then checking the duration of the output video :
$ffprobe = FFMpeg\FFProbe::create();
$duration = $ffprobe
->format('test/export.mp4')
->get('duration');9.234000
-
How to create a script on a Raspberry to run ffmpeg at boot and restart itself if/when ffmpeg fails ?
5 février 2021, par MyceliumI'm using a Raspberry Pi Zero to stream to YouTube using FFMPEG. It works great so far and now I'd like to set it up to run the stream/FFMPEG daily and automatically from 6am to 7pm and restart itself in case it fails.


I've heard/read of people doing so with Python, but I haven't been able to find examples to try. I've never used Python (or any other) before, I'm a complete beginner. All I know is how/where to place the script file to make it run at boot.


Could anyone point me in the right direction on how to achieve this ? The FFMPEG command is as follows :


v4l2-ctl --set-fmt-video=width=1280,height=720,pixelformat=4 
v4l2-ctl --set-ctrl=rotate=180
v4l2-ctl --overlay=1
v4l2-ctl -p 30
v4l2-ctl --set-ctrl=video_bitrate=2000000
ffmpeg -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -i /dev/zero -f h264 -framerate 30 -i /dev/video0 -vcodec copy -acodec aac -ab 128k -g 60 -f flv -r 30 rtmp://a.rtmp.youtube.com/live2/SECRET-KEY