1

I join 3 video files using avconv and create a intermediate file, using following syntax

cat inter1.mpg inter2.mpg inter3.mpg > interAll.mpg

inter1.mpg,inter2.mpg contains no audio track.

After create a interAll.mpg I convert it to a mov file using following syntax

avconv -i interAll.mpg output.mov 

My problem is, the audio track of inter3.mpg overlaying with video track of innter2.mpg in output.mov

2
  • How exactly is it "overlaying"? Does the audio track start too early? Is it distorted? Can you provide a sample video? Does this happen with all videos or just the ones you have? Finally, could you please post the full, uncut console output from avconv?
    – slhck
    Dec 10 '12 at 15:03
  • Ya audio track start it early... No its not destroyed. This happen with all video.
    – Elby
    Dec 11 '12 at 5:32
1

FFmpeg now has the capability to concatenate files internally, you might have better luck with that. It works as follows:

ffmpeg -i "concat:inter1.mpeg\|inter2.mpeg\|inter3.mpeg" -c copy interALL.mpeg

If that doesn't work, you may need to remux them to mpeg transport stream files first:

for f in inter*.mpeg; do ffmpeg -i "$f" -c copy -f mpegts "${f/%mpeg/ts}"; done
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.