
Recherche avancée
Médias (91)
-
Spoon - Revenge !
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
My Morning Jacket - One Big Holiday
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Zap Mama - Wadidyusay ?
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
David Byrne - My Fair Lady
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Beastie Boys - Now Get Busy
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Granite de l’Aber Ildut
9 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (92)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
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 (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...)
Sur d’autres sites (8203)
-
mp4 created by ffmpeg will not play with IPython.display.Video
19 novembre 2020, par AustinI'm creating a mp4 video from jpegs with ffmpeg, using the following command :


ffmpeg -y -threads 0 -f image2 -i jpegs/%05d.jpg -framerate 10 video.mp4


The resulting video will play fine with VLC, but will not play in a Jupyter notebook via :


from IPython.display import Video
Video('video.mp4')



This notebook video functionality has worked for me in the past, so I assume there's something about the codec/mime type that the Video function can't resolve ?



Requested update


New command I've tried :


ffmpeg -y -framerate 10 -i jpegs/%05d.jpg -vf format=yuv420p -movflags +faststart video.mp4


Video still plays fine in VLC and still does not play in Jupyter. I've looked at the duplicates this is marked as and it does not actually seem to be the same issue..


Here's the output (I've removed the framerate and threads flags to simplify) :


algo-1-poqk5_1 | 2020-11-18 21:19:36 [INFO]: ffmpeg output:
algo-1-poqk5_1 | 2020-11-18 21:19:36 [INFO]: ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
algo-1-poqk5_1 | built with gcc 7.2.0 (crosstool-NG fa8859cb)
algo-1-poqk5_1 | configuration: --prefix=/opt/conda --cc=/opt/conda/conda-bld/ffmpeg_1531088893642/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc --disable-doc --enable-shared --enable-static --enable-zlib --enable-pic --enable-gpl --enable-version3 --disable-nonfree --enable-hardcoded-tables --enable-avresample --enable-libfreetype --disable-openssl --disable-gnutls --enable-libvpx --enable-pthreads --enable-libopus --enable-postproc --disable-libx264
algo-1-poqk5_1 | libavutil 56. 14.100 / 56. 14.100
algo-1-poqk5_1 | libavcodec 58. 18.100 / 58. 18.100
algo-1-poqk5_1 | libavformat 58. 12.100 / 58. 12.100
algo-1-poqk5_1 | libavdevice 58. 3.100 / 58. 3.100
algo-1-poqk5_1 | libavfilter 7. 16.100 / 7. 16.100
algo-1-poqk5_1 | libavresample 4. 0. 0 / 4. 0. 0
algo-1-poqk5_1 | libswscale 5. 1.100 / 5. 1.100
algo-1-poqk5_1 | libswresample 3. 1.100 / 3. 1.100
algo-1-poqk5_1 | libpostproc 55. 1.100 / 55. 1.100
algo-1-poqk5_1 | Input #0, image2, from '/opt/ml/model/outputs/01-IR.mp4_1/%05d.jpg':
algo-1-poqk5_1 | Duration: 00:00:12.00, start: 0.000000, bitrate: N/A
algo-1-poqk5_1 | Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
algo-1-poqk5_1 | Stream mapping:
algo-1-poqk5_1 | Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg4 (native))
algo-1-poqk5_1 | Press [q] to stop, [?] for help
algo-1-poqk5_1 | [swscaler @ 0x55b8cc6fcc40] deprecated pixel format used, make sure you did set range correctly
algo-1-poqk5_1 | Output #0, mp4, to '/opt/ml/model/outputs/01-IR.mp4_1/video.mp4':
algo-1-poqk5_1 | Metadata:
algo-1-poqk5_1 | encoder : Lavf58.12.100
algo-1-poqk5_1 | Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc
algo-1-poqk5_1 | Metadata:
algo-1-poqk5_1 | encoder : Lavc58.18.100 mpeg4
algo-1-poqk5_1 | Side data:
algo-1-poqk5_1 | cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
algo-1-poqk5_1 | frame= 31 fps=0.0 q=31.0 size= 768kB time=00:00:01.20 bitrate=5242.8kbits/s speed=2.33x 
algo-1-poqk5_1 | frame= 64 fps= 63 q=31.0 size= 1280kB time=00:00:02.52 bitrate=4161.0kbits/s speed=2.48x 
algo-1-poqk5_1 | frame= 98 fps= 64 q=31.0 size= 1792kB time=00:00:03.88 bitrate=3783.5kbits/s speed=2.53x 
algo-1-poqk5_1 | frame= 131 fps= 64 q=31.0 size= 2304kB time=00:00:05.20 bitrate=3629.7kbits/s speed=2.55x 
algo-1-poqk5_1 | frame= 164 fps= 64 q=31.0 size= 2560kB time=00:00:06.52 bitrate=3216.5kbits/s speed=2.56x 
algo-1-poqk5_1 | frame= 198 fps= 65 q=31.0 size= 3072kB time=00:00:07.88 bitrate=3193.6kbits/s speed=2.58x 
algo-1-poqk5_1 | frame= 232 fps= 65 q=31.0 size= 3328kB time=00:00:09.24 bitrate=2950.6kbits/s speed= 2.6x 
algo-1-poqk5_1 | frame= 266 fps= 66 q=31.0 size= 3840kB time=00:00:10.60 bitrate=2967.7kbits/s speed=2.62x 
algo-1-poqk5_1 | frame= 299 fps= 66 q=31.0 size= 4096kB time=00:00:11.92 bitrate=2815.0kbits/s speed=2.62x 
algo-1-poqk5_1 | [mp4 @ 0x55b8cc658900] Starting second pass: moving the moov atom to the beginning of the file
algo-1-poqk5_1 | frame= 300 fps= 65 q=31.0 Lsize= 4202kB time=00:00:11.96 bitrate=2877.9kbits/s speed=2.61x 
algo-1-poqk5_1 | video:4199kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.052020%



