Recherche avancée

Médias (1)

Mot : - Tags -/intégration

Autres articles (99)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (8314)

  • Is it possible to merge multiple FFMPEG commands (cuts, slow down, watermark) into one in order to increase performance ?

    14 novembre 2022, par Nectarie PF

    I wrote a small piece of software in PHP, using FFMPEG commands via shell exec. The final purpose is to take a 7 seconds MP4 file from a GoPro and transform it in order to achieve a sort of boomerang effect :

    


      

    • crop the video to 1080 width/height
    • 


    


    ffmpeg -i ./files/video_small/$latestVideo -filter:v \"crop=1080:1080:420:0\" ./files/video_small/outcrop_$cod.mp4 2>&1");


    


      

    • first second should run normally
    • 


    


    ffmpeg.exe -t 1 -i ./files/video_small/outcrop_$cod.mp4 ./files/video_small/out1_$cod.mp4 2>&1");


    


      

    • the next two seconds will run at slow motion with a 2x factor
    • 


    


    ffmpeg.exe -ss 00:00:01 -t 2 -i ./files/video_small/outcrop_$cod.mp4 -filter_complex \"[0:v]setpts=2*PTS[v]\" -map \"[v]\" ./files/video_small/out2_$cod.mp4 2>&1");


    


      

    • the next second will speed up at 4x factor
    • 


    


    ffmpeg.exe -ss 00:00:03 -t 1 -i ./files/video_small/outcrop_$cod.mp4 -filter_complex \"[0:v]setpts=0.25*PTS[v]\" -map \"[v]\" ./files/video_small/out3_$cod.mp4 2>&1");


    


      

    • the next 2 seconds again slow motion
    • 


    


    ffmpeg.exe -ss 00:00:04 -t 2 -i ./files/video_small/outcrop_$cod.mp4 -filter_complex \"[0:v]setpts=2*PTS[v]\" -map \"[v]\" ./files/video_small/out4_$cod.mp4 2>&1");


    


      

    • final second again normal speed
    • 


    


    ffmpeg.exe -ss 00:00:06 -i ./files/video_small/outcrop_$cod.mp4 ./files/video_small/out5_$cod.mp4 2>&1");


    


      

    • concatenate the above parts to achieve the modified clip
    • 


    


    ffmpeg.exe -f concat -i ./files/video_small/files_$cod.txt -c copy  ./files/video_small/output1_$cod.mp4 2>&1");


    


      

    • then append the resulting clip in reverse
    • 


    


    ffmpeg -i ./files/video_small/output1_$cod.mp4 -filter_complex \"[0:v]reverse,fifo[r];[0:v][r] concat=n=2:v=1 [v]\" -map \"[v]\" ./files/video_small/output2_$cod.mp4 2>&1");


    


      

    • add watermark
    • 


    


    ffmpeg -i ./files/video_small/output2_$cod.mp4 -i ./files/watermark-video1080.png -filter_complex \"[0:v][1:v]overlay=(W-w)/2:10[outv]\" -map [outv] -c:v libx264 -crf 22 -preset veryfast ./files/video_small/output3_$cod.mp4 2>&1");


    


      

    • add audio (we can discard the original audio in any of the above steps)
    • 


    


    ffmpeg -i ./files/video_small/output3_$cod.mp4 -i ./files/video_small/sound-hip-hop.mp3 -map 0 -map 1:a -c:v copy -shortest ./files/video_small/output_final_$latestVideo 2>&1");


    


    Right now it runs ok, but I have a problem with performance, the whole process lasts about 50 seconds on my 8th gen i7.

    


    I am very new to the capabilities of ffmpeg and I was wondering if any of the below commands can be optimized or if any of the steps can be merged into one, as I can see the syntax is quite powerful.

    


    Thanks !

    


    I was expecting this to run a little bit faster, ideally half the time it takes right now.
As far as I have observed, the longest part is appending the resulting clip in reverse, perhaps I am adding something too heavy and unnecessary in the reverse filter.

    


  • Merge commit '122de16dd8108a59a55d30543c9f28b5f61b02d1'

    5 mai 2017, par Clément Bœsch
    Merge commit '122de16dd8108a59a55d30543c9f28b5f61b02d1'
    

    * commit '122de16dd8108a59a55d30543c9f28b5f61b02d1' :
    Replace cmdutils_common_opts.h by a macro

    Merged-by : Clément Bœsch <cboesch@gopro.com>

    • [DH] Makefile
    • [DH] cmdutils.h
    • [DH] cmdutils_common_opts.h
    • [DH] ffmpeg_opt.c
    • [DH] ffplay.c
    • [DH] ffprobe.c
    • [DH] ffserver.c
    • [DH] tests/ref/fate/source
  • Write Live Photo metadata to video using FFMPEG

    13 août 2021, par Luke Burns

    According to Apple Live Photo file format, there are three pieces of metadata that need to be written for a JPEG and MOV to be accepted as a live photo. I can use exiftool and ffmpeg to write the necessary content identifier metadata.

    &#xA;

    For the JPEG :

    &#xA;

    exiftool -TagsFromFile reference.jpeg -makernotes -ContentIdentifier image.jpeg&#xA;exiftool -ContentIdentifier="$id" image.jpeg&#xA;

    &#xA;

    Similarly, ffmpeg can be used to write the top-level Quicktime metadata with matching id.

    &#xA;

    However I'm having trouble with the timed metadata : ["com.apple.quicktime.still-image-time" : 0xFF].

    &#xA;

    I can't even manage to produce a copy of an existing live photo MOV file using ffmpeg that preserves the necessary timed metadata.

    &#xA;

    ffmpeg -i original.mov -map 0 -c copy -movflags use_metadata_tags copy.mov&#xA;

    &#xA;

    copies the global metadata (i.e. com.apple.quicktime.content.identifier), but loses the necessary still-image-time which can be confirmed using exiftool :

    &#xA;

    > exiftool -G -U -ee original.mov | grep &#x27;Still Image Time&#x27;&#xA;[QuickTime]     Still Image Time                : -1&#xA;> exiftool -G -U -ee copy.mov | grep &#x27;Still Image Time&#x27;&#xA;> &#xA;

    &#xA;

    How can I write the timed metadata using ffmpeg—specifically the still-image-time data ?

    &#xA;

    Edit : it looks like this may be happening because ffmpeg does not know how to handle the mebx tag on data streams :

    &#xA;

    [mov @ 0x7fb232091400] Unknown hldr_type for mebx, writing dummy values&#xA;

    &#xA;

    And ffmpeg doesn't seem to have a way to copy unknown streams. This appears to also be a problem for dealing with the fdsc tag in GoPro metadata streams (e.g. see https://gist.github.com/radimklaska/8974637522a751adb49db0de3be482c9#file-gopro_hevc_to_dnxhd-sh-L125), so it's often copied over as gpmd data, which ensures it's not overwritten with dummy values, but this trick doesn't work in the case of live photos mebx metadata.

    &#xA;