Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
FFMPEG avcodec_find_decoder(2) (CODEC_ID_MPEG2VIDEO) always returns incomplete AVCodec ?
22 octobre 2012, par PasserI got a problem with FFMPEG (avcodec-54.dll) 1) I wrote a .NET wrapper. As far as I can see it works well. 2) I try to decode something... and thats were the problem is:
... FFmpeg.avcodec_register_all(); pAVCodec = FFmpeg.avcodec_find_decoder(CodecID.CODEC_ID_MPEG2VIDEO); //which is in int 2 Console.WriteLine("CodecID " + (*pAVCodec).id); Console.WriteLine("CodecType " + (*pAVCodec).type); Console.WriteLine("CodecName " + (*pAVCodec).name); ....
No EXC was thrown and the following output came:
CodecID CODEC_ID_NONE CodecType 1790854254 CodecName mpeg2video
What confuses me the most is that the name is correct, but the id and type are wrong. In the previous Version if the DLL everything works fine. This behaviour came up with the new version. Any guesses or debugging tips?
-
How to get a list of libraries ffmpeg has linked to (static ffmpeg libraries) ?
22 octobre 2012, par myWallJSONI have compiled Ffmpeg (1.0) with newt configuration:
./configure --disable-doc --disable-ffplay --disable-ffprobe --disable-ffserver --disable-avdevice --disable-avfilter --disable-pthreads --disable-everything --enable-muxer=flv --enable-encoder=flv --enable-encoder=h263 --disable-mmx --disable-shared --prefix=bin/ --disable-protocols --disable-network --disable-debug --disable-asm --disable-stripping
It compiled - no errors - headers and libs (static
.a
) are in place. (special experimental cigwin, experimental gcc, with no asm options, and no known by ffmpeg platform defines) (yet I have compiled and tested boost on it)Now I try to compile my app. I get next exceptions:
../ffmpeg-1.0/bin/lib/libavcodec.a: error: undefined reference to 'exp' ../ffmpeg-1.0/bin/lib/libavcodec.a: error: undefined reference to 'log'
My compiler build line looks like this:
g++ -static -emit-swf -o CloudClient.swf -I../boost/boost_libraries/install-dir/include -I../ffmpeg-1.0/bin/include -L../boost/boost_libraries/install-dir/lib -L../ffmpeg-1.0/bin/lib \ timer.o \ audio_encoder.o \ audio_generator.o \ video_encoder.o \ video_generator_rainbow.o \ simple_synchronizer.o \ multiplexer.o \ transmitter.o \ graph_runner.o \ cloud_client.o \ -pthread \ -lswscale \ -lavutil \ -lavformat \ -lavcodec \ -lboost_system \ -lboost_date_time \ -lboost_thread
So as you see quite complex and I already have all object files compiled and ready... Only one thing left - link it all to ffmpeg (striped from ffmpeg version compiled with boost)
Tried adding
-lm
- no help...Well here my question is - how to get list of libraries ffmpeg linked to (like
-lm
etc)? -
FFMpeg crashes on decoding MJpeg
22 octobre 2012, par Lior OhanaI'm working with FFMpeg for decoding Mjpeg streams. Recently I've bumped into access violation exceptions from FFMpeg, after investigating, I found that due to network packet drops, I'm passing to the FFMpeg a frame that might have "gaps" in it. The FFMpeg probably crash since it jumps to a marker payload which doesn't exist in the frame's memory.
Any idea where I can find a mjpeg structure validator? Is there any way to configure FFMpeg to perform such validations by itself?
Thanks.
-
ffmpeg - How to set MIME-type ? [migrated]
22 octobre 2012, par sasaI'm trying to set the proper MIME-type for an AAC file, but this command does not work:
ffmpeg -i rain.mp3 -metadata mime-type="audio/aac" rainmp3toaac.aac
but, actualy
audio/x-hx-aac-adts
is set.So, how I can force another MIME-type?
-
There is no sound with iFrameExtractor player
22 octobre 2012, par whyI has built ffmpeg and iFrameExtractor with ios5.1 successful, But when I play the video, There is no sound
// Register all formats and codecs avcodec_register_all(); av_register_all(); avformat_network_init(); if(avformat_open_input(&pFormatCtx, [@"http://somesite.com/test.mp4" cStringUsingEncoding:NSASCIIStringEncoding], NULL, NULL) != 0) { av_log(NULL, AV_LOG_ERROR, "Couldn't open file\n"); goto initError; }
The log is
[swscaler @ 0xdd3000] No accelerated colorspace conversion found from yuv420p to rgb24. 2012-10-22 20:42:47.344 iFrameExtractor[356:707] video duration: 5102.840000 2012-10-22 20:42:47.412 iFrameExtractor[356:707] video size: 720 x 576 2012-10-22 20:42:47.454 iFrameExtractor[356:707] Application windows are expected to have a root view
This is my configure file for ffmpeg 0.11.1:
#!/bin/tcsh -f rm -rf compiled/* ./configure \ --cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \ --as='/usr/local/bin/gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \ --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk \ --target-os=darwin \ --arch=arm \ --cpu=cortex-a8 \ --extra-cflags='-arch armv7' \ --extra-ldflags='-arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk' \ --prefix=compiled/armv7 \ --enable-cross-compile \ --enable-nonfree \ --disable-armv5te \ --disable-swscale-alpha \ --disable-doc \ --disable-ffmpeg \ --disable-ffplay \ --disable-ffprobe \ --disable-ffserver \ --enable-decoder=h264 \ --enable-decoder=svq3 \ --disable-asm \ --disable-bzlib \ --disable-gpl \ --disable-shared \ --enable-static \ --disable-mmx \ --disable-neon \ --disable-decoders \ --disable-muxers \ --disable-demuxers \ --disable-devices \ --disable-parsers \ --disable-encoders \ --enable-protocols \ --disable-filters \ --disable-bsfs \ --disable-postproc \ --disable-debug