@Ronald
Yes I was hard-coding elementary things as i had problems with the
segmentation faults. and buffer underflows. I am guessing this can be setup
in a config file or an xml file, if i wanted to keep the inputs simple of if
i had a very little need to alter the video settings.

@Michael
*I had written the encode and write_to_frame functions after i got the
decoded frame.*
* I had commented out the avcodec_encode_video  part after which i called
the av_interleaved_write or av_write_frame.   *
seeing i had encountered the problem at this junction i omitted them from
the code posted.

  1. do we need to enable PST DST settings for a basic decode-encode?  i
have been trying to strip away the code bits of ffmpeg.c but have
been unsuccessful at it.
  2. What kind of formatting must be done for the output file codec context
besides finding relevant codec and opening them to allow for writing the
data packets onto it.
 3. Also if i had to encode the video into multiple formats. would it not
mean that i simply call the relevant encode and write calls in  after i get
the decoded frame. Am i right in assuming the decoded video data
( interleaved audio/video data) is  the same for any encoder input format.

Thanks.


On Tue, May 10, 2011 at 11:26 PM, Ronald S. Bultje <[email protected]>wrote:

> Hi,
>
> On Tue, May 10, 2011 at 9:42 AM, Aditya Game Programmer
> <[email protected]> wrote:
> > I am writing a simple C program to accept video input decode it encode it
> > into
> > flv and then save output video file. I have looked at danger's tutorials,
> > output-example.c,api-example.c and such. But i seem to be missing
> something
> > very
> > essential. And always end up encountering , segmentation faults
>
> So what is the backtrace? I see you hardcoding very elementary things
> like video width/height, which may be wrong for this input file.
>
> Ronald
>



-- 
Aditya Game Programmer
www.adityagameprogrammer.com
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to