Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (105)

Sur d’autres sites (14376)

  • Use ffmpeg to watermark and scale an image on video

    11 mai 2015, par Ae.

    I want to be able to watermark videos with a logo image, which contains a website url.
    The videos can be of different formats and dimension.
    I’m trying to figure out a generic ffmpeg command to achieve it, so that i don’t have to tweak the command depending on the video i have to process.
    So far i got :

    ffmpeg -i sample.mov -sameq -acodec copy -vf 'movie=logo.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]' sample2.mov

    In this way though the logo will look too big or too small with video of different size.
    I’ve seen there is a scale option for avfilter, but I haven’t figure out whether it’s possible to resize the image logo based on the dimension of the input video, so that I can say to scale the logo to 1/3 of the video length for example, and keep the image ratio.

    Any idea ? doesn’t need to be done in a single command, could even be a script.
    thanks in advance.

  • How to play video using FFMPEG library in Android ?

    3 mai 2015, par Macchiato

    I was able to build ffmpeg library by using rock player build script.

    Now I have this .so file, how do I play video ? And I want to display this video inside a small LinearLayout in my Activity.

    Is it possible ?

    Update :
    I know that it’s easy to play video using VideoView or MediaPlayer + SurfaceView. I just wanted to understand more about ffmpeg library and how to display the frames inside an Android Activity.

  • Is it possible to play an output video file from an encoder as it's being encoded ?

    14 février 2012, par lvreiny

    I have a video file, and I need to encode it as H264/AVC and feed to client via HTTP. What i need is that i player at client side can play back the video as it is being encoded.

    AFAIK, To enable player to play as the video is downloading, "moov atom" have to be placed at the begnning of the video file. However, encoders (ex : ffmpeg) always write "moov atom" at the end of file after it completes encoding.

    Is there any way encoder can put "moov atom" at beginning of encode's output ? Or play video without moov atom presence ?

    Thank in advances

    LR