
Recherche avancée
Médias (3)
-
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
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (102)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (8985)
-
How to fix this script - recursive ffmpeg encoding
15 août 2019, par Gabriel LuzI’ve downloaded some videos from my course and I think they are too big. I need to reencode them to something better and smaller.
The problem is I made the script but it saves the file in the first folder. I want the output files inside the same folder as the input files. For example :Folder 1
- script.sh
Folder 2
- file1.mp4
- file1.new
Folder 3
- file2.mp4
- file2.newI’ve tried using the for loop only, and it was working actually but I couldn’t encode the files recursively. This wouldn’t work. Using find solved the problem, but now the output files are all in the same directory, which is the same directory where the script is located (working directory).
IFS=$'\n'; set -f
for i in $(find . -name '*.mp4'); do
if ($width > 600) && ($width < 800); then
echo "$i is a 720p video. Let's encode it to VP9."
notify-send Shrinker "Beginning encoding filename "$i""
ffmpeg -i "$i" -vf mpdecimate,setpts=N/FRAME_RATE/TB -vf scale=1280x720 -b:v 1800k \
-minrate 900k -maxrate 2610k -tile-columns 2 -g 240 -threads 8 \
-quality good -crf 32 -c:v libvpx-vp9 -c:a libopus \
-pass 1 -speed 4 "$(basename "${i/.mp4}")".webm && \
ffmpeg -y -i "$i" -vf mpdecimate,setpts=N/FRAME_RATE/TB -vf scale=1280x720 -b:v 1800k \
-minrate 900k -maxrate 2610k -tile-columns 2 -g 240 -threads 8 \
-quality good -crf 32 -c:v libvpx-vp9 -c:a libopus \
-pass 2 -speed 4 -y "$(basename "${i/.mp4}")".webm
elif ($width > 800) && ($width < 1081) && ($fps < 31.000); then
echo "$i is a 1080p video with 30fps or maybe less. Let's encode it to VP9."
ffmpeg -i "$i" -vf mpdecimate,setpts=N/FRAME_RATE/TB -vf scale=1920x1080 -b:v 1800k \
-minrate 900k -maxrate 2610k -tile-columns 2 -g 240 -threads 8 \
-quality good -crf 31 -c:v libvpx-vp9 -c:a libopus \
-pass 1 -speed 4 "$(basename "${i/.mp4}")".webm && \
ffmpeg -y -i "$i" -vf mpdecimate,setpts=N/FRAME_RATE/TB -vf scale=1920x1080 -b:v 1800k \
-minrate 900k -maxrate 2610k -tile-columns 4 -g 240 -threads 8 \
-quality good -crf 31 -c:v libvpx-vp9 -c:a libopus \
-pass 2 -speed 4 -y "$(basename "${i/.mp4}")".webm
notify-send Shrinker "Beginning encoding filename "$i""
elif ($width > 800) && ($width < 1081) && ($fps > 49.000); then
echo "$i is a 1080p video with 50fps or maybe more. Let's encode it to VP9."
ffmpeg -i "$i" -vf mpdecimate,setpts=N/FRAME_RATE/TB -vf scale=1920x1080 -b:v 3000k \
-minrate 1500k -maxrate 4350k -tile-columns 2 -g 240 -threads 8 \
-quality good -crf 31 -c:v libvpx-vp9 -c:a libopus \
-pass 1 -speed 4 "$(basename "${i/.mp4}")".webm && \
ffmpeg -y -i "$i" -vf mpdecimate,setpts=N/FRAME_RATE/TB -vf scale=1920x1080 -b:v 3000k \
-minrate 1500k -maxrate 4350k -tile-columns 4 -g 240 -threads 8 \
-quality good -crf 31 -c:v libvpx-vp9 -c:a libopus \
-pass 2 -speed 4 -y "$(basename "${i/.mp4}")".webm
notify-send Shrinker "Beginning encoding filename "$i""
else
echo "no file found"
fi
doneMy script finds every file and encodes them BUT the output files are saved into folder 1. It should save on folder 2 and folder 3.
I get this:
Folder 1
- script.sh
- file1.webm
- file2.webm
Folder 2
- file1.mp4
Folder 3
- file2.mp4
I want this:
Folder 1
- script.sh
Folder 2
- file1.mp4
- file1.webm
Folder 3
- file2.mp4
- file2.webm -
convert lower bitrate mp3 to higher bit rate [closed]
6 mars 2016, par janemani had 2000 songs in 128 kbps but in my server space was not there so i have compressed those mp3 to 16kbps and found ok quality on my pc but when i was listening those songs on my iphone i found that sound quality is not good so now i wan t to convert those 16kbps songs to 48kbps which i think will give good sound quality so that users cant differentiate that songs are compressed and it will load fast as well .here is the ffmpeg code i have used to convert 16kbps file to 48kbps . i can see that the size of converted file has increased approx 3 fold but not sure whether it will give the better quality mp3 when i increase the bit rate through conversion .please suggest any way to get my file back with good mp3 quality
<?php
if ( exec('ffmpeg -i /pathtomp3folder/test.mp3 -acodec libmp3lame -ab 48k -ac 1 -ar 44100 /pathtomp3folder/oputput.mp3'))
{
echo 'done!!';
}
?>i can do below code as well wthout specifying the frequency which is best way to do
ffmpeg -i /pathtomp3folder/test.mp3 -acodec libmp3lame -ab 48k -ac 1 /pathtomp3folder/oputput.mp3
{
echo 'done!!';
}i dont see much difference in 16kbps and converted file quality however size got increased 3 times in converted file
what is the minimum kbps we should prefer so that users cant detect the difference and i get high streaming rate as well without buffering .i am targetting mobile device so please suggest about mobile device
size of 16 kbps file was 745kb and size of 48kbps file is 1840kb
where i am doing mistake any idea or if anyone can share his experinene it will be a great help .i have stuggled to get my collection of 2000 songs back as i dont have backup and in my pc the quality of mp3 seems to be ok but when i play in iphone it clearly shows that its of low quality
in my server ffmpeg is installed and working properly so it is easily converting the bit rate .one more thing i want to know when the bit rate is getting changed from 16kbps to 48 kbps what is the changes in quality ???/ as i can clearly see that size is increasing but the quality remains same
-
Get Stream and save as jpeg file from IP Camera using ffmpeg
10 novembre 2011, par mekiciHow i can get stream from Ip Camera, Its using RTP, stream is MPEG4, i have multicast address and port,and i have ip camera's IP address and Port Number. And I cant reach via http forexample (http://ip/jpeg) And I cant reach stream with VLC Player too. forexample (rtp ://ipadressofcam:port) and (rtp ://multicastaddress:port)
So What is ffmpeg command of that ?
I have windows OS, I only write code with C#, I dont know, c or c++.
But producer created their own ocx which used for viewing cam,that plugin can work on .net but i dont want to use it becouse it doesnt have much funcionality, I mean you cant get current picture or snapshot of cams, thats why i have to do it myself i already asked before in that link
Thanks