Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Still can't install pygame on ubuntu

    1er octobre 2016, par brotheroflogan

    I've tried three different ways. The most recent was following instructions here: http://www.pygame.org/wiki/CompileUbuntu

    But when I type in the first line

    sudo apt-get install mercurial python-dev python-numpy ffmpeg \
    

    I am told that

    E: Package 'ffmpeg' has no installation candidate.
    

    I continue on with the instructions and I am later told that some of the dependencies are missing (even though those are the ones I had attempted to install moments ago).

    Then when I put in

    sudo python3 setup.py install
    

    it tells me

    src/_pygame.h:80:20: fatal error: Python.h: No such file or directory
     #include 
                        ^
    compilation terminated.
    error: command 'i686-linux-gnu-gcc' failed with exit status 1
    
  • How to concatenate two videos using ffmpeg with audio added and also I need fede-effcts not cross fade

    1er octobre 2016, par sathya

    I used following two ffmpeg commands two achieve my task .

    ffmpeg -i input.mp4 -vf "fade=in:0:40,fade=out:92:40" file1.mp4 //for fade effects

    //for concat result of above videos

    ffmpeg -i file1.mp4 -i file1.mp4 -filter_complex '[0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a]' -map '[v]' -map '[a]' output-file2.mp4

    Now I need single command for both operations with audio supported. I don't know how to do it in single command. If anyone know, please help me to resolve this.

    I tried couple of ffmpeg commands but I faced some audio issues .

    thanks in advance.

  • How to separate ffmpeg and php container in docker

    1er octobre 2016, par PolarBear

    In my project, after upload video to web server I have to convert .avi to .webm. As I have read from many tutorials I can do it with exec() but my project is using docker.

    Can I separate ffmpeg and php container or I have to install ffmpeg inside php container?

  • Using ffmpeg to encode web dash and audio drift

    1er octobre 2016, par John Joske

    I'm trying to use ffmpeg to create webm-dash encoded files from a usb web cam. Adapted from this example http://wiki.webmproject.org/adaptive-streaming/instructions-to-do-webm-live-streaming-via-dash

    I have managed to get something nearly works with the following command:

    ffmpeg -f video4linux2 -framerate 30 -s 640x360 -i /dev/video0 -thread_queue_size 512 -f alsa -ar 44100 -ac 2 -i hw:2 -map 0:0 -pix_fmt yuv420p -c:v libvpx-vp9 -s 640x360 -keyint_min 60 -g 60 -speed 6 -tile-columns 4 -frame-parallel 1 -threads 8 -static-thresh 0 -max-intra-rate 300 -deadline realtime -lag-in-frames 0 -error-resilient 1 -f webm_chunk -header video_360.hdr" -chunk_start_index 1 video_360_%d.chk -map 1:0 -c:a libvorbis -b:a 128k -ar 44100 -f webm_chunk -copytb 1 -audio_chunk_duration 2000 -header video_171.hdr -chunk_start_index 1 video_171_%d.chk

    However over a period of time the audio chunks slowly get behind the video chunks, can anyone suggest a way to ensure they stay the same.

  • how to concat two videos using ffmpeg with audio added and also i need fede-effcts not cross fade

    1er octobre 2016, par sathya

    i used following two ffmpeg commands two achieve my task .

    ffmpeg -i input.mp4 -vf "fade=in:0:40,fade=out:92:40" file1.mp4 //for fade effects

    //for concat result of above videos

    ffmpeg -i file1.mp4 -i file1.mp4 -filter_complex '[0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a]' -map '[v]' -map '[a]' output-file2.mp4

    now i need single command for both operations with audio supported. i don't know how to do it in single command . if anyone know .please help me to resolve this.

    i tried couple of ffmpeg commands but i faced some audio issues .

    thanks in advance.