
Recherche avancée
Médias (1)
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
Autres articles (54)
-
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 ) (...) -
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)
Sur d’autres sites (6891)
-
How render latex fonts and formulas in Cairo C ?
15 octobre 2020, par KarlI've tried the next steps :


- 

- A standalone tex file :




\documentclass[preview]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}
\begin{document}

\[ \sum_{i=1}^{n}i^3=\left( \sum_{i=1}^{n}i \right)^2 \]

\end{document}



- 

- I've compiled with this :




latex file.tex



It means :
pdfTeX Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=latex)
to got thedvi
file.

- 

- Transform my
dvi
tosvg
with the next :




dvisvgm --libgs=/usr/local/Cellar/ghostscript/9.53.3/lib/libgs.9.53.dylib file.dvi



Here I got the first trouble


When I open my
svg
it render with fake symbols inChrome
, but inSafari
I obtain a success with it. However I discard that and I continue with Cairo.

#include 
#include <librsvg></librsvg>rsvg.h>
#include 

int main(void){

 cairo_surface_t *surface;
 cairo_t *cr;
 RsvgHandle *handle;

 /* Code */

 if( (handle = rsvg_handle_new_from_file("file.svg", NULL)) == NULL ){
 printf("Error trying to load a SVG file\n");
 }

 if( rsvg_handle_render_cairo(handle, cr) != TRUE ){
 printf("Error trying to draw a SVG file\n");
 }

 cairo_surface_write_to_png(surface, "image.png");
 cairo_destroy(cr);
 cairo_surface_destroy(surface);

 return 0;

}



And I render this :




That symbols are the same in
Chrome
. When I open mysvg
it looks at last lines like this :

<text class="'f1'" x="'138.107022'" y="'-25.204175'">n</text>
<text class="'f4'" x="'133.374191'" y="'-22.215398'"></text>
<text class="'f1'" x="'134.116478'" y="'-0.996264'">i</text>
<text class="'f3'" x="'136.935205'" y="'-0.996264'">=1</text>
<text class="'f0'" x="'149.425099'" y="'-12.750829'">i</text>
<text class="'f3'" x="'152.857357'" y="'-16.864325'">3</text>
<text class="'f2'" x="'160.09406'" y="'-12.750829'">=</text>
<text class="'f4'" x="'170.610139'" y="'-29.787102'"></text>
<text class="'f1'" x="'183.230082'" y="'-25.204175'">n</text>
<text class="'f4'" x="'178.49725'" y="'-22.215398'"></text>
<text class="'f1'" x="'179.239538'" y="'-0.996264'">i</text>
<text class="'f3'" x="'182.058265'" y="'-0.996264'">=1</text>
<text class="'f0'" x="'194.548158'" y="'-12.750829'">i</text>
<text class="'f4'" x="'197.980417'" y="'-29.787102'"></text>
<text class="'f3'" x="'205.867527'" y="'-27.722624'">2</text>



So something fail.


In the other hand I'de like to say that
pig-config --cflags librsvg-2.0
shows the right output but when I read the Headers there's aWARNING
there about Cairo users :

#if !defined (__RSVG_RSVG_H_INSIDE__) && !defined (RSVG_COMPILATION)
#warning "Including <librsvg></librsvg>rsvg-cairo.h> directly is deprecated."
#endif

#ifndef RSVG_CAIRO_H
#define RSVG_CAIRO_H

#include 



And that's the reason to include
rsvg
header instead ofCairo-svg
cause it includes that yet :

#ifndef RSVG_H
#define RSVG_H

#define __RSVG_RSVG_H_INSIDE__

#include 
#include <gio></gio>gio.h>

#include 
#include gdk-pixbuf.h>

G_BEGIN_DECLS

/* Code and Defs */

G_END_DECLS

#include "librsvg-features.h"
#include "rsvg-cairo.h"




But there's no any documentation about it.


And the last question :


What's the best way to render a latex formula in a mp4 video format ?


I mean, I've tried with Cairo and then put it in a video. but There's better results rendering that formula directly with
FFMPEG
? I found some results withpython
but sincerely I'm tired with it. I'm looking for different ways. The purpose in this : UseC
code.

-
FFMPEG Ringing Artifact in Bicubic Filtering
14 avril 2018, par Pedro PereiraSo I am trying to replicate the image processing of ffmpeg to understand it fully. I am focused in the scaling methods right now. I implemented the nearest neighbor and bilinear interpolation resampling with no problems. My results are exactly the same as ffmpeg’s.
The problem is in the bicubic interpolation. The results of my implementation have better quality than the ffmpeg’s, as in, my results do not have the ringing artifact that appears in ffmpeg’s results as shows in the following figure.
Since I used the exact same coefficients from the ffmpeg’s implementation, retrieved from the following method :
FFMPEG Bicubic Interpolation Coefficients Formula
To be more specific, from here :
Why does my results do not have the ringing artifact ?
-
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.