
Recherche avancée
Autres articles (77)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
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 (...) -
À propos des documents
21 juin 2013, parQue faire quand un document ne passe pas en traitement, dont le rendu ne correspond pas aux attentes ?
Document bloqué en file d’attente ?
Voici une liste d’actions ordonnée et empirique possible pour tenter de débloquer la situation : Relancer le traitement du document qui ne passe pas Retenter l’insertion du document sur le site MédiaSPIP Dans le cas d’un média de type video ou audio, retravailler le média produit à l’aide d’un éditeur ou un transcodeur. Convertir le document dans un format (...)
Sur d’autres sites (6372)
-
how to sync video and audio in python
15 septembre 2018, par Abhinandan KapoorSo, i have written the following code.it consist of three functions :
1.Opencv(for recording video)
2.pyaudio (for audio recording)
3.ffmpeg(for sync audio & videoNow the problem is that i’m able to get a single file with audio & video but they’re not sync.how to make them sync.
Plus I need help in start/stop of the opencv.I tried to set time duration in opencv but unable to get.kindly help me in this.
**import numpy as np
import cv2
import time
# The duration in seconds of the video captured
capture_duration = 10
cap = cv2.VideoCapture(0)
fourcc = cv2.VideoWriter_fourcc(*'XVID')
out = cv2.VideoWriter('output.avi',fourcc, 20.0, (640,480))
start_time = time.time()
while( int(time.time() - start_time) < capture_duration ):
ret, frame = cap.read()
if ret==True:
frame = cv2.flip(frame,0)
out.write(frame)
cv2.imshow('frame',frame)
else:
break
cap.release()
out.release()
cv2.destroyAllWindows()** -
Audio Segment Library in Python Telegram Bot
30 août 2021, par sukanI need to use the Audio Segment Library to Convert Audios to Text I install it but it's showing a Warning at runtime whaen I Run the Project and it doesn't work :




RuntimeWarning : Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)




sound = AudioSegment.from_ogg('user.ogg')
 sound.export('user.wav', format="wav")
 r = sr.Recognizer()
 with sr.AudioFile("user.wav") as source:
 audio = r.record(source)
 text = r.recognize_google(audio)
 print(text)





Note : It was working before I format my computer ,But when I try to reinstall it ,The Message Appears.




I need Your Kindly help
and Thank You...


-
ffmpeg not creating the thumbnail image if the name of the video has space in between
2 décembre 2017, par Ezhil KumarI installed ffmpeg in my windows 10 PC successfully and got it running. I tired to create a thumbnail of the video i succeeded in it also but when i tried to create a thumbnail of the video which has space in between the names is not creating the thumbnail please help me.
Eg :
"demo.mp4" is creating the demo.jpg thumbnail
"my first video.mp4" is not creating the thumbnailThis is my Code kindly check it and say me a solution
<?php
$ffmpeg = 'C:\FFMPEG\bin\ffmpeg.exe';
$video = 'D:\Video\my first video.mp4';
$image = 'C:\FFMPEG\bin\my first video.jpg';
$second = 3;
$cmd = "$ffmpeg -i $video 2>&1";
if (preg_match('/Duration: ((\d+):(\d+):(\d+))/s', `$cmd`, $time)) {
$total = ($time[2] * 3600) + ($time[3] * 60) + $time[4];
$second = rand(1, ($total - 1));
}
$cmd = "$ffmpeg -i $video -deinterlace -an -ss $second -t 00:00:01 -r 1 -y -s 270x200 -vcodec mjpeg -f mjpeg $image 2>&1";
$return = `$cmd`;
echo 'done!';
?>