Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (7)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (3154)

  • ffmpeg : Combine/merge multiple mp4 videos not working, output only contains the first video

    22 janvier 2017, par dtbaker

    Here is the command I am using to combine multiple videos :

    ffmpeg -i 75_540_38HQ2.mp4 -i 76_70_20.mp4 -i 76_173_80.mp4 -i 81_186_35.mp4 -vcodec copy -acodec copy Mux1.mp4

    The resulting Mux1.mp4 does not contain all videos. Only the first video (75_540_38HQ2.mp4). The file size of the source and resulting video is below (as you can see, resulting video is slightly larger than first vid) :

    $ ls -lh
    
    - rw-r—r— 1 dbaker dbaker 42M 2011-03-24 11:59 75_540_38HQ2.mp4
    - rw-r—r— 1 dbaker dbaker 236M 2011-03-24 12:09 76_173_80.mp4
    - rw-r—r— 1 dbaker dbaker 26M 2011-03-24 12:05 76_70_20.mp4
    - rw-r—r— 1 dbaker dbaker 54M 2011-03-24 12:15 81_186_35.mp4
    - rw-r—r— 1 dbaker dbaker 44M 2011-03-24 14:48 Mux1.mp4

    Here is the output of the ffmpeg command. To me it looks ok, showing the multiple source inputs and the single output.

    FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers
      built on Mar 21 2011 18:05:32 with gcc 4.4.5
      configuration : —enable-gpl —enable-version3 —enable-nonfree —enable-postproc —enable-libfaac —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libtheora —enable-libvorbis —enable-libvpx —enable-libx264 —enable-libxvid —enable-x11grab
      libavutil     50.36. 0 / 50.36. 0
      libavcore      0.16. 1 /  0.16. 1
      libavcodec    52.108. 0 / 52.108. 0
      libavformat   52.93. 0 / 52.93. 0
      libavdevice   52. 2. 3 / 52. 2. 3
      libavfilter    1.74. 0 /  1.74. 0
      libswscale     0.12. 0 /  0.12. 0
      libpostproc   51. 2. 0 / 51. 2. 0
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’75_540_38HQ2.mp4’ :
      Metadata :
        major_brand : isom
        minor_version : 512
        compatible_brands : isomiso2avc1mp41
        creation_time : 1970-01-01 00:00:00
        encoder : Lavf52.93.0
      Duration : 00:00:29.99, start : 0.000000, bitrate : 11517 kb/s
        Stream #0.0(eng) : Video : h264, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], 11575 kb/s, 29.94 fps, 29.97 tbr, 30k tbn, 59.94 tbc
        Metadata :
          creation_time : 1970-01-01 00:00:00
        Stream #0.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 127 kb/s
        Metadata :
          creation_time : 1970-01-01 00:00:00
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from ’76_70_20.mp4’ :
      Metadata :
        major_brand : isom
        minor_version : 512
        compatible_brands : isomiso2avc1mp41
        creation_time : 1970-01-01 00:00:00
        encoder : Lavf52.93.0
      Duration : 00:00:19.98, start : 0.000000, bitrate : 10901 kb/s
        Stream #1.0(eng) : Video : h264, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], 10804 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc
        Metadata :
          creation_time : 1970-01-01 00:00:00
        Stream #1.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 128 kb/s
        Metadata :
          creation_time : 1970-01-01 00:00:00
    Input #2, mov,mp4,m4a,3gp,3g2,mj2, from ’76_173_80.mp4’ :
      Metadata :
        major_brand : isom
        minor_version : 512
        compatible_brands : isomiso2avc1mp41
        creation_time : 1970-01-01 00:00:00
        encoder : Lavf52.93.0
      Duration : 00:03:09.99, start : 0.000000, bitrate : 10393 kb/s
        Stream #2.0(eng) : Video : h264, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], 10321 kb/s, 29.96 fps, 29.97 tbr, 30k tbn, 59.94 tbc
        Metadata :
          creation_time : 1970-01-01 00:00:00
        Stream #2.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 128 kb/s
        Metadata :
          creation_time : 1970-01-01 00:00:00
    

    Seems stream 0 codec frame rate differs from container frame rate : 119.88 (120000/1001) -> 30000.00 (30000/1)
    Input #3, mov,mp4,m4a,3gp,3g2,mj2, from ’81_186_35.mp4’ :
    Metadata :
    major_brand : isom
    minor_version : 512
    compatible_brands : isomiso2avc1mp41
    creation_time : 1970-01-01 00:00:00
    encoder : Lavf52.93.0
    Duration : 00:00:35.00, start : 0.000000, bitrate : 12700 kb/s
    Stream #3.0(eng) : Video : h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 12620 kb/s, 59.91 fps, 30k tbr, 60k tbn, 119.88 tbc
    Metadata :
    creation_time : 1970-01-01 00:00:00
    Stream #3.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 128 kb/s
    Metadata :
    creation_time : 1970-01-01 00:00:00
    Output #0, mp4, to ’Mux1.mp4’ :
    Metadata :
    major_brand : isom
    minor_version : 512
    compatible_brands : isomiso2avc1mp41
    creation_time : 1970-01-01 00:00:00
    encoder : Lavf52.93.0
    Stream #0.0(eng) : Video : libx264, yuv420p, 1280x960 [PAR 1:1 DAR 4:3], q=2-31, 11575 kb/s, 30k tbn, 29.97 tbc
    Metadata :
    creation_time : 1970-01-01 00:00:00
    Stream #0.1(eng) : Audio : libfaac, 48000 Hz, stereo, 128 kb/s
    Metadata :
    creation_time : 1970-01-01 00:00:00
    Stream mapping :
    Stream #0.0 -> #0.0
    Stream #2.1 -> #0.1
    Press [q] to stop encoding
    frame= 883 fps=632 q=-1.0 Lsize= 44730kB time=29.40 bitrate=12465.1kbits/s
    video:41678kB audio:2969kB global headers:0kB muxing overhead 0.184548%

    Am I doing something blindingly stupid here ?

    The source videos came from a video camera, and are small snippets taken with ffmpeg -i bigfile.mp4 -ss 20 -t 10 -vcodec copy etc..

    Thanks heaps !!
    Dave


    Edit : couldn’t solve it so I just use avidemux GUI tool. It seemed to append the MP4’s just fine.

    Must be a problem with MP4’s or just the ones that come off a gopro camera.

  • Command validation detected libx264 use

    25 octobre 2016, par Jithish P N

    Configured FFmpeg4Android by refer this tutorial

    http://androidwarzone.blogspot.in/2011/12/ffmpeg4android.html

    Using ffmpeg , converted .mp4 videos to MPEG-4 H.263 . but it is not working web .

    How to convert .mp4 videos to MPEG-4 AVC(Advanced Video Codec) format , using ffmpeg4android is it possible ?

    FFmpeg Command

    String[] complexCommand={"ffmpeg","-y" , "-i", "/sdcard/videokit/in.mp4","-strict","experimental","-s", "160x120","-vcodec", "libx264", "-vprofile", "high", "-preset", "slow", "-b:v", "500k" ,"-maxrate" ,"500k" ,"-bufsize" ,"1000k" ,"-vf", "scale=-1:480","-threads",
                       "0", "-acodec", "libvo_aacenc" ,"-b:a", "128k", "/sdcard/videokit/out1.mp4"};

    Error

    W/ffmpeg4android: Command validation detected libx264 use
    W/ffmpeg4android: Make sure you use the extra libs that support libx264
    W/ffmpeg4android: Note that you will have to target api 22 or below in your Manifest when using libx264

    Note :

    To set Extra Libraries tried these.

    1.Copy the x86 files to ffmpeg4android_lib/libs

    2.Copy the x86 files to ffmpeg4android_lib/jniLibs .

    and add the abiFilter "x86" defaultConfig

    still error not resolved.

    How to set Extra Libraries ?

  • Compiling ffmpeg to support libx264 encoder

    18 octobre 2016, par Nooruddin Lakhani

    I am using ffmpeg library for video compression. I am using the sample code from ffmpeg4android_lib and the following command to compress the video.

    String[] complexCommand = new String[]{ "ffmpeg", "-y", "-i",
               "/sdcard/videokit/in.mp4", "-strict", "experimental",
               "-vcodec", "mpeg4", "-b:v", "500k",
               "-acodec", "aac", "-ar", "48000", "-ac", "1",
               "-b:a", "96k", "-s", "480x360", "/sdcard/videokit/out.mp4" };

    in.mp4 video file is recorded from camera which is originally 46 mb. It convert video file size to 1.7 mb with better quality. When I select another video from Whatsapp Gallery which is already compressed by Whatsapp like I have a Whatsapp video which is 6 min duration and 9.8 mb in size, when I select this video to compress with the same command, It’s size becomes 26 mb which is larger than original. When I decrease the video bit rate from 500k to 150k then output file size becomes smaller but quality becomes poor which cannot be acceptable.

    I have found people are using libx264 encoder to find better quality with minimum file size. I have changed my compress command to use this encoder.

    String[] complexCommand = new String[]{ "ffmpeg", "-y", "-i",
           "/sdcard/videokit/in.mp4", "-strict", "experimental",
               "-vcodec", "libx264", "-preset", "medium", "-b:v", "500k",
               "-crf", "26", "-acodec", "aac", "-ar", "48000", "-ac", "1",
               "-b:a", "96k", "-s", "480x360", "/sdcard/videokit/out.mp4" };

    But the above command is not working with ffmpeg library. I am getting the following issue which write log in vk.log file

    Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'libx264'.
    Reading option '-preset' ...Unrecognized option 'preset'.
    Error splitting the argument list: Option not found
    ffmpeg4android: ffmpeg_parse_options not passed
    exit_program: 1

    I am trying to use the encoder libx264, but ffmpeg not compiled to support this encoder. How can I configure libx264 with ffmpeg ? I have found the following references to configure ffmpeg With libx264

    1- ffmpeg on Heroku : unrecognized option ’preset’

    2- http://blog.oneiroi.co.uk/linux/ffmpeg-install-with-libx264-h264/

    3- http://writingminds.github.io/ffmpeg-android/

    Should I have to download NDK and will have to configure It through libx264 commands as defined in above references. I am not getting how to configure it through commands because I have to configure it in Android Studio with ffmpeg and I am using windows not ubuntu or Linux. Please suggest me how can i achieve this ?