3

I'm trying to decode an MP4 file i've created using mp4creator library. I can't find a ffmpeg or libav example that actually works with the libraries, because the code is incompatible with the examples.

I need a simple way of reading the mp4 file and decoding it into raw audio and video frames. In needs to work on windows too.

If someone can point me towards a working and compatible ffmpeg/libav library + example source file that could work too.

If i could get the library version which was used in this tutorial that would work, since this guy seems to be the only one who wrote a decent tutorial on FFMPEG (albeit on some ancient version) http://dranger.com/ffmpeg/

edit:

In the latest version of ffmpeg i found the example named: filtering_video.c using a patch found: http://ffmpeg.org/pipermail/ffmpeg-devel/2012-June/126587.html I have gotten the program to do "something" It looks to be working so I will investigate further.

2
  • If you can't find a library, I'd just use mp4box and call it from your code as you would in a command prompt. Commented Sep 26, 2012 at 16:45
  • I think ffmpeg can do that right out of the box: labnol.org/software/extract-image-frames-from-video/18137 Commented Sep 26, 2012 at 20:42

1 Answer 1

1

As edited into the question: In the latest version of ffmpeg i found the example named: filtering_video.c using a patch found: http://ffmpeg.org/pipermail/ffmpeg-devel/2012-June/126587.html I have gotten the program to work. Using the function avtoipl described here: http://www.digipedia.pl/usenet/thread/16949/6806/ I've gotten the data into an opencv RGB image which i can display.

Sign up to request clarification or add additional context in comments.

2 Comments

Can you elaborate on your answer? The link you provided isn't available anymore and I'm trying to solve the same problem as you did. Do you happen to have a code sample?
I'm sorry but this was 5 years ago and I do not have access to that code anymore. But only the second link is broken for me. The first (which fixed my actual problem) is not.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.