Write file after decode to disk

For the developers that use FFmpeg in their software.
Post Reply
clarkkent
Posts: 5
Joined: Thu Jun 21, 2012 2:39 am

Write file after decode to disk

Post by clarkkent » Thu Jun 21, 2012 2:45 am

Hi everybody

I is the new one with ffmpeg. At first start i try to run some samples from the doxy gen, but it doesn't work. My goal is read the input file from disk, decode a little bit, then write the decoded to a new media file. I tried many times but the samples doesn't run correct.

Could anyone has done this one, help me please?

I try to run the samples from this site:
http://ffmpeg.org/doxygen/trunk/muxing_8c-source.html

Thanks for the help

Clark

rogerdpack
Posts: 1878
Joined: Fri Aug 05, 2011 9:56 pm

Re: Write file after decode to disk

Post by rogerdpack » Fri Jun 22, 2012 4:20 pm

it compiles but doesn't run? Does it compile/run fine under linux?

clarkkent
Posts: 5
Joined: Thu Jun 21, 2012 2:39 am

Re: Write file after decode to disk

Post by clarkkent » Sat Jun 23, 2012 1:41 am

It doesn't copile, it meet some errors. I compile it in windows. Did you try that sample with new library? If you did, please help me.

Thanks
Clark
rogerdpack wrote:it compiles but doesn't run? Does it compile/run fine under linux?

rogerdpack
Posts: 1878
Joined: Fri Aug 05, 2011 9:56 pm

Re: Write file after decode to disk

Post by rogerdpack » Mon Jun 25, 2012 12:54 pm

full uncut output?
How are you compiling/using it?
If you don't have much experience compiling it, and can get away with just using ffmpeg, I would suggest that...

clarkkent
Posts: 5
Joined: Thu Jun 21, 2012 2:39 am

Re: Write file after decode to disk

Post by clarkkent » Mon Jun 25, 2012 12:59 pm

Thanks
I still can not compile it. I love to use ffmpeg command line too, but i will using it in the Android, so i don't know how to integrate the ffmpeg command line with the Android application, so i have to learning to coding the ffmpeg. Could you help me, pls?
rogerdpack wrote:full uncut output?
How are you compiling/using it?
If you don't have much experience compiling it, and can get away with just using ffmpeg, I would suggest that...

rogerdpack
Posts: 1878
Joined: Fri Aug 05, 2011 9:56 pm

Re: Write file after decode to disk

Post by rogerdpack » Mon Jun 25, 2012 1:04 pm

I think if you're compiling it to android, you'll want to cross compile it from linux.

clarkkent
Posts: 5
Joined: Thu Jun 21, 2012 2:39 am

Re: Write file after decode to disk

Post by clarkkent » Mon Jun 25, 2012 1:11 pm

Thanks
Yes, i know that. But my goal is build an independent file using ffmpeg library to decode then write the decoded file back to disk. If i can do this, i will use that one on Android or iOS. I can build the ffmpeg for Android, but above function i can not implement it.
Do you know where to get an success samples that can write back a video same as before to disk? I can compile above link sample but it use the random color for video, not the original before, and don't know how to change it.
rogerdpack wrote:I think if you're compiling it to android, you'll want to cross compile it from linux.

rogerdpack
Posts: 1878
Joined: Fri Aug 05, 2011 9:56 pm

Re: Write file after decode to disk

Post by rogerdpack » Mon Jun 25, 2012 1:12 pm

I've never used libav, you might get more help from their user list.

clarkkent
Posts: 5
Joined: Thu Jun 21, 2012 2:39 am

Re: Write file after decode to disk

Post by clarkkent » Mon Jun 25, 2012 1:15 pm

Thank you very much for your comments. I'll wait for someone can help me with this.

Thanks
Clark
rogerdpack wrote:I've never used libav, you might get more help from their user list.

Post Reply
'