
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (78)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)
Sur d’autres sites (13164)
-
Play MPEG-2 TS using MseStreamSource
27 novembre 2022, par Nicolas SévenoI need to display a live video stream in a UWP application.



The video stream comes from a GoPro. It is transported by UDP messages. It is a MPEG-2 TS stream. I can play it successfully using FFPlay with the following command line :



ffplay -fflags nobuffer -f:v mpegts udp://:8554




I would like to play it with MediaPlayerElement without using a third party library.



According to the following page :
https://learn.microsoft.com/en-us/windows/uwp/audio-video-camera/supported-codecs
UWP should be able to play it. (I installed the "Microsoft DVD" application in the Windows Store).



I receive the MPEG-2 TS stream with a UdpClient. It works well.
I receive in each UdpReceiveResult a 12 bytes header, followed by 4, 5, 6, or 7 MPEGTS packets (each packet is 188 bytes, beginning with 0x47).



I created a MseStreamSource :



_mseStreamSource = new MseStreamSource();
_mseStreamSource.Opened += (_, __) =>
{
 _mseSourceBuffer = _mseStreamSource.AddSourceBuffer("video/mp2t");
 _mseSourceBuffer.Mode = MseAppendMode.Sequence;
};
_mediaPlayerElement.MediaSource = MediaSource.CreateFromMseStreamSource(_mseStreamSource);




This is how I send the messages to the MseStreamSource :



UdpReceiveResult receiveResult = await _udpClient.ReceiveAsync();
 byte[] bytes = receiveResult.Buffer;
 mseSourceBuffer.AppendBuffer(bytes.AsBuffer());




The MediaPlayerElement displays the message "video not supported or incorrect file name". (not sure of the message, my Windows is in French).



Is it a good idea to use the MseAppendMode.Sequence mode ?
What should I pass to the AppendBuffer method ? The raw udp message including the 12 bytes header or each MPEGTS 188 bytes packet ?


-
Play mp3 data with audiotrack with ffmpeg
1er février 2014, par Ichigo KurosakiI am designing an android app where i receive live mp3 data as stream from Red5 server and i need to play it.
I cant play it using media player class as i don't have any url for the stream, nor i cant use files. Another option is to use Audio track class, but requires PCM data only. So need to convert mp3 to pcm, so using ffmpeg.
My code for conversion is
AVCodec *codec;
AVCodecContext *c= NULL;
int out_size, len;
uint8_t *outbuf;
int iplen=(*env)->GetArrayLength(env, mp3buf);
int16_t inbuf[AUDIO_INBUF_SIZE + FF_INPUT_BUFFER_PADDING_SIZE];
AVPacket avpkt;
av_init_packet(&avpkt);
av_register_all();
avcodec_register_all();
codec = avcodec_find_decoder(CODEC_ID_MP3);
if(!codec){
__android_log_print(ANDROID_LOG_DEBUG, "logfromjni", "Codec not found");
}
c = avcodec_alloc_context();
outbuf = malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE);
avpkt.data = (*env)->GetByteArrayElements(env,mp3buf,NULL);
avpkt.size = (*env)->GetArrayLength(env, mp3buf);
out_size = AVCODEC_MAX_AUDIO_FRAME_SIZE;
int ao=avcodec_open(c, codec);
if (ao < 0) {
__android_log_print(ANDROID_LOG_DEBUG, "logfromjni", "avcodec not open");
}
len = avcodec_decode_audio3(c, (short *)outbuf, &out_size, &avpkt);The Problem is
avcodec_decode_audio3(c, (short *)outbuf, &out_size, &avpkt);
returns -1 always.Cant figure out whats wrong.
Any help appreciated.
-
Why does this HEVC HLS stream not play on browsers ?
22 janvier 2024, par SebastianI have a HEVC HLS stream that does not play when I paste it e.g. in Safari. The video is encoded in HEVC and has a resolution of 4608x1728. The screen just stays black.


The URL is : https://cdn2.taggy.cam/videos/JFNi2a3JVxmUxWh8t6YkbzR5t9HyS94ZaQy81KVrbwJ2ztTp9f/hls/h265/video.m3u8


(or https://cdn2.taggy.cam/videos/JFNi2a3JVxmUxWh8t6YkbzR5t9HyS94ZaQy81KVrbwJ2ztTp9f/hls/h265/playlist.m3u8 for the master playlist)


VLC player does play it.


I tried several different players to get an error message, but the only thing I got was "MEDIA.VIDEO_ERROR (4,,CHUNK_DEMUXER_ERROR_APPEND_FAILED : Video stream codec hevc doesn't match SourceBuffer codecs.)"


The video is initially created with FFMpeg by recording the RTSP stream of a webcam with


ffmpeg -i rtsp://stream -tag:v hvc1 -f hls -hls_time 1 -hls_list_size 0 -hls_segment_filename output-directory/video-%05d.m4s -c copy



Any ideas how to debug this would be appreciated !


Thanks,
Sebastian