
Recherche avancée
Autres articles (71)
-
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 (...) -
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 (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 is the first MediaSPIP stable release.
Its official release date is June 21, 2013 and is announced here.
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)
Sur d’autres sites (4366)
-
PiCamera stream to youtube with ffmpeg and capture image every second
9 octobre 2020, par MisterGrayI'm sending a livestream with a Python script on a Raspberry Pi 4 to Youtube with ffmpeg.


Additionally I want to check the stream for movements. Therefore I want to compare two frames with each other. Since this is relatively computationally intensive, I wanted to limit myself to "only" compare single frames every second.


The camera.capture() command, however, seems to take very long, so the stream hangs again and again.


What is the best way to get a raw frame during the stream ?


Is there a better alternative to detect movements while creating a stream with ffmpeg ?


#!/usr/bin/env python3
import subprocess
from picamera.array import PiRGBArray
from picamera import PiCamera
import time
import cv2
import numpy as np

YOUTUBE = 'rtmp://a.rtmp.youtube.com/live2/'
KEY = 'MyYoutubeKey'
stream_cmd = 'ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv ' + YOUTUBE + KEY

avg = None
stream_pipe = subprocess.Popen(stream_cmd, shell=True, stdin=subprocess.PIPE)
resolution = (1280,720)
with PiCamera(resolution = resolution) as camera:

 rawCapture = PiRGBArray(camera, size = resolution)

 camera.framerate = 25
 camera.vflip = True
 camera.hflip = True
 camera.start_recording(stream_pipe.stdin, format='h264', bitrate = 6000000)
 while True:
 camera.wait_recording(1)

 # this command takes a long time to finish
 frame = camera.capture(stream_pipe.stdin, 'rgb')

 """
 further calculations
 """

 rawCapture.truncate(0)

 camera.stop_recording()
 stream_pipe.stdin.close()
 stream_pipe.wait()



-
convert a normal video to youtube short
28 mai 2022, par Un1xCr3whello i have videos with width of 1920px and height of 1080 and i wanna crop it at the center and create a youtube short with it


iam using youtube dl wrap node js library
here is my code example


var ffmpeg = require("fluent-ffmpeg");
const fs = require("fs");
let rawdata = fs.readFileSync("./json-files/small.json");
let clips = JSON.parse(rawdata);

function convertIt(fileName) {
 return new Promise((resolve, reject) => {
 ffmpeg(`./media-new/${fileName}`)
 .size("480x640")
 .aspect("9:16")
 .autopad()
 .videoBitrate("4000k")
 .on("end", function () {
 console.log("file has been converted succesfully");
 resolve("foo");
 })
 .on("error", function (err) {
 console.log("an error happened: " + err.message);
 reject(err);
 })
 // save to file
 .save(`./lib/${fileName}`);
 });
}

async function convertToShorts() {
 for (const iterator of clips) {
 await convertIt(`${iterator.id}.mp4`);
 }
}

convertToShorts();



-
The YouTube live stream encountered a failure
12 février 2024, par kuldeep chopraWe are currently utilizing the ffmpeg library for streaming on YouTube Live. However, we have faced issues in a recent live streaming session that initially functioned correctly but encountered errors around the 13 to 15-minute mark. The error logs from FFmpeg during this session are as follows :


Live Stream 1 Error :(Attempt 1)




ffmpeg [flv @ 0x555c4bdfe680] Failed to update header with correct
duration. 2023-09-07T23:06:38.490+05:30 [flv @ 0x555c4bdfe680] Failed
to update header with correct filesize. 2023-09-07T23:06:38.491+05:30
failed => rtmp ://a.rtmp.youtube.com/live2/key......
2023-09-07T23:06:38.491+05:30
ffmpeg [tee @ 0x555c48843700] Slave
muxer #1 failed : Broken pipe, continuing with 1/2 slaves.




Live Stream 2 Error (Attempt 2) :




Slave muxer #1 failed : Connection reset by peer, continuing with 1/2
slaves.




It is crucial to note that we have conducted numerous live streams on YouTube without encountering this error previously ; this is the first instance of such an issue.


We kindly request your assistance in investigating and providing insights into the underlying problem causing these error messages. Any guidance or support you can offer in resolving this issue would be greatly appreciated.