
Recherche avancée
Médias (91)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
avec chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
sans chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
config chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (77)
-
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 (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (7895)
-
What FFMPEG return when camera is disabled (unplug)
21 août 2017, par hungI use FFMPEG to connect to a IP camera via RTSP stream. I try to detect if connection is lost. I create timeout with interrupt_callback, and check the output of av_read_frame(), sometime it work and can reconnect to camera. But if I disable the camera (unplug the network cable), it’s blocked and pause forever.
Hope someone has similar issue and can help me.
Here what I try :Setting for interrupt_callback :
ifmt_ctx = avformat_alloc_context();
ifmt_ctx->interrupt_callback.callback = interruptCallback;
ifmt_ctx->interrupt_callback.opaque = this;
if ((ret = avformat_open_input(&ifmt_ctx, in_file, 0, &options)) != 0) {
log.error("Could not open input stream {}", in_file);
return 1;
}interrupt_callback function :
int CtFfmpeg::interruptCallback(void *ctx)
{
CtFfmpeg* camera = reinterpret_cast(ctx);
struct tm *tm;
time_t now;
now = time(0);
tm = localtime (&now);
int nowTime_callback = tm->tm_sec;
if ((nowTime_callback - camera->initTime_callback) > 15) { //Timeout after 20 seconds
Logger log{__func__};
log.error("Time out");
return 1;
}
return 0;
}Try to restart connection :
ff->ret = av_read_frame(ff->ifmt_ctx, &(ff->tmp_pkt));
if (ff->ret < 0){
// do restart here
} -
How to capture UDP packets from ffmpeg with Wireshark ?
15 septembre 2017, par Davis8988I have 2 laptops connected via LAN cable and static ip’s (v4).
I use ffmpeg to capture desktop from laptop1 and stream it to laptop2 :ffmpeg -y -rtbufsize 100M -f gdigrab -framerate 30 -probesize 10M -draw_mouse 1
-i desktop -c:v libx264 -r 30 -preset Medium -tune zerolatency -crf 25 -f mpegts
udp://150.50.1.2:1080And I use ffplay to recieve the stream on laptop2 and play it and it works - I can see laptop1’s desktop :
ffplay -fflags nobuffer -sync ext udp://127.0.0.1:1080
Now I want also to capture the udp packets sent by ffmpeg to laptop2 via Wireshark(I start Wireshark on laptop2).
But when I start Wireshark and press "capture" - I don’t see any packets beeing sent from the ip (as source) of laptop1. I see some few lines in Wireshark beeing added every 1 minute or so but from different ip’s.Why I can’t see the stream sent by ffmpeg in laptop1 to laptop2 ?
-
Record UDP stream with ffmpeg video+klv-data
26 septembre 2017, par mfreiholzI’d like to record an MPEGTS UDP stream with ffmpeg binary to disk.
This works in a stable network :
ffmpeg.exe -i "udp://224.10.10.10:15006?multicast=1&timeout=360000000&reuse=1" -f mpegts -map 0:0? -map 0:1? -map 0:2? -c copy "C:/test.ts"
The entire stream is saved to test.ts.
Live Environment
In my live environment it is possible that the connection is very bad or is not available at all (cable disconnect, device reboot, ...) for a few minutes. I want ffmpeg to simply continue writing upcoming frames to *.ts file. I don’t need the lost frames.
Currently the following errors appears, if there was a too long brake between UDP frames :
[mpegts @ 00000000003cf920] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 11606399 >= 2084534
av_interleaved_write_frame(): Invalid argumentIt looks like to be a problem with the timestamp. My idea would be to tell FFMPEG to ignore those errors and simply continue.
Is it even possible with the ffmpeg binary or do I have to solve the problem with a custom C/C++ implementation using the library ?
Thank you
Update 1
If I only record the video stream
-map 0:0?
and not the others it seems to work. Looks like the problem is associated with the second stream (No.1) which is KLV encoded data.