Recherche avancée

Médias (91)

Autres articles (74)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (5389)

  • Unable to find a suitable output format while cutting video

    22 juillet 2018, par Java Android

    I am using below command to cut video-

    String complexCommand = new String[]{"-y", "-i", yourRealPath, "-ss", "" + startMs / 1000, "-t", "" + (endMs - startMs) / 1000, "-c", "copy", filePath};

    I got 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/Download/file3gpp.3gpp’ :\n Metadata :\n
    major_brand : 3gp4\n minor_version : 0\n
    compatible_brands : isom3gp4\n creation_time : 2018-04-09
    12:04:29\n com.android.version : 7.1.1\n Duration : 00:00:04.88,
    start : 0.000000, bitrate : 1425 kb/s\n Stream #0:0(eng) : Audio : aac
    (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 96 kb/s (default)\n
    Metadata :\n creation_time : 2018-04-09 12:04:29\n
    handler_name : SoundHandle\n[NULL @ 0xf622a600] Unable to find a
    suitable output format for
    ’/storage/emulated/0/Movies/cut_video.3gpp’\n/storage/emulated/0/Movies/cut_video.3gpp :
    Invalid argument\n"

    Why am i getting this error and how can i resolve it ?

  • Fixing a corrupted .MP4 file. which might be a 3gp file

    2 juin 2020, par Tendekai Muchenje

    I have a file called input.MP4 and it is corrupted. It's from a CCTV camera. I tried everything, ffmpeg, VLC convert, no luck. However, I used mediainfo and exiftool and extracted the following info. I am wondering if someone can figure out if I can use any of this info to fix it or convert it to a usable format. I have a copy of it here on my Google Drive

    



    mediainfo gave me this :

    



    General
Complete name                       : input.MP4
Format                              : MPEG-4
Format profile                      : 3GPP Media Release 5
Codec ID                            : 3gp5 (3gp5/3gp4/avc1/mp42/isom)
File size                           : 5.77 MiB
IsTruncated                         : Yes


    



    exiftool gave me this :

    



    ExifTool Version Number          : 10.80
File Name                        : input.MP4
Directory                        : /home/tendi/Downloads
File Size                        : 5.8 MB
File Modification Date/Time      : 2018:07:21 19:09:03-04:00
File Access Date/Time            : 2018:07:21 19:30:48-04:00
File Inode Change Date/Time      : 2018:07:21 19:30:48-04:00
File Permissions                 : rw-rw-r--
File Type                        : 3GP
File Type Extension              : 3gp
MIME Type                        : video/3gpp
Major Brand                      : 3GPP Media (.3GP) Release 5
Minor Version                    : 0.0.0
Compatible Brands                : 3gp5, 3gp4, avc1, mp42, isom
Movie Data Size                  : 5899106
Movie Data Offset                : 44


    



    Any suggestions ?

    


  • ASP.NET MVC - Converting Video Format From Email Attachment Scanner

    24 juillet 2018, par BenHayward

    We have a Quartz scheduler that scans the company email account every 60 seconds, and will process those emails accordingly. Any attachments are stored in a byte array.

    Video attachments need to be converted to an MP4 and then back to a byte array to be stored in the DB ; I am trying to use FFMPEG (fflib) to complete this, however I’m having trouble figuring out how it can be done with a byte array as the source - the company have stated that this conversion must be done before it enters the database.

    Is the conversion of a byte array possible using the Process Class to access the FFMPEG CLI ?

    Here is the code I currently have, just using local file locations (using fflib ffmpeg library).

    public IList<documentstoreattachment> AddDocumentsToDocumentStore(IList<fileattachment> documentsToStore, Guid personId, IList<documentattributedto> documentAttributes)
           {
               var storedDocuments = new List<documentstoreattachment>();

               foreach (var documentToStore in documentsToStore)
               {
                   try
                   {
                       if (IsExtensionAllowed(documentToStore.AttachmentName))
                       {

                           if (documentToStore.MimeType == "mpeg")
                           {
                               Job2Convert job = new Job2Convert()
                               {
                                   pszSrcFile = @"..\..\Amigo Loans 2018 Advert MPG.mpg",
                                   pszDstFile = @"C:\Users\ben.hayward\Desktop\Amigo Loans 2018 Advert MPG.mp4",

                                   pszDstFormat = "mp4",
                                   pszAudioCodec = "aac",

                                   nAudioChannels = 2,
                                   nAudioBitrate = -1,
                                   nAudioRate = -1,

                                   pszVideoCodec = "h264",

                                   nVideoBitrate = -1,
                                   nVideoFrameRate = -1,
                                   nVideoFrameWidth = -1,
                                   nVideoFrameHeight = -1

                               };

                               _sut.ConvertFile(job);

                           }

                           storedDocuments.Add(AddDocumentToDocumentStore(documentToStore.AttachmentName, documentToStore.ByteArray, documentToStore.MimeType, personId, documentAttributes));
                       }
                       else
                       {
                           Logger.WarnFormat("AddDocumentsToDocumentStore: File extension not allowed for file name: {0}, person id: {1}", documentToStore.AttachmentName, personId);
                       }
                   }
                   catch (Exception e)
                   {
                       #region Error

                       Logger.Error(String.Format("There was a problem saving the document to the document store. The file name was {0}, person id: {1}",
                           documentToStore.AttachmentName, personId), e);

                       #endregion
                   }
               }

               return storedDocuments;
           }
    </documentstoreattachment></documentattributedto></fileattachment></documentstoreattachment>

    Thank you in advance.