
Recherche avancée
Médias (1)
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
Autres articles (52)
-
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (10020)
-
How to record a 5 second video on Raspberry Pi 3 with USB webcam ?
16 mars 2023, par FeengineerHi i tried to record a video whit a USB-webcam on my RaspberryPi.
When i type
ffplay /dev/video0
I do see a live video, but when i try to record it withffmpeg
the video output is like a black screen with like the traffic cone in my VLC media player. I tried saving the video as a .mkv and .mp4 file. Anyone know how to fix this ?

The code i used to record a video is :
ffmpeg -f v4l2 -t 5 -framerate 25 -video_size 640x480 -i /dev/video0 output.mkv
andffmpeg -f v4l2 -t 5 -framerate 25 -video_size 640x480 -i /dev/video0 output.mp4

The video did show up in the folder, but it doesn't show video when opening.

edit : I fixed it now by changing the file type to .avi, but if anyone can still explain how to get .mkv or .mp4, let me know :)


-
Process Multiple Streams using ffmpeg-python
27 novembre 2019, par C DormanI have a MPEG-2 TS with a stream of video and a steam of KLV metadata. I can use ffmpeg-python to process each of these streams independently. For example, I can get the video stream, process each frames using numpy as shown in the docs. I can also get the data stream and show it in following way (using the library klvdata) :
process = (
ffmpeg
.input(in_filename)
.output('pipe:', format='data', codec='copy', map='data-re')
.run_async(pipe_stdout=True, pipe_stderr=True)
)
for packet in klvdata.StreamParser(process.stdout.read()):
packet.structure()
process.wait()How do I do these at the same time ? I need to split the TS data into its streams and process them both, keeping them in sync. ffmpeg by itself can demultiplex the streams into separate files, but how do I handle the streams in python. The KLV has information that I want to show on top of the video stream (recognition boxes).
-
How to create UI for Terminal [y/n] Prompts ?
22 juin 2023, par itsRitsI am working with FFmpeg and I want to create a responsive user interface for terminal prompts.


Here's the main function.


#converter.py

def convert_video(input_video, output_video=None, new_fps=None, new_container=None):

 if not output_video:
 if new_container is not None:
 output_video = "output." + new_container
 else:
 output_video = "output." + input_video.split('.')[-1]
 
 command = f"ffmpeg -i {input_video}"

 if new_fps:
 command += f' -r {new_fps}'

 command += f' {output_video}'

 subprocess.call(command, shell=True)



On running the above code, if the video at the output destination with the same name already exists.
the terminal prompts :
File 'output.mp4' already exists. Overwrite? [y/N].

I want to implement same using the message box in pyside2. I can create a message box in such a fashion

#ui.py
 message_box = QMessageBox()
 message_box.setText("Do you want to proceed?")
 message_box.setStandardButtons(QMessageBox.Yes | QMessageBox.No)
 message_box.setDefaultButton(QMessageBox.No)



But I am unable to figure how to make the message box pop once this prompt is found in terminal. Further how to send response back to it ?