<div>Hi List!<br></div><div><br></div><div>I have FFMPEG 1.0 installed in my ArchLinux box, I try to write simple audio+video transcoder example using existings doc/examples/muxing.c and doc/examples/demuxing.c ones and I have trouble: I can't listen sound in resulting file.</div>
<div><br></div><div>Source example with command line to compile: <a href="http://pastebin.com/F9R5qpPz">http://pastebin.com/F9R5qpPz</a></div><div>Compile:</div><div>g++ -Wall -O2 -g -D__STDC_CONSTANT_MACROS  -o video-sound-transcoding-test video-sound-transcoding-test.cpp -lm -lavdevice -lavformat -lavfilter -lavcodec -lswresample -lswscale -lavutil</div>
<div><br></div><div>run:</div><div>./video-sound-transcoding-test input_file.avi out.ts</div><div><br></div><div>I test only for MPEGTS output as more needed for me.</div><div><br></div><div>Other info:</div><div>1. If input file contain only sound stream transcoding finished successfuly and I can listen sound in resulting file well.</div>
<div>2. If I comment code and skip video stream in input file transcoding finished successfuly also and I can listen sound in resulting file well.</div><div>3. Video transcoded very well</div><div>4. transcoding with ffmpeg is valid: ffmpeg -i input_file.avi -f mpegts out.ts but I don't fully understand its code.</div>
<div><br></div><div>So I don't understand how to correctly I must encode/muxing audio+video and all suggestions is welcome!</div><div><br></div><div>Thank for every answer, List!</div>