Re: multiple mpgs
Tim Hanson <[email protected]>
| Newsgroups | gmane.linux.suse.multimedia |
|---|---|
| Message-ID | <[email protected]> |
I wrote a quick and dirty script to join multiple files:
cd ~/mpg/temp
ls *.mpg > sedstart
sed 's/.mpg/.mpg \\/' sedstart > ./stubs/middle
cd stubs
cat front middle back > scr
cd ..
sh ./stubs/scr $1
rm sedstart
mv $1.* ~/mpg/$2
It builds a file that looks like this:
cat \
01.mpg \
02.mpg \
03.mpg \
04.mpg \
05.mpg \
06.mpg \
07.mpg \
08.mpg \
09.mpg \
10.mpg > $1.mpg
then runs it.
> Makes me think of bash'es curly braces
> cat file{01,02,03}.mpg > combined.mpg
> Saves typing if *.mpg is not what you want.
>
> On Tuesday 13 June 2006 15:45, Dave Grosvold wrote:
> > Tim Hanson wrote:
> > > Is there a utility that will take a list of mpegs and concantenate them
> > > into one long playable mpeg? I thought the kaffeine "Save Stream"
> > > option would work, but it only streams one file at a time.
> >
> > On the command line, try:
> >
> > cd ./mpgfolder
> > cat *.mpg >> combined.mpg
> >
> > Just make sure you have the filenames numbered in seqence so the files
> > get concatenated in the right order. For example,
> >
> > file01.mpg
> > file02.mpg
> > ...
> > file10.mpg
> > file11.mpg,
> >
> > Not:
> >
> > file1.mpg
> > ...
> > file10.mpg
> > ...
> >
> > This works for me.
> >
> > -- Dave Grosvold
--
Antonym, n.:
The opposite of the word you're trying to think of.