
Recherche avancée
Autres articles (55)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (9070)
-
How do install ffmpeg in android for youtube-dl
21 novembre 2019, par Wasp NesserI have got a python code for downloading a video (from youtube) and converting to mp3. I used youtube-dl for these. Python code works in computer. But that error occurred in my android :
youtube_dl.utils.DownloadError: ERROR: ffprobe/avprobe and ffmpeg/avconv not found. Please install one. [Program finished]
I couldn’t find how to install these requirments in android . I use application called pydroid3 for executing python codes , installing python libraries and terminal staff. I tried to install ffmpeg and ffprob libraries with pip .But it didn’t helped me. After I tried to execute
adb shell pm install ffmpeg
And It didn’t helped me to.
This is my code :
import youtube_dl
import os
outtmpl = "%(playlist_title)s-%(playlist_uploader)s /%(playlist_index)s %(title)s-%(uploader)s.%(ext)s"
ydl_opts = {
'format': 'bestaudio/best',
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '192',
},
{'key': 'FFmpegMetadata'},
],
'outtmpl' : outtmpl,
}
url = input("Enter url : ")
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download([url]) -
download part youtube video with ffmpeg ?
1er août 2020, par testoflowI can't get this right

ffmpeg works well so can you help me ?

#I can't get this right


#!/bin/bash
var=$(xclip -o)

if [ -z $var ]; then 
 echo 'copia url a descargar al portapapeles' 
fi 

printf "(1) download part of video without audio\n"
printf "(2) download part of audio\n"
echo
echo -n 'opcion: '
read opcion
case $opcion in
 "1") c=$(youtube-dl -g $var | awk '{ if(NR==1) print $0 }' | sed 's/^/"/;s/$/"/') && echo -n 'start time: ' && read segundos && echo -n 'duration: ' && read duration && ffmpeg -i $c -ss $segundos -t $duration probe.mp4;; 
 "2") b=$(youtube-dl -g $var | awk '{ if(NR==2) print $0 }' | sed 's/^/"/;s/$/"/') && echo $b && ffmpeg -ss 0 -i $b -t 10 probe.mp3;; 
esac 



-
How to concat two videos of different format with stretching the videos
25 juillet 2020, par XnoxI want to concat two videos together but in doing so, the second video is being stretched. Here is my code


$command = "ffmpeg -i ../unprocessed/{$temp_name} -vf \"[in]drawtext=fontsize=47:fontcolor=white:fontfile='../fonts/Nunito/nunito.ttf':text='{$name}':x=10:y=(h) - 120, drawtext=fontsize=35:fontcolor=white:fontfile='../fonts/Amiri/amiri.ttf':text='{$second}':x=10:y=(h) - 80, drawtext=fontsize=30:fontcolor=white:fontfile='../fonts/Amiri/amiri.ttf':text='{$hospital}':x=10:y=(h-40)[out]\" -y ../unprocessed/{$edited}";
 system($command);
 unlink("../unprocessed/{$temp_name}");

 $video_1 = $_POST["video1"];
 $video_2 = $edited;

 try{

 //generating intermediate files
 $intermediate1 = "intermediate".rand(100000, 1000000000).rand(100000, 1000000000).".mpg";
 $command = "ffmpeg -i ../unprocessed/{$edited} -qscale 0 -r 25 ../unprocessed/{$intermediate1}";
 system($command);
 unlink("../unprocessed/{$edited}");

 $intermediate2 = "intermediate".rand(100000, 1000000000).rand(100000, 1000000000).".mpg";
 $command = "ffmpeg -i ../admin/videos/{$video_1} -qscale 0 -r 25 ../unprocessed/{$intermediate2}";
 system($command);

 $outputfile_temp = "upload".rand(100000, 1000000000).rand(100000, 1000000000).rand(100000, 1000000000).".mp4";

 $command = "ffmpeg -i \"concat:../unprocessed/{$intermediate1}|../unprocessed/{$intermediate2}\" -c copy ../merged_videos/{$outputfile_temp}";
 system($command);
 unlink("../unprocessed/{$intermediate1}");
 unlink("../unprocessed/{$intermediate2}");

 $outputfile = "upload".rand(100000, 1000000000).rand(100000, 1000000000).rand(100000, 1000000000).".mp4";
 $command = "ffmpeg -i ../merged_videos/{$outputfile_temp} ../merged_videos/{$outputfile}";
 system($command);
 unlink("../merged_videos/{$outputfile_temp}");