
Recherche avancée
Médias (91)
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (73)
-
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 ;
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)
Sur d’autres sites (9428)
-
FFmpeg - Muxing video and audio Elementary Stream (es) live to form Transport Stream (ts)
6 octobre 2022, par RobinI wish to mux the audio and video elementary stream (with timestamp) into transport stream in live and might change a little in those Program-specific information (PSI).


Is that even possible with FFmpeg ? If so, how can I do it ?


-
FFMPEG unable to stream videos frame by frame to RTMP Youtube Live stream using Python
1er octobre 2024, par YadneshDI need to open a locally stored video, process it frame by frame and send it to YouTube live RTMP stream. I am able to do it using FFMPEG in command line terminal but unable to do it using Python. In Python on console, it shows stream is properly sent but on YouTube Live control room it shows no data. I tried all other tools like Vidgear, Gstreamer etc. But most of them use FFMPEG backend and it does not work.


Here is my command to directly send video from .mp4 source file that works properly on terminal and video is streamed on YouTube Live control room -


ffmpeg -re -i "video.mp4" -c:v libx264 -preset veryfast -maxrate 3000k -bufsize 6000k -pix_fmt yuv420p -c:a aac -b:a 128k -f flv rtmp://a.rtmp.youtube.com/live2/youtube-key


My Python program which reads and send video frame by frame shows everything is fine on console but YouTube shows No Data -


import cv2
import subprocess

# Path to your video file
video_path = "video.mp4"

# FFmpeg command to stream to YouTube
rtmp_url = "rtmp://a.rtmp.youtube.com/live2/youtube-key"
ffmpeg_command = [
 'ffmpeg',
 '-y', # Overwrite output files without asking
 '-f', 'rawvideo',
 '-pixel_format', 'bgr24',
 '-video_size', '1280x720', # Change according to your video resolution
 '-framerate', '30', # Frame rate
 '-i', '-', # Input from stdin
 '-c:v', 'libx264',
 '-preset', 'veryfast',
 '-maxrate', '3000k',
 '-bufsize', '6000k',
 '-pix_fmt', 'yuv420p',
 '-f', 'flv',
 rtmp_url
]

# Start FFmpeg process
ffmpeg_process = subprocess.Popen(ffmpeg_command, stdin=subprocess.PIPE)

# Open video with OpenCV
cap = cv2.VideoCapture(video_path)

if not cap.isOpened():
 print("Error: Could not open video.")
 exit()

while True:
 ret, frame = cap.read()
 if not ret:
 break # End of video

 # Write the frame to FFmpeg's stdin
 ffmpeg_process.stdin.write(frame.tobytes())

# Cleanup
cap.release()
ffmpeg_process.stdin.close()
ffmpeg_process.wait()



Console output -




FFMPEG Build info -




I tried in Linux and Windows both and got same results. In the python program, I am not processing frames now but in future I will do it. I just want to stream video frame by frame as of now so that I can do the processing in future. Please help !!!


-
mpeg packetized stream into transport stream
23 janvier 2017, par lukstackI have some questions related to the multiplexing of mpeg PES streams (packetized) into mpeg TS.
Why the DTS and PTS value are included in the PES header and PCR value in the transport stream header ?
What if we want to play somehow just PES stream then we have no PCR value needed for playout ?
If the PCR is created by multplekser (ts header) not encoder, then how multplekser know the corelation with PTS,DTS of the coded stream ?
Thanks for all answers.