Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • FFmpeg : Image scrolling increase quality video

    17 février, par Dinh Quang Khang

    I'm creating a video scroll this image. Image input here and my code

    ffmpeg -loop 1  -t 61 -i 0.jpg  -filter_complex "color=white:s=1280x720[bg];[bg][0]overlay=y=-'t*120':shortest=1[video]"  -r 200/1 -preset ultrafast -map [video] "D:\FFMPEG\output.mp4"
    

    Here is result

    But output video is jerky although I set the frame rate at 200.

    I think the problem here overlay=y=-'t*120'

  • Create video scroll image with ffmpeg

    17 février, par Dinh Quang Khang

    I am creating a video scroll vertical image with ffmpeg.

    But the video is very bad. Although I set the frame rate at 200, it is jerky.

    My video at YouTube

    ffmpeg -i "D:\FFMPEG\source.jpg" -i "D:\FFMPEG\logo.png" -i "D:\FFMPEG\audio.mp3" -f lavfi -i color=c=white:s=1280x720:d=41 -f lavfi -i color=c=white:s=1280x720 -loop 1 -filter_complex "[2:a]afifo[audio];[4:v][0:v]vstack=inputs=2[source];[3:v][source]overlay=shortest=1:y='-(t)*200'[source_video];[source_video][1:v]overlay=39:39[video]" -strict very -preset ultrafast -t 00:00:41 -vcodec libx264 -r 200/1 -map [video] -map [audio] "D:\FFMPEG\output.mp4"

  • OCI runtime exec failed : exec failed : (...) executable file not found in $PATH" : unknown

    17 février, par Uğur Kaya

    I have dockerized an app which has ffmpeg installed in it via libav-tools. The app launches without problem, yet the problem occured when fluent-ffmpeg npm module tried to execute ffmpeg command, which was not found. When I wanted to check the version of the ffmpeg and the linux distro set up in the image, I used sudo docker exec -it c44f29d30753 "lsb_release -a" command, but it gave the following error: OCI runtime exec failed: exec failed: container_linux.go:296: starting container process caused "exec: \"lsb_release -a\": executable file not found in $PATH": unknown

    Then I realized that it gives me the same error with all the commands that I try to run inside the image or the container.

    OCI runtime exec failed: exec failed: container_linux.go:296: starting container process caused "exec: \"ffmpeg -a\": executable file not found in $PATH": unknown
    

    This is my Dockerfile:

    FROM ubuntu:xenial
    FROM node
    RUN apt-get -y update
    RUN apt-get --yes install libav-tools
    RUN mkdir -p /usr/src/app
    WORKDIR /usr/src/app
    COPY package.json /usr/src/app
    RUN npm install
    COPY . /usr/src/app
    RUN npm run build
    ENV NODE_ENV production
    EXPOSE 8000
    CMD ["npm", "run", "start:prod"]
    

    I would kindly ask for your help. Thank you very much!

  • A query on ffmpeg's DASH muxer and setting timeShiftBufferDepth values in MPEG-DASH Media Presentation Description (MPD) files

    17 février, par 林正浩

    The documentation for the webm_dash_manifest muxer mentions the time_shift_buffer_depth option, defined as "Smallest time (in seconds) shifting buffer for which any Representation is guaranteed to be available. "

    What's the equivalent option/setting for the same in the dash muxer (,if implemented) ?

    Documentation for the webm_dash_manifest muxer

  • ffmpeg command problem to capture VHS video

    17 février, par خوشگل چاپار

    For capturing from VHS devices by ffmpeg, I entered following command in win10 PowerShell:

    ffmpeg -f dshow -list_options true -i video="713x BDA Analog Capture"
    

    The result is:

    DirectShow video device options (from video devices)
    [dshow @ 000001e1ac6f9d80]  Pin "Capture" (alternative pin name "2")
    [dshow @ 000001e1ac6f9d80]   pixel_format=yuyv422  min s=160x120 fps=2 max s=768x576 fps=29.97
    [dshow @ 000001e1ac6f9d80]   pixel_format=yuyv422  min s=160x120 fps=2 max s=768x576 fps=29.97
    [dshow @ 000001e1ac6f9d80]   pixel_format=uyvy422  min s=160x120 fps=2 max s=768x576 fps=29.97
    [dshow @ 000001e1ac6f9d80]   pixel_format=uyvy422  min s=160x120 fps=2 max s=768x576 fps=29.97
    [dshow @ 000001e1ac6f9d80]   pixel_format=rgb555le  min s=160x120 fps=2 max s=768x576 fps=29.97
    [dshow @ 000001e1ac6f9d80]   pixel_format=bgr24  min s=160x120 fps=2 max s=768x576 fps=29.97
    [dshow @ 000001e1ac6f9d80]   pixel_format=bgr0  min s=160x120 fps=2 max s=768x576 fps=29.97
    [dshow @ 000001e1ac6f9d80] Crossbar Switching Information for 713x BDA Analog Capture:
    [dshow @ 000001e1ac6f9d80]   Crossbar Output pin 0: "Video Decoder" related output pin: 1 current input pin: 0 compatible input pins: 0 1 2
    [dshow @ 000001e1ac6f9d80]   Crossbar Output pin 1: "Audio Decoder" related output pin: 0 current input pin: 3 compatible input pins: 3 4 5
    [dshow @ 000001e1ac6f9d80]   Crossbar Input pin 0 - "Video Tuner" related input pin: 3
    [dshow @ 000001e1ac6f9d80]   Crossbar Input pin 1 - "Video Composite" related input pin: 4
    [dshow @ 000001e1ac6f9d80]   Crossbar Input pin 2 - "S-Video" related input pin: 5
    [dshow @ 000001e1ac6f9d80]   Crossbar Input pin 3 - "Audio Tuner" related input pin: 0
    [dshow @ 000001e1ac6f9d80]   Crossbar Input pin 4 - "Audio Line" related input pin: 1
    [dshow @ 000001e1ac6f9d80]   Crossbar Input pin 5 - "Audio Line" related input pin: 2
    

    My capture devise(713x BDA Analog Capture) has 3 options for input:

    • video tuner
    • composite video
    • S-video

    How can I set the "composite video" option for high quality and max resolation capture?