
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (73)
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
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 (...)
Sur d’autres sites (5121)
-
Flash Media Server Recording Delay
14 novembre 2011, par CoreyI have an application where a user can record themselves singing along to a song. Once I receive the NetStream status event 'Record.Start' I start playing an audio file. Once the audio completes, I stop recording. Next, I have a script that runs FFMPEG to combine the recorded video/audio with the same music file. The problem I'm finding is that there is a noticeable delay between the recorded audio and the music. It seems also that this delay depends on network speed as it varies depending on the network. Can I determine this delay through the FMS dynamically ?
-
libavformat/hls : add support for decryption of HLS media segments encrypted using...
21 septembre 2021, par Nachiket Taratelibavformat/hls : add support for decryption of HLS media segments encrypted using SAMPLE-AES encryption method
Apple HTTP Live Streaming Sample Encryption :
https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/HLS_Sample_Encryption
Signed-off-by : Nachiket Tarate <nachiket.programmer@gmail.com>
Signed-off-by : Steven Liu <lq@chinaffmpeg.org> -
Python OpenCV VideoCapture Color Differs from ffmpeg and Other Media Players
17 avril 2024, par cliffsuI’m working on video processing in Python and have noticed a slight color difference when using
cv2.VideoCapture
to read videos compared to other media players.



I then attempted to read the video frames directly using ffmpeg, and despite using the ffmpeg backend in OpenCV, there are still differences between OpenCV’s and ffmpeg’s output. The frames read by ffmpeg match those from other media players.




Below are the videos I’m using for testing :






Here is my code :


import cv2
import numpy as np
import subprocess

def read_frames(path, res):
 """Read numpy arrays of video frames. Path is the file path
 and res is the resolution as a tuple."""
 args = [
 "ffmpeg",
 "-i",
 path,
 "-f",
 "image2pipe",
 "-pix_fmt",
 "rgb24",
 "-vcodec",
 "rawvideo",
 "-",
 ]

 pipe = subprocess.Popen(
 args,
 stdout=subprocess.PIPE,
 stderr=subprocess.DEVNULL,
 bufsize=res[0] * res[1] * 3,
 )

 while pipe.poll() is None:
 frame = pipe.stdout.read(res[0] * res[1] * 3)
 if len(frame) > 0:
 array = np.frombuffer(frame, dtype="uint8")
 break

 pipe.stdout.close()
 pipe.wait()
 array = array.reshape((res[1], res[0], 3))
 array = cv2.cvtColor(array, cv2.COLOR_RGB2BGR)
 return array

ORIGINAL_VIDEO = 'test3.webm'

array = read_frames(ORIGINAL_VIDEO, (1280, 720))

cap = cv2.VideoCapture(ORIGINAL_VIDEO, cv2.CAP_FFMPEG)
while cap.isOpened():
 ret, frame = cap.read()
 if not ret:
 break
 print(frame.shape)
 cv2.imshow("Opencv Read", frame)
 cv2.imshow("FFmpeg Direct Read", array)
 cv2.waitKeyEx()
 cv2.waitKeyEx()
 break
cap.release()



I’ve attempted to use different media players to compare
cv2.VideoCapture
and ffmpeg’s frame reading, to confirm that the issue lies with opencv. I’m looking to determine whether it’s a bug in OpenCV or if there are issues in my code.

EDIT :


Just use the following code to check the difference between opencv read and ffmpeg read.


cv2.imshow('test', cv2.absdiff(array, frame)*10)
cv2.waitKey(0)