
Recherche avancée
Autres articles (76)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
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
Sur d’autres sites (5039)
-
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 !!!


-
using ffmpeg from macOS terminal for uploading youtube short from android just do nothing
25 juin 2023, par Yogi Arif Widodomy component / recording is using blachole plugin on macOS.


engine : 13" Macbook Pro M1 ( macOS 13.2 / Ventura )


step to reproduce


- 

- my output is screenRecordingAudio ( this name is custom name ).




// screenRecordingAudio in audioMidi : 
BlackHole 16ch [mark as checked on use]
External Headphones [mark as checked on use]





screenRecordingAudio is using on by click on right top of bar UI, click sound, click screenRecordingAudio.




OR




screenRecordingAudio is using on Settings ➡️ Sounds ➡️ Output ➡️ then choose screenRecordingAudio




- 

- my input is quickTimeInput ( this name is custom name ).




// quickTimeInput in audioMidi : 
BlackHole 16ch [mark as checked on use]



- 

- then using
⌘
+shift
+5
, on option i usequickTimeInput
- i use these command to convert into mp4 and also purpose to get more small size video






#!/bin/bash

# greet the user
function yoVideo() {
 ffmpeg -i $1.mov -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k -movflags +faststart $1.mp4
}



OR


ffmpeg -i yogiarifwidodo.mov -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k -movflags +faststart yogiarifwidodo.mp4



- 

- then i move the video into my phone android.
- then when i tried to upload on youtube as short, its cannot be process to upload ( its just do nothing ) but when i upload on facebook reels its work also on instagram story its still working also for whatsapp story.






when i didnt convert into mp4 its also happend and in any other case for example whatsapp story , its lagging to review video before upload . its happend to on instagram .
but when i force upload , the result video is good and smooth . then i re download my video its still best video and when try to upload my download video , there is no lagging in any condition.


how to get ffmpeg perform into mp4 and also no lagging on editing while uploading at whatsapp story or instagram story or facebook , etc ?
by the way i dont know command ffmpeg , the code is copied from stackoverflow and i forgot where is it.


-
streaming to stream name and stream key is not working at youtube data api v3
8 décembre 2018, par Anirudha GuptaI crate a livestream and I got livestream ID and name from the api. I create the broadcast from youtube and got the broadcast id. When I bind the broadcast id and stream name. it’s bind but when I call the streamurl/name/key it’s just sending the straem there but not on the live broadcast event.
When I send to just streamurl+name. it does send the stream but it doesn’t show anywhere, not on livebroadcast or stream event.
Is there anything I am doing it wrong. I have call stream endpoint and have id and name. call the broadcast endpoint and got the id and now I called the bind and bind both together. I am not able to send the stream to that event. Anyone have idea over this.
Thanks