<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi James,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:'times new roman','new york',times,serif;font-size:16px">I have the doc/examples programs compiled and running.  I use the program demuxing.c to decode an AVI file.  From the source code, it looks it calls its own subroutine decode_packet() to decode the next video or audio packet, and that subroutine calls avcodec_decode_video2()to decode the next frame. Now i want to encode this frames in h264, so i want  to know how i can pass the frames into avcodec_encode_video2 function. I'm interested only video frames.</span></div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Can you help me??</div><div style="font-family:arial,sans-serif;font-size:13px"><br>Thanks</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2013/9/15 James Board <span dir="ltr"><<a href="mailto:jpboard2@yahoo.com" target="_blank">jpboard2@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div class="im">>> However, what if I only copy a subset of the input frames to the output<br></div><div style="font-family:times new roman,new york,times,serif;font-size:12pt">
<div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div><div class="im">>> file?  Can I still copy the packet?  If the answer is no, can I do something<br>>> simple to allow me to copy the packet (like modify a timestamp?).<br>
><br>>The best advice again would be to try and see if there is some<br>>problem. Yes, you probably want to manipulate the timestamps.<br><br></div>That's okay, but I'd really like to understand how it works behind the<br>
scenes so I know it works for sure.<br><br></div> </div> </div>  </div></div><br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Francesco Damato
</div>