
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (20)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (5678)
-
swscale/output : Bias 16bps output calculations to improve non overflowing range
2 novembre 2022, par Michael Niedermayerswscale/output : Bias 16bps output calculations to improve non overflowing range
Fixes : integer overflow
Fixes : ./ffmpeg -f rawvideo -video_size 66x64 -pixel_format yuva420p10le -i /videos/overflow_input_w66h64.yuva420p10le -filter_complex "scale=flags=bicubic+full_chroma_int+full_chroma_inp+bitexact+accurate_rnd:in_color_matrix=bt2020:out_color_matrix=bt2020:in_range=full:out_range=full,format=rgba64[out]" -pixel_format rgba64 -map '[out]' -y overflow_w66h64.pngFound-by : Drew Dunne <asdunne@google.com>
Tested-by : Drew Dunne <asdunne@google.com>
Signed-off-by : Michael Niedermayer <michael@niedermayer.cc> -
pexpect.run() terminates before ending ffmpeg without finishing the conversion
24 novembre 2012, par DaviseinI'm working on a python script that does a custom conversion of videos via ffmpeg.
My problem is that the execution of ffmpeg stops suddenly after a bit of conversion (usually 3-4 mb out of 100mb) with a None exit code.
I'm using the pexpect library. Currently I do not check the progress but I will in a close future. It seems that I am right using pexpect regarding these questions FFMPEG and Pythons subprocess and Getting realtime output from ffmpeg to be used in progress bar (PyQt4, stdout). This is the command that I'm running (I have checked that it's exactly this one)
nice ffmpeg -i '/full/path' -s 640x360 -strict experimental -vcodec libx264
-f mp4 - coder 0 -bf 0 -refs 1 -flags2 -wpred-dct8x8 -level 30 -crf 26
-bufsize 4000k -maxrate 350k -preset medium -acodec libvo_aacenc
-ar 48000.0 -ab 128K -threads 2 -y '/full/path/out'I am using nice but I have tried also without it and the result ends up being the same.
I'm running pexpect this way :
output, exit = pexpect.run(self.command(), withexitstatus=True,\
logfile=logfile)
print output
print exitOf course I have tried the same command on the command line and it works fine.
Any clue on what might be happening ?
-
How to rename and move files in a subdirectory with an index and the folder name ... better ?
29 octobre 2014, par krismajeanI’m putting together a script to take .mp4 files organized into folders that described the video (eg. cat) and I’d like to do the following :
- rename them with the folder name and a number ;
- move the video into a folder named and numbered in the same manner
- parse the video into frames using ffmpeg
I’m posting this here to be a reference for others and to ask about how this could be done better. It works well but I’m wondering how to make it better.
for dir in /path/to/parent/directory/*; do
cd "$dir" && result=${PWD##*/}
cd video
echo $result
a=1
for i in *.mp4; do
dafile="$(printf "_%02d.mp4" ${a})"
dafolder="$(printf "_%02d" ${a})"
newfolder=$result$dafolder
newfile=$result$dafile
mkdir ${newfolder}
mv ${i} ${newfolder}/${newfile}
cd ${newfolder}
ffmpeg -i ${newfile} -r 30 -f image2 ${newfolder}-\%04d.png
cd ..
let a=a+1
done
doneI used the following links to figure out a bunch of ideas for the code :
- Get current directory name (without full path) in Bash Script
- Renaming files in a folder to sequential numbers