Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Using FFmpeg in C# project

    17 août 2018, par JustLogin

    I'm trying to create a desktop live-streaming app in C#. The program must run under Windows and stream image from user's desktop to rtmp. There must also be options of framerate, video size, quality and codec (h263 and h264). I think FFmpeg is the best choise for this (if it is not so, please write a comment). I've managed to do everything I mentioned above with ffmpeg.exe using console. So I wish to know, can I include FFmpeg library into C# project (as a .lib or .dll) to use it instead of .exe, saving suitable functionality for my task? I'll be very grateful for any examples.

    P.S. Here are some examples of commands I use:

    ffmpeg -f dshow -i video=UScreenCapture -vcodec h264 -pix_fmt yuv420p -s 320x240 -f flv rtmp://[my adr]/desc
    
    ffmpeg -f dshow -i video=UScreenCapture -vcodec h264 -r 15 -t 0:1:00 -q 12 -pix_fmt yuv420p -s 320x240 -f flv rtmp://[my adr]/desc
    
  • How to check live stream is still alive use "ffprobe" command ?

    17 août 2018, par Yin JianFeng

    I want to schedule a job script to check a live stream is still alive use "ffprobe" command. So that I can change database state for those steam already dead.

    I tried the command:

    ffprobe -v quiet -print_format json -show_streams rtmp://xxxx
    

    but when the stream is not avaiable, the command will hang.
    I tried add -timeout argument, but still cannot work properly.

  • Improving accuracy of Google Cloud Speech API

    17 août 2018, par Shaikat Haque

    I am currently recording audio from a web page on my Mac OS computer and running it through the cloud speech api to produce a transcript. However, the results aren't that accurate and there are chunks of missing words in the results.

    Are there any steps that would help me yield more accurate results?

    Here are the steps I am taking to convert audio to text:

    1. Use Soundflower to channel audio output from my soundcard to mic in.
    2. Play audio from website
    3. Use quickTime player to record audio which is saved as a .m4a file.
    4. Use the command line tool ffmpeg to convert the .m4a file to a .flac, and also combine 2 audio channels (stereo) to 1 audio channel (mono).
    5. Upload the .flac file to Google Cloud Storage. The file has a sample rate of 44100Hz and has 24 bits per sample.
    6. Use the longRunningRecognize api via the node.js client library, pointing to the file in Google cloud storage.
  • Generate mpeg-dash live content from transport stream UDP input using ffmpeg/mp4box

    17 août 2018, par Ishaan Shringi

    I'm receiving mpeg-2 transport stream UDP input. I want to serve this content using an HTTP server.

    I know that mp4box can be used to grab the udp and dump it in a file.

    mp4box -grab-ts udp://ip:port dump.ts
    

    mp4box can generate mpeg-dash content using -dash argument

    Is it possible to combine the -grab-ts argument with -dash-live and generate live dash content?

  • "FFMPEG not found" even though ffmpeg-binaries have been added to the package.json

    17 août 2018, par Xyvyrianeth

    I keep my bot online using Heroku, so installing FFMPEG to my computer wouldn't really help me any.

    The issue is that I'm still getting this error despite having the npm ffmpeg-binaries added to my package.json's dependencies. I've also tried using git URLs from Github and the official FFMPEG website, as well as trying to install the git directly using the run-command option in Heroku's application page, but I keep getting this same error. Am I missing something?