
Recherche avancée
Médias (91)
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Lights in the Sky
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Head Down
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Echoplex
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Discipline
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Letting You
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (87)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (11876)
-
Play video using ffmpeg
17 juin 2023, par MCDThe following code stuck in the middle of the video. I want to play the video start at
start_seconds
and end atend_seconds
.

import subprocess
import cv2
import numpy as np
import subprocess

def play_video_with_ffmpeg(video_path, start_seconds, end_seconds):
print(start_seconds)

 # Set the desired frame size
 width = 920
 height = 600
 
 # Set the window position
 print("here")
 window_x = 600 # X position
 window_y = 10 # Y position
 cv2.namedWindow('Video Player', cv2.WINDOW_NORMAL)
 cv2.moveWindow('Video Player', window_x, window_y)
 
 # Build the ffmpeg command to skip to the desired start time and end time
 command = [
 'ffmpeg',
 '-ss', str(start_seconds),
 '-i', video_path,
 '-t', str((end_seconds - start_seconds)),
 '-vf', f'scale={width}:{height}',
 '-r', '30',
 '-f', 'image2pipe',
 '-pix_fmt', 'bgr24',
 '-vcodec', 'rawvideo',
 '-'
 ]
 
 # Open a subprocess to execute the ffmpeg command
 process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 
 # Create a buffer to hold the frame data
 buffer_size = width * height * 3
 frame_buffer = bytearray(buffer_size)
 
 while process.poll() is None:
 # Read the frame from the subprocess stdout into the buffer
 bytes_read = process.stdout.readinto(frame_buffer)
 
 if bytes_read == buffer_size:
 # Convert the frame buffer to a numpy array
 frame = np.frombuffer(frame_buffer, dtype='uint8').reshape((height, width, 3))
 
 # Resize the frame
 frame_resized = cv2.resize(frame, (width, height), interpolation=cv2.INTER_AREA)
 
 # Display the frame
 cv2.imshow('Video Player', frame_resized)
 
 if cv2.waitKey(1) & 0xFF == ord('q'):
 break
 
 process.stdout.close()
 process.stderr.close()
 cv2.destroyAllWindows()



I expect to play the video start from
start_second
and end atend_second
. I usedcv2.set
but it took long time to play from start_second.

-
Play audio out through specific output device with ffplay
4 février 2018, par ComedicChimeraI just have a quick question regarding ffplay (extension of ffmpeg) for Windows. I am trying to get it to allow me to play audio out of specific device (ie. a virtual audio cable), and I cannot find any documentation on how to do it.
Here is my current command :
"ffplay -loglevel panic -nodisp -volume volume -i url"
I could not find any documentation of how to do this.
If it is not possible to do this ffplay, I would like to ask if there is away to set a specific audio output device in Python 3 (as that is the language I am using to call ffplay)
Thanks
-
avcodec/proresdec2 : SKIP_BITS() does not work with len=32
2 octobre 2017, par Michael Niedermayeravcodec/proresdec2 : SKIP_BITS() does not work with len=32
Fixes : invalid shift
Fixes : 3482/clusterfuzz-testcase-minimized-5446915875405824Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>