
Recherche avancée
Autres articles (60)
-
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 ;
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)
Sur d’autres sites (6222)
-
Mingw-w64 - printf does not work
27 décembre 2013, par Gosha U.First I wanted to modificate ffplay according to my requirments. Then I noticed that original ffplay from my build can't play some video files, but it didn't write any message to console. Then I noticed that ffmpeg also don't write any usage message when I run it without params. But it works. If I run it from terminal it's like running asynchronously ! The terminal just shows next row. I mean it asks for a next command. But the
ffmpeg
process is visible in task manager and it writes the output video file what I had requested !I created following souce file. I have modified the Makefile. So it have built the exe-file works just the same way. I have no idea how it can be.
#include
#include "cmdutils.h"
const char program_name[] = "hello";
const int program_birth_year = 2013;
void show_help_default(const char *opt, const char *arg)
{
printf("zxcvbnm\n");
}
int main(int argc, char **argv)
{
printf("1234567890\n");
return 0;
}And after that I created real hello world app with MinGW-w64 and qmake without eny extra libs. And its printf does not work.
I want to prevent this behavior.
I want to make printf working in traditional manner.
How I build FFmpeg :
PKG_CONFIG_PATH=/home/developer/workspace/MinGW32fs/lib/pkgconfig/ \
SDL_CONFIG=/home/developer/workspace/MinGW32fs/bin/sdl-config \
./configure \
--prefix=/home/developer/workspace/MinGW32fs \
--extra-ldflags="-L/home/developer/workspace/MinGW32fs/lib" \
--extra-cflags="-I/home/developer/workspace/MinGW32fs/include" \
--arch=x86 --target-os=mingw32 --cross-prefix=i686-w64-mingw32- \
--pkg-config=pkg-config --enable-libtheora --enable-libvorbis --enable-libvpx \
--enable-outdev=sdl --enable-shared --disable-static \
--disable-doc --disable-manpages --disable-podpages
make -
ffmpeg - escaping single quotes doesn't work [duplicate]
18 septembre 2022, par XorOrNorI've written a small python script for mass converting audio files. It uses ffmpeg. The problem is it doesn't work for files with single quotes in their filenames.


script :



import os
import subprocess
import sys
from multiprocessing.pool import ThreadPool as Pool

source_dir="/home/kris/Music/test"
output_dir="/home/kris/Music/test_opus"

def worker(file):

 try: 
 dirname=os.path.dirname(file)
 file=file.replace("'","\\\\'")
 filename=file.split('.flac')[0]
 
 input_file=f"'{source_dir}/{file}'"
 output_file=f"'{output_dir}/{filename}.opus'"
 cmd="ffmpeg -n -i "+input_file+" -c:a libopus -b:a 320k "+output_file
 print(cmd)
 result = subprocess.call(cmd,stdout=subprocess.PIPE,shell=True)
 except:
 print('item error')
 

def start(): 
 threads=os.cpu_count() 
 pool = Pool(threads)
 files=os.listdir(source_dir)
 for item in files:
 pool.apply_async(worker, (item,))

 pool.close()
 pool.join()
 
start()




Testing :


- 

-
Filename :
I'm a file.flac


-
When escaping single quote
'
with double backslashes\\
-file=file.replace("'","\\\\'")
the cmd for ffmpeg is :







ffmpeg -n -i '/home/kris/Music/test/I\\'m a file.flac' -c:a libopus -b:a 320k '/home/kris/Music/test_opus/I\\'m a file.opus'



ffmpeg returns an error :
/home/kris/Music/test/I\\m: No such file or directory


- 

- When escaping single quote
'
with a single backslash\
-file=file.replace("'","\\'")
the cmd for ffmpeg is :




ffmpeg -n -i '/home/kris/Music/test/I\'m a file.flac' -c:a libopus -b:a 320k '/home/kris/Music/test_opus/I\'m a file.opus'



I got an error :


/bin/sh: 1: Syntax error: Unterminated quoted string



According to ffmpeg docs : https://ffmpeg.org/ffmpeg-utils.html#toc-Examples escaping with single backslash should work.


-
-
Revision d068d869b9 : sb8x8 integration in rd loop. Work-in-progress, not yet ready for review. TODO
1er mai 2013, par Ronald S. BultjeChanged Paths :
Modify /vp9/common/vp9_blockd.h
Modify /vp9/common/vp9_entropymode.c
Modify /vp9/common/vp9_entropymode.h
Modify /vp9/common/vp9_enums.h
Modify /vp9/common/vp9_findnearmv.h
Modify /vp9/common/vp9_loopfilter.c
Modify /vp9/common/vp9_onyxc_int.h
Modify /vp9/common/vp9_reconinter.c
Modify /vp9/decoder/vp9_decodemv.c
Modify /vp9/decoder/vp9_decodframe.c
Modify /vp9/encoder/vp9_bitstream.c
Modify /vp9/encoder/vp9_block.h
Modify /vp9/encoder/vp9_encodeframe.c
Modify /vp9/encoder/vp9_encodeintra.c
Modify /vp9/encoder/vp9_encodeintra.h
Modify /vp9/encoder/vp9_encodemb.c
Modify /vp9/encoder/vp9_encodemb.h
Modify /vp9/encoder/vp9_modecosts.c
Modify /vp9/encoder/vp9_onyx_if.c
Modify /vp9/encoder/vp9_onyx_int.h
Modify /vp9/encoder/vp9_quantize.c
Modify /vp9/encoder/vp9_ratectrl.c
Modify /vp9/encoder/vp9_rdopt.c
Modify /vp9/encoder/vp9_rdopt.h
Modify /vp9/encoder/vp9_segmentation.c
Modify /vp9/encoder/vp9_tokenize.c
sb8x8 integration in rd loop.Work-in-progress, not yet ready for review. TODO items :
bitstream writing (encoder) and reading (decoder)
decoder reconstruction
Change-Id : I5afb7284e7e0480847b47cd0097cb469433c9081