Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • FFMPEG udp input stream and input stream play local file

    15 décembre 2017, par liewjls

    Hoping someone can guide me to the right place. I have a application is being the "middle man" receiving a video stream from a source via UDP and passing this video stream to a ffmpeg instance on a server and record a certain period of the video (without audio), on a certain occasion it will need to play the video from recorded video instead of passing the live video stream to the ffmepg instance on the server.

    /ffmpeg -an -f mpegts -i udp://@:7100/?fifo_size=2000&overrun_nonfatal=1 -analyzeduration 150 -f rawvideo -map 0:0 -vcodec rawvideo -pix_fmt bgra - -af volumedetect -vn -sn -dn -map 0:1 -f mpegts -y -flush_packets 0 udp://127.0.0.1:7208?pkt_size=1316
    

    I managed to record the video without audio frm Extracting the h264 part of a video file (demuxing)

    The difference is i save the recorded file as "mpegts"

    avformat_alloc_output_context2(&ofmt_ctx_a, NULL,  "mpegts", out_filename_a);
    

    As soon i need to play from this recorded file, i read every 1316 packets from this file and pass it to the ffmpeg via the localhost port.

    The problem is the ffmpeg seems doesn't like my recorded file and i noticed it has error msg "DTS 18635855 < 24133055 out of order"

    How do i resolve this issue?

    Thanks.

  • Overlap segments of videos in FFmpeg [duplicate]

    15 décembre 2017, par Spandan Thakur

    This question already has an answer here:

    I am able to segment a video using the below command.

    ffmpeg -i Sample.mp4 -c copy -map 0 -segment_list sample.csv -segment_time 10 -f segment -reset_timestamps 1 output%03d.mp4
    

    This command segments the videos in approximately 10 second splits without any overlap.

    Is there anyway though to have an overlap between the split videos? Ideally, I want a 10 seconds overlap between each output video.

  • bash ffmpeg command not found

    15 décembre 2017, par Sunil Garg

    I have a CentOS machine on which I want to install ffmpeg. I tried

    yum install ffmpeg
    

    but unable to install and showing errors on the console

    Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
               Requires: libtheoradec.so.1()(64bit)
    Error: Package: libavdevice-2.6.8-3.el7.nux.x86_64 (nux-dextop)
               Requires: libSDL-1.2.so.0()(64bit)
    Error: Package: ffmpeg-2.6.8-3.el7.nux.x86_64 (nux-dextop)
               Requires: libSDL-1.2.so.0()(64bit)
    Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
               Requires: libhogweed.so.2()(64bit)
    Error: Package: libavdevice-2.6.8-3.el7.nux.x86_64 (nux-dextop)
               Requires: libv4l2.so.0()(64bit)
    Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
               Requires: libgnutls.so.28()(64bit)
    Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
               Requires: libass.so.5()(64bit)
    Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
               Requires: libopenjpeg.so.1()(64bit)
    Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
               Requires: libgsm.so.1()(64bit)
    Error: Package: libavdevice-2.6.8-3.el7.nux.x86_64 (nux-dextop)
               Requires: libcdio_paranoia.so.1(CDIO_PARANOIA_1)(64bit)
    Error: Package: libavdevice-2.6.8-3.el7.nux.x86_64 (nux-dextop)
               Requires: libpulse.so.0(PULSE_0)(64bit)
    Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
               Requires: libva.so.1()(64bit)
    Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
               Requires: libgnutls.so.28(GNUTLS_3_0_0)(64bit)
    Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
               Requires: libschroedinger-1.0.so.0()(64bit)
    Error: Package: ffmpeg-libs-2.6.8-3.el7.nux.x86_64 (nux-dextop)
               Requires: libtheoraenc.so.1(libtheoraenc_1.0)(64bit)
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    

    then I followed this link this created a bin folder having

    -rwxr-xr-x 1 root root 21545536 Dec 14 19:38 ffmpeg
    -rwxr-xr-x 1 root root 21452512 Dec 14 19:38 ffprobe
    -rwxr-xr-x 1 root root 19227136 Dec 14 19:38 ffserver
    -rwxr-xr-x 1 root root   505728 Dec 14 19:11 lame
    -rwxr-xr-x 1 root root  2779368 Dec 14 18:51 nasm
    -rwxr-xr-x 1 root root  1078048 Dec 14 18:51 ndisasm
    -rwxr-xr-x 1 root root  2550848 Dec 14 18:54 vsyasm
    -rwxr-xr-x 1 root root  2548168 Dec 14 18:54 yasm
    -rwxr-xr-x 1 root root  2526096 Dec 14 18:54 ytasm
    

    and when I try to run

    [root@ip-XXX-XX-XX-XXX bin]# ffmpeg
    

    it shows

    bash: ffmpeg: command not found
    

    Am I missing something?

  • About objective metrics : Is the SSIM can be predicted by PSNR ? (PSNR vs SSIM)

    15 décembre 2017, par roberutsu

    I read some people saying that if you have a study that involve conclusion regarding PSNR you must repeat all again considering also SSIM.
    Since this meaning double work, time (and why not money), doing all simulations again (that already got using PSNR) using the SSIM parameter now ?
    Are SSIM and PSNR independent?

  • what is the filter of my FFMPEG scaling command ?

    15 décembre 2017, par Atrin

    I have upscaled and downscaled an image with following command.

    ffmpeg -s:v 1280:720 -r 25 -i input.yuv -vf scale=1920x1080 -c:v rawvideo -pix_fmt yuv420p out.yuv

    I'm wondering what kind of filter is used to do down scaling (linear, bicubic,...)?

    and how can I change the filter or add it if there is no filter in this command?