Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
put image in a video linux FFMPEG
30 avril 2014, par user3518268I need to put an image in a video qhit FFMPEG, someone know how I can do it?
I have seen commands to pass the video to images and make a video from iages, but these isn´t what I need
thanks
-
ffmpeg : Is this a bug in Xcode ?
30 avril 2014, par daozhaoI debug the ffmpeg program on the macosx with xcode.I find a bug with xcode(or lldb)。
code @ ffmpeg_opt.c-->static int open_input_file(OptionsContext *o, const char *filename)
#ifdef DEBUG av_log(NULL,AV_LOG_INFO,"func:%s(%d) filename:%s \n", __func__,__LINE__,filename); #endif if (!strcmp(filename, "-")) //after step over,the debug windows show filename=NULL. filename = "pipe:"; #ifdef DEBUG av_log(NULL,AV_LOG_INFO,"func:%s(%d) filename:%s \n", __func__,__LINE__,filename); //but it can print the correct value。 #endif
you can clone the project from https://github.com/daozhao/FFmpeg.git, and checkout branch(release/2.2withComment) which is include xcode project file. you can debug with
FFmpegMakefile targets
try it.you can see the screen record on https://www.youtube.com/watch?v=3rTLirTGPM4 .
my OS:10.9.2, xcode:5.1.1
-
FFmpeg for Android platform
30 avril 2014, par NeerajI am trying to create an android application that uses FFMpeg. For that, I downloaded the FFmpeg code(v 0.8.15) from http://www.ffmpeg.org/olddownload.html. And compiled the code as per instructions given at http://www.roman10.net/how-to-build-ffmpeg-for-android/
As a result, .a files have been generated in Android/lib folder & .h files in android/include folder.
But, when I try to create .so file of my Native code what uses this prebuilt FFmpeg library (.a files), it gives undefined reference errors.
Please find my project's code structure is given below.
project path is
/home/guest/Neeraj_temp/FFMpeg-Example
At this path, I created two folders jni & prebuilt In prebuilt folder, I kept libavfilter.a, libavcodec.a, libavformat.a, libavutil.a, libswscale.a In jni folder, I kept one include folder that contains all .h folders (libavcodec, libavfilter, libavformat, libavutil, libswscale).
api-example.c file is also kept in jni folder that uses FFmpeg's APIs. & one Android.mk file in jni folder.
Android.mk:-
LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := libFFmpeg LOCAL_C_INCLUDES := $(LOCAL_PATH)/FFMpeg/include LOCAL_SRC_FILES := api-example.c LOCAL_LDLIBS += -L$(LOCAL_PATH)/../prebuilt -lavfilter -lavutil -lavformat -lavcodec -lswscale include $(BUILD_SHARED_LIBRARY)
Error:
/home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/wavpack.c:689: undefined reference to `av_log' /home/guest/Neeraj_temp/FFMpeg-Example/jni/../prebuilt/libavcodec.a(wavpack.o): In function `wv_unpack_stereo': /home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/wavpack.c:604: undefined reference to `av_log' /home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/wavpack.c:608: undefined reference to `av_log' /home/guest/Neeraj_temp/FFMpeg-Example/jni/../prebuilt/libavcodec.a(wavpack.o):/home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/wavpack.c:1215: more undefined references to `av_log' follow /home/guest/Neeraj_temp/FFMpeg-Example/jni/../prebuilt/libavcodec.a(wmavoice.o): In function `synth_block_fcb_acb': /home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/wmavoice.c:1359: undefined reference to `av_memcpy_backptr' /home/guest/Neeraj_temp/FFMpeg-Example/jni/../prebuilt/libavcodec.a(wmavoice.o): In function `synth_frame': /home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/wmavoice.c:1441: undefined reference to `av_log' /home/guest/Neeraj_temp/FFMpeg-Example/jni/../prebuilt/libavcodec.a(wmavoice.o): In function `synth_superframe': /home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/wmavoice.c:1765: undefined reference to `av_log' /home/guest/Neeraj_temp/FFMpeg-Example/jni/../prebuilt/libavcodec.a(wmavoice.o): In function `wmavoice_decode_packet': /home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/wmavoice.c:1919: undefined reference to `av_log' /home/guest/Neeraj_temp/FFMpeg-Example/jni/../prebuilt/libavcodec.a(wmavoice.o): In function `wmavoice_decode_init': /home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/wmavoice.c:350: undefined reference to `av_log' /home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/wmavoice.c:373: undefined reference to `av_log' /home/guest/Neeraj_temp/FFMpeg-Example/jni/../prebuilt/libavcodec.a(wmavoice.o):/home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/wmavoice.c:397: more undefined references to `av_log' follow /home/guest/Neeraj_temp/FFMpeg-Example/jni/../prebuilt/libavcodec.a(wnv1.o): In function `decode_frame': /home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/wnv1.c:81: undefined reference to `av_reverse' /home/guest/Neeraj_temp/FFMpeg-Example/jni/../prebuilt/libavcodec.a(ws-snd1.o): In function `ws_snd_decode_frame': /home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/ws-snd1.c:70: undefined reference to `av_log' /home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/ws-snd1.c:83: undefined reference to `av_log' /home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/ws-snd1.c:79: undefined reference to `av_log' /home/guest/Neeraj_temp/FFMpeg-Example/jni/../prebuilt/libavcodec.a(xan.o): In function `xan_decode_frame': /home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/xan.c:568: undefined reference to `av_log' /home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/xan.c:551: undefined reference to `av_log' /home/guest/Neeraj_temp/FFMpeg-Example/jni/../prebuilt/libavcodec.a(xan.o):/home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/xan.c:515: more undefined references to `av_log' follow /home/guest/Neeraj_temp/FFMpeg-Example/jni/../prebuilt/libavcodec.a(xan.o): In function `xan_unpack': /home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/xan.c:178: undefined reference to `av_memcpy_backptr' /home/guest/Neeraj_temp/FFMpeg-Example/jni/../prebuilt/libavcodec.a(xl.o): In function `decode_frame': /home/guest/Neeraj_temp/ffmpeg-0.8.15/libavcodec/xl.c:60: undefined reference to `av_log' /home/guest/Neeraj_temp/FFMpeg-Example/jni/../prebuilt/libavcodec.a(xsubdec.o): In function `decode_frame'
I have read a lot of blogs but still not able to get the solution. Kindly provide me the solution. How do I need to structure the code that I should not get these errors & get the code compiled.
Thanks.
-
Catching native code exceptions in .NET
30 avril 2014, par AcrotygmaI'm currently working with ffmpeg with a proprietary wrapper and I need to catch native code exceptions that sometimes occur during transcoding procedures etc.
I already read those questions/answers:
https://stackoverflow.com/questions/10517199/cant-catch-native-exception-in-managed-code https://stackoverflow.com/questions/150544/can-you-catch-a-native-exception-in-c-sharp-code
However, they were not really helpful as the exceptions occur not during a function I call, but in a completely different thread that runs side-by-side in the ffmpeg library and were thrown by additional components such as DirectX. This is somehow a real issue as the exceptions tear down my whole application!
Any help is really appreciated.
-
ffmpeg build for x86 android
30 avril 2014, par DavidI´m trying to build ffmpeg for x86 on ubuntu, I have done it for arm correctly but in x86 i have this prob. Any idea how to fix it?
line 57: /home/laptoop/Desktop/android-ndk-r9c/build/tools/make-standalone-toolchain.sh: No such file or directory i686-linux-android-gcc is unable to create an executable file. C compiler test failed. If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solving the problem. CC libavfilter/af_aconvert.o /bin/sh: 1: arm-linux-androideabi-gcc: not found make: *** [libavfilter/af_aconvert.o] Error 127 make: *** Waiting for unfinished jobs.... CC libavfilter/af_aecho.o CC libavfilter/af_adelay.o /bin/sh: 1: arm-linux-androideabi-gcc: not found /bin/sh: 1: make: *** [libavfilter/af_adelay.o] Error 127 arm-linux-androideabi-gcc: not found make: *** [libavfilter/af_aecho.o] Error 127