Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (50)

  • 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 (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (7275)

  • ffmpeg error on AWS lambda

    13 mars 2018, par anarchos78

    I’m trying to convert a jpg image to mp4 and transcode a mp4 file with ffmpeg on AWS lambda.

    For the first task I issue the following :

    ffmpeg -y -f lavfi -i anullsrc -loop 1 -framerate 30 -i test.jpg -t 2 -pix_fmt yuv420p -vf scale=640:480 -c:v libx264 -profile:v baseline -level 3.0 -c:a aac -map 0:a -map 1:v -strict -2 -preset ultrafast /tmp/jpg_output.mp4

    and for the second :

    ffmpeg -i /var/task/test.mp4 -c:v libx264 -c:a copy -strict -2 -v 9 -preset ultrafast -y /tmp/output.mp4

    The funny thing is that the aforementioned tasks (jpg conversion and video transcoding) complete successfully, both locally and on AWS lambda, but I’m getting the below error messages :

    Locally : "err : ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers"

    AWS LAMBDA : "err : ffmpeg version N-89977-gddd851f7cb-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2018 the FFmpeg developers"

    Additionally, on AWS Lambda, the function exits with error, which results in re-execution of the function.

    I searched for solutions to no avail. Any suggestions ?

  • Create a video with timestamp from multiple images with "picture taken date/time" in the meta data with ffmpeg or similar ?

    16 mars 2018, par m4D_guY

    I have two time lapse videos with a rate of 1 fps. The camera took 1 Image every minute. Unfortunately it was missed to set the camera to burn/print on every image the time and date. I am trying to burn the time and date afterwards into the video.

    I decoded with ffmpeg the two .avi files into  7000 single images each and wrote a R script that renamed the files into their "creation" date (the time and date the pictures where taken). Then i used exiftoolto write those information "into" the file, into their exif data or meta data or whatever this is called.

    The final images in the folder are looking like this :

    2018-03-12 17_36_40.png

    2018-03-12 17_35_40.png

    2018-03-12 17_34_40.png

    ...

    Is it possible to create a Video from these images again with ffmpeg or similiar with a "timestamp" in the video so you can see while watching a time and date stamp in the video ?

  • Concat different video file types with different fps and resolutions using FFmpeg

    10 juillet 2018, par 1234567

    This is the command I am using :

    {"-y", "-i", file1.toString(), "-i", file2.toString(), "-strict", "experimental", "-filter_complex",
                   "[0:v]scale=480x640,setsar=1:1[v0];[1:v]scale=480x640,setsar=1:1[v1];[v0][0:a][v1][1:a] concat=n=2:v=1:a=1",
                   "-ab", "48000", "-ac", "2", "-ar", "22050", "-s", "480x640", "-vcodec", "libx264","-crf","27","-q","4","-preset", "ultrafast", rootPath + "/output.mp4"};

    When file types are similar, in my case mp4, and with same fps 30 and same resolution, 720 x 980, they do merge properly. But when I try different file types, say AVI, 3gp, mp4, then all with different fps and resolution and the AVI file with no audio, I get following error :

    ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.8 (GCC)
     configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
     libavutil      55. 17.103 / 55. 17.103
     libavcodec     57. 24.102 / 57. 24.102
     libavformat    57. 25.100 / 57. 25.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 31.100 /  6. 31.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/sdcard0/tyry/Videos/1.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2018-03-14 16:22:27
     Duration: 00:01:06.07, start: 0.000000, bitrate: 10775 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 960x540, 10757 kb/s, SAR 1:1 DAR 16:9, 47.06 fps, 90k tbr, 90k tbn, 180k tbc (default)
       Metadata:
         creation_time   : 2018-03-14 16:22:27
         handler_name    : VideoHandle
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 12 kb/s (default)
       Metadata:
         creation_time   : 2018-03-14 16:22:27
         handler_name    : SoundHandle
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/sdcard0/tyry/Videos/2018-03-17-11-33-07.mp4.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2018-03-17 11:33:15
     Duration: 00:00:06.63, start: 0.000000, bitrate: 1030 kb/s
       Stream #1:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 426x240, 1013 kb/s, SAR 1:1 DAR 71:40, 33.65 fps, 90k tbr, 90k tbn, 180k tbc (default)
       Metadata:
         creation_time   : 2018-03-17 11:33:15
         handler_name    : VideoHandle
       Stream #1:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 12 kb/s (default)
       Metadata:
         creation_time   : 2018-03-17 11:33:15
         handler_name    : SoundHandle
    [Parsed_concat_0 @ 0xacb60d40] Input link in1:v0 parameters (size 426x240, SAR 1:1) do not match the corresponding output link in0:v0 parameters (960x540, SAR 1:1)
    [Parsed_concat_0 @ 0xacb60d40] Failed to configure output pad on Parsed_concat_0
    Error configuring complex filters.
    Invalid argument

    What is the proper command to concat different file types, with different fps, and different resolution and map audio properly to a set fps and resolution, output being mp4 file ?