Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (8)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (2957)

  • Crash while using ffmpeg4android using Galaxy s6 edge device

    21 juillet 2016, par Amira Elsayed Ismail

    I am using ffmpeg4android_lib to compress video in my android application, it is working in almost all testing devices but it does not work in Galaxy s6 edge and Galaxy s7 edge.

    my code as following :

    String inputFile = FileManager.getInstance().getRealPathFromVideoUri(context, video);
    Log.i("INPUT FILE PATH", inputFile);

    LoadJNI vk = new LoadJNI();
    try {
           String workFolder = context.getApplicationContext().getFilesDir().getAbsolutePath();
           String outputFile = FileManager.getInstance().getFileFullName(ForSaleConstants.VIDEO_FOLDER,
           String.format(ForSaleConstants.VIDEO_NAME_FILE_FORMAT,      ForSaleConstants.VIDEO_NAME_FILE_NAME_PREFIX, System.currentTimeMillis()));

           String complexCommand[] = {
               "ffmpeg", "-y"
               , "-i", inputFile
               , "-strict", "experimental"
               , "-s", "320x240"
               , "-r", "25"
               , "-aspect", "4:3"
               , "-ab", "48000"
               , "-ac", "2"
               , "-vcodec", "mpeg4"
               , "-movflags", "+faststart"
               , "-ar", "22050"
               , "-b", "2097k"
               , outputFile};
               vk.run(complexCommand, workFolder, context.getApplicationContext());
               Log.i("OUTPUT FILE PATH", outputFile);
               return outputFile;
       } catch (Throwable e) {
           ForSaleServerManager.getInstance().logAndroidError("Couldn't compress video file");
           return null;
       }

    The crash as following :

    nativeLibraryDirectories=[/data/app/com.forsale.forsale-1/lib/arm64, /data/app/com.forsale.forsale-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libloader-jni.so"
    at java.lang.Runtime.loadLibrary(Runtime.java:367)
    at java.lang.System.loadLibrary(System.java:1076)
    at com.netcompss.loader.LoadJNI.<clinit>(LoadJNI.java:13)
    </clinit>
  • Android Exoplayer garbled mp4 video output on imagereader surface while playing fine on SurfaceView (Samsung galaxy tab s7)

    29 mars 2023, par Orcun

    Problem :

    &#xA;

    I am trying to play an mp4 video file on Samsung Galaxy Tab S7 for video processing purposes. For the purpose, I use Exoplayer(v2.18.4) library to be able to play the video onto an ImageReader surface so that I can grab the frames in ImageReader.OnImageAvailableListener.

    &#xA;

    I do not have any problems in getting the frames. However, the frames I acquire are garbled/corrupted like :

    &#xA;

    garbled frame

    &#xA;

    When I saw this frame, it made me think that it is some sort of color format or codec issue for the mp4 file or device I use. In logcat, there are no errors reported.&#xA;Device uses [OMX.qcom.video.decoder.avc] decoder. Also, same video plays nicely on some other devices that use exactly the same decoder.

    &#xA;

    What I tried so far :

    &#xA;

    I tried a lot of things to understand the root cause and also find a solution, so my brain currently is free flowing stream. I will try to summarise, please bear with me.

    &#xA;

    I use a CustomMediaCodecVideoRenderer in my app which overrides MediaCodecVideoRenderer.getMediaFormat of Exoplayer to set color format like :

    &#xA;

    setInteger(MediaFormat.KEY_COLOR_FORMAT, MediaCodecInfo.CodecCapabilities.COLOR_FormatYUV420Flexible)&#xA;

    &#xA;

    This step proved itself necessary. Without it I get a crash simply because I cannot access the image planes of an image frame in expected YUV image format.&#xA;This unfortunately was not enough for the Samsung Galaxy Tab 7 although it was already enough for another device like Xiaomi to render the image correctly.

    &#xA;

    Then I decided to use a library like ffmpeg to modify the mp4 file itself to maybe use a different profile, color format, resolution that is widely compatible in android devices. No luck so far.&#xA;a quick ffprobe on my mp4 file shows :

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;outputyuv169.mp4&#x27;:&#xA;Metadata:&#xA;  major_brand     : isom&#xA;  minor_version   : 512&#xA;  compatible_brands: isomiso2avc1mp41&#xA;  encoder         : Lavf59.16.100&#xA;Duration: 00:03:00.02, start: 0.000000, bitrate: 4823 kb/s&#xA;Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), &#xA;1280x720 [SAR 1:1 DAR 16:9], 4820 kb/s, 30 fps, 30 tbr, 360k tbn (default)&#xA;

    &#xA;

    I tried even recording a simple video on the tablet itself and using that as my input file. Nevertheless, still getting similarly garbled frames.

    &#xA;

    One thing I keep noticing in logcat is this line :

    &#xA;

    [OMX.qcom.video.decoder.avc] using color format 0x7fa30c04 in place of 0x7f420888

    &#xA;

    and

    &#xA;

    [OMX.qcom.video.decoder.avc] Requested output format 0x7f420888 and got 0x7fa30c04

    &#xA;

    where 0x7fa30c04 refers to YCbCr_420_SP_VENUS_UBWC. Not really sure If this has anything to do with it. I did not dive too deep into that because same log is present also on other device that renders the mp4 correctly.

    &#xA;

    I would be grateful for any clue.

    &#xA;

  • Revision c8de931e06 : Merge "Fix i4x4 mode reading and writing in sb8x8 bitstream." into experimental

    2 mai 2013, par Ronald S. Bultje

    Changed Paths :
     Modify /vp9/decoder/vp9_decodemv.c


     Modify /vp9/encoder/vp9_bitstream.c



    Merge "Fix i4x4 mode reading and writing in sb8x8 bitstream." into experimental