Recherche avancée

Médias (0)

Mot : - Tags -/content

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

Autres articles (43)

Sur d’autres sites (8557)

  • Cutting video with FFMPEG produces corrupted video file [closed]

    5 juillet 2024, par m0ntr3

    Im using FFmpeg library for trimming videos. The problem comes when I try to get a thumbnail from that video using MediaMetadataRetriever - getFrameAtTime() ; and on my logcat I can see this error - getFrameAtTime : videoFrame is a NULL pointer. This is the command I use to cut/trim the video files - "-ss", TrimmerUtils.formatCSeconds(lastMinValue),
"-i", String.valueOf(filePath),
"-t",
TrimmerUtils.formatCSeconds(lastMaxValue - lastMinValue),
"-async", "1", "-strict", "-2", "-c", "copy", outputPath
Im using Android Studio with Java if that does matter. Im only assuming its producing a corrupt file.

    


    If someone can help me that would be very appreciated !

    


  • Compress a video using libavcodec / libavformat

    6 juillet 2016, par Manicat

    I have written a MS Windows c++ application in Visual Studio that shows a certain animation in OpenGL. I have managed to grab this animation as frames and save these to a mpg file by using libavcodec.

    Now I want to compress this video and save it as a mp4 file. I can do this with ffmpeg -i input.mpg -c:v libx264 -qmin 15 -qmax 35 -crf 28 output.mp4 which typically reduces the file size by a factor 10.

    However, I would like to achieve the same result by using libavcodec / libavformat directly. Can somebody please show me c++ code that managesthis conversion.

    PS
    I have very limited experience with libavcodec / libavformat so far. I am learning by the day ...

  • Revision 534ac8a617 : Remove common_data.c file from vp10 folder This file is empty in vp10. Remove i

    13 août 2015, par Jingning Han

    Changed Paths :
     Delete /vp10/common/common_data.c


     Modify /vp10/vp10_common.mk



    Remove common_data.c file from vp10 folder

    This file is empty in vp10. Remove it to clear out visual studio
    warning.

    Change-Id : I741e88adcf3c9fc6b73b13ea08a2094e2f3a7eba