Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • How to get bash script to convert mp3 to wav using ffmpeg working ?

    29 avril 2017, par ADASFA

    Every time I run this script it doesn't work. I get the output bash: command not found

    I ran bash -x to see what was the problem but I don't understand the errors

    bash -x mp3towav.sh 
    + for f in '*.mp3'
    + ffmpeg -i '' -acodec pcm_s16le -ac 1 -ar .wav
    ffmpeg version 3.3 Copyright (c) 2000-2017 the FFmpeg developers
      built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
      configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
      libavutil      55. 58.100 / 55. 58.100
      libavcodec     57. 89.100 / 57. 89.100
      libavformat    57. 71.100 / 57. 71.100
      libavdevice    57.  6.100 / 57.  6.100
      libavfilter     6. 82.100 /  6. 82.100
      libavresample   3.  5.  0 /  3.  5.  0
      libswscale      4.  6.100 /  4.  6.100
      libswresample   2.  7.100 /  2.  7.100
      libpostproc    54.  5.100 / 54.  5.100
    Trailing options were found on the commandline.
    : No such file or directory
    

    script is this

      1 #!/bin/bash
      2 for f in *.mp3; do ffmpeg -i "$file" -acodec pcm_s16le -ac 1 -ar "${file%.mp3}".wav;done
    

    when running the corrected code provided I still get an error of:

    ffmpeg version 3.3 Copyright (c) 2000-2017 the FFmpeg developers
      built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
      configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
      libavutil      55. 58.100 / 55. 58.100
      libavcodec     57. 89.100 / 57. 89.100
      libavformat    57. 71.100 / 57. 71.100
      libavdevice    57.  6.100 / 57.  6.100
      libavfilter     6. 82.100 /  6. 82.100
      libavresample   3.  5.  0 /  3.  5.  0
      libswscale      4.  6.100 /  4.  6.100
      libswresample   2.  7.100 /  2.  7.100
      libpostproc    54.  5.100 / 54.  5.100
    Trailing options were found on the commandline.
    Input #0, mp3, from 'hiraeth [ep].mp3':
      Duration: 00:23:39.36, start: 0.025057, bitrate: 128 kb/s
        Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
        Metadata:
          encoder         : LAME3.99r
        Side data:
          replaygain: track gain - -4.100000, track peak - unknown, album gain - unknown, album peak - unknown, 
    At least one output file must be specified
    
  • I need to install ffmpeg in PHP version 7 [on hold]

    29 avril 2017, par Helpme

    I would understand how to convert video files once uploaded to the server. I would like a .mp4 file to duplicate and become a webm. Currently I use PHP version 7. I tried with this ffmpeg, And I tried to follow the directions of the other stackoverflow discussions: Install FFMPEG on XAMPP(this is one for example). Do you know how to install FFMPEG on XAMPP in windows 10 with php version 7?

    The file "ffmpeg.dll" doesn't exist in new version of ffmpeg, i can't use old version of answers.

  • What is the best way to stream live video from OpenCV to browser (native codecs) ?

    29 avril 2017, par trojek

    I have a webcam and I get a video to OpenCV, then I want to stream modified video to the browser. Currently, I'm using jsmpeg which works well for low video resolutions.

    On this page I found the list of codecs which are natively supported by Safari, Chrome, Firefox, Opera and IE browsers. For example, H.264 is supported by above browsers.

    How can I prepare stream from OpenCV, GStreamer or FFmpeg in order to get live streaming?

  • rtsp method SETUP failed : 453 Not Enough Bandwith

    29 avril 2017, par Eric Zhang

    On my raspberry pi 3+B, I'm using ffmpeg+ffserver to streaming two cams.

    I run both commands at the background:

    raspivid -o - t 0 -w 640 -h 480 -fps 25 -n | ffmpeg -i - -crf 26 -preset ultrafast http://localhost:1234/feed1.ffm
    python cam.py | ffmpeg -f rawvideo -vcodec rawvideo -s 80x60 -pix_fmt bgr24 -r 26 -i - -an -vcodec libx264 -preset ultrafast http://localhost:123/feed2.ffm
    

    I have a laptop running a python script to read cam from raspberry pi via wireless.

    When I read them individually, Each of them works fine. However, I get rtsp method SETUP failed: 453 Not Enough Bandwith when I try to read them at the same time.

    Any idea?

    Thanks

  • ffmpeg and Native Client [on hold]

    29 avril 2017, par Siwanka

    Anyone can help me to mixing two video files and audio file using ffmpeg and that should run within NaCl. Is it possible to get code sample for this or how to configure or any guidance highly appreciate.