
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (80)
-
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation" -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (14957)
-
TypeError : Cannot read property 'url' of undefined - ws
28 juillet 2021, par Bawantha RathnayakaI am trying to get URL starts with '/rtmp/', and extract the target RTMP URL.


Uncaught TypeError : Cannot read property 'url' of undefined


this is my server.js


let match
 if (!(match = req.url.match(/^\/rtmp\/(.*)$/))) {
 ws.terminate() // No match, reject the connection.
 return
 }

 



-
Raspberry Pi : how to configure audio sampling rate in ALSA, ffmpeg, mp3 encoding pipeline
30 janvier 2014, par user3252022I have a Pi with the camera module and a USB sound card. The intent is to use this combination to generate the MPEG2-TS segments for HTTP Live Streaming (Apple's HLS.)
raspivid -ih -e -w 1280 -h 720 -fps 25 -vf -hf -t 0 -b 1800000 -o - | \
ffmpeg -y \
-i - \
-ac 1 \
-f alsa -ar 22050 -i hw:0,0 \
-c:v copy \
-c:a libshine -strict -2 \
-map 0:0 -map 1:0 \
-f ssegment \
-segment_list_entry_prefix live/ \
-segment_time 10 \
-segment_format mpegts \
-segment_list "$base/live.m3u8" \
-segment_list_size 20 \
-segment_list_flags +live \
-segment_list_type m3u8 \
-segment_wrap 200 \
live/%08d.ts"The above basically works. The heavy lifting of H.264 video encoding is done in hardware. However, MP3 encoding in software brings the ARM core to its knees. The option :
-f alsa -ar 22050 -i hw:0,0
is intended to lighten the CPU loading by reducing the ALSA audio sampling rate - from the 48kHz default down to 22.05kHz. The sampling rate, however, won't budge to anything below 44.1kHz.
Any idea what I'm doing wrong ? Why can't I tell ALSA to sample at 22.05kHz (or 8kHz for that matter ?)
Here's an excerpt output from running the encoding pipeline :
ffmpeg version N-60125-g4b8c599 Copyright (c) 2000-2014 the FFmpeg developers
built on Jan 29 2014 10:16:02 with gcc 4.6 (Debian 4.6.3-14+rpi1)
configuration: --enable-gpl --enable-nonfree --enable-libshine
...
Input #0, h264, from 'pipe:':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (High), yuv420p, 1280x720, 25 fps, 25 tbr, 1200k tbn, 50 tbc
Guessed Channel Layout for Input Stream #1.0 : mono
Input #1, alsa, from 'hw:0,0':
Duration: N/A, start: 1391066215.835499, bitrate: 705 kb/s
Stream #1:0: Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s
... -
FFMPEG Problem with Filter_Complex with Chain Filters
11 avril 2023, par JamesThis script combined three filters into one being drawgrid, drawbox and drawtext. The result had added the text and not added the grid and box.


My script :


Set "BXW=1000" ::Box width
Set "BXH=1008" ::Box height

set "TEXT1=360" :: Text lefthand side (no space characters allowed, see next example)
set "TEXT2=180" :: Text bottom and center
set "TEXT3=0" :: Text righthand side
set "TEXT4=0" :: Text top and center


set "COLOR=red" :: Text color
set "SIZE=200" :: Font size
set "POS_X1=0" ::X1 position of text
set "POS_Y1=(h-th)/2" :: Y1 position of text, use (h-th)/2 for centering
set "POS_X2=(w-tw)/2" :: X2 position of text, use (w-tw)/2 for centering
set "POS_Y2=(h-th)" ::Y2 position of text
set "POS_X3=(w-tw)" ::X3 position of text
set "POS_Y3=(h-th)/2" ::Y3 position of text, use (h-th)/2 for centering
set "POS_X4=(w-tw)/2" :: X4 position of text, use (w-tw)/2 for centering
set "POS_Y4=0" ::Y4 position of text



ffmpeg -i %1 -filter_complex [0:v]"drawgrid=color=red:width=iw/8:height=0:thickness=6,drawgrid=color=blue:width=0:height=ih/12:thickness=6"[grid_s]; [grid_s]"format=rgb24,drawbox=x=((iw/2)-%BXW%/2):y=((ih/2)-%BXH%/2):width=%BXW%:height=%BXH%:thickness=40:color=white"[box_s]; [box_s]drawtext="fontfile='c\:/windows/fonts/arial.ttf':fontcolor=%COLOR%:fontsize=%SIZE%:text=%TEXT1%:x=%POS_X1%:y=%POS_Y1%",drawtext="fontfile='c\:/windows/fonts/arial.ttf':fontcolor=%COLOR%:fontsize=%SIZE%:text=%TEXT2%:x=%POS_X2%:y=%POS_Y2%,drawtext="fontfile='c\:/windows/fonts/arial.ttf':fontcolor=%COLOR%:fontsize=%SIZE%:text=%TEXT3%:x=%POS_X3%:y=%POS_Y3%,drawtext="fontfile='c\:/windows/fonts/arial.ttf':fontcolor=%COLOR%:fontsize=%SIZE%:text=%TEXT4%:x=%POS_X4%:y=%POS_Y4%"[text_s] -frames 1 -y temptxt.png


ffmpeg -i temptxt.png -vf scale=iw/8:-1 -f nut - | ffplay -