
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (35)
-
Configuration spécifique pour PHP5
4 février 2011, parPHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
Modules spécifiques
Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (8051)
-
Using FFmpeg with a file handle
14 juillet 2014, par William SeemannDoes anyone know if it’s possible to pass a FileDescriptor AND an byte offset to FFmpeg using the pipe protocol. If so, how do you do this programmatically ?
-
crtmpserver error, appselector can be a final destination
29 mai 2015, par user2366736I’m trying to setup a CRTMP serve by using its script run and its default script crtmpserver.lua. my os is centos6, and kenerl version 2.6.32.
The server start ok, showes
/crtmpserver/src/crtmpserver.cpp:267 GO ! GO ! GO !But when i use ffmpeg to push a flv stream, using the command
ffmpeg -re -i test.flv -acodec copy -vcodec copy -f flv rtmp ://localhost:1935/appselector/room1it shows the error
RTMP_ReadPacket, failed to read RTMP packet header
rtmp ://localhost:1935/appselector/room1 : Operation not permittedand the crtmpserver shows the following error
/applications/appselector/src/rtmpappprotocolhandler.cpp:66 appselector can be a final destination
/thelib/src/protocols/rtmp/basertmpprotocol.cpp:1049 Unable to send rtmp message
to application/thelib/src/netio/epoll/tcpcarrier.cpp:89 Unable to signal data available
/thelib/src/netio/epoll/iohandlermanager.cpp:130 Handlers count changed : 11->10 IOHT_TCP_CARRIER
/thelib/src/protocols/protocolmanager.cpp:45 Enqueue for delete for protocol [IR(3)]
/thelib/src/application/baseclientapplication.cpp:246 Protocol [IR(3)] unregistered from application : appselector
Does the default lua config has some wrong ?
-
Segmentation fault receiving rtp stream using FFmpeg
27 février 2018, par RoBoI would need some help with a project I am working on. Currently, I am trying to implement a program that is supposed to receiving a video stream via RTP protocol but I can’t seem to figure out a solution as to why it is not working.
My program so far :
#include
#include <libavformat></libavformat>avformat.h>
#include <libswscale></libswscale>swscale.h>
#define HOST "127.0.0.1"
#define PORT "20000"
#define NETWORK_ADDRESS "rtp://@"HOST":"PORT
int main()
{
/** Register all muxers, demuxers and üprotocolls*/
av_register_all();
/** Global initialization of network protocolls */
avformat_network_init();
/** Open video file incoming from newtwork */
AVFormatContext *pFormatCtxt = NULL;
av_dict_set(&pFormatCtxt, "protocol_whitelist", "rtp", 0);
if ( avformat_open_input( &pFormatCtxt, "stream.sdp", NULL, NULL ) != 0 )
return -1;
printf("Video file opened.\n");
/** Retrieve stream information */
if( avformat_find_stream_info( pFormatCtxt, NULL ) < 0 )
return -1;
.
.
.
}The .sdp file has been generated with the terminal command :
ffmpeg -re -i GoP2_output_10fps.avi -vn -ac 1 -c:a copy -f rtp rtp://127.0.0.1:20000 > stream.sdp
According to these instructions here I get the following content :
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 127.0.0.1
t=0 0
a=tool:libavformat 57.83.100
m=video 20000 RTP/AVP 96
b=AS:2418
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 profile-level-id=1; config=000001B001000001B58913000001000000012000C48D8800553284A01443000001B24C61766335362E36302E313030To white list the RTP protocol I used
av_dict_set(&pFormatCtxt, "protocol_whitelist", "rtp", 0)
from this SO discussion here.Now after white listing it, the program execution stops after the
avformat_open_input()
function call and outputs a segmentation fault.
I understand this error means I am trying to access memory that I am not supposed to, but I don’t understand why this is happening and how to proceed from here.As I am quite new to the topic of ffmpeg and haven’t been able to find a solution myself, I was hoping somebody here who knows their way around could provide me some help ?
My OS is : Ubuntu 16.04