Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
 
LinkBack Thread Tools
Old November 25th, 2010, 02:38 PM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Oct 2010
Posts: 12
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Sad Video - .mp4 files

Hi everyone,

I am developing an application called video summarization on android platform. In my application I need to decode .mp4 files. Unfortunately I couldn't handle it.
With my research, I found that Opencv can make this easily. Although I can use other opencv functions with NDK, I can not use ffmpeg decoders.

Please give the way to open a .mp4 file and get its frame.

thanks in advance.

Advertisements
baris3437 is offline  
Reply With Quote
sponsored links
Old November 25th, 2010, 05:13 PM   #2 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,935
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 482 Times in 294 Posts
Default

Read up on the internal structure of the MP4 file format. Essentially, all file formats are nothing but an arrangement of bytes plus a small padding of bytes called the header. If you know the internal structure of a particular format, then you should have no trouble streaming or even manipulating the file.
jonbonazza is offline  
Reply With Quote
The Following User Says Thank You to jonbonazza For This Useful Post:
baris3437 (November 26th, 2010)
Old November 26th, 2010, 04:08 AM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Oct 2010
Posts: 12
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jonbonazza View Post
Read up on the internal structure of the MP4 file format. Essentially, all file formats are nothing but an arrangement of bytes plus a small padding of bytes called the header. If you know the internal structure of a particular format, then you should have no trouble streaming or even manipulating the file.
Thank you for your reply.
.mp4 file format is so complicated. if I try to code in order to retrieve frames from file, this may be time consuming. Opencv has ready functions to solve this problem. unfortunately I cant use it.
baris3437 is offline  
Reply With Quote
Old November 26th, 2010, 04:40 PM   #4 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,935
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 482 Times in 294 Posts
Default

Complicated, yes, however if you create the class in a component-oriented nature, it can be reused over multiple projects, and one could even offer it to the community.

Another option would be to open up a GoogleCode project and create the API in an open source fashion, allowing others to aid in the creation of the API.
jonbonazza is offline  
Reply With Quote
Reply
Tags
android, decode, ffmpeg, ndk, video


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:39 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.