Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • FFMPEG - Scrambled Output converting from VOB with ffmpeg

    24 décembre 2013, par MattD

    I've concatenated a series of VOB files from a DVD into a single VOB file and I am trying to convert it to MP4 or other similar format. I see a lot of errors when converting and the output appears scrambled.

    >ffmpeg.exe" -i file.vob -sameq file.mp4
    FFmpeg version git-N-29181-ga304071, Copyright (c) 2000-2011 the FFmpeg develope
    rs
      built on Apr 18 2011 21:24:03 with gcc 4.5.2
      configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --ena
    ble-memalign-hack --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo
    pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --
    enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
     --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl
    e-libx264 --enable-libxavs --enable-libxvid --enable-zlib --cross-prefix=i686-w6
    4-mingw32- --target-os=mingw32 --arch=x86_32 --extra-cflags=-I/home/kyle/softwar
    e/ffmpeg/external-libraries/win32/include --extra-ldflags=-L/home/kyle/software/
    ffmpeg/external-libraries/win32/lib --pkg-config=pkg-config
      libavutil    50. 40. 1 / 50. 40. 1
      libavcodec   52.120. 0 / 52.120. 0
      libavformat  52.108. 0 / 52.108. 0
      libavdevice  52.  4. 0 / 52.  4. 0
      libavfilter   1. 79. 0 /  1. 79. 0
      libswscale    0. 13. 0 /  0. 13. 0
    [mpeg2video @ 01751A90] ac-tex damaged at 5 16
    [mpeg2video @ 01751A90] invalid mb type in I Frame at 0 1
    [mpeg2video @ 01751A90] invalid mb type in I Frame at 0 2
    [mpeg2video @ 01751A90] invalid mb type in I Frame at 0 3
    [mpeg2video @ 01751A90] invalid mb type in I Frame at 0 4
    
    [...]
    

    I'm guessing this is CSS scrambling and I need to do some sort of DeCSS. Does FFMpeg have an option for this? Cringe if you'd like, but is there C# source to achieve this?

    My end goal is really just to get some DVDs that I own onto my media server. I've tried a few demo-ware products with limited success including Acala DVD Ripper, Click to Disk, AVIDemux to name a few. I even paid for a couple of them to get the full version, but Acala only works for about half of my DVDs and Click to Disk can decode the VOB, but I need to use FFMpeg to convert. I'd like to have it all in one app that works and I am willing to write some code for it.

  • FFMPEG : How are the parsers providing input bit stream to the decoder

    24 décembre 2013, par Zax

    I'm having a video decoder integrated into FFMPEG. For this decoder i have a parser that reads data from the input bit stream (Elementary stream) and provide the decoder with the data whenever needed. I'm using fread() function in my parser to read the input bit stream.

    However, when i see the parsers of other available decoder in the libavcodec/ directory, none of them seems to have a fread in them. Tried to figure out this mechanism by debugging the code, but didn't get even a clue regrading the same. So i request if anyone can please provide some explanation regarding how the decoder is getting the required data even though its parsers doesn't seem to have any fread? I mean what is the mechanish being used here to read data from the input file.

    Any suggestions/answers regarding the same will be really helpful to me. Kindly do the needful as it can help many people reading this post. Thanks in advance.

    --Regards

  • Convert from MP4/MP3 to G.723.1 [migrated]

    24 décembre 2013, par Atanu Saha

    I am new to ffmpeg and using version 2.0.2 in my Linux server.

    Could anyone please tell me how I can convert from mp4/mp3 files to a G.723.1 file format and G.723.1 to MP4?

  • Compiling SDL on a MAC

    24 décembre 2013, par David van Dugteren
    #include "ffmpeg/libavcodec/avcodec.h"
    
    #include "ffmpeg/libavformat/avformat.h"
    
    #include "ffmpeg/libswscale/swscale.h"
    #include "ffmpeg/libswscale/rgb2rgb.h"
    #include "ffmpeg/libswscale/swscale_internal.h"
    
    #include 
    
    #ifdef __MINGW32__
    #undef main /* Prevents SDL from overriding main() */
    #endif
    
    #include "SDL.framework/Headers/SDL.h"
    #include "SDL.framework/Headers/SDL_thread.h"
    

    Is Compiled with this command:

    gcc -o t1 tutorial01.c -lswscale -lavutil -lavformat -lavcodec -lz -lavutil -lm -framework SDL
    

    But I get this error:

    Undefined symbols:
      "_main", referenced from:
          start in crt1.10.6.o
         (maybe you meant: _SDL_main)
    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    

    From googling, If I try to add : #include "SDLMain.h" it has major Aneurisms.

  • Error in installing Open-CV with ffmpeg

    24 décembre 2013, par Matteo

    I am trying to install the library Open-CV working on on Ubuntu 11.04.

    I followed all instructions found in the InstallationGuide.

    However after installing with success I realized that I hadn't FFMPEG support because in my configuration file FFMPEG was disabled:

    Video I/O: 
    --     DC1394 1.x:                 NO 
    --     DC1394 2.x:                 YES 
    --     FFMPEG:                     NO 
    --       codec:                    YES 
    --       format:                   YES 
    --       util:                     YES 
    --       swscale:                  NO 
    --       gentoo-style:             YES 
    --     GStreamer:                  YES 
    --     UniCap:                     NO 
    --     PvAPI:                      NO 
    --     V4L/V4L2:                   Using libv4l 
    --     Xine:                       NO
    

    So I tried to rebuild everything after installing FFMEPG as decribed here.

    After configuring installation with the instruction

    cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON ../OpenCV-2.3.1
    

    I ran the make command getting this error:

    make[2]: *** [bin/opencv_test_calib3d] Error 1
    make[1]: *** [modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/all] Error 2
    make: *** [all] Error 2
    

    This is the point of compilation where the error is coming out:

    Linking CXX executable ../../bin/opencv_test_calib3d
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_analysis_headerout'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_set_out_samplerate'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_set_disable_reservoir'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_encode_buffer'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vaUnmapBuffer'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vaDestroyBuffer'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `th_comment_clear'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `x264_param_default'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `x264_param_apply_profile'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_set_brate'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `x264_encoder_headers'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `faacEncGetCurrentConfiguration'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_analysis_blockout'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_info_clear'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_analysis_buffer'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `th_comment_init'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vaCreateBuffer'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_set_bWriteVbrTag'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `faacEncSetConfiguration'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `th_encode_ctl'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `D_IF_decode'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `faacEncGetDecoderSpecificInfo'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_block_clear'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_close'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `x264_encoder_encode'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_set_VBR'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `Encoder_Interface_init'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_analysis'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_get_framesize'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `faacEncOpen'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_init'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `th_encode_packetout'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_set_quality'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `Decoder_Interface_exit'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `th_encode_alloc'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_encode_setup_vbr'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `th_info_clear'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_set_in_samplerate'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `x264_encoder_reconfig'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `x264_param_apply_fastfirstpass'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_set_VBR_quality'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_set_mode'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `D_IF_init'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_set_num_channels'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `faacEncEncode'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_encode_setup_managed'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `Encoder_Interface_exit'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `Decoder_Interface_init'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vaRenderPicture'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_encode_ctl'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `th_info_init'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_analysis_init'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `x264_encoder_delayed_frames'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `x264_param_parse'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `th_encode_free'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `D_IF_exit'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_dsp_clear'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `Decoder_Interface_Decode'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vaMapBuffer'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_block_init'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `x264_bit_depth'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `x264_picture_init'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `x264_encoder_close'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `x264_encoder_open_120'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `faacEncClose'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vaEndPicture'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_encode_flush'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_encode_buffer_interleaved'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_comment_init'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_comment_clear'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_init_params'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `x264_param_default_preset'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_encode_setup_init'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_bitrate_addblock'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_comment_add_tag'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `th_encode_flushheader'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `lame_encode_buffer_int'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `th_encode_ycbcr_in'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_bitrate_flushpacket'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_analysis_wrote'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vorbis_info_init'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `Encoder_Interface_Encode'
    ../../lib/libopencv_highgui.so.2.3.1: undefined reference to `vaBeginPicture'
    collect2: ld returned 1 exit status
    

    can anybody please tell me what's the problem with installation process I'm following?

    Why is there this library referentiation error?