I am writing a program to encode to mpeg2 video read from file, send it to a stream and then decode it. I saw the example decoding_encoding.c that generates a video from pictures fictitious ... but how do I replace this part and read and encode my video? anyone can help me, there are other examples available? Thanks!!! Francesco