Newest 'ffmpeg' Questions - Stack Overflow

http://stackoverflow.com/questions/tagged/ffmpeg

Les articles publiés sur le site

  • ffmpeg ac-tex damaged at

    16 septembre 2019, par anaVC94

    I am programming a system which process a video stream captured from a camera and produce some results.

    The approach I follow is using ffmpeg to capture the video stream with RSTP and save it to a .TS file. While doing this, the rest of the program process the .TS file.

    However, this error sometimes appears:

    [mpeg2video @ 0000013e876b00a0] ac-tex damaged at 35 85
    [mpeg2video @ 0000013e876b00a0] Warning MVs not available
    [mpeg2video @ 0000013e876b00a0] ac-tex damaged at 161 114
    [mpeg2video @ 0000013e876b00a0] Warning MVs not available
    

    I have read that it is because some macroblocks are corrupted. My question is: How can I fix that? I need my system to be able to process the stream continuously without stopping due to this kind of errors.

    Thanks in advance!

  • How to cut video in cirecle shape using ffmpeg ?

    16 septembre 2019, par Rahul Chokshi

    I have working on application, application contain video. what I want cut video in circle shape.

    this is actual video

    desire out put

  • In the using directive "using Accord.Video.FFMPEG", FFMPEG does not exist in the name space

    15 septembre 2019, par StewartMetcalfe

    I am building an Azure Function in Visual Studio to convert a videos frames to images. I'm using the VideoFileReader class from Accord.Video.FFMPEG class. The code works on my machine but when trying to build this as an Azure Function Project, the using directive Accord.Video.FFMPEG errors. And subsequently the type VideoFileReader can not be found.

    I have tried re-installing the Accord, Accord.Video and Accord.Video.FFMPEG NuGet packages.

    using System.IO;
    using Microsoft.Azure.WebJobs;
    using Microsoft.Extensions.Logging;
    using Accord;
    using Accord.Video;
    using Accord.Video.FFMPEG;
    
    namespace ConvertVideo
    {
        public static class Function1
        {
            [FunctionName("Function1")]
            public static void Run([BlobTrigger("videos/{name}", Connection = "AzureWebJobsStorage")]Stream myBlob, string name, ILogger log)
            {
                log.LogInformation($"C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes");
    
                //start a new videoFileReader
                using (var vFReader = new VideoFileReader())
                {
                    //open the video
                    vFReader.Open(name);
                    //get the framerate
                    double frameRate = vFReader.FrameRate.ToDouble();
                    //more code which converts a frame to jpg
                }
            }   
        }
     }
    
  • Adding background music that fades out with ffmpeg

    15 septembre 2019, par malbolge

    I have a piece of video that is 30fps and simply want to add overlay faint background music starting at 10 seconds. Then I want it to fade out during the last 15 seconds. I can't find any good examples of this other than weird hacks.

    ffmpeg -i main.mp4 -i outro.mp3 -t 10 \
      -filter_complex "[a0][1:a]acrossfade=d=15[a];weight1:0.5" \
      -map '[v]' -map '[a]' out.mp4
    

    I get bad arguments in the filter_complex. Somethings off right there. in terms of the duration. Any help is greatly appreciated!!

  • How to use filtered audio in complex filter in FFMPEG ?

    15 septembre 2019, par Dan Weaver

    I'm using the highpass audio filter then trying to use showfreqs on the resulting audio stream but it's not working. The showfreqs filter uses the original audio stream instead of the filtered one.

    Command:

    ffmpeg -i audio.mp3 -filter_complex highpass,showfreqs,format=yuv420p highpass.mp4

    I tried naming the highpass output but it didn't make any difference:

    ffmpeg -i audio.mp3 -filter_complex highpass[hi],[hi]showfreqs,format=yuv420p highpass.mp4

    How do I structure my command so showfreqs uses the output from highpass?

    UPDATE

    I'm using FFMPEG 4.1.4 installed on Mac via Homebrew.

    Source audio: https://dsc.cloud/weavermedia/audio.mp3

    Commands and resulting files:

    Run highpass on audio.mp3:

    Run showfreqs on audio.mp3:

    Run showfreqs on highpass.mp3:

    Run highpass and showfreqs in series on audio.mp3:

    I tried several different source audio files and always get the same results.

    I tried on 2 different Macs, albeit both with FFMPEG 4.1.4 installed via Homebrew.

    I tried with different highpass settings and get same results (the default highpass settings are enough to hear the difference anyway).

    UPDATE 2

    Looking at the resulting videos side by side in QuickTime I see that showfreqs does actually appear to be using the audio stream from highpass but the final video contains the original unfiltered audio.

    So my problem is actually how to get the resulting video to use the filtered audio stream instead of the original.