-
ffmpeg detects a videofile path when it does not exist
17 novembre 2020, par Nejc Kejzarthis is boggling my mind. I am using ffmpeg to compress videos within the following python script :


import re
import os

kage = 'MH5'
year = '2020'
month = '11'
day = '10'

# Set output dir; create it if it doesn't exist yet
downsampled_video_dir = home_data_dir + f'piCamera/downsampled_videos/{kage}/{year}/{month}/{day}/'
Path(downsampled_video_dir).mkdir(parents=True, exist_ok=True)
 
for i, video in enumerate(videos):
 # Set ffmpeg video compression terminal command and output directory for downsampled videos
 video_name = re.findall('\d+_\d+.mp4', video)[0]
 ds_output = downsampled_video_dir + video_name
 compress_command = f"ffmpeg -i {video} -vf scale={video_res[0]}:-2 {ds_output}"
 
 # Run ffmpeg video compression
 os.system(compress_command)



videos
is a list of full video paths of the videos that I wish to compress, andds_output
is a full path of where to write the compressed video.video_res[0]
contains the desired height of the video with the following-2
automatically calculating the width so that the aspect ratio is preserved.

For some reason when running this, ffmpeg detects some of the videos in the output directory as already existing and asks if I wish to overwrite them. The videos of course aren't there yet, so when I pass
y
, ffmpeg complains that no such file exists. Here is an example output for one of the problematic videos :

ffmpeg -y -i '/home/piCamera/MH4/2020/11/10/20201110_085451.mp4' -vf scale=400:300 '/home/piCamera/downsampled_videos/MH4/2020/11/10/20201110_085451.mp4'
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
 configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
 libavutil 56. 31.100 / 56. 31.100
 libavcodec 58. 54.100 / 58. 54.100
 libavformat 58. 29.100 / 58. 29.100
 libavdevice 58. 8.100 / 58. 8.100
 libavfilter 7. 57.100 / 7. 57.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/piCamera/MH4/2020/11/10/20201110_085451.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.20.100
 Duration: 00:03:58.84, start: 0.000000, bitrate: 1190 kb/s
 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 960x720, 1190 kb/s, 5 fps, 5 tbr, 10240 tbn, 20480 tbc (default)
 Metadata:
 handler_name : VideoHandler
/home/piCamera/downsampled_videos/MH4/2020/11/10/20201110_085451.mp4: No such file or directory



This happens with about 3 videos out of 53, the rest run normally. I've tried restarting the terminal, deleted the whole created
downsampled_video_dir
and run again, but no matter how many times I restart, the same videos are the problem. The only thing that appears to help is if I change the output directory name. Any ideas of why this strange error is happening ?

This is being run on Ubuntu20 with python3.7.9 in a Jupyter Notebook.


Many, many thanks for all the insights !


-
Error Exception : You do not have ffmpeg installed on your machine when using python bar_chart_race with reticulate in rstudio
27 septembre 2020, par Zhiqiang WangI have run
python
bar_chart_race
successfully injupyter notebook
.

import bar_chart_race as bcr
bcr.bar_chart_race(df=wide_1, filename=None, title='Mortality (per million) by Country')



I have
ffmpeg
installed on my machine.

> Sys.which("ffmpeg")
 ffmpeg 
"C:\\ffmpeg\\bin\\ffmpeg.exe" 



However, when I tried the same code in
rmarkdown
withrstudio
reticulate
,

import bar_chart_race as bcr
bcr.bar_chart_race(wide_1)



I received the following message :


Exception: You do not have ffmpeg installed on your machine. Download
 ffmpeg from here: https://www.ffmpeg.org/download.html.
 
 Matplotlib's original error message below:

 [WinError 6] The handle is invalid



reticulate::py_config()


> reticulate::py_config()
python: C:/ProgramData/Anaconda3/python.exe
libpython: C:/ProgramData/Anaconda3/python38.dll
pythonhome: C:/ProgramData/Anaconda3
version: 3.8.3 (default, Jul 2 2020, 17:30:36) [MSC v.1916 64 bit (AMD64)]
Architecture: 64bit
numpy: C:/ProgramData/Anaconda3/Lib/site-packages/numpy
numpy_version: 1.18.5



ffmpeg
works fine with R animated graph packages inrstudio
, and withpython
bar_chart_race
. I have tried to re-installffmpeg
several times. Any advice would be appreciated.