Hi all,<div><br></div><div>my name is Alessandro Paganelli and I'm a PhD student in ICT at University of Modena and Reggio Emilia (Italy).</div><div>I'm working on a project (which uses Libav/Ffmpeg) in which I have to transmit an h264 encoded file (with Mp4 file format) over a simulated network (I'm using network simulator 3 for this), to "emulate" a real video streaming.</div>
<div><br></div><div>Now, I'm facing the problem regarding how to "rebuild" the transmitted file at the receiver side. More in details, this issue regards the settings needed to replicate the configurations for AVFormatContext, AVStream and AVCodecContext, starting from the same structures I have at the transmitter.</div>
<div>As for now, I just copied the content of the sender's AVCodecContext structure to the receiver's one, but the resulting file is broken. I suspect that other settings have to be replicated too, but it's not clear which ones are those required by h264 and Mp4.</div>
<div><br></div><div>Is there any document/tutorial about the required settings for each specific codec or format?</div><div>More in general, do you have suggestions about how to approach this problem for a generic combination of codec and format? I planned to implement different possible combinations of them, so it would be great if there is a "smart" way to copy these contexts without doing it "by hand" :) .</div>
<div><br></div><div>Thanks in advance,</div><div>best regards.</div><div><br></div><div>Alessandro</div><div><div><br></div>-- <br>______________________________________________<br><br>Ing. Alessandro Paganelli, Ph. D. Student, 25th Cycle<br>
<br>Department of Information Engineering<br>University of Modena and Reggio Emilia<br>via Vignolese 905, 41125 Modena (MO), ITALY<br><br>E-mail: <a href="mailto:alessandro.paganelli@unimore.it">alessandro.paganelli@unimore.it</a><br>

</div>