Recherche avancée

Médias (0)

Mot : - Tags -/inscription3

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

Autres articles (87)

Sur d’autres sites (15971)

  • How to replace the video track of a part of a video file ?

    17 juin 2019, par yukashima huksay

    I have an mp4 file like this(same format but longer) :

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'N1.2.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42mp41
       creation_time   : 2018-10-31T13:44:21.000000Z
     Duration: 00:28:54.21, start: 0.000000, bitrate: 10295 kb/s
       Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 9972 kb/s, 50 fps, 50 tbr, 50k tbn, 100 tbc (default)
       Metadata:
         creation_time   : 2018-10-31T13:44:21.000000Z
         handler_name    : ?Mainconcept Video Media Handler
         encoder         : AVC Coding
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
       Metadata:
         creation_time   : 2018-10-31T13:44:21.000000Z
         handler_name    : #Mainconcept MP4 Sound Media Handler

    I also have another video file that is 3 minutes long. and has no audio. What is the fastest way to encode the other video in a way that it is encoded like my main video and then replace the last three minutes of the video track of my original video with this ?

    In other words.
    I have video A that is 1 hour long. With the encoding shown above.

    I have video B that is 3 minutes long with no audio. with a random encoding.

    I want to have video C with the same encoding and same audio as A. But it’s video track would be the first 57 minutes of A + B(which is 3 minutes).

    I want to do this as fast as possible so I would like to not re encode A.

    I know how to concatenate two videos, I use this command :

    ffmpeg -f concat -i files.txt -c copy res.mp4
  • FFMPEG Can I overlay an image larger than a video, on a video ?

    5 mars 2019, par vadus1

    Can I overlay an image larger than a video, on a video ?

    I have a mp4 file with 320x*,

    It turns out I can not find out the height of the video, that crop the image for the overlay video.

    ffmpeg -i input.mp4 -i transback.png -filter_complex "[0:0] scale=320:-2 [wm]; [1:0] scale=320:-2:force_original_aspect_ratio=decrease [prog], [wm][prog]overlay" fart.mp4

    I will try to execute this command, but not luck ;
    I got it.

    enter image description here

  • 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 !