
Recherche avancée
Médias (1)
-
Spitfire Parade - Crisis
15 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (60)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 (8763)
-
RTMP streaming not working with fluent-ffmpeg and gl
15 avril 2023, par SmileI'm trying to send opengl rendering results to rtmp using gl and fluent-ffmpeg packages.

The render function writes opengl output to glBuf.

And the render function is called about 60 times per second.

And it calls ffmpeg with that glBuf as input.

import ffmpeg from "fluent-ffmpeg";
import GL from "gl";
import { env } from "./env";
import { PassThrough } from "stream";

const WIDTH = 1920;
const HEIGHT = 1080;
const gl = GL(WIDTH, HEIGHT);

const glBuf = new PassThrough();
const render = () => {
 gl.viewport(0, 0, WIDTH, HEIGHT);
 gl.clearColor(0, 0, 0, 1);
 gl.clear(gl.COLOR_BUFFER_BIT);

 const pixels = new Uint8Array(WIDTH * HEIGHT * 4);
 gl.readPixels(0, 0, WIDTH, HEIGHT, gl.RGBA, gl.UNSIGNED_BYTE, pixels);
 glBuf.write(pixels);
};

const FRAMES = 10;
setInterval(() => {
 for (let i = 0; i < FRAMES; i++) {
 render();
 }
}, FRAMES * 1.1 * (1000 / 60));

ffmpeg()
 .input(glBuf)
 .inputFormat("rawvideo")
 .inputOptions([`-video_size ${WIDTH}x${HEIGHT}`, "-pix_fmt rgba"])
 .inputFPS(60)
 .outputFormat("flv")
 .outputOptions([
 "-c:v libx264",
 "-preset veryfast",
 "-maxrate 3000k",
 "-bufsize 6000k",
 "-pix_fmt yuv420p",
 "-g 60",
 "-c:a aac",
 "-b:a 160k",
 "-ac 2",
 ])
 .on("error", (err) => {
 console.error(err);
 })
 .output(`${env.stream_url}/${env.stream_key}`)
 .run();



However, stream health shows No data. That is, the data is ignored.

Not works

So I modified the code to save flv file. It works then.


import ffmpeg from "fluent-ffmpeg";
import GL from "gl";
import { env } from "./env";
import { PassThrough } from "stream";

const WIDTH = 1920;
const HEIGHT = 1080;
const gl = GL(WIDTH, HEIGHT);

const glBuf = new PassThrough();
const render = () => {
 gl.viewport(0, 0, WIDTH, HEIGHT);
 gl.clearColor(0, 0, 0, 1);
 gl.clear(gl.COLOR_BUFFER_BIT);

 const pixels = new Uint8Array(WIDTH * HEIGHT * 4);
 gl.readPixels(0, 0, WIDTH, HEIGHT, gl.RGBA, gl.UNSIGNED_BYTE, pixels);
 glBuf.write(pixels);
};

const FRAMES = 10;
const renderInterval = setInterval(() => {
 for (let i = 0; i < FRAMES; i++) {
 render();
 }
}, FRAMES * 1.1 * (1000 / 60));

setTimeout(() => {
 clearInterval(renderInterval);
 glBuf.end();
 console.log("done!");
}, 3000);

ffmpeg()
 .input(glBuf)
 .inputFormat("rawvideo")
 .inputOptions([`-video_size ${WIDTH}x${HEIGHT}`, "-pix_fmt rgba"])
 .inputFPS(60)
 .outputFormat("flv")
 .outputOptions([
 "-c:v libx264",
 "-preset veryfast",
 "-maxrate 3000k",
 "-bufsize 6000k",
 "-pix_fmt yuv420p",
 "-g 60",
 "-c:a aac",
 "-b:a 160k",
 "-ac 2",
 ])
 .on("error", (err) => {
 console.error(err);
 })
 .output(`output.flv`)
 .run();






Why doesn't first code work ?


-
How to debug GitHub Action failure
9 décembre 2022, par MeltemiJust yesterday a stable GitHub Action (CI) started failing rather cryptically and I've run out of tools to debug it.


All I can think of is our
BUNDLE_ACCESS_TOKEN
went bad somehow but I didn't set that up. It's an Action secret under Repository Secrets that are not visible in GitHub UI. How can I test to see if it's valid ?

Or maybe it's something else ?!? "Bad credentials" is vague...


Here's the meat of the action we're trying to run :


#my_tests.yml
jobs:
 my-test:
 runs-on: ubuntu-latest
 services:
 postgres:
 image: postgres:13.4
 env:
 POSTGRES_USERNAME: postgres
 POSTGRES_PASSWORD: postgres
 POSTGRES_DB: myapp_test
 ports:
 - 5432:5432
 options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
 env:
 RAILS_ENV: test
 POSTGRES_HOST: localhost
 POSTGRES_USERNAME: pg
 POSTGRES_PASSWORD: pg
 GITHUB_TOKEN: ${{ secrets.BUNDLE_ACCESS_TOKEN }}
 BUNDLE_GITHUB__COM: x-access-token:${{ secrets.BUNDLE_ACCESS_TOKEN }}
 CUCUMBER_FORMAT: progress
 steps:
 - uses: actions/checkout@v2
 - uses: FedericoCarboni/setup-ffmpeg@v1
 ...



And with debug turned on here's the Failure (line 20) from GitHub Actions :


Run FedericoCarboni/setup-ffmpeg@v1

1 ------- ##[debug]Evaluating condition for step: 'Run FedericoCarboni/setup-ffmpeg@v1'
2 ##[debug]Evaluating: success()
3 ##[debug]Evaluating success:
4 ##[debug]=> true
5 ##[debug]Result: true
6 ##[debug]Starting: Run FedericoCarboni/setup-ffmpeg@v1
7 ##[debug]Loading inputs
8 ##[debug]Loading env
9 Run FedericoCarboni/setup-ffmpeg@v1
10 with:
11 env:
12 RAILS_ENV: test
13 POSTGRES_HOST: localhost
14 POSTGRES_USERNAME: pg
15 POSTGRES_PASSWORD: pg
16 GITHUB_TOKEN: ***
17 BUNDLE_GITHUB__COM: x-access-token:***
19 CUCUMBER_FORMAT: progress
20 Error: Bad credentials
21 ##[debug]Node Action run completed with exit code 1
22 ##[debug]Finishing: Run FedericoCarboni/setup-ffmpeg@v1



Thanks for any help.


-
FFmpeg Loop Streaming
21 septembre 2022, par DanI'm trying to run a stream on YouTube with a video that loops 24/7, using FFmpeg 4.4 from a server with Ubuntu 22, it works but I'm loosing the "Live" red light on YouTube, and here is the message from the "Stream health" tab :


"YouTube is not currently receiving data for this stream. If you believe this is incorrect, ensure you’re sending a stream and that it is configured with the correct stream key."


Here's the script I made :



VBR="1500k" 
FPS="24" 
QUAL="superfast" 

YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" 
SOURCE="/home/ubuntu/Video.mp4" 
KEY="mykey" 
ffmpeg \
-stream_loop -1 -i "$SOURCE" -deinterlace \
-vcodec libx264 -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:v $VBR \
-acodec libmp3lame -ar 44100 -threads 6 -qscale 3 -b:a 712000 -bufsize 512k \
-f flv "$YOUTUBE_URL/$KEY"



Any help would be appreciated.
Thanks.