
Advanced search
Medias (1)
-
Rennes Emotion Map 2010-11
19 October 2011, by
Updated: July 2013
Language: français
Type: Text
Other articles (77)
-
MediaSPIP version 0.1 Beta
16 April 2011, byMediaSPIP 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 (...) -
MediaSPIP 0.1 Beta version
25 April 2011, byMediaSPIP 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 (...) -
Amélioration de la version de base
13 September 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 (...)
On other websites (9842)
-
Bash script to recursive find and convert movies
24 March, by Jaccoin my large movie collection I would like to search for movies with the primary (first) audio track with DTS coding to be converted to Dolby.


My problem would be the first track I think. My current bash script will list any movie containing a DTS track, but does not specify which track.


#!/bin/bash
# My message to create DTS list
find /home/Movies -name '*.mkv' | while read f
do
if mediainfo "$f" | grep A_DTS; then
echo $f 
fi
done



After that I would like to run this command


ffmpeg -i $f -map 0:v -map 0:a:0 -map 0:a -map 0:s -c:v copy -c:a copy -c:s copy -c:a:0 ac3 -b:a:0 640k $f



or is there a way to move all the audio tracks down and adding the new AAC track?


###Progress


Thanks to @llogan I have finetuned the bash to find the required files.


#!/bin/bash
# My DTS conversion script
# credits to llogan

find /Mymovies -name '*.mkv' | while read f
do
 if ffprobe -v error -select_streams a:0 -show_entries stream=codec_name -of csv=p=0 "$f" | grep dts; then
 echo "$f"
fi
done



Now digging into the command I think I may have a working command. Anybody spot a problem?


ffmpeg -i $f
 -map 0:v -c:v copy
 -map 0:a:0? -c:a:0 ac3
 -map 0:a:0? -c:a:1 copy
 -map 0:a:1? -c:a:2 copy
 -map 0:a:2? -c:a:3 copy
 -map 0:a:3? -c:a:4 copy
 -map 0:a:4? -c:a:5 copy
 -map 0:a:5? -c:a:6 copy
 -map 0:a:6? -c:a:7 copy
 -map 0:a:7? -c:a:8 copy
 -map 0:a:8? -c:a:9 copy
 -map 0:s? -c copy
 -b:a:0 640k
/tmp/output.mkv
mv $f /home/DTS_BACKUP/
mv /tmp/output.mkv $f
rm /tmp/output.mkv



So the end result would look like:


#!/bin/bash
# My DTS conversion script
# credits to llogan
find /Mymovies -name '*.mkv' | while read f
do
 if ffprobe -v error -select_streams a:0 -show_entries stream=codec_name -of csv=p=0 "$f" | grep dts; then

ffmpeg -i $f
 -map 0:v -c:v copy
 -map 0:a:0? -c:a:0 ac3
 -map 0:a:0? -c:a:1 copy
 -map 0:a:1? -c:a:2 copy
 -map 0:a:2? -c:a:3 copy
 -map 0:a:3? -c:a:4 copy
 -map 0:a:4? -c:a:5 copy
 -map 0:a:5? -c:a:6 copy
 -map 0:a:6? -c:a:7 copy
 -map 0:a:7? -c:a:8 copy
 -map 0:a:8? -c:a:9 copy
 -map 0:s? -c copy
 -b:a:0 640k
/tmp/output.mkv
mv $f /home/DTS_BACKUP/
mv /tmp/output.mkv $f
rm /tmp/output.mkv

fi
done



-
ffmpeg find files PHP exec
23 April 2017, by user892134Having no success with ffmpeg. How do i check if a file even exists?
I have the file
$mp3 = $_SERVER['DOCUMENT_ROOT']."/wp-content/youtube_channels/major.mp3";
I’ve attempted to find the file with
exec()
but nothing is returned. How do i solve? I’m totally lost.var_dump(exec("/usr/include/ffmpeg -i $mp3"));
All that is returned string(0) ""
when i check phpinfo ffmpeg is installed and when i type
exec("whereis ffmpeg")
what is returned is/usr/include/ffmpeg
.I’ve been stuck on this for 2 days, how do i solve this?
-
command not working to find duration of the video file in android?
25 October 2018, by Dinesh SI want to find duration of the video file. For this purpose i used the below command.
It is working file in Desktop. While running in android.It is showing error. I also attached error message . can anyone able to tell me why it is not working?execFFmpegBinary("-i "+file.getAbsolutePath()+" 2>&1 | find \"Duration\"");
//Function used to run command
private static void execFFmpegBinary(final String command)
{
try
{
ffmpeg.execute(command, new ExecuteBinaryResponseHandler()
{
@Override
public void onFailure(String s)
{
Log.d(TAG, "FAILED with output : " + s);
}
@Override
public void onSuccess(String s)
{
Log.d(TAG, "SUCCESS with output : " + s);
}
@Override
public void onProgress(String s)
{
Log.d(TAG, "Started command : ffmpeg " + command);
Log.d(TAG, "progress : " + s);
}
@Override
public void onStart()
{
Log.d(TAG, "Started command : ffmpeg " + command);
}
@Override
public void onFinish()
{
Log.d(TAG, "Finished command : ffmpeg " + command);
}
});
}
catch (FFmpegCommandAlreadyRunningException e)
{
// do nothing for now
Log.i(TAG,"Command Already running");
}
}Error Message:
[NULL @ 0xac11acd0] Unable to find a suitable output format for '2>&1'
2>&1: Invalid argument