
Recherche avancée
Médias (91)
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
-
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 (50)
-
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...) -
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 -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)
Sur d’autres sites (7200)
-
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.


-
-
convert CCTV .264 video to one of common formats (mp4, avi, etc.) via ffmpeg or other cmdline tool
21 mars 2016, par yy502I’ve got a CCTV cam that produces .264 format video clips. These clips plays fine just like any other normal video recording that you would expect on portable devices, but only with it’s manufacture provided App. When played directly using VLC or mplayer, only gray blocks are visible in the picture. I doubt it is propitiatory encoding, but some kind of hardware encoded raw h264 format that I’m just lacking the right combination of arguments/options for playback or convert using ffmpeg.
ffmpeg -i
does report the basic metadata correctly, but also crazy amount of frame errors.... but I know the video can be played fine.The Android App has the following files in its lib folder :
I understand these files are not all for video decoding but also some other feature in the app. I’m just hoping someone could maybe determine what extra lib or option is needed to convert it with ffmpeg. e.g.
libh264ToRGB565.so
could be useful maybe...?This is a screenshot of what to expect from the sample video.
And here is the sample video clip (1.3M, 1280x720p) : http://146.185.145.75/vid.264
(MD5 = 0ae871484b3832984f46e6820b21c673)Any suggestion is appreciated.
-
Work around broken floating point limits on some systems.
14 novembre 2013, par Anton KhirnovWork around broken floating point limits on some systems.
The values of FLT,DBL_MAX,MIN macros on some systems (older musl
libc, some BSD flavours) are not exactly representable, i.e.
(double)DBL_MAX == DBL_MAX is false
This violates (at least some interpretations of) the C99 standard and
breaks code (e.g. in vf_fps) like
double f = DBL_MAX ;
[...]
if (f == DBL_MAX) // f has not been changed yet
[....]