Recherche avancée

Médias (1)

Mot : - Tags -/géodiversité

Autres articles (17)

  • 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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (2054)

  • ac3enc : differentiate between current block and reference block in bit_alloc()

    16 avril 2011, par Justin Ruggles

    ac3enc : differentiate between current block and reference block in bit_alloc()

  • Can't share few FFMPEG encoded videos on WhatsApp

    2 juin 2019, par t6nand

    I am using FFMPEG to stitch a video to another video. However, I have observed that few of these videos are not being shared on WhatsApp with the message "Can’t send this video. Choose a different video and try again".

    I am using the following command for stitching :

    ffmpeg -y -i <input1> -i
    <input2> -filter_complex "color=black:input1Width x input1Height:d=(input1time + input2time -1)[base]
    ;[0:v]setpts=PTS-STARTPTS[v0];[1:v] scale = iw * min(input1Width / iw\\, input1Height / ih):ih * min(input1Width/iw\\,input1Height/ih),
    pad=input1Width:input1Height:(input1Width-iw*min(input1Width/iw\\,input1Height/ih))/2:(input1Height -
    ih*min(input1Width/iw\\,input1Height/ih))/2,setsar=1:1,format=yuva420p,fade=in:st=0:d=1.0:alpha=1,
    setpts=PTS-STARTPTS+((input1Time - 1)/TB)[v1];[base][v0]overlay[tmp]; [tmp][v1]overlay,format=yuv420p[fv];
    [0:a][1:a]acrossfade=d=1[fa]" -map [fv] -map [fa] -crf 23 -c:v libx264 -b:v 300K
    -preset slow outputvideo.mp4
    </input2></input1>

    Here : input1Width - Input 1 Video’s width, input1Height - Input 2 Video’s height.

    Interestingly running this command directly on terminal produces a file which plays correctly on media players and I am able to share it across platforms including WhatsApp.

    However, the same command when triggered from a java code produces a similar file in terms of size, bit rate (near about same as produced when directly executed). I am running the same command from java using ProcessBuilder like :

    ProcessBulider stitchVideoCommandArray = new ProcessBuilder(
                           "ffmpeg", "-y",
                           "-i", <input1>,
                           "-i", <input2>,
                           "-filter_complex", "color=black:" + String.valueOf(width) + "x" + String.valueOf(height) + ":d=" +
                           String.valueOf(originalVideoTime + ASSET_VIDEOSTREAM_DURATION - CROSS_FADE_TIME_DURATION) + "[base];" +
                           "[0:v]setpts=PTS-STARTPTS[v0];[1:v]scale=iw*" + String.valueOf(minMultiplicable) + ":ih*" + String.valueOf(minMultiplicable) +
                           ",pad=" + String.valueOf(width) + ":" + String.valueOf(height) + ":(" + String.valueOf(width) + "-iw*" + String.valueOf(minMultiplicable) + "/2" +
                           "):(" + String.valueOf(height) + "-ih*" + String.valueOf(minMultiplicable) + "/2)" + ",fade=in" +
                           ":st=0:d=" + String.valueOf(CROSS_FADE_TIME_DURATION) + ":alpha=1,setpts=PTS-STARTPTS+((" + String.valueOf(originalVideoTime - CROSS_FADE_TIME_DURATION) +
                           ")/TB)[v1];[base][v0]overlay[tmp];[tmp][v1]overlay,format=yuv420p[fv];[0:a][1:a]acrossfade=d=1[fa]",
                           "-map", "[fv]",
                           "-map", "[fa]",
                           "-c:v", MP4Transcode.MP4VideoStreamEncoder.H264.videoEncoders,
                           "-b:v", "300K",
                           "-c:a", MP4Transcode.MP4AudioStreamEncoders.AAC.audioEncoders,
                           "-b:a", "128K",
                           "-crf", String.valueOf(constantRateFactor),
                           "-preset", presetRequired,
                       outputVideoPath
               );
    </input2></input1>

    I then use this object to execute the command using

    command.start()

    and waiting for exitvalue using

    command.waitFor()

    This also produces a file which I am able to play correctly on media players but was not successful in sharing the video on WhatsApp.

    Also, the file produced by executing FFmpeg commands as mentioned above from java produces media files with their loudness slightly increased.

    I am not able to figue out if it’s video specific issue or something else. It only happens to few random videos.

    Here are the links to videos with the problem :
    input 1 - input1Link
    input 2 - inpt2Link

    EDIT 1 :
    To add, adding -loglevel debug in java command takes forever and I haven’t seen it yet responding for even 5-6 minutes. However, using it directly from terminal returns quickly after processing.

  • Revision d3764f7f18 : Merge "Use more restrictive block radius for 8x8 block MV references." into expe

    1er mai 2013, par Ronald S. Bultje

    Merge "Use more restrictive block radius for 8x8 block MV references." into
    experimental