
Recherche avancée
Autres articles (62)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (6821)
-
how do I only run ffmpeg if not currently running
6 juin 2019, par RobertWI have a script that runs every 10 minutes which causes ffmpeg to run over and over and really slows it down. I’d like to only run one instance at a time so the movies will appear quicker on my website (And not crash my server).
Here is my code :
for i in MovieCategories/Category1/*/*.mkv;
do name=`echo $i | cut -d'.' -f1`;
echo $name;
ffmpeg -n -i "$i" "${name}.mp4"; rm -v "${name}.mkv";
done
for i in MovieCategories/Category2/*/*.mkv;
do name=`echo $i | cut -d'.' -f1`;
echo $name;
ffmpeg -n -i "$i" "${name}.mp4"; rm -v "${name}.mkv";
done
for i in MovieCategories/Category3/*/*.mkv;
do name=`echo $i | cut -d'.' -f1`;
echo $name;
ffmpeg -n -i "$i" "${name}.mp4"; rm -v "${name}.mkv";
done
for i in MovieCategories/Category4/*/*.mkv;
do name=`echo $i | cut -d'.' -f1`;
echo $name;
ffmpeg -n -i "$i" "${name}.mp4"; rm -v "${name}.mkv";
done
for i in MovieCategories/Category5/*/*.mkv;
do name=`echo $i | cut -d'.' -f1`;
echo $name;
ffmpeg -n -i "$i" "${name}.mp4"; rm -v "${name}.mkv";
done
for i in MovieCategories/Category6/*/*.mkv;
do name=`echo $i | cut -d'.' -f1`;
echo $name;
ffmpeg -n -i "$i" "${name}.mp4"; rm -v "${name}.mkv";
done
for i in MovieCategories/Category7/*/*.mkv;
do name=`echo $i | cut -d'.' -f1`;
echo $name;
ffmpeg -n -i "$i" "${name}.mp4"; rm -v "${name}.mkv";
done
for i in MovieCategories/Category8/*/*.mkv;
do name=`echo $i | cut -d'.' -f1`;
echo $name;
ffmpeg -n -i "$i" "${name}.mp4"; rm -v "${name}.mkv";
done
for i in MovieCategories/Category9/*/*.mkv;
do name=`echo $i | cut -d'.' -f1`;
echo $name;
ffmpeg -n -i "$i" "${name}.mp4"; rm -v "${name}.mkv";
done
for i in MovieCategories/Category10/*/*.mkv;
do name=`echo $i | cut -d'.' -f1`;
echo $name;
ffmpeg -n -i "$i" "${name}.mp4"; rm -v "${name}.mkv";
done
for i in MovieCategories/Category11/*/*.mkv;
do name=`echo $i | cut -d'.' -f1`;
echo $name;
ffmpeg -n -i "$i" "${name}.mp4"; rm -v "${name}.mkv";
doneI attempted to consolidate them into one command to help a bit but for some reason it mismatched the names from different directories and failed. Overall my main goal is to only run one movie at a time. If you could help consolidate this that would be a bonus. The movies are listed as follow :
MovieCategories/
-
Category1/
- Movie1/
- Movie1.mp4
- Movie2/
- Movie2.mkv
- Movie3/
- Movie3.mp4
- Movie1/
- Category2/
- Movie4/
- Movie4.mp4
- Movie5/
- Movie5.mkv
- Movie6/
- Movie6.mp4
- Movie4/
And on...
-
-
How to add a fake microphone to android emulator running on linux headless
2 juin, par RedTrying to add a microphone to the android emulator running on Linux headless. Host as no microphone so I need to create fake one and simulate playing some random music for my android test.


In emulator command there is a option to use the host audio as input, by passing

-allow-host-audio
but it is not working on the phone.

How to create virtual microphone
Start the pusleaudio


pulseaudio -D --exit-idel-time=-1



Create the fake mic


pactl load-module module-null-sink sink_name=FakeSink



pactl load-module module-remap-source master=FakeSink.monitor source_name=FakeMic


And set to default


pactl sets default FakeSink.monitor



Microphone test


$ffmpeg -f pulse -i default out.wav


$ sox out.wav -n stat

Samples read: 579654

Length (seconds): 6.038062

Scaled by: 2147483647.0

Maximum amplitude: 0.533081

Minimum amplitude: -0.585297

Midline amplitude: -0.026108

Mean norm: 0.067096

Mean amplitude: 0.003363

RMS amplitude: 0.093545

Maximum delta: 0.603760

Minimum delta: 0.000000

Mean delta: 0.073738

RMS delta: 0.105326

Rough frequency: 8601

Volume adjustment: 1.709



Run the emulator


emulator -avd and_1 -allow-host-audio -no_window



There was no audio on the phone.


-
Inotifywait giving wrong file path after running ffmpeg
23 mars 2019, par MorpheusSo im running a little inotifywait script to monitor a folder for new files and transcode them if they are mxf and contain a video stream. But for some weird reason if the script does call ffmpeg the next fileevent by inotify is giving me a wrong path seemingly random cutting the filepath at any position.
So far i tried moving the call to an external script, resetting the file variable which shouldnt matter anyway and adding a sleep to the script. I also tried using normal filepaths without whitespaces or - which shouldnt matter but that also didnt help.
inotifywait -m -r -e close_write -e moved_to --format "%w%f" "$dir" | while read f
do
if ffprobe "$file" 2>&1 | egrep 'Stream #0:0: Video' && ffprobe "$file" 2>&1 | egrep 'MXF' ; then
mkdir -vp "$movepath" && mkdir -vp "$trans$path3" && mkdir -vp "$trans2$path3" && mv -fu "$f" "$trans2$path" && \
ffmpeg -y -i "$file" -map_metadata 0 -c:v h264_nvenc -b:v 2m -bufsize 2m -profile:v baseline -level:v 3.0 -pix_fmt yuv420p -vf yadif,scale="iw/4:ih/4" -an "$transpath" 2>> copy_ffmpeg_log.txt
doneexpected :
/media/raid/TMO_Media/INGEST-HP.1/WacinS1_19V01.5C935C93A3B4V.mxf
example for an result after transcode :
cinS1_19A06.5C935C93A088A.mxf
do while normal mv commands work and inotify does work as expected when stopped for transcoding a file the next path given by inotify is getting messed up
link to the entire script : https://pastebin.com/aRNG4rqz