
Recherche avancée
Autres articles (83)
-
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 (14468)
-
Replace blank spaces from arguments to run command
12 août 2017, par ChrisBlpI’m using Runtime.getRuntime.exec(String) to cut some songs with ffmpeg.
But when my song has a name with a blankspace it doesn’t work ...So before I cut the song, I want to replace every blank space of my songs by "\ ".
I did that :
String in = directory+songs.get(i);
String out = directory+"trimed_"+songs.get(i);
in.replaceAll(" "," \\ ");
out.replaceAll(" ", "\\ ");
String str = "ffmpeg -t 1 -i "+in+" -vcodec copy "+out;
Runtime.getRuntime().exec(str);But it doesn’t replace anything at all when I print str, am I missing something ?
Update : I tried every ideas given bellow and I didn’t find a way to fix the problem. Hence, I replaced the blankspaces by "_" and it’s working great.
-
Ffmpeg : alternating audio languages in resulting movie for language learning
20 novembre 2020, par almachuar- 

- Need to convert multiple-(audio)-language-video to single-audio-stream-video where 2 languages alternate repeatedly.
(10sec Lang2) + (15sec Lang3) + (10sec Lang2) + (15sec Lang3) + ... and so on till the end.
I assume it should be done with piping in and changing audio streams. (I've read ffmpeg piping documentation but didn't quite understand it).




I've done audio switching task (with scripting on Windows) by lively changing audio languages in video player but need better and crossplatform solution for little kid - preprepared video.


- 

- If possible, to adjust loudness of one of the input audio streams to the other.




P.S. Think it would be useful for many married (programmers) to show little kids bilingual cartoons. (To prepare for language learning). By balancing 10/15 sec you may retain kid's attention — the older they grow the more native language they demand.


Irrelevant, just for what's my experience :

%ffmpeg% -y -f concat -safe 0 -i %playlist% -i %picture% -map:v 0 -map:v 1 -c:v copy -disposition:v:0 attached_pic -ac 1 -af aresample=resampler=soxr -ar 16000 -%title% -%album% -%artist% %lyrics% -c:a aac -q:a 1 %output%

-
Extracting MP3 Data from Generic Movie Files using FFMPEG
21 février 2017, par MoonKnightI am using FFMPEG via MediaToolkit to extract MP3 data (to .mp3 file) from different movie files (merely .mp4 and .mov for now).
MediaToolkit is just a C# wrapper for FFMPEG which calls FFMPEG via
Process.Start
, so to do this I am using the methodpublic static string GenerateMp3FromVideoFile(string filePath)
{
string mp3Path = String.Empty;
using (var engine = new Engine())
{
mp3Path = Path.GetFileNameWithoutExtension(filePath);
mp3Path = Path.Combine(Utils.GetBuildRoamingAppDataDirectory(), mp3Path);
mp3Path = Path.ChangeExtension(mp3Path, ".mp3");
string paramString = String.Format(
//"-i \"{0}\" -q:a 0 -map a \"{1}\"",
//"-i \"{0}\" -ar 320K \"{1}\"",
//"-i \"{0}\" -acodec libmp3lame -ar 44100 -b:a 192k -id3v2_version 3 -write_id3v1 1 \"{1}\"",
//"-i \"{0}\" -vn -ar 44100 -ac 2 -ab 192k -f mp3 \"{1}\"",
"-i \"{0}\" -acodec libmp3lame \"{1}\"",
filePath,
mp3Path);
engine.CustomCommand(paramString);
}
return mp3Path;
}All of the options I have tried above for the command line arguments passed to FFMPEG have worked for .mp4 video files and create the desired .mp3 output. However, for the .mov file I have I am getting the following
System.Exception
69 : video:0kB audio:1059kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : 0.030074%Conversion failed !
I have tried a number of different methods to perform this extraction with varing control via the arguments passed to FFMPEG, but with no luck for the .mov file.
Looking at https://linuxconfig.org/ffmpeg-audio-format-conversions it seems as though there is not conversion to MP3 from .mov files, so I have looked at first converting the .mov to .mp4 via
ffmpeg -i mymovie.mov -vcodec copy -acodec copy out.mp4
and then extracting the audio, but this is expensive for large files. Is there a way of extracting the MP3 data directly from the .mov file ?
Thanks for your time.
When the above command is run from FFMPEG.exe, the output is :
[aac @ 00000000021b00a0] Inconsistent channel configuration.
[aac @ 00000000021b00a0] get_buffer() failed
Error while decoding stream #0:1 : Invalid argument
[aac @ 00000000021b00a0] Reserved bit set.
[aac @ 00000000021b00a0] Number of bands (6) exceeds limit (5).
Error while decoding stream #0:1 : Invalid data found when processing input
[aac @ 00000000021b00a0] Number of bands (16) exceeds limit (13).
Error while decoding stream #0:1 : Invalid data found when processing input
[aac @ 00000000021b00a0] channel element 3.7 is not allocated
Error while decoding stream #0:1 : Invalid data found when processing input
[aac @ 00000000021b00a0] channel element 3.8 is not allocated
Error while decoding stream #0:1 : Invalid data found when processing input
[aac @ 00000000021b00a0] Reserved bit set.
[aac @ 00000000021b00a0] TNS filter order 28 is greater than maximum 12.
Error while decoding stream #0:1 : Invalid data found when processing input
[aac @ 00000000021b00a0] Number of bands (26) exceeds limit (18).
Error while decoding stream #0:1 : Invalid data found when processing input
[aac @ 00000000021b00a0] Sample rate index in program config element does not match the sample rate index configured by
the container.
[aac @ 00000000021b00a0] Too large remapped id is not implemented. Update your FFmpeg version to the newest one from Git
. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 00000000021b00a0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and cont
act the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
Error while decoding stream #0:1 : Not yet implemented in FFmpeg, patches welcome
[aac @ 00000000021b00a0] Reserved bit set.
[aac @ 00000000021b00a0] Prediction is not allowed in AAC-LC.
Error while decoding stream #0:1 : Invalid data found when processing input
[aac @ 00000000021b00a0] Reserved bit set.
[aac @ 00000000021b00a0] ms_present = 3 is reserved.
Error while decoding stream #0:1 : Invalid data found when processing input
[aac @ 00000000021b00a0] Number of bands (3) exceeds limit (2).
Error while decoding stream #0:1 : Invalid data found when processing input
[aac @ 00000000021b00a0] SBR was found before the first channel element.
[aac @ 00000000021b00a0] channel element 3.14 is not allocated
Error while decoding stream #0:1 : Invalid data found when processing input
[aac @ 00000000021b00a0] Sample rate index in program config element does not match the sample rate index configured by
the container.