Recherche avancée

Médias (0)

Mot : - Tags -/masques

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (108)

Sur d’autres sites (15686)

  • ffmpeg : error using image2 demuxer

    14 juin 2014, par mpromonet

    From the image2 demuxer of ffmpeg documentation, creating an MKV file from a set of JPEG pictures seems simple.

    But when I run :

    ffmpeg -v debug -i 'img-%03d.jpeg' out.mkv

    It fails and reports :

    ffmpeg version 2.1.3 Copyright (c) 2000-2013 the FFmpeg developers
     built on Jun 14 2014 17:40:58 with gcc 4.8 (Debian 4.8.2-15)
     configuration: --prefix=/media/DOWNLOAD/ip7000_new/.build/i486-linux-gnu/libroot --enable-static --disable-shared --disable-asm --disable-doc --disable-devices --disable-network --disable-bsfs --disable-protocols --disable-yasm --enable-pic
     libavutil      52. 48.101 / 52. 48.101
     libavcodec     55. 39.101 / 55. 39.101
     libavformat    55. 19.104 / 55. 19.104
     libavdevice    55.  5.100 / 55.  5.100
     libavfilter     3. 90.100 /  3. 90.100
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 17.104 /  0. 17.104
    Splitting the commandline.
    Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
    Reading option '-i' ... matched as input file with argument 'img-%03d.jpeg'.
    Reading option 'out.mkv' ... matched as output file.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option v (set logging level) with argument debug.
    Successfully parsed a group of options.
    Parsing a group of options: input file img-%03d.jpeg.
    Successfully parsed a group of options.
    Opening an input file: img-%03d.jpeg.
    No URL Protocols are registered. Missing call to av_register_all()?
       Last message repeated 4 times
    [image2 @ 0xa7d0ce0] Could find no file with path 'img-%03d.jpeg' and index in the range 0-4
    img-%03d.jpeg: No such file or directory

    I tried with different releases of ffmpeg and behaviour is the same.
    Running it with strace doesnot show any try to open some files, so surely I miss something...

  • Undefined reference to av_log

    12 novembre 2017, par Dana Prakoso

    I am cross-compiling FFMPEG source in Linux for Windows using i686-w64-mingw32 using this script :

    ../ffmpeg/configure --disable-ffmpeg --disable-ffprobe --disable-ffplay --disable-shared --enable-static --arch=x86 --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --enable-cross-compile

    And it generates all static library files with extension *.a inside "lib" folder. Then I try to link those libraries with my own source, with this script :

    i686-w64-mingw32-gcc -m32 -c videoplayer.c -o videoplayer.o -w $(INCLUDEDIR) -Wl,--add-stdcall-alias
    i686-w64-mingw32-gcc -static -m32 -o libvideoplayer.dll videoplayer.o -Wl,--out-implib,libvideoplayer_dll.lib -Wl,--add-stdcall-alias -L../../ffmpeg/lib -lavdevice -lavformat -lavcodec -lavutil -lwsock32 -lswresample ../../ffmpeg/lib/libWs2_32.lib

    And I got this bunch of error messages :

    ../../ffmpeg/lib/libavformat.a(rtpproto.o): In function `rtp_resolve_host':
    /home/dana/Sources/build-ffmpeg/src/libavformat/rtpproto.c:140: undefined reference to `_imp__getaddrinfo@16'
    ../../ffmpeg/lib/libavformat.a(rtpproto.o): In function `rtp_parse_addr_list':
    /home/dana/Sources/build-ffmpeg/src/libavformat/rtpproto.c:282: undefined reference to `_imp__freeaddrinfo@4'
    /home/dana/Sources/build-ffmpeg/src/libavformat/rtpproto.c:277: undefined reference to `_imp__freeaddrinfo@4'
    ../../ffmpeg/lib/libavformat.a(tcp.o): In function `tcp_open':
    /home/dana/Sources/build-ffmpeg/src/libavformat/tcp.c:112: undefined reference to `_imp__getaddrinfo@16'
    /home/dana/Sources/build-ffmpeg/src/libavformat/tcp.c:114: undefined reference to `_imp__getaddrinfo@16'
    /home/dana/Sources/build-ffmpeg/src/libavformat/tcp.c:177: undefined reference to `_imp__freeaddrinfo@4'
    /home/dana/Sources/build-ffmpeg/src/libavformat/tcp.c:192: undefined reference to `_imp__freeaddrinfo@4'

    How do I resolve this ? Do I miss something in my script ? Big thanks for someone replying.

  • FFmpeg, how to skip late input ?

    14 novembre 2017, par user3343357

    I’m running ffmpeg to display incoming stream on a Decklink BlackMagic card with the following command line :

    ffmpeg -y -f ourFmt -probesize 32 -i - -f decklink -preset ultrafast
      -pix_fmt uyvy422 -s 1920x1080 -r 30 -af volume=0.1 -max_delay 10000
        DeckLink Mini Monitor

    Basically I get the video over the internet by UDP and stream it to ffmpeg stdin. Both audio and video streams have pts and dts and are fully in sync, if the connection is good there is no problems.

    However if there are issues with the connection i start getting errors, sometimes the video delay grows significantly, and audio stops working.
    The errors i get are :

    ffmpeg : [decklink @ 0x26cc600] There are not enough buffered video
    frames. Video may misbehave ! ffmpeg : [decklink @ 0x26cc600] There’s no
    buffered audio. Audio will misbehave ! ffmpeg : Last message
    repeated 4 times ffmpeg : [decklink @ 0x26cc600] There are not enough
    buffered video frames. Video may misbehave ! ffmpeg : [decklink @
    0x26cc600] There’s no buffered audio. Audio will misbehave ! ffmpeg :
    Last message repeated 3 times ffmpeg : frame= 5204 fps= 30 q=-0.0
    size=N/A time=00:02:53.76 bitrate=N/A dup=385 drop=5 speed=0.993x
    ffmpeg : [decklink @ 0x26cc600] There’s no buffered audio. Audio will
    misbehave ! ffmpeg : Last message repeated 18 times ffmpeg :
    [decklink @ 0x26cc600] There are not enough buffered video frames.
    Video may misbehave ! ffmpeg : [decklink @ 0x26cc600] There’s no
    buffered audio. Audio will misbehave !

    The problem is when the connection is back to normal, the video keeps misbehaving until I restart the stream. What I want to do is for FFmpeg to skip to the content of the last second and play synchronized video from there, drop all the late data in between, is it possible ?