
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (57)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (10852)
-
Adding 'timeout' flag to ffprobe/ffmpeg causes it to fail immediately
15 mai 2021, par user779159If I run
ffprobe -timeout 20 -v trace -print_format json -show_format -show_streams 'http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_2mb.mp4'
, the command fails immediately with aConnection timed out
error even though I set the timeout to 20 seconds. It doesn't wait anywhere near 20 seconds, just exits right away with an exit code of 1. Here's the trace output.


ffprobe version 3.2.2 Copyright (c) 2007-2016 the FFmpeg developers
 built with gcc 6.2.1 (GCC) 20160830
 configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab
 libavutil 55. 34.100 / 55. 34.100
 libavcodec 57. 64.101 / 57. 64.101
 libavformat 57. 56.100 / 57. 56.100
 libavdevice 57. 1.100 / 57. 1.100
 libavfilter 6. 65.100 / 6. 65.100
 libavresample 3. 1. 0 / 3. 1. 0
 libswscale 4. 2.100 / 4. 2.100
 libswresample 2. 3.100 / 2. 3.100
 libpostproc 54. 1.100 / 54. 1.100
{
[http @ 0x5598e7df1e20] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[http @ 0x5598e7df1e20] request: GET /video/mp4/720/big_buck_bunny_720p_2mb.mp4 HTTP/1.1
User-Agent: Lavf/57.56.100
Accept: */*
Range: bytes=0-
Connection: close
Host: www.sample-videos.com
Icy-MetaData: 1


http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_2mb.mp4: Connection timed out

}




If I remove the
-timeout 20
flag the command works fine. How can I getffprobe
to work with timeouts ?

-
Adding 'timeout' flag to ffprobe/ffmpeg causes it to fail immediately
23 janvier 2017, par user779159If I run
ffprobe -timeout 20 -v trace -print_format json -show_format -show_streams 'http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_2mb.mp4'
, the command fails immediately with aConnection timed out
error even though I set the timeout to 20 seconds. It doesn’t wait anywhere near 20 seconds, just exits right away with an exit code of 1. Here’s the trace output.ffprobe version 3.2.2 Copyright (c) 2007-2016 the FFmpeg developers
built with gcc 6.2.1 (GCC) 20160830
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
{
[http @ 0x5598e7df1e20] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[http @ 0x5598e7df1e20] request: GET /video/mp4/720/big_buck_bunny_720p_2mb.mp4 HTTP/1.1
User-Agent: Lavf/57.56.100
Accept: */*
Range: bytes=0-
Connection: close
Host: www.sample-videos.com
Icy-MetaData: 1
http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_2mb.mp4: Connection timed out
}If I remove the
-timeout 20
flag the command works fine. How can I getffprobe
to work with timeouts ? -
Videocapture error : Assertion desc failed at src/libswscale/swscale_internal.h:668 error
1er février 2019, par Alejandro SilvestriVideocapture read give me this error. It started recently when I updated to opencv4. No errors on opencv4 installation. libswscale is up to date, I have libswscale.so.4.8.100.
The code is a simple "open" and "read" video to isolate the problem :
#include<opencv2></opencv2>core.hpp>
#include<opencv2></opencv2>videoio.hpp>
#include<opencv2></opencv2>highgui/highgui.hpp>
#include<string>
#include <iostream>
int main(int argc, char **argv){
cv::VideoCapture video;
std::string filename(argv[1]);
std::cout << "filename " << filename << std::endl;
std::cout << "video.open " << video.open(filename) << std::endl;
union {
char ch[5] = {0};
int i4cc;
} fourcc;
fourcc.i4cc = (int) video.get(cv::CAP_PROP_FOURCC);
std::cout << "Fourcc " << fourcc.ch << std::endl;
cv::Mat frame;
while(true){
std::cout << "video.read " << video.read(frame) << ", Mat.rows " << frame.rows << std::endl;
cv::imshow("imagen", frame);
}
}
</iostream></string>The output is this
filename ../Archivos/Vuelta al Lab Uno 720p.MP4
video.open 1
Fourcc avc1
Assertion desc failed at src/libswscale/swscale_internal.h:668VideoCapture opens the video file, shows fourcc property, and then fails to read first image.
If you ask, video file is fine, I tried with other video files and other video formats, with the same error. These videos play well with ffmpeg.ffplay !
By the way, VideoCapture.read is working fine with webcam. So, it’s not clear where the problem is.
Thank you for your time.