
Recherche avancée
Médias (3)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (77)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (7651)
-
Streaming engines best practice in C
20 novembre 2014, par ashLANG : C / ENV : Linux
I am developing a streaming engine, for now I am able to start, stop and pause the stream, but seeking is the operation that’s giving me a lot of headache, I already asked a question here before and fixed some issues inside the code from the answers.
Using lseek() function, I am passing the open streaming file descriptor as first argument, plus I am using UDP for transmitting, something like the following code :
transport_fd = open(tsfile, O_RDONLY);
int offset = 1024;
off_t offsetIndicator;
if ((offsetIndicator=lseek(transport_fd, offset, SEEK_CUR))<0) printf("Error seeking\n");Whenever I try to seek while streaming, the streaming stops and the pictures hangs.
Is there anything I should pay attention to ?, i.e : like attempting to sleep() or nanosleep() after seeking into the file in order for the changes to take effect.
I couldn’t find examples, papers or realted articles for best practices in such engines.
EDIT :
After testing, it seems like the file continued to stream but receiving devices on the network didn’t catch the stream connection anymore, and calculating the time it took to finish after subtract seeking time, the stream seems to be finished normally.
CODE SNIPPET :
while (!completed)
{
while (/* Comparing conditions */ && !completed)
{
if (seekLck == 1) // seekLck is a semaphore to test seek signal from father process initiated by 0
{
int offset = 1024;
off_t offsetIndicator;
if ((offsetIndicator=lseek(transport_fd, offset, SEEK_CUR))<0)
printf("Error seeking\n");
nanosleep(&nano_sleep_packet, 0); //Try to sleep to see if it is still hanging, didn't work
seekLck = 0;
}
len = read(transport_fd, send_buf, packet_size);
if(len < 0) {
fprintf(stderr, "File read error \n");
completed = 1;
}
else if (len == 0)
{
fprintf(stderr, "Sent done\n");
completed = 1;
}
else
{
sent = sendto(sockfdstr, send_buf, len, 0, (struct sockaddr *)&addr, sizeof(struct sockaddr_in));
if(sent <= 0)
{
perror("send(): error ");
completed = 1;
}
}
}
nanosleep(&nano_sleep_packet, 0);
}
close(transport_fd);
close(sockfdstr);
free(send_buf);
printf("cleaning up\n");
return 0;
} -
node js (or other) as streaming server
20 décembre 2013, par Abdul AliApologies if a simple question but cannot find anything helpful . Am also new to the streaming concept.
Goal is to set up a server which keeps on listening for data on a speific port. The user will be sending sequence of images from their iphone (# of images unknown).
when the data is receieved, ffmpeg should start to get data from that port (as input) and send those images to ffserver to be streamed as a live video.
did try Nginx-Rtmp module but the iphone developer have informed that in iphone, only ip and port can be given to open a stream (and no other part of the url can be given e.g. streamname and application name in case of nginx-rtmp)
Any help and guide will be appreciatd that what can be used to set up a free and very simple sever that simply receives the images which ffmpeg can capture and send to ffserver .
-
libx264 fails on HTTP Live Streaming (FFmpeg)
12 juillet 2016, par shintaroidI want to live stream with
HTTP Live Streaming
, but I have problem withlibx264
or maybe something other.My hardware and software environment :
- Macbook Pro
- VirtualBox with Ubuntu 16.04
Nginx
andFFmpeg
(in Ubuntu)
I am able to stream a static video file (in Ubuntu with Nginx and FFmpeg).
TheFFmpeg
command is as following :$ffmpeg -i /my/sample/video.mp4 -codec:v libx264 -f hls /output/file.m3u8
But when it comes to webcam (live streaming), Mac OS Safari fails to open the stream. I used the following command :
$ffmpeg -i /dev/video0 -codec:v libx264 -f hls /output/file.m3u8
I guess it’s the problem of
libx264
because when I usempeg2video
encoder, Mac OS Safari indeed can play the stream :$ffmpeg -i /dev/video0 -codec:v mpeg2video -f hls /output/file.m3u8
I know there is a library called
video4linux2
, should I use video4linux2 for capturing my webcam ? But I don’t know the appropriateFFmpeg
command for HTTP Live Streaming (I tried FFserver but there is error something likecannot rename hls
)anyone shed some light on my problem ?