
Recherche avancée
Médias (2)
-
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
Autres articles (45)
-
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 (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
Sur d’autres sites (9067)
-
application using ffmpeg segfaults because of for loop ?
6 décembre 2012, par larvydeI am writing my first ffmpeg application using the tutorial linked to from the ffmpeg.org documentation page [tutorial] [sample]. Here is my initial code :
const char * fnmVideoIn = argv [1];
const char * fnmImageOut = argv [2];
av_register_all ();
// [] Open the file
AVFormatContext * pcxFormat;
if (avformat_open_input (&pcxFormat, fnmVideoIn, NULL, NULL)) {
fprintf (stderr, "Could not open file %s for reading\n",
fnmVideoIn);
return -1;
}
// [] Get stream information
if (avformat_find_stream_info (pcxFormat, NULL) < 0) {
fprintf (stderr, "Could not find stream info\n");
return -1;
}
// [log] print stream info
av_dump_format (pcxFormat, 0, fnmVideoIn, 0);and all is well. The program runs without errors and dumps the video info properly. but then I got to the next step...
...
// [log] print stream info
av_dump_format (pcxFormat, 0, fnmVideoIn, 0);
int ixVideoStream = -1, ixStrm;
for (ixStrm = 0; ixStrm < pcxFormat->nb_streams; ++ixStrm) {
if (pcxFormat->streams [ixStrm]->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
ixVideoStream = ixStrm;
break;
}
}and it exits with a segfault. gdb says :
(gdb) r test.mp4 out
...
Program received signal SIGSEGV, Segmentation fault.
0xb7f572c5 in avformat_open_input () from /usr/lib/libavformat.so.53how is it possible that
avformat_open_input
segfaults because of code added after it is called ? I even tested it with a regular i=0 ; i<100 for-loop and it still segfaults ! is this a bug ? For reference, my system is :$ gcc --version
gcc (GCC) 4.7.0 20120414 (prerelease)
$ uname -srvmpio
Linux 3.3.4-1-ARCH #1 SMP PREEMPT Sat Apr 28 06:04:27 UTC 2012 i686 Intel(R) Core(TM)2 Duo CPU P7450 @ 2.13GHz GenuineIntel GNU/Linux
$ ffmpeg -version
ffmpeg version 0.10.2
built on Mar 17 2012 08:53:01 with gcc 4.6.3
configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-libgsm --enable-libspeex --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-libpulse --enable-gpl --enable-version3 --enable-runtime-cpudetect --disable-debug --disable-static
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100 -
How to fix : GUI application who control a simple command of ffmpeg with python
9 octobre 2019, par maocaI want to make a graphic application with only 2 buttons (start / stop) that allows to launch a subprocess (start) and stop it (stop).
(I’m using Python3, PyQt5 and ffmpeg)
The process captures the screen in a video and save it to an mp4 using the ffmpeg command to launch the POpen command.
To make a clean output of the command, ffmpeg uses ’q’ that I write by stdin.In a simple script it works for me but I can’t get it to work within the buttons.
My knowledge is very basic and as much as I look for information I do not understand what I am doing wrong, I appreciate any comments that let me move on.
This is my code :
import sys
import subprocess
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton
class Ventana(QWidget):
def __init__(self):
super().__init__()
# Button 1
pybutton = QPushButton('REC', self)
pybutton.clicked.connect(self.clickMethodB1)
pybutton.resize(50, 32)
pybutton.move(50, 50)
# BOTON 2
pybutton = QPushButton('STOP', self)
pybutton.clicked.connect(self.clickMethodB2)
pybutton.resize(100, 32)
pybutton.move(150, 50)
self.initUI()
def initUI(self):
self.setGeometry(300, 300, 300, 220)
self.setWindowTitle('FFMPEG')
self.move(800, 400)
self.show()
def clickMethodB1(self):
global ffmpeg
filename_mp4 = 'c://tmp//output.mp4'
print('REC')
command = 'ffmpeg -f dshow -i video="screen-capture-recorder" '+ filename_mp4
ffmpeg = subprocess.Popen(command, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='utf-8', shell=True)
def clickMethodB2(self):
print('STOP')
ffmpeg.stdin.write(str('q'))
if __name__ == '__main__':
app = QApplication(sys.argv)
ex = Ventana()
sys.exit(app.exec_()) -
trying to include ffmpeg in angular electron application - build fails on require()
3 mai 2023, par Blair HolmesI have found a lot of resources for adding ffmpeg to my windows desktop application built with electron from my angular web app but I can't seem to get my project to build when I try and run it.


this is a pretty straight forward tutorial here : https://alexandercleasby.dev/blog/use-ffmpeg-electron


My problem comes in the require statements or when I try to use the modules via import, whenever I try to access the imported modules.


I get errors like this :




Error : ./node_modules/ffprobe-static/index.js Module not found : Error :
Can't resolve 'os' in
'C :\Users\MyUser\source\repos\my-app\my-app-angular-desktop\node_modules\ffprobe-static'
resolve 'os' in
'C :\Users\MyUser\source\repos\my-app\my-app-angular-desktop\node_modules\ffprobe-static'
Parsed request is a module using description file :
C :\Users\MyUser\source\repos\my-app\my-app-angular-desktop\node_modules\ffprobe-static\package.json
(relative path : .)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
looking for modules in C :/Users/MyUser/source/repos/my-app/my-app-angular-desktop
using description file : C :\Users\MyUser\source\repos\my-app\my-app-angular-desktop\package.json
(relative path : .)
Field 'browser' doesn't contain a valid alias configuration
using description file : C :\Users\MyUser\source\repos\my-app\my-app-angular-desktop\package.json
(relative path : ./os)
no extension
Field 'browser' doesn't contain a valid alias configuration
C :\Users\MyUser\source\repos\my-app\my-app-angular-desktop\os doesn't
exist




Should I be trying to build with webpack directly instead of
ng build
? I have never done that with an angular application so I"m not sure what steps I'd need to take.

I'm currently on angluar 11 with webpack 4.44.2.