Recherche avancée

Médias (91)

Autres articles (32)

  • Emballe Médias : Mettre en ligne simplement des documents

    29 octobre 2010, par

    Le plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
    Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
    D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

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

Sur d’autres sites (6490)

  • Post request not processing upload

    21 février 2018, par user3799793

    I am having trouble uploading large videos to my elastic beanstalk rails instance. When I upload small videos, my application works fine. But, when uploading large videos the post request doesn’t seem to process the video. The output of the log only returns :

    I, [2018-02-13T19:47:11.947391 #20262]  INFO -- : [7f5d6846-c9b4-473d-b1fe-1e94056a6474] Started POST "/movies" for 108.71.214.220 at 2018-02-13 19:47:11 +0000

    The post request should look something like this :

    I, [2018-02-20T03:01:00.228579 #24802]  INFO -- : [174f98cf-d26f-4cc9-987f-021987ead17c] Started POST "/movies" for 108.71.214.220 at 2018-02-20 03:01:00 +0000
    I, [2018-02-20T03:01:06.584806 #24802]  INFO -- : [174f98cf-d26f-4cc9-987f-021987ead17c] [paperclip] saving /movies/videos/000/000/003/original/SampleVideo_640x360_30mb.flv
    D, [2018-02-20T03:01:09.390598 #24802] DEBUG -- : [174f98cf-d26f-4cc9-987f-021987ead17c]   ^[[1m^[[35m (0.9ms)^[[0m  ^[[1m^[[35mCOMMIT^[[0m
    I, [2018-02-20T03:01:09.392579 #24802]  INFO -- : [174f98cf-d26f-4cc9-987f-021987ead17c] [ActiveJob] Enqueued DelayedPaperclip::ProcessJob (Job ID: 01373ae4-89cb-486c-9d44-eaa74d9211c5) to Async(paperclip) with arguments: "Movie", 3, "video"
    I, [2018-02-20T03:01:09.392707 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] Performing DelayedPaperclip::ProcessJob (Job ID: 01373ae4-89cb-486c-9d44-eaa74d9211c5) from Async(paperclip) with arguments: "Movie", 3, "video"
    I, [2018-02-20T03:01:09.396173 #24802]  INFO -- : [174f98cf-d26f-4cc9-987f-021987ead17c] Completed 201 Created in 3046ms (Views: 0.4ms | ActiveRecord: 4.5ms)
    D, [2018-02-20T03:01:09.409028 #24802] DEBUG -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5]   ^[[1m^[[36mMovie Load (0.4ms)^[[0m  ^[[1m^[[34mSELECT  "movies".* FROM "movies" WHERE "movies"."id" = $1 LIMIT $2^[[0m  [["id", 3], ["LIMIT", 1]]
    I, [2018-02-20T03:01:09.409801 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [paperclip] copying /movies/videos/000/000/003/original/SampleVideo_640x360_30mb.flv to local file /tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl.flv
    I, [2018-02-20T03:01:12.383537 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] Command :: file -b --mime '/tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1xdygtx.flv'
    I, [2018-02-20T03:01:12.387977 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: if command -v avprobe 2>/dev/null; then echo "true"; else echo "false"; fi
    I, [2018-02-20T03:01:12.389194 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: if command -v ffmpeg 2>/dev/null; then echo "true"; else echo "false"; fi
    I, [2018-02-20T03:01:12.433230 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Found ["ffmpeg"], using: Ffmpeg
    I, [2018-02-20T03:01:12.433323 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: if command -v avprobe 2>/dev/null; then echo "true"; else echo "false"; fi
    I, [2018-02-20T03:01:12.434721 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: if command -v ffmpeg 2>/dev/null; then echo "true"; else echo "false"; fi
    I, [2018-02-20T03:01:12.436039 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Found ["ffmpeg"], using: Ffmpeg
    I, [2018-02-20T03:01:12.436099 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: ffmpeg -i "/tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl.flv" 2>&1
    I, [2018-02-20T03:01:12.658521 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [paperclip] [transcoder] Transocding supported file /tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl.flv
    I, [2018-02-20T03:01:12.658618 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Adding output parameter ["acodec", "aac"]
    I, [2018-02-20T03:01:12.658657 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Adding output parameter ["strict", "experimental"]
    I, [2018-02-20T03:01:12.658704 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Adding output parameter [:s, "640x480"]
    I, [2018-02-20T03:01:12.658759 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: ffmpeg -i "/tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl.flv" -acodec aac -strict experimental -s 640x480 -y "/tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl20180220-24802-1hl2kvo.mp4"
    I, [2018-02-20T03:01:12.434721 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: if command -v ffmpeg 2>/dev/null; then echo "true"; else echo "false"; fi
    I, [2018-02-20T03:01:12.436039 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Found ["ffmpeg"], using: Ffmpeg
    I, [2018-02-20T03:01:12.436099 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: ffmpeg -i "/tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl.flv" 2>&1
    I, [2018-02-20T03:01:12.658521 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [paperclip] [transcoder] Transocding supported file /tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl.flv
    I, [2018-02-20T03:01:12.658618 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Adding output parameter ["acodec", "aac"]
    I, [2018-02-20T03:01:12.658657 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Adding output parameter ["strict", "experimental"]
    I, [2018-02-20T03:01:12.658704 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Adding output parameter [:s, "640x480"]
    I, [2018-02-20T03:01:12.658759 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [AV] Running command: ffmpeg -i "/tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl.flv" -acodec aac -strict experimental -s 640x480 -y "/tmp/1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl20180220-24802-1hl2kvo.mp4"
    I, [2018-02-20T03:02:03.194536 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [paperclip] [transcoder] Successfully transcoded 1198ad681cf1d8dabf71cd056e42731f20180220-24802-1mzblvl to #
    I, [2018-02-20T03:02:03.227408 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [paperclip] saving /movies/videos/000/000/003/original/SampleVideo_640x360_30mb.flv
    I, [2018-02-20T03:02:06.164693 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] [paperclip] saving /movies/videos/000/000/003/medium/SampleVideo_640x360_30mb.mp4
    D, [2018-02-20T03:02:08.467048 #24802] DEBUG -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5]   ^[[1m^[[35m (0.2ms)^[[0m  ^[[1m^[[35mBEGIN^[[0m
    D, [2018-02-20T03:02:08.469704 #24802] DEBUG -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5]   ^[[1m^[[36mMovie Exists (0.4ms)^[[0m  ^[[1m^[[34mSELECT  1 AS one FROM "movies" WHERE LOWER("movies"."title") = LOWER($1) AND ("movies"."id" != $2) LIMIT $3^[[0m  [["title", "test"], ["id", 3], ["LIMIT", 1]]
    D, [2018-02-20T03:02:08.471260 #24802] DEBUG -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5]   ^[[1m^[[35mSQL (0.3ms)^[[0m  ^[[1m^[[33mUPDATE "movies" SET "video_file_name" = $1, "video_updated_at" = $2, "updated_at" = $3 WHERE "movies"."id" = $4^[[0m  [["video_file_name", "SampleVideo_640x360_30mb.flv"], ["video_updated_at", "2018-02-20 03:01:12.308214"], ["updated_at", "2018-02-20 03:02:08.470020"], ["id", 3]]
    D, [2018-02-20T03:02:08.472524 #24802] DEBUG -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5]   ^[[1m^[[35m (0.9ms)^[[0m  ^[[1m^[[35mCOMMIT^[[0m
    I, [2018-02-20T03:02:08.472777 #24802]  INFO -- : [ActiveJob] [DelayedPaperclip::ProcessJob] [01373ae4-89cb-486c-9d44-eaa74d9211c5] Performed DelayedPaperclip::ProcessJob (Job ID: 01373ae4-89cb-486c-9d44-eaa74d9211c5) from Async(paperclip) in 59079.31ms

    After the initial post request there should be a statements show the processing of the request and the processing of ffmpeg. As you can see i get none of those. There is not even a statement of completion.
    Any help will be appreciated.

    Here’s a copy of my create action

    def create      
       movie = Movie.new(movie_params)

       if movie.save
           Resque.enqueue(TranscodeVideo, movie.id)
           render json: movie, status: 201
       else
           render json: { errors: movie.errors }, status: 422
       end
    end

    Here’s a copy of the worker

    class TranscodeVideo
       @queue = :movie_queue

       def self.perform(movie_id)
                       movie = Movie.find(movie_id)

                       Delayed::Worker.new.work_off
                       movie.reload
       end
    end
  • How do I subtract a word from the output in bash

    23 octobre 2012, par user1768840

    I made a simple bash script to convert movies from .avi to .mp4 but now I want to do two more things.

    1. Have the output file have only *.mp4 rather than *.avi.mp4
    2. Delete the old file after the conversion is completed.

    Here is my script.

    #!/bin/bash


    avconv -i "$1" -c:v libx264 -c:a copy -sn -crf 24 "$1".mp4
  • ffmpeg concat iMovie Import - Inconsistent Failure

    9 octobre 2017, par Erik Kastman

    I’m attempting to create two movies using a set of timed screenshots with ffmpeg, using -f concat to specify png screenshots and durations that they should be shown for. I’m pulling mostly from the ffmpeg slideshow tutorial
    and concat documentation. Quicktime is able to open both of my ffmpeg-generated movies without problem, but despite using identical commands and scripts to create them, iMovie has no problem opening one and never opens the other, no matter how many times I recreate the source screenshots/durations and recreate the video.

    I have two screens that are captured from my input and converted to pngs, and I’m trying to generate two movies to import into iMovie and show side by side at the same time. To generate the movies, I’m using the following command :

    ffmpeg -f concat -i win1input.txt -vsync vfr -pix_fmt yuv420p win1.mov
    ffmpeg -f concat -i win2input.txt -vsync vfr -pix_fmt yuv420p win2.mov

    Where win1input.txt and win2input.txt are essentially identical (generated from the same script with different filenames and times) :

    file 'win1-01.png'
    duration 3.07
    file 'win1-02.png'
    duration 2.55
    ...

    Both movies are generated and can be opened by quicktime without any complaints. However, when I try to import them into iMovie, the first movie always imports just fine, and the second gives the error "No importable files" and has a 0 duration in the media preview window.

    Can anyone suggest ways to look at the movies and try to find what could be throwing iMovie ? Without a more detailed error I’m stuck. And I’m totally confused as to what could be the difference between the two, since they are generated from the same process, codec, etc. Any help or suggestions for further info about the movies would be appreciated !

    UPDATE with ffmpeg -i output :

    $ ffmpeg -i badMovie.mov

    ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
     built with Apple LLVM version 8.1.0 (clang-802.0.42)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libass --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-opencl --enable-openssl --disable-lzma --enable-nonfree --enable-vda
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libavresample   3.  5.  0 /  3.  5.  0
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'badMovie.mov':
     Metadata:
       major_brand     : qt  
       minor_version   : 512
       compatible_brands: qt  
       encoder         : Lavf56.40.101
     Duration: 00:02:09.84, start: 0.000000, bitrate: 36 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x800, 35 kb/s, 0.28 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
         handler_name    : DataHandler
         encoder         : Lavc56.60.100 libx264


    $ ffmpeg -i goodMovie.mov
    ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
     built with Apple LLVM version 8.1.0 (clang-802.0.42)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.2 --enable-shared --   enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libass --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-opencl --enable-openssl --disable-lzma --enable-nonfree --enable-vda
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libavresample   3.  5.  0 /  3.  5.  0
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'goodMovie.mov':
     Metadata:
       major_brand     : qt  
       minor_version   : 512
       compatible_brands: qt  
       encoder         : Lavf56.40.101
     Duration: 00:02:11.84, start: 0.000000, bitrate: 13 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x800, 13 kb/s, 0.64 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
     handler_name    : DataHandler
     encoder         : Lavc56.60.100 libx264