Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • Link ffmpeg lib statically in Visual Studio

    24 septembre 2014, par 程栋彬

    I'm trying to use ffmpeg in my C++ project on VS2010, and the ffmpeg dev version provides the lib of .h files. I linked these .libs in my projects and the corresponding .dlls are required when running the .exe file. But I want to link the ffmpeg lib statically and running without .dlls.

    I tryed to compile the ffmpeg source code on windows with Mingw, only resulting on some .a archive files. How to get ffmpeg static .lib files? And it's a 64bit program so 64bit static lib is required.

  • how to parse Access Unit in h.264

    24 septembre 2014, par user2406774

    I am working in a project that needs to cut some Access units in H.264 raw elementary stream,for example remove 4 access units and play the remaining video .

    For this I took Access unit Delimiter (NAL Unit Type:9) as boundary for Access Unit and cut the video but the video ended with packet loss. But if I took Sequence parameter set (NAL Unit type :7) as boundary, resultant video playing without any packet loss.
    Some one please help me how to solve this issue: where shall I cut the video ?

  • ffmpeg Error while opening decoder for input stream #0:0 : Resource temporarily unavailable [migrated]

    24 septembre 2014, par Fanzaholic Bean

    I want to convert png images into mp4, this my ffmpeg code:

    /usr/local/vencode/bin/ffmpeg -y -framerate 1/5 -i      /home/fanzaholic/public_html/lab/server/script/1411400997_open_%03d.png -c:v libx264 -r 30 -pix_fmt yuv420p /home/fanzaholic/public_html/lab/server/script/test.mp4 2>&1
    

    This is output from that code:

    ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers
      built on Apr 13 2014 13:00:18 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
      configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libopencv --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --disable-stripping
      libavutil      52. 66.100 / 52. 66.100
      libavcodec     55. 52.102 / 55. 52.102
      libavformat    55. 33.100 / 55. 33.100
      libavdevice    55. 10.100 / 55. 10.100
      libavfilter     4.  2.100 /  4.  2.100
      libswscale      2.  5.102 /  2.  5.102
      libswresample   0. 18.100 /  0. 18.100
      libpostproc    52.  3.100 / 52.  3.100
    Input #0, image2, from '/home/fanzaholic/public_html/lab/server/script/1411400997_open_%03d.png':
      Duration: 00:00:10.00, start: 0.000000, bitrate: N/A
        Stream #0:0: Video: png, rgb24, 896x504, 0.20 tbr, 0.20 tbn, 0.20 tbc
    [libx264 @ 0x1341860] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x1341860] profile High, level 3.1
    [libx264 @ 0x1341860] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=36 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to '/home/fanzaholic/public_html/lab/server/script/test.mp4':
        Stream #0:0: Video: h264, yuv420p, 896x504, q=-1--1, 90k tbn, 30 tbc
    Stream mapping:
      Stream #0:0 -> #0:0 (png -> libx264)
    Error while opening decoder for input stream #0:0 : Resource temporarily unavailable
    

    the mp4 file was created but with 0 bytes size

    Any help for me?

    thanks

  • Create video with ffmpeg from youtube URL ?

    24 septembre 2014, par agustinalesso

    I'm creating a video player for an e-learning platform with javascript. We let our users to upload videos or images & audio from files or youtube videos via URL. When it's not a Youtube URL, we convert the files in our servers using FFMPEG so our player only handles the same type of files, but I'm having some issues to control the Youtube video from our own controls. What I want to know: Is there a way to take the youtube URL and create a video file using FMMPEG or some other similar way? The Idea is NOT to control youtube videos using the youtube API, but using instead our own controls.

  • ffmpeg shell output goes to php header ?

    23 septembre 2014, par Kuba Stachu

    I am trying to use ffmpeg from php script, ex.:

    exec('ffmpeg -i input.mp4 -f ogg -y output.ogv >out.txt')
    

    Let's assume it works, it actually doesn't for multiple reasons, but it's going to be solved by hosting provider as I have no way to change any config or so.

    What seems strange is that out.txt is 0kb all the time, instead after php script finishes its work I get output like one below:

    Malformed header from CGI script:
    ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers built on May 10 2013 16:31:05 with gcc 4.8.0 (GCC) 20130502 (prerelease) configurati
    (......)
    Press [q] to stop, [?] for help
    [vp8 @ 0x13e8d00] alloc_buffer: av_image_alloc() failed
    [vp8 @ 0x13e8d00] get_buffer() failed!
    sh: line 1: 1540 Segmentation fault ffmpeg -i ../uploads/videomod_m_7/433c3f8b9b0cc0f6cbdebba5263ff71809811c20o.webm -f ogg -y ../uploads/videomod_m_7/test2.ogv > out.txt
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Content-type: text/html