
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (79)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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 (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (12518)
-
Your introduction to personally identifiable information : What is PII ?
-
How to get the width of video files stored in aws s3 using django ?
15 novembre 2020, par Anshul SinghI tried the python subprocess module to run FFmpeg commands but apart from two images stored in the s3 bucket, it is giving me an error : No such file or directory in spite of the fact that the video files are present in the same directory as the image.


import subprocess
from storages.backends.s3boto3 import S3Boto3Storage

s3 = S3Boto3Storage()
f = s3.open('path/to/file','r')
cmnd = ['ffprobe','-v','error','-of','flat=s=_ ','-select_streams','v:0','-show_entries','stream=width','-pretty', '-loglevel', 'quiet', file.name]
p = subprocess.Popen(cmnd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()
print(out)



Output :




b''




print(err)



Output :




b'ffmpeg version N-54874-ga1553b0cfb-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2020 the FFmpeg developers\n built with gcc 8 (Debian 8.3.0-6)\n configuration : —enable-gpl —enable-version3 —enable-static —disable-debug —disable-ffplay —disable-indev=sndio —disable-outdev=sndio —cc=gcc —enable-fontconfig —enable-frei0r —enable-gnutls —enable-gmp —enable-libgme —enable-gray —enable-libfribidi —enable-libass —enable-libfreetype —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-librubberband —enable-libsoxr —enable-libspeex —enable-libsrt —enable-libvorbis —enable-libopus —enable-libtheora —enable-libvidstab —enable-libvo-amrwbenc —enable-libvpx —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxml2 —enable-libxvid —enable-libzimg\n libavutil ......... "path/to/file" : No such file or directory\n'




I performed this by sshing into my ec2 instance and opening the python shell there. I don't understand what's wrong. I thought maybe size was an issue. So I uploaded a small size image to the s3 bucket but the same thing happened.


-
Codec 'mpeg4' (12) is not supported by the bitstream filter 'h264_mp4toannexb [migrated]
11 juillet 2021, par Karanrohit@rohit : /Desktop/hyland$ ffmpeg -y -i sample.mov -codec copy -bsf h264_mp4toannexb -map 0 -f segment -segment_time 5 -segment_format mpegts -segment_list "segments/prog_index.m3u8" -segment_list_type m3u8 segments/fileSequence%d.ts
ffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1 18.04)
configuration : —prefix= —prefix=/usr —disable-debug —disable-doc —disable-static —enable-cuda —enable-cuda-sdk —enable-cuvid —enable-libdrm —enable-ffplay —enable-gnutls —enable-gpl —enable-libass —enable-libfdk-aac —enable-libfontconfig —enable-libfreetype —enable-libmp3lame —enable-libnpp —enable-libopencore_amrnb —enable-libopencore_amrwb —enable-libopus —enable-libpulse —enable-sdl2 —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libv4l2 —enable-libvorbis —enable-libvpx —enable-libx264 —enable-libx265 —enable-libxcb —enable-libxvid —enable-nonfree —enable-nvenc —enable-omx —enable-openal —enable-opencl —enable-runtime-cpudetect —enable-shared —enable-vaapi —enable-vdpau —enable-version3 —enable-xlib
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sample.mov' :
Metadata :
major_brand : qt

minor_version : 512
compatible_brands : qt

encoder : Lavf58.17.101
Duration : 00:00:52.08, start : 0.000000, bitrate : 1674 kb/s
Stream #0:0(eng) : Video : mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1544 kb/s, 24 fps, 24 tbr, 12288 tbn, 24 tbc (default)
Metadata :
handler_name : VideoHandler
encoder : Lavc58.22.101 mpeg4
Stream #0:1(eng) : Audio : aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata :
handler_name : SoundHandler
[h264_mp4toannexb @ 0x5626984d8740] Codec 'mpeg4' (12) is not supported by the bitstream filter 'h264_mp4toannexb'. Supported codecs are : h264 (27)
Error initializing bitstream filter : h264_mp4toannexb
Stream mapping :
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Last message repeated 1 times