Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Concat lots of audio files to a video with ffmpeg [closed]

    22 mars, par Sulli

    I’m using this ffmpeg command to add audio effects at certain times to a video file:

    ffmpeg -i C:\path\to\video.mp4 -i C:\path\to\audio1.wav -i C:\path\to\audio2.wav -filter_complex "[1]adelay=0|0[a1]; [2]adelay=960|960[a2]; [a1][a2]amix=inputs=2[a]" -map 0:v:0 -map [a] -c:v copy -c:a aac -b:a 192k -loglevel error -y C:\path\to\output.mp4
    

    it works, but when I want to add LOTS of audio effects (like more than 200), I get errors like

    An unexpected error occurred: [WinError 206] The filename or extension is too long
    

    As it seems to be a command length problem, I might be able to overcome this by using files to read inputs and/or filters, but I have spent the last hours without finding the correct command syntax or file format to achieve that. How can I do that?

  • FFMPEG Failed to Connect to UDP Stream in Kubernetes Pod [closed]

    22 mars, par Nimrod

    I have a pod inside my kubernetes (openshift) cluster. The pod tries to connect to a remote UDP video livestream to read frames to be processed. I find that the first 2-4 attempts that the programs makes to connect to the stream fail (timeout) but after around 4 attempts the stream can be connected.

    It is even more strange to me because there are multiple stream IPs:ports. So there are times when connecting to a IP/Port fails a couple of times at the beginning but afterwards the program has no issue connecting to a various number of stream sources.

    My question is does anyone know why this may be happening and if not, I'd appreciate any suggestions as to how to debug the situation and understand better ffmpeg's behaviour.

  • Install ffmpeg in to virtual environment

    22 mars, par ldg

    I am trying to install ffmpeg in order to use it on OpenAI to record videos. I have installed it using brew install ffmpeg but somehow when I compile my code I get the same error, it is like the package is not recognized by my virtualenv where I am working.

    Error on Python console:

    raise error.DependencyNotInstalled("""Found neither the ffmpeg nor avconv executables. On OS X, you can install ffmpeg via `brew install ffmpeg`. On most Ubuntu variants, `sudo apt-get install ffmpeg` should do it. On Ubuntu 14.04, however, you'll need to install avconv with `sudo apt-get install libav-tools`.""")
    

    However, when I execute which ffmpeg I got the following path /usr/local/bin/ffmpeg.

    It seems like that Anaconda for example needs a specific command to install this package into its environment, it is the same for virtualenv?

    Thanks in advance.

  • Unity webgl build Video recording and sharing error in android [closed]

    21 mars, par Rithika gl

    Unity webgl build Video recording and sharing error.I have been facing issues with the sharing & saving option in all web browsers , in unity webgl build in android but everything works on iOS and the desktop . Used ffmpeg but causes several errors , also used conversion techniques like mp4 format and webm as well.

  • I am building an editor app in flutter, I want to use ffmpeg_kit_flutter_full_gpl package or something similar to build video editor

    20 mars, par Almas Tai
    Users/xyz/.pub-cache/hosted/pub.dev/ffmpeg_kit_flutter_full_gpl-6.0.3/android/src/main/java/com/arthenica/ffmpegkit/flutter/FFmpegKitFlutterPlugin.java:192: error: method onAttachedToEngine(FlutterPluginBinding) is already defined in class FFmpegKitFlutterPlugin
        public void onAttachedToEngine(@NonNull final FlutterPluginBinding flutterPluginBinding) {
                    ^
    /Users/xyz/.pub-cache/hosted/pub.dev/ffmpeg_kit_flutter_full_gpl-6.0.3/android/src/main/java/com/arthenica/ffmpegkit/flutter/FFmpegKitFlutterPlugin.java:657: error: cannot find symbol
        protected void init(final BinaryMessenger messenger, final Context context, final Activity activity, final io.flutter.plugin.common.PluginRegistry.Registrar registrar, final ActivityPluginBinding activityBinding) {
                                                                                              ^
      symbol:   class Registrar
      location: interface PluginRegistry
    2 errors
    3 warnings
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':ffmpeg_kit_flutter_full_gpl:compileDebugJavaWithJavac'.
    > Compilation failed; see the compiler error output for details.
    
    * Try:
    > Run with --info option to get more log output.
    > Run with --scan to get full insights.
    
    BUILD FAILED in 18s
    
    ┌─ Flutter Fix ───────────────────────────────────────────────────────────────────────────────────┐
    │ [!] Consult the error logs above to identify any broken plugins, specifically those containing  │
    │ "error: cannot find symbol..."                                                                  │
    │ This issue is likely caused by v1 embedding removal and the plugin's continued usage of removed │
    │ references to the v1 embedding.                                                                 │
    │ To fix this error, please upgrade your current package's dependencies to latest versions by     │
    │ running `flutter pub upgrade`.                                                                  │
    │ If that does not work, please file an issue for the problematic plugin(s) here:                 │
    │ https://github.com/flutter/flutter/issues                                                       │
    └─────────────────────────────────────────────────────────────────────────────────────────────────┘
    Error: Gradle task assembleDebug failed with exit code 1, 
    

    Can anyone suggest me any other dependencies or help me fix this error?