Recherche avancée

Médias (1)

Mot : - Tags -/publier

Autres articles (84)

  • 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 ;

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

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

Sur d’autres sites (10712)

  • Rails FFMPEG - convert to webm gives error for encoder 'libvpx-vp9'

    7 mai 2019, par Milind

    I am testing video conversion to convert video file into mp4 and webm.
    I have also setup ffmpeg and compiled properly.Mp4 conversion succeeds but webm breaks always complaining as -

    The encoder 'libvpx-vp9' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.

    its strange as I aready have vp8 present -

    mike1011:~/workspace (s1) $ ffmpeg -encoders | grep -i vp
    ffmpeg version git-2016-03-29-bf1495d Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
     configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3
     libavutil      55. 19.100 / 55. 19.100
     libavcodec     57. 32.100 / 57. 32.100
     libavformat    57. 29.101 / 57. 29.101
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 40.102 /  6. 40.102
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    V..... libvpx               libvpx VP8 (codec vp8)
    V..X.. libvpx-vp9           libvpx VP9 (codec vp9)
    V..... wrapped_avframe      AVFrame to AVPacket passthrough
    A..... wavpack              WavPack

    my model..video.rb looks like -

    has_attached_file :video,
      :styles => {
         :mp4video => { :geometry => '1280x720>', :format => 'mp4',
           :convert_options => { :output => { :vcodec => 'libx264', :movflags => '+faststart',  :strict => :experimental} } },
         :webmvideo => { :geometry => '1280x720>', :format => 'webm',
           :convert_options => { :output => { :vcodec => 'libvpx-vp9'} } },
         :oggvideo => { :geometry => '1280x720>', :format => 'ogg',
           :convert_options => { :output => { :vcodec => 'libtheora',
             :acodec => 'libvorbis',  :strict => :experimental } } },
         screenshot: { geometry: '640x480#',  :convert_options => {
           :output => { :vframes => 1, :s => '300x169', :ss => '00:00:02'} } }
       },    
       :processors => [:transcoder],
        ###other setting comes here

     ##using delayed-paperclip for background processing of videos
     process_in_background :video

     def process_delayed!
       unless self.video.job_is_processing
         self.video.job_is_processing = true
         self.video.post_processing = true
         self.video.reprocess!
         self.video.job_is_processing = false
       end  
     end  

    I am sharing my complete output below(with error highlighted :)) -

       2.4.1 :003 > v=Video.find 25
         Video Load (1.8ms)  SELECT  "videos".* FROM "videos" WHERE "videos"."id" = $1 LIMIT 1  [["id", 25]]
        => #<video></video>mp4", video_file_size: 1105773, video_updated_at: "2019-02-02 00:17:37", duration: 18.112, slug: "sample320-mp4-dbb96526-5db1-4c59-9152-615fc077eca7", active: true, created_at: "2019-02-02 00:17:37", updated_at: "2019-02-02 00:17:37", video_processing: true>
       2.4.1 :004 > v.process_delayed!
       [paperclip] copying /videos/25/original/Sample320.mp4 to local file /tmp/6b5665997c56c12544e7069276f6660b20190203-677953-1jsw8d1.mp4
       [paperclip] Trying to link /tmp/6b5665997c56c12544e7069276f6660b20190203-677953-1jsw8d1.mp4 to /tmp/6b5665997c56c12544e7069276f6660b20190203-677953-1qmn2uk.mp4
       I, [2019-02-03T00:12:09.849885 #677953]  INFO -- : Running transcoding...
       ["/usr/local/bin/ffmpeg", "-y", "-i", "/tmp/6b5665997c56c12544e7069276f6660b20190203-677953-1jsw8d1.mp4", "-s", "360x240", "-aspect", "1.5", "/tmp/2f51a6ecbce019dcad28a46b5be980ec20190203-677953-rh2lh0.mp4"]

       I, [2019-02-03T00:12:16.060391 #677953]  INFO -- : Transcoding of /tmp/6b5665997c56c12544e7069276f6660b20190203-677953-1jsw8d1.mp4 to /tmp/2f51a6ecbce019dcad28a46b5be980ec20190203-677953-rh2lh0.mp4 succeeded

       [paperclip] Trying to link /tmp/2f51a6ecbce019dcad28a46b5be980ec20190203-677953-rh2lh0.mp4 to /tmp/2961027361de4afbbb86f7764a034ee020190203-677953-1g0vvwe.mp4
       I, [2019-02-03T00:12:16.082499 #677953]  INFO -- : Running transcoding...
       ["/usr/local/bin/ffmpeg", "-y", "-i", "/tmp/6b5665997c56c12544e7069276f6660b20190203-677953-1jsw8d1.mp4", "-s", "360x240", "-aspect", "1.5", "/tmp/2f51a6ecbce019dcad28a46b5be980ec20190203-677953-fv3pzs.webm"]

       E, [2019-02-03T00:12:16.202420 #677953] ERROR -- : Failed encoding...
       ["/usr/local/bin/ffmpeg", "-y", "-i", "/tmp/6b5665997c56c12544e7069276f6660b20190203-677953-1jsw8d1.mp4", "-s", "360x240", "-aspect", "1.5", "/tmp/2f51a6ecbce019dcad28a46b5be980ec20190203-677953-fv3pzs.webm"]

       ffmpeg version git-2016-03-29-bf1495d Copyright (c) 2000-2016 the FFmpeg developers
         built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
         configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3
         libavutil      55. 19.100 / 55. 19.100
         libavcodec     57. 32.100 / 57. 32.100
         libavformat    57. 29.101 / 57. 29.101
         libavdevice    57.  0.101 / 57.  0.101
         libavfilter     6. 40.102 /  6. 40.102
         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 '/tmp/6b5665997c56c12544e7069276f6660b20190203-677953-1jsw8d1.mp4':
         Metadata:
           major_brand     : isom
           minor_version   : 512
           compatible_brands: isomiso2avc1mp41
           encoder         : Lavf57.76.100
         Duration: 00:00:18.11, start: 0.000000, bitrate: 488 kb/s
           Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 360x240 [SAR 32:27 DAR 16:9], 353 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
           Metadata:
             handler_name    : VideoHandler
           Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 129 kb/s (default)
           Metadata:
             handler_name    : SoundHandler

    XXXXXXXXXXXXXXXXXXXXXXXX====== HERE COMES THE ERROR========XXXXXXXXXXXX
       [libvpx-vp9 @ 0x3e3dec0] The encoder 'libvpx-vp9' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.

       Errors: encoded file is invalid.

       Paperclip::Error: There was an error processing the transcoder for 6b5665997c56c12544e7069276f6660b20190203-677953-1jsw8d1
              ...
  • FFMPEG images to video outputs junk

    15 décembre 2019, par GreatCorn

    I’m very new to using FFMPEG and I’m trying to make an image sequence into a video. However, none of my attempts were succesful. I first tried 825x480 .pngs which resulted in video output and then 512x512 .jpgs, pretty much the same result. I tried a few codes like ffmpeg -framerate 24 -i img%03d.png output.mp4, ffmpeg -r 1/5 -framerate 24 -i img%03d.png -c:v libx264 -vf -pix_fmt yuv420p output.mp4 and etc. I just don’t really understand what I’m supposed to do to prevent this.

  • Audio Video merge using ffmpeg- moov atom not found error

    8 mars 2019, par varmashrivastava

    I am using below command for merging audio and video-

    "-i", videoFileAbsolutePath, "-i", audioFileAbsolutePath, "-c:v", "copy", "-c:a", "aac", "-map", "0:v:0", "-map", "1:a:0", "-shortest", destinationFileAbsolutePath

    For few videos I am getting below error-

    ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers\n
    built with gcc 4.8 (GCC)\n 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=\n libavutil 55. 17.103 / 55. 17.103\n libavcodec 57. 24.102 / 57. 24.102\n libavformat 57. 25.100 /
    57. 25.100\n libavdevice 57. 0.101 / 57. 0.101\n libavfilter 6. 31.100 / 6. 31.100\n libswscale 4. 0.100 / 4. 0.100\n libswresample 2. 0.101 / 2. 0.101\n libpostproc 54. 0.100 /
    54. 0.100\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from ’/storage/emulated/0/keepvid/Amar_Akbar_Anthony_(HD)_-_Hindi_Full_Movie_-_Amitabh_Bachchan,_Vinod_Khanna,_Rishi_Kapoor,_1080P.mp4’ :\n
    Metadata :\n major_brand : dash\n minor_version : 0\n
    compatible_brands : iso6avc1mp41\n creation_time : 2018-10-23
    19:02:47\n Duration : 02:46:52.04, start : 0.000000, bitrate : 1528
    kb/s\n Stream #0:0(und) : Video : h264 (High) (avc1 / 0x31637661),
    yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 0 kb/s, 25 fps, 25
    tbr, 90k tbn, 50 tbc (default)\n Metadata :\n creation_time :
    2018-10-23 19:02:47\n handler_name :
    VideoHandler\n[mov,mp4,m4a,3gp,3g2,mj2 @ 0xeb62d600] Format
    mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1,
    misdetection possible
     !\n[mov,mp4,m4a,3gp,3g2,mj2 @ 0xeb62d600]
    moov atom not found\n/storage/emulated/0/keepvid/Amar_Akbar_Anthony_(HD)_-_Hindi_Full_Movie_-_Amitabh_Bachchan,_Vinod_Khanna,_Rishi_Kapoor,_1080P.m4a :
    Invalid data found when processing input

    I got similar kind of error also while creating watermark-

    "-i", videoFileAbsolutePath, "-i", imageFileAbsolutePath, "-filter_complex", "overlay=" + position, dest.getAbsolutePath()

    ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers\n built with gcc 4.8 (GCC)\n 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=\n libavutil 55. 17.103 / 55. 17.103\n libavcodec 57. 24.102 / 57. 24.102\n libavformat 57. 25.100 / 57. 25.100\n libavdevice 57. 0.101 / 57. 0.101\n libavfilter 6. 31.100 / 6. 31.100\n libswscale 4. 0.100 / 4. 0.100\n libswresample 2. 0.101 / 2. 0.101\n libpostproc 54. 0.100 / 54. 0.100\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from ’/storage/emulated/0/WhatsApp Business/Media/WhatsApp Business Video/VID-20190215-WA0016.mp4’ :\n Metadata :\n major_brand : mp42\n minor_version : 1\n compatible_brands : mp41mp42isom\n creation_time : 2019-02-14 11:53:37\n Duration : 00:00:45.56, start : 0.000000, bitrate : 1444 kb/s\n Stream #0:0(und) : Video : h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 848x480, 1382 kb/s, 29.98 fps, 29.97 tbr, 600 tbn, 1200 tbc (default)\n Metadata :\n creation_time : 2019-02-14 11:53:37\n handler_name : Core Media Video\n Stream #0:1(und) : Audio : aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 59 kb/s (default)\n Metadata :\n creation_time : 2019-02-14 11:53:37\n handler_name : Core Media Audio\n[mov,mp4,m4a,3gp,3g2,mj2 @ 0xf0e30600] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible !\n[mov,mp4,m4a,3gp,3g2,mj2 @ 0xf0e30600] moov atom not found\n/storage/emulated/0/Movies/IMG-20190225-WA0030.jpg.mp4 : Invalid data found when processing input\n

    How can i resolve this error ?