<rdf:RDF
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xmlns:RDFNsId2='http://snipsnap.org/rdf/label-schema#'
    xml:base='http://community.moertel.com/ss/rdf'>
    <s:Snip rdf:about='http://community.moertel.com/ss/rdf#TR+Joining+movies'
         s:cUser='tmoertel'
         s:oUser='tmoertel'
         s:mUser='tmoertel'>
        <s:name>TR Joining movies</s:name>
        <s:content>\\&#xA;Here&apos;s how to concatenate movies using mplayer&apos;s mencoder and its &quot;copy&quot; audio and video codecs to pass thru streams untouched:&#xA;&#xA;{code:none}&#xA;cat in1.avi in2.avi ... &gt; in-merged.avi&#xA;mencoder -oac copy -ovc copy -o output.avi in-merged.avi&#xA;{code}&#xA;&#xA;Source: http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-fix-avi.html&#xA;&#xA;For a shell script that automates this process (and also cleans up the input files), see __join-avi-files__ in [Tom&apos;s Bash shell code].</s:content>
        <s:mTime>2004-09-26 12:15:05.456</s:mTime>
        <s:cTime>2004-09-26 01:04:10.943</s:cTime>
        <s:comments>
            <rdf:Bag>
                <rdf:li>
                    <s:Comment rdf:about='http://community.moertel.com/ss/rdf#comment-TR+Joining+movies-1'
                         s:cUser='pastyr'
                         s:oUser='pastyr'
                         s:mUser='pastyr'>
                        <s:name>comment-TR Joining movies-1</s:name>
                        <s:content>And what about the A/V sync problem? You get significant delays between audio and video in the second part of output.avi if you do it this way and the audio track in input files is encoded in mp3 (which is usually the case).</s:content>
                        <s:mTime>2005-12-02 17:02:37.613</s:mTime>
                        <s:cTime>2005-12-02 17:02:37.541</s:cTime>
                        <s:commentedSnip rdf:resource='http://community.moertel.com/ss/rdf#TR+Joining+movies'/>
                    </s:Comment>
                </rdf:li>
                <rdf:li>
                    <s:Comment rdf:about='http://community.moertel.com/ss/rdf#comment-TR+Joining+movies-2'
                         s:cUser='tmoertel'
                         s:oUser='tmoertel'
                         s:mUser='tmoertel'>
                        <s:name>comment-TR Joining movies-2</s:name>
                        <s:content>Pastyr, I use the Joining-Movies recipe to join webcam/security videos, which don&apos;t have audio, and thus I haven&apos;t experienced the A/V-sync problem.&#xA;&#xA;My guess is that the first movie&apos;s audio track may by slightly longer than the corresponding video track.  So when the first frame of the second movie starts playing, the last bits of the first movie&apos;s audio track haven&apos;t yet finished, delaying the second movie&apos;s audio.&#xA;&#xA;I&apos;m not sure of the best way to fix such a problem.  Maybe you could process the audio and video separately, joining them as the final step: extract the audio tracks, truncate each to perfectly match the corresponding video track, join them, and then combine them with the already-joined video-only movie.</s:content>
                        <s:mTime>2005-12-05 12:17:53.155</s:mTime>
                        <s:cTime>2005-12-05 12:17:53.08</s:cTime>
                        <s:commentedSnip rdf:resource='http://community.moertel.com/ss/rdf#TR+Joining+movies'/>
                    </s:Comment>
                </rdf:li>
            </rdf:Bag>
        </s:comments>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='http://community.moertel.com/ss/rdf#Tom&apos;s Bash shell code'/>
                <rdf:li rdf:resource='http://community.moertel.com/ss/rdf#Tech Recipes'/>
                <rdf:li rdf:resource='#tmoertel'/>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='http://community.moertel.com/ss/rdf#Tom&apos;s Bash shell code/'/>
                <rdf:li rdf:resource='http://community.moertel.com/ss/rdf#space/space/space/TR Joining movies'/>
                <rdf:li rdf:resource='http://community.moertel.com/ss/rdf#space/TR Joining movies'/>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='http://community.moertel.com/ss/rdf#tr joining movies'/>
                <rdf:li rdf:resource='http://community.moertel.com/ss/rdf#Tom&apos;s+Bash+shell+code'/>
                <rdf:li rdf:resource='http://community.moertel.com/ss/rdf#comment-start/2004-08-27/1-1'/>
                <rdf:li rdf:resource='http://community.moertel.com/ss/rdf#space/space/TR Joining movies'/>
                <rdf:li>
                    <s:Snip rdf:about='http://community.moertel.com/ss/rdf#TR+Joining+movies'>
                        <s:attachments
                             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
                        <RDFNsId2:snipLabels>
                            <rdf:Bag>
                                <rdf:li>
                                    <RDFNsId2:SnipLabel rdf:about='See also'>
                                        <s:value rdf:resource='http://community.moertel.com/ss/rdf#Tom&apos;s Bash shell code'/>
                                    </RDFNsId2:SnipLabel>
                                </rdf:li>
                            </rdf:Bag>
                        </RDFNsId2:snipLabels>
                    </s:Snip>
                </rdf:li>
            </rdf:Bag>
        </s:snipLinks>
    </s:Snip>
</rdf:RDF>
