
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (12)
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Taille des images et des logos définissables
9 février 2011, parDans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...) -
Configuration spécifique d’Apache
4 février 2011, parModules spécifiques
Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
Création d’un (...)
Sur d’autres sites (3680)
-
discord.py FFMPEG Option reconnect not found
19 avril 2021, par LukeleleI'm working on a music bot using discord.py, I've looked online and found that I needed to pass in ffmpeg options into discord.FFmpegPCMAudio() for the bot to not stop half way through the song. However it returns an error "Option reconnect not found."


vc = await ctx.message.author.voice.channel.connect()

ydl_opts = {
 'format': 'bestaudio/best',
 'outtmpl': 'C:/Luke/YoutubeDLAudio/audio.mp3',
 'postprocessors': [{
 'key': 'FFmpegExtractAudio',
 'preferredcodec': 'mp3',
 'preferredquality': '192'
 }],
 'prefer_ffmpeg': True,
 'keepvideo': True
}

ffmpeg_opts = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5','options': '-vn'} # <---------------

with youtube_dl.YoutubeDL(ydl_opts) as ydl:
 ydl.download([url])

vc.play(discord.FFmpegPCMAudio(executable="C:/Luke/ffmpeg/bin/ffmpeg.exe", source="C:/Luke/YoutubeDLAudio/audio.mp3", **ffmpeg_opts)) <--------------



Does anyone know the problem ? Thanks for any help.


-
Open .avi with OpenCV 2.4 & Ubuntu 11.04
25 juin 2012, par CTZStefI try to open and read video files in .avi format using OpenCV. Here is my code :
void MainWindow::on_actionOuvrir_fichier_triggered()
140 + {
141 + //mettre a -1 streamId
142 + streamId = -1;
143 + //ouvrir fenetre navigation fichiers pour recuperer path vers .avi
144 + QString fileName = QFileDialog::getOpenFileName(this,tr("Ouvrir fichier video"),"/home",
145 + tr("Videos (*.avi)"));
146 + std::string utf8_text = fileName.toUtf8().constData();
147 + //ouvrir .avi
148 + capture = new VideoCapture(utf8_text);
149 + //check ouverture
150 + if(!capture->isOpened())
151 + cout << "probleme ouverture fichier video" << endl;
152 + //calculer delay between each frame in ms
153 + rate = capture->get(CV_CAP_PROP_FPS);
154 + delay = 1000 / rate;
155 + //demarrer timer recordId
156 + recordId = startTimer(delay);
157 + //capture premiere frame
158 + if(!capture->read(in))
159 + cout << "probleme lecture frame fichier video" << endl;
160 + }I get no problem at compilation time, but I can't open a video file. While in debug mode I saw that string utf8_text had the good absolute path to my video, so obviously the problem comes from the constructor of the VideoCapture object. Then, I tried to install every codec pack I could or thought was relevant. But the problem is still there, capture->isOpened() still returns false, and in debug mode I can see that capture contains nothing.
I am lost here, don't know what to try next. Any idea ??
Thanks !!!
[EDIT]
Just in case, here is the output of ffmpeg -i myFile.avifaraday@faraday-Compaq-Evo-D510-e-pc:~/QtProjects/visionDev$ ffmpeg -i 1.avi
FFmpeg version 0.6.6-4:0.6.6-0ubuntu0.11.04.1, Copyright (c) 2000-2010 the Libav developers
built on Jun 12 2012 16:28:21 with gcc 4.5.2
configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
WARNING: library configuration mismatch
libavutil configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
libavcodec configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
libavformat configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
libavdevice configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
libavfilter configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
libswscale configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
libpostproc configuration: --extra-version=4:0.6.6-0ubuntu0.11.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, avi, from '1.avi':
Duration: 00:02:35.39, start: 0.000000, bitrate: 110595 kb/s
Stream #0.0: Video: rawvideo, bgr24, 640x480, 15 tbr, 15 tbn, 15 tbc
At least one output file must be specifiedI do not see anything wrong here, but I thought maybe someone will.
I really need this to work soon, and right now it's a dead end...
thanks
[EDIT 2]
I have just read this in the book OpenCV 2 Computer Vision Application Programming Cookbook by R. Laganiere :
It is important to note that in order to open the specified video
file, your computer must have the corresponding codec installed,
otherwise cv::VideoCapture will not be able to understand the input
file. Normally, if you are able to open your video file with a video
player on your machine (such as the Windows Media Player), then OpenCV
should also be able to read this file.Well, on my machine it is not that easy mister Laganiere... I hate this book.
-
Convert .MOV video format to .mp4 format
15 décembre 2015, par Nimesh ChandramaniyaI am developing an Android app, for which I need to convert videos with .MOV file extension (captured on iOS device) to .mp4 file extension. I tried changing the extension of the file via code (i.e. from MOV to mp4) but this approach didn’t work.
During my research I came across FFMPEG framework to work with different video file formats and I have the following questions :
- Is it possible to convert video file format using FFMPEG framework ? If yes, are there any online tutorials available on how to use this framework in Android ?
- Are there any Android API using which I can use to retrieve raw data (uncompressed) of any video file ? (If I can retrieve raw data, it’s easier to convert it to a desired file format)
I’d appreciate any suggestions on this issue. Thank you in advance.