combining 2 mpeg videos

Project:Tools
Component:Documentation
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Project wiki:Tools of the trade
Description

I created two videos with kdenlive, which I wanted to concatenate together. At first, I imported them both into a new kdenlive project, added them to the timeline, and tried to export them. But the resulting video was out of sync (audio/video), and the height/width ratio was distorted. The sound had many scratches, too. The videos had the same size, frame rate, etc... I am not sure if it's a bug in kdenlive or with the user (me).

In any case, there is a very simple Unix trick to concatenate two mpeg videos:
cat video1.mpeg video2.mpeg > video1+2.mpeg.
I tried and it worked like a charm. No audio/video problem. No distortion. The result looked like the sum of the two original videos.

Also:

This is something you can do with only some media format (namedly:
mpeg-1, mpeg-2 PS and DV, and maybe IIRC mono-media ogg files).

Then you should be able to play them (but apparently not if you use
WMP), but timestamps will be wrong, so you need to reencode the file
using:

> #encode them so they work as one file
> ffmpeg -i output.mpg -vcodec copy -acodec copy three.mpg

which will adjust the timestamps.

http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2007-May/008738.html

Anyway, we need to document a bit this.
And I still need to know how to combine different mpegs within kdenlive and still have a decent result.

Comments

#1

Project:web site» Tools

Post new comment

Edit issue settings
Note: changing any of these items will update the issue's overall values.
active
Use this field if you want to associate this issue to a specific wiki page. Enter the title of the wiki page. You can enter a comma separated list of nodes.
The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Use [fn]...[/fn] (or <fn>...</fn>) to insert automatically numbered footnotes.
  • Allowed HTML tags: <a> <blockquote> <br> <em> <img> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2><h3><h4><h5><h6> <pre> <table> <th> <td> <tr>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Lines and paragraphs break automatically.
  • Project issue numbers (ex. [#12345]) turn into links automatically.
  • Use [toc list: ol; title: Table of Contents; minlevel: 2; maxlevel: 3; attachments: yes;] to insert a mediawiki style collapsible table of contents. All the arguments are optional.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.