
Recherche avancée
Médias (2)
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
Autres articles (98)
-
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 (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, 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 (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (12865)
-
FFmpeg Android concat. "–safe 0" is an invalid argument
18 avril 2020, par AK. BabI am trying to append two .mp4 videos on Android. Following an unsafe file name error with command :



String[] complexCommand = {"ffmpeg", "-f", "concat", "-i", list, "-c", "copy", outputFilePath};




I added the string "–safe 0" as recommended on FFmpeg documentation :



String[] complexCommand = {"ffmpeg", "-f", "concat","–safe 0", "-i", list, "-c", "copy", outputFilePath};




However, FFmpeg does not recognise the command, giving this error message :



Failure with output
 ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
 built with gcc 4.8 (GCC)
 configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
 libavutil 55. 17.103 / 55. 17.103
 libavcodec 57. 24.102 / 57. 24.102
 libavformat 57. 25.100 / 57. 25.100
 libavdevice 57. 0.101 / 57. 0.101
 libavfilter 6. 31.100 / 6. 31.100
 libswscale 4. 0.100 / 4. 0.100
 libswresample 2. 0.101 / 2. 0.101
 libpostproc 54. 0.100 / 54. 0.100
 Unrecognized option ‘–safe 0'.
Error splitting the argument list: Option not found




I have tried various permutations with the type of dash (–) and (-), used, but still get an error. Sometimes, using a certain dash or no dash at all returns a slightly different error message :



Failure with output
I/System.out: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
I/System.out: built with gcc 4.8 (GCC)
I/System.out: configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
I/System.out: libavutil 55. 17.103 / 55. 17.103
 libavcodec 57. 24.102 / 57. 24.102
 libavformat 57. 25.100 / 57. 25.100
 libavdevice 57. 0.101 / 57. 0.101
 libavfilter 6. 31.100 / 6. 31.100
 libswscale 4. 0.100 / 4. 0.100
 libswresample 2. 0.101 / 2. 0.101
 libpostproc 54. 0.100 / 54. 0.100
 Input #0, tty, from '/data/user/0/com.example.cameraapp2/cache/ffmpeg-list1251307830.txt':

Duration: 00:00:00.04, bitrate: 28 kb/s
 Stream #0:0: Video: ansi, pal8, 640x400, 25 fps, 25 tbr, 25 tbn, 25 tbc
 [NULL @ 0xed834600] Unable to find a suitable output format for 'ffmpeg'
 ffmpeg: Invalid argument




However, amendments I make there (such as removing
"ffmpeg"
) haven't resolved the issue.


String
list
is the absolute path of a textfile, generated with code I have copied written by user Marc Plano-Lesay :


private static String generateList(String[] inputs) {
 File list;
 Writer writer = null;
 try {
 list = File.createTempFile("ffmpeg-list", ".txt");
 writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(list)));
 for (String input: inputs) {
 writer.write("file '" + input + "'\n");
 }
 } catch (IOException e) {
 e.printStackTrace();
 return "/";
 } finally {
 try {
 if (writer != null)
 writer.close();
 } catch (IOException ex) {
 ex.printStackTrace();
 }
 }




and here are relevant code snippets that refers to it :



inputFilePath1 = "/storage/emulated/0/Pictures/MyCameraApp/VID_20200416_162058.mp4";
inputFilePath2 = "/storage/emulated/0/Pictures/MyCameraApp/VID_20200418_104909.mp4";




String list = generateList(new String[] {inputFilePath1, inputFilePath2});



Android can usually find the input files just fine, so I'm not sure what's left to try. The error messages above confirm my assumption that I'm running FFmpeg 0.3.1 which should be recent enough.



Thank you for any help.


-
"FFmpeg was not found, spotdl can't continue" even though its installed using sudo apt-get install spotdl + it works if ran from terminal
23 juin 2022, par dank rainbow@bot.command()
async def getsong(ctx, *, songname):
 "get song in mp3 from song name"
 os.popen(f'spotdl {songname} -f "/home/pi/discordbot/output/{songname}.mp3"')
 await ctx.send(file=discord.File(fr'/home/pi/discordbot/output/{songname}.mp3'))



ffmpeg installed with sudo-apt get. works if ran from terminal
how to fix ?


figured it out my self.
working code if it benefits anyone :


@bot.command()
async def getsong(ctx, *, songname):
 "get song in mp3 from song name"
 subprocess.Popen(f'spotdl -o "/home/pi/discordbot/output" --ffmpeg "/usr/bin/ffmpeg" {songname} --path-template "{songname}.mp3"', shell=True)
 await ctx.send(file=discord.File(fr'/home/pi/discordbot/output/{songname}.mp3'))



-
Supported audio and video formats in Windows Store apps
27 décembre 2013, par TheQuestionerI searched a lot on the internet and I know that this problem has been discussed on several forums, but because I am making a media player and I intend to sell it, I fell the need to ask for a more complete answer.
As I understand, this is the list with the audio and video formats available in Windows Store Apps : http://msdn.microsoft.com/en-us/library/windows/apps/hh986969.aspx. This are indeed the most used formats for playing audio and video, but I truly fell the lack of support for the .MKV files. So my questions are :- Will Microsoft include .MKV in that list ? When ?
- Can I somehow include the .MKV codec in my app ? (or other codecs, like .flv)
- If I can't add the MKV codec in my app and Microsoft doesn't intend to add it, is there a way that I can convert the .MKV in , let's say, a .MP4 so that my app can be able to play it ?
I know that I'm not the first that asks this questions, but I didn't find anywhere a good/complete answer or solution to this problem.
In my opinion .MKV in pretty popular already. Searching for media players in the Windows Store I found one which claims that it supports .MKV (but only if you buy it, so I didn't try it). So is this possible ? How ?