
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (79)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (7796)
-
ffplay does not exit in forked child
6 septembre 2019, par user12030145ffplay -autoexit
does not exit in a forked childI need to pipe my application (stdout) to
ffplay
(stdin). I do this by forkingffplay
as a child and using-i pipe:0
as argument.#include
#include
#include <sys></sys>types.h>
#include <sys></sys>wait.h>
int main(int argc, const char** argv)
{
int tube[2];
int c;
FILE* f = fopen(argv[1], "rb");
pid_t pid;
if (argc < 2) return -1;
if (pipe(tube)) {
perror("Pipe");
return -1;
}
// main process cats a .mlp file to stdout, sent to a child ffplay stdin through a pipe
char* const arg[] = {"-i", "pipe:0", "-f", "mlp", "-nodisp", "-autoexit", NULL};
switch (pid = fork()) {
case -1:
fprintf(stderr,"%s\n", "Could not launch ffplay");
break;
case 0:
close(tube[1]);
dup2(tube[0], STDIN_FILENO);
execv("/usr/bin/ffplay", arg);
fprintf(stderr, "%s\n", "Runtime failure in ffplay child process");
return -2;
default:
close(tube[0]);
dup2(tube[1], STDOUT_FILENO);
}
// Here the main process code sending the .mlp file to stdout...
while ((c = fgetc(f)) != EOF) putchar(c);
waitpid(pid, NULL, 0);
fclose(f);
// main never returns
return 0;
}The issue is that in this context,
ffplay -autoexit
never exits (GNU-Linux platform). In a main process,ffplay -autoexit
always exits at the end of a media file.
Is there a pure C workaround without usingsystem
,popen
or scripting ?
Is this a feature or a bug offfplay
(I cannot tell) ? -
youtube-dl doesn't see ffmpeg in the executable
30 novembre 2019, par Михаил МуратовI am writing a program to download music and videos via youtube-dl in python. Next, I pack the script into an executable file via pyinstaller.
The problem is that youtube-dl (in the executable) doesn’t see ffmpeg and ffprobe, even though I add them to the spec file.
As far as I know youtube-dl has the
ffmpeg_location
parameter, but that’s only in the console version. Maybe it is also for python ? But I didn’t find any information about it.How do I solve the problem ?
command to create executable :
pyinstaller --upx-dir=c:\users\exe-builder c:\users\exe-builder\youtubedownloader\main.spec
.spec file :
# -*- mode: python -*
block_cipher = None
a = Analysis(['C:\\Users\\Exe-Builder\\YoutubeDownloader\\main.py'],
pathex=['C:\\Users\\Exe-Builder\\YoutubeDownloader'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
a.binaries += [('ffmpeg.exe','C:\\Users\\Exe-Builder\\YoutubeDownloader\\ffmpeg.exe', "Binary"),
('ffprobe.exe','C:\\Users\\Exe-Builder\\YoutubeDownloader\\ffprobe.exe', "Binary")]
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='MediaDownloader',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=['vcruntime140.dll'],
runtime_tmpdir=None,
console=True)very small example :
import youtube_dl
url = 'https://www.youtube.com/watch?v=MIk55C1s0ns'
outtmpl = '\\%(title)s.%(ext)s'
ydl_opts = {'format': 'bestaudio/best',
'outtmpl': outtmpl,
'postprocessors': [{'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '128'}]}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
info_dict = ydl.extract_info(url, download=True)error message :
youtube_dl.utils.DownloadError: ERROR: ffprobe/avprobe and ffmpeg/avconv not found. Please install one.
-
converting complex ffmpeg command to python3
14 janvier 2020, par MartinI have a complicated
ffmpeg
command that takes audio and image as input, and exports a music video.ffmpeg -loop 1 -framerate 2 -i "front.png" -i "testWAVfile.wav" \
-vf "scale=2*trunc(iw/2):2*trunc(ih/2),setsar=1,format=yuv420p" \
-c:v libx264 -preset medium -tune stillimage \
-crf 18 -c:a aac -shortest -vf scale=1920:1080 "outputVideo.mp4"I’m trying to write a python3 program
cmdMusicVideo.py
which will run this command in pure Python. I know that to run this command you need theffmpeg
program, I’m trying to write it in pure python3, where I’m not just spawning a separate process to run the bash command where the user needs to haveffmpeg
installed.I’ve looked at the various solutions to running
ffmpeg
in python3, and they’re either :- A : Just running the
ffmpeg
command as a subprocess, where the user needs to haveffmpeg
installed - or B : An ffmpeg pip program like
ffmpeg-python
The pip libraries I’ve checkout out all use incredibly different formatting, and I haven’t found a way to replicate my
ffmpeg
command. I’ve searched theloop
command in their python package documentation and it doesn’t appear anywhere.Is there a way to convert my
ffmpeg
command into a python3 program where the user doesn’t need to already haveffmpeg
installed on their computer ?The plan is to eventually turn this into its own pip package, and my concern is that if I use the A method, there would be a case where somebody tries to run my pip command but doesn’t have
ffmpeg
installed on their terminal (maybe using a python3 specific terminal ?) - A : Just running the