
Recherche avancée
Médias (91)
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Lights in the Sky
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Head Down
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Echoplex
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Discipline
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Letting You
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (72)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
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 -
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 (...)
Sur d’autres sites (8992)
-
avformat_write_header() doesn't work when writing data to memory instead of file
12 novembre 2020, par Mohamed Kandeeli want to resample a given input format from memory to memory everything is good so far.


but when trying to get the output header from ffmpeg it doesn't work.


here i allocate the context and pass the write_buffer function pointer so that it doesn't write to a file but instead it will call my function with the required data


unsigned char * aviobuffer = (unsigned char *) av_malloc (32768);
AVIOContext * avio = avio_alloc_context (aviobuffer, 32768,1, NULL, NULL, write_buffer, NULL);

AVFormatContext* containerContext;
avformat_alloc_output_context2(&containerContext, NULL, "s16le", NULL);
containerContext->pb = avio;



here is my write_buffer function


std::vector<char>* data;
int write_buffer(void *opaque, uint8_t *buf, int buf_size)
{
 std::vector<char> tmp;
 tmp.assign(buf, buf + buf_size);
 data->insert(data->end(), tmp.begin(), tmp.end());
 return buf_size;
}
</char></char>


now when i call avformat_write_header() it doesn't call my write_buffer() function + it returns 0 which means success.


int ret = avformat_write_header(containerContext, NULL);



after that i call the appropriate functions to get the data body itself and my write_buffer() get called normally so i am now left with the data body with no header !!


how can i get the output header anyways ?


-
ffmpeg, twitch.tv, doesnt work
7 novembre 2015, par John SmithIm using this command for streaming :
ffmpeg -f dshow -i video="screen-capture-recorder" -f dshow -i audio="Mikrofon (USB audioeszköz)" -f dshow -i audio="virtual-audio-capturer" -f dshow -i audio="Mikrofon (Conexant SmartAudio H" -vcodec libx264 -r 25 -crf 0 -acodec aac -strict -2 -filter_complex amix=inputs=3:duration=first -pix_fmt yuv420p -s 640x480 -preset fast -f flv "rtmp ://live.twitch.tv/app/live_**********"
if I save it to disk, it works. Streaming to twitch.tv also wont give error, but it just stays blank, it cannot see it "alive"
-
Unable to get nginx-vod-module plugin to work
31 octobre 2020, par AAPMy first time trying hands on nginx-vod-module or any video streaming for that matter.
I just want to play static mp4 videos which I place on the server but via hls instead of direct mp4 access. No actual live streaming


Q1. Am I right in understanding that a mp4 video which I place locally on my server, will automatically get broken down into segments for HLS ?


My nginx installation is here : /opt/kaltura/nginx
The mp4 file is placed at /opt/kaltura/nginx/test/vid.mp4


In ../nginx/conf/server.conf, I have this :


location /hls/ {
 alias test/;
 vod hls;
 vod_bootstrap_segment_durations 2000;
 vod_bootstrap_segment_durations 2000;
 vod_bootstrap_segment_durations 2000;
 vod_bootstrap_segment_durations 4000;

 include /opt/kaltura/nginx/conf/cors.conf;
 }
location / {
 root html;
 }



Now, I am able to access the m3u8 file :
curl http://104.167xxxxx/hls/vid.mp4/index.m3u8


But when I try to open this file via VLC, I see these errors in errors.log :


*2020/10/31 15:00:08 [error] 12749#0: *60 mp4_parser_validate_stsc_atom: zero entries, client: 49.207 ..., server: ubuntu, request: "GET /hls/vid.mp4/seg-1-v1.ts HTTP/1.1", host: "104.167. ..."
2020/10/31 15:00:08 [error] 12752#0: *61 mp4_parser_validate_stsc_atom: zero entries, client: 49.207 ..., server: ubuntu, request: "GET /hls/vid.mp4/seg-2-v1.ts HTTP/1.1", host: "104.167. ..."
2020/10/31 15:00:09 [error] 12749#0: *62 mp4_parser_validate_stsc_atom: zero entries, client: 49.207 ..., server: ubuntu, request: "GET /hls/vid.mp4/seg-3-v1.ts HTTP/1.1", host: "104.167. ..."
2020/10/31 15:00:10 [error] 12751#0: *63 mp4_parser_validate_stsc_atom: zero entries, client: 49.207 ..., server: ubuntu, request: "GET /hls/vid.mp4/seg-4-v1.ts HTTP/1.1", host: "104.167. ..."*



Q2 : Is https must for this to work ?
Q3 : I dont see any /hls/vid.mp4 folder created anywhere on the server. Do I have to manually run ffmpeg separately to create the hls segments ?


What wrong am I doing ?