Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Cannot download and install ffmpeg for python

    19 février 2017, par ismail yussuf

    I'm having a problem with downloading ffmpeg for python. It seems to me that no matter what I do it just doesn't work. Btw ,sorry for the images but I still don't know how to post my command prompt on here. So here is the error i'm getting.

    enter image description here

    I've already tried "pip install ffmpeg-normalize" and when I do that I get this.

    enter image description here

    FYI I already downloaded imageio and that went totally fine. I even have the ffmpeg.py file in imageio. Does anyone know how I can install it properly?

  • FFmpeg text is not displayed in my streamed video

    18 février 2017, par Ferguson

    on orangepi PC (armbian os) have installed Ffmpeg. I have followed the example in one previous post on how to add text into the stream but I don't get any text in my video..

    ffserver.conf

    HTTPPort 8090
    HTTPBindAddress 0.0.0.0
    MaxHTTPConnections 2000
    MaxClients 1000
    MaxBandwidth 10000
    CustomLog -
    
    
    File /tmp/monitoring1.ffm
    FileMaxSize 50M
    ACL allow 127.0.0.1
    ACL allow 192.168.0.0 192.168.255.255
    
    
    
    Feed monitoring1.ffm
    Format mpjpeg
    VideoCodec mjpeg
    VideoFrameRate 22
    VideoBufferSize 80
    VideoSize 720x264
    NoAudio
    
    
    
    # Redirect index.html to the appropriate site
    
    
    URL http://www.ffmpeg.org/
    
    

    I start a ffmpeg as:

    #!/bin/bash
    # My first script
    ffmpeg -i rtsp://mpv.cdn3.bigCDN.com:554/bigCDN/definst/mp4:bigbuckbunnyiphone_400.mp4 -vf drawtext="fontfile=/home/projekt/StreamTest/DejaVuSans.ttf: \
    text='Stack Overflow': fontcolor=white: fontsize=36: box=1: boxcolor=black@0.5: \
    boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2" -codec:a copy http://localhost:8090/monitoring1.ffm
    

    enter image description here

    this is the result but the text is missing

    enter image description here

    thank you

  • How to encode low bitrate / low quality MPEG2 video ?

    18 février 2017, par Viliams Bajčinovci

    Got some YUV420 1920x1080 60FPS videos i want to encode with MPEG2 with different quality levels. According to stackoverflow: ffmpeg conversion to mpeg2video I could do it with

    ffmpeg -i input -codec:v mpeg2video -qscale:v 10 output.mpg
    

    The qscale parameter has a linear scale 2-31 and 31 is the lowest quality but it's not as bad as I would expect the lowest quality MPEG2 video to look like.

    Also tried these:

    -vcodec mpeg2video -maxrate 4000k
    -vcodec mpeg2video -qmin 69 -qmax 69
    

    maxrate gets ignored and i get the message that it is too low and qmin 69 quality is still higher than i want it to be.

    Does anyone know how to achieve a really low quality MPEG2 video with ffmpeg or any other MPEG2 codec i could use to do this? Thanks

  • How to make mp4 from MediaStream in Chrome browser

    18 février 2017, par otiai10

    MediaRecorder.isTypeSupported('video/mp4') is false in Chrome. So I found MediaStreamRecorder https://github.com/streamproc/MediaStreamRecorder then I did

    var recorder = new MediaStreamRecorder(stream, {
      mimeType: 'video/mp4',
    });
    // also
    recorder.mimeType = 'video/mp4';
    

    But the output is webm as I checked with ffmpeg -i

    Input #0, matroska,webm, from '/Users/otiai10/Downloads/example.mp4':
      Metadata:
        encoder         : Chrome
      Duration: N/A, start: 0.000000, bitrate: N/A
        Stream #0:0(eng): Video: vp8, yuv420p, 640x480, SAR 1:1 DAR 4:3, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
    

    The video is playable in Chrome but NOT on QuickTime Player, in evidence.

    Here are more details and (not!) working example of this problem.

    It was said muaz-khan/Ffmpeg.js can convert webm to mp4, but the file size matters.

    Is there any workaround to record and save as mp4?

  • Encode h264 automatically on nginx server

    18 février 2017, par Thinh Pham

    I have installed and configured my own streaming server using Nginx with rtmp module base on this tutorial https://www.vultr.com/docs/setup-nginx-on-ubuntu-to-stream-live-hls-video. I only use live application and record stream into flv file. And now I want to encode any new flv files in my VOD directory automatically to play it on my website. Is it possible to config it in my nginx.conf? I have tried set record_suffix .mp4; in order to play it without encode but failed. Additional, exec ffmpeg -i is not work for me when I want to restream into mobile application.