Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (96)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

Sur d’autres sites (13587)

  • FFMPEG, "Could not open file.. " "av_interleaved_write_frame() : Input/output error"

    10 juillet 2018, par justaguytrynabuildawebsite

    Trying to run a simple ffmpeg line on my Ubuntu 16.04 vps shell,

    ffmpeg -ss 1 -i /var/www/html/lib/vid/4581989_022810100718.mp4 -r 1 -vframes 1 /var/www/html/lib/thumbnail/4581989_022810100718/20.jpg

    but am met with

    Could not open file

    and

    av_interleaved_write_frame(): Input/output error

    I have already tried giving the ../lib/vid folder in question 777 permissions but it didnt help.

    Full print-out :

    ffmpeg version 2.8.14-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers
    built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.9) 20160609
    configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
    libavutil      54. 31.100 / 54. 31.100
    libavcodec     56. 60.100 / 56. 60.100
    libavformat    56. 40.101 / 56. 40.101
    libavdevice    56.  4.100 / 56.  4.100
    libavfilter     5. 40.101 /  5. 40.101
    libavresample   2.  1.  0 /  2.  1.  0
    libswscale      3.  1.101 /  3.  1.101
    libswresample   1.  2.101 /  1.  2.101
    libpostproc    53.  3.100 / 53.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/var/www/html/lib/vid/4581989_022810100718.mp4':
    Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf56.36.100
    Duration: 00:00:04.90, start: 0.000000, bitrate: 2595 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1820x1024 [SAR 1:1 DAR 455:256], 2593 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
     handler_name    : VideoHandler
    [swscaler @ 0x1652280] deprecated pixel format used, make sure you did set range correctly
    Output #0, image2, to '/var/www/html/lib/thumbnail/4581989_022810100718/20.jpg':
    Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf56.40.101
    Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 1820x1024 [SAR 1:1 DAR 455:256], q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc (default)
    Metadata:
     handler_name    : VideoHandler
     encoder         : Lavc56.60.100 mjpeg
    Stream mapping:
    Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
    Press [q] to stop, [?] for help
    [image2 @ 0x16103a0] Could not open file : /var/www/html/lib/thumbnail/4581989_022810100718/20.jpg
    av_interleaved_write_frame(): Input/output error
    frame=    1 fps=0.0 q=3.4 Lsize=N/A time=00:00:01.00 bitrate=N/A    
    video:48kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    Conversion failed!
  • ffmpeg - MXF with 4-channel audio : how to create proxies (high quality / small file size) and preserve the audio mapping

    8 juillet 2018, par WhatsYourFunction

    We’ve got MXF sources (h.264 video at UHD (3840x2160) with 4-channels of (4 - PCM S24 mono sources)
    We want Proxies — smallest file size at highest picture quality
    The compression applied to the video and audio essences can be anything,
    And the wrapper can be either MXF or QuickTime
    but we need to preserve the audio mapping (i.e. the Proxy must be 4-channel audio)

    How to do that with ffmpeg ?

    • EDIT Adding ffprobe :

    Metadata :

    uid : ***

    generation_uid : ***

    company_name : CANON

    product_name : EOS C300 Mark II

    product_version : 1.00

    product_uid : ***

    modification_date : 2018-06-28T08:29:24.000000Z

    material_package_umid : ***

    timecode : 02:50:31:17

    Duration : 00:06:35.40, start : 0.000000, bitrate : 395842 kb/s

    Stream #0:0 : Video : h264 (High 4:2:2 Intra), yuv422p10le(tv, progressive), 3840x2160, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 23.98 tbn, 47.95 tbc

    Metadata :

    file_package_umid: ***

    Stream #0:1 : Audio : pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s

    Metadata :

    file_package_umid: ***

    Stream #0:2 : Audio : pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s

    Metadata :

    file_package_umid: ***

    Stream #0:3 : Audio : pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s

    Metadata :

    file_package_umid: ***

    Stream #0:4 : Audio : pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s

    Metadata :

    file_package_umid: ***
  • FFMpeg : Add background image during the process of video creation

    10 juillet 2018, par Killer

    In reference to my previous question FFMpeg : merge images with audio for specific duration I have successfully merged few images with audio for specific duration by using following command.

    ffmpeg \
    -y \
    -f concat \
    -safe 0 \
    -r 1/5 \
    -i concat.txt \
    -i audio.ogg \
    -c:v libx264 \
    -profile:v high \
    -crf 17 \
    -preset ultrafast \
    -strict experimental \
    -t 15 \
    output.mp4

    In order to add a background image, I tried to use https://superuser.com/a/876275/299733 and other solutions that exist on the web. But the given solution doesn’t overlay my images properly and I was getting black video throughout the duration. Therefore, I encode the resultant video from earlier command once again via :

    ffmpeg \
    -y \
    -loop 1 \
    -i bg.jpg \
    -i output.mp4 \
    -filter_complex "overlay=(W-w)/2:(H-h)/2:shortest=1,format=yuv420p" \
    -c:v libx264 \
    -profile:v high \
    -crf 17 \
    -preset ultrafast \
    -strict experimental \
    -t 15 \
    output2.mp4

    Now, I am able to get the desired result. Is there any way to merge both requests into a single pass ? Or a better way without loss of any performance ?

    Additional details :

    concat.txt

    file '/home/shubham/Desktop/FFMpeg/image_1.jpg'
    file '/home/shubham/Desktop/FFMpeg/image_2.jpg'
    file '/home/shubham/Desktop/FFMpeg/image_3.jpg'

    Based on @gyan response

    Updated concat.xml :

    file '/home/shubham/Desktop/FFMpeg/image_4.jpg'
    duration 5
    file '/home/shubham/Desktop/FFMpeg/image_5.jpg'
    duration 5
    file '/home/shubham/Desktop/FFMpeg/image_6.jpg'
    duration 5
    file '/home/shubham/Desktop/FFMpeg/image_6.jpg'

    Updated Command :

    ffmpeg \
    -y \
    -loop 1 \
    -i bg.jpg \
    -f concat \
    -safe 0 \
    -i concat.txt \
    -i audio.ogg \
    -filter_complex "[1]fps=25[v];[0][v]overlay=(W-w)/2:(H-h)/2:shortest=1,format=yuv420p" \
    -c:v libx264 \
    -profile:v high \
    -crf 17 \
    -preset ultrafast \
    -strict experimental \
    -t 15 \
    output.mp4

    The problem is that when images are of different resolution or even for the same resolution the images are skipped. And most of the times last image is shown. However, there are no criteria of which image is selected and which one is skipped.
    SAMPLE :
    https://drive.google.com/file/d/1JxCsV2eudKzdgWWuefXqdaWPaBf9Dzzd/view?usp=sharing

    However, if I repeatedly used the same image or copy the image and rename it. In both the cases, I get proper images on the background without any skipping.

    EDIT : 09 JULY 2018

    As @gyan stated in comments : Convert each image to same resolution and type.
    I check the info of images. via

    ffmpeg -i image_X.jpg

    And found out two images have different encoding :

    Image 1 : Stream #0:0 : Video : mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 640x480 [SAR 72:72 DAR 4:3], 25 tbr, 25 tbn, 25 tbc

    Image 2 : Stream #0:0 : Video : mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 640x480 [SAR 72:72 DAR 4:3], 25 tbr, 25 tbn, 25 tbc

    Which is the possible cause of the failure in merging.