
Recherche avancée
Médias (1)
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
Autres articles (75)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, 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 (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
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 (...)
Sur d’autres sites (7220)
-
Concatenate a large number of videos with moviepy
10 décembre 2016, par Anis SouamesI’m using moviepy to create compilations automatically, I have around 20 mp4 videos with less than 2 mins each that are concatenated into one large video file using moviepy .
However I’m facing a lot of difficulty because each time I try to concatenate this large number of videos I get anOSError: Cannot Allocate Memory
Error . So the way I’m doing it is that I first create one part with 10 vids and a second part with 10 vids and then concat both of them. this method works however it’s very time and cpu consuming .Is there a straight forward way to concatenate a large number of videos ? My bot is running on an Ubuntu Server with 1GB of RAM and 10 GB of disk space . For 20 typical vids I have approxiamtely 60MB of vids to get processed and compiled . 1GB of ram should handle this without any problem. :
Here’s the code I’m using :
for video_name in videos_filename[0:len(videos_filename)/2]:
try:
print video_name
clip = mv.VideoFileClip(video_name, audio=True)
clip = clip.resize(width=720, height=480)
video_clips.append(clip)
except:
print "Error in adding clips.... Part 1"
pdb.set_trace()
final_clip = mv.concatenate_videoclips(clips=video_clips, method="compose")
finalFile = mv.write_videofile(someName, fps=60, codec="libx264")I’m sure that the
mv.concatenate_videoclips(clips=video_clips, method="compose)
is responsible for the error that I’m getting, How can I fix that and stop using a partial solution ? Should I quit moviepy and use another module ? Maybe ffmpeg directly ? -
Bash script to text watermark video from filename (ffmpeg)
13 juin 2016, par YianI would like to automate some text to be ’watermarked’ on my videos. Basically I want to create a marker in my file names (eg "&&"). Then I want the script to take the content after "&&" and place it in the "drawtext" content.
For example, file named "Video2132 && The First Test" would make the part after "text=" become "The First Test".
The below code works fine without the drawtext part.
As soon as I add that function, the script runs, but it creates empty video files (zero bytes).
for f in ./*.mov; do
printf '%s\n' "Doing stuff with: ${f}"
i='0'
while (( i <= 5 )); do
ffmpeg -ss "$(( i * 25 ))" -t 25 -i "${f}" -acodec copy -vf drawtext="fontfile=/Users/mac1/Library/Fonts/Gillsanslight.ttf: \
text='Stack Overflow': fontcolor=white: fontsize=24: box=1: boxcolor=black@0.5: \
boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2" -codec:a copy "${f%.mov}.${i}.mov" -loglevel quiet
(( i++ ))
done
done -
How can combine two separate scripts being piped together to make one script instead of two ?
27 mars 2016, par user556068For the past couple hours I’ve been banging my head against the wall trying to figure out something I thought would be simple. Maybe it is but it’s beyond me at the moment. So I have now two scripts. Originallly they were part of the same but I could never make it work how it should. So the first part uses
curl
to download a file from a site. Then usinggrep
andsed
to filter out the text I need which is then put into a plain text file as a long list of website urls ; one per line. The last part of the 1st script calls onyoutube -dl
to read the batch file in order to obtain the web addresses where the actual content is located. I hope that makes sense.youtube-dl
reads the batch file and outputs a new list urls into the terminal. This second list is not saved to file because it doesn’t need to be. These urls change from day to day or hour to hour. Using theread
command, these urls are then passed to ffmpeg using a predetermined set of arguments for the input and output. Ffmpeg is executed on every url it receives and runs quietly in the background.The first paragraph describes
script1.sh
and paragraph 2 obviously describesscript2.sh
. When I pipe them together likescript1.sh | script2.sh
it works better than I ever thought possible. Maybe i’m nitpicking at this point but the idea is to have 1 unified script. For the moment I have simplified it by adding an alias to my.bash_profile
.Here are the last two commands of script1.
sed 's/\"\,/\//g' > "$HOME/file2.txt";
cat $HOME/file2.txt | youtube-dl --ignore-config -iga -The trailing
-
allows youtube-dl to read from stdin.The second part of the script ; what I’m calling script2 at this point begins with
while read -r input
do
ffmpeg [arg] [input] [arg2] [output]What am i not seeing that is causing the script to hang when the two halves are combined yet work perfectly if one is piped into the other ?