Recherche avancée

Médias (0)

Mot : - Tags -/acrobat

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (66)

Sur d’autres sites (13939)

  • Text Watermarking on video without any loss of video and audio quality using FFmpeg

    7 janvier 2021, par Aditya Kumar

    I am using following command to add text watermark on a video file(for mp4, mpg,m4v,flv,mov etc..) :

    


    


    ffmpeg -i input.mp4 -vf "drawtext=text='Opentext':x=(w-text_w)/2:y=(h-text_h)/2:fontsize=24:fontcolor=white" TextOutput.mp4

    


    


    For some of the file transformation the property of video file changes. for example- When I tried to add text watermark on a mkv file I got this message :

    


    


    [matroska @ 0000001867d36ec0] Non-monotonous DTS in output stream 0:1 ;
previous : 2273, current : 1596 ; changing to 2273. This may result in
incorrect timestamps in the output file.

    


    


    So, I want to preserve the quality of video after adding the text watermark. How can I do that ?

    


  • How to record video, audio and compress the same video using ffmpeg, so that both the task can be done in a single command line

    19 juillet 2019, par sachinkumar adahalli

    I am newly using "ffmpeg". I have compressed the video which is stored in the directory, then I got to know that we can do "compression and recording" both at a time using ffmpeg. I tried this by using the below command but that is not working unable to record as well. Anyone please help me out to solve. Thanks in advance.

    I tried using this command "ffmpeg -f gdigrab -framerate 10 -i desktop out.mpeg" this is giving error like- "Unknown input format : ’gdigrab’ ".

    I want the result which should "compress the live recording video" and store it in a folder or db.

  • Extract first frame of multi video streams video

    15 avril 2020, par Radu

    I am curious about how to use FFmpeg in order to extract the first frame of the first video stream from a multi-video stream file. 
What I have so far is :

    



    ffmpeg -i {mediaFile} -ss 0 -map 0:v -vframes 1 -f image2 firstFrame.jpeg.

    



    I am not sure about the -map part. How can be certain that I work on the first video stream ? Is there a way to first filter streams by codec type, then select the first and then extract the frame ?

    



    Thanks.