On Aug 3, 11:56 am, RFuente <[email protected]> wrote:
> By the way, in case you know a little more of ffmpeg...
>
> If I set the received file  - which is truncated, no moov atom - as
> the input for ffmpeg (command line), it actually does decodevideobut
> it is unable to find the audio track (even with -map option). So I
> think I'm about to find the solution but haven't yet.
Sorry, I can't help you with that. But I have one question for you:
Are you using any special parameters to decode the video?
What version of FFmpeg? I was never able to decode a truncated file.

If you know C or C++ I don't think modifying the Untrunk project
would be too hard. The code is ~500 lines or so. That project also
attempts to guess if the packet is audio or video.

You could also have a look at mp4creator, if you combine the truncated
file with a valid ftyp atom and esds atom, mp4creator will recode the
file and make
it playable, though I didn't have any luck of making this on a stream,
only
a static truncated file. You can use AtomicParsley to find the
position of the esds atom..
It has all (?) or at least some of the codec settings. It can differ
from file to file (8 bytes?)
even though the same encoders are used, because of creation and
modification time.


>
> Videocodec is H.263 and audio codec is AMR.
>
> On 3 ago, 09:12, RFuente <[email protected]> wrote:
>
>
>
> > That doesn't seem easy but it is an idea. I'll try and see what I get.
>
> > Thank you very much Ivar.
>
> > On 28 jul, 14:21, Ivarref <[email protected]> wrote:
>
> > > Hello,
>
> > > you can use the FFmpeg library for this, but you have to code against
> > > it, not just
> > > use it from the command line as far as I know.
> > > You basically need to get avideodecoder from a full sample file,
> > > then use thatvideodecoder to decode the raw stream. Then you won't
> > > need the moov atom (since codec settings will be loaded from the full
> > > sample file).
> > > Here it is assumed that the sample file and the raw stream are
> > > created
> > > with the same codecs in theAndroidapp.
>
> > > Here is a small project interfacing FFmpeg with a related 
> > > aim:http://vcg.isti.cnr.it/~ponchio/life/code/untrunk_readme.html
>
> > > A FFmpeg tutorial is available here:http://dranger.com/ffmpeg/
>
> > > Best of luck,
> > > Ivar

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to