This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Multimedia support forum > March 2007 > adding music to mpg file
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
adding music to mpg file
|
|
| Allan Adler 2007-02-24, 6:24 pm |
|
I am running RedHat 7.1 Linux on an old Dell Latitude CsX laptop. When I
want to view mpg files on it, I use the resident program plaympeg. Presently,
it won't produce sound because I don't have a driver for the sound card, but
I'll try to get a driver. I have some mpg files, of which those at
http://www-staff.it.uts.edu.au/~don/movies
and
http://www-staff.it.uts.edu.au/~don/vogmovies
are typical, that I would like to know how to add sound to. I did a google
search and learned about a program called mplex. It may be a problem with
my browser that prevents me from actually downloading mplex from the site
where it is distributed, but I can probably download it from one of the
library's computers. According to one online article I read in linuxjournal,
one can use mplex in the following typical way to add audio to an mpg file:
mplex -f 8 -o video%d.mpg photos/setset5/video.mpg audio1.mp2 audio2.mp2
That seems to confirm that one can add music to an mpg file that doesn't
already have it.
To me, mpg and mp2 are just file extensions. I don't know anything about the
formats and the problems of working with them. I don't know anything about the
kinds of audio files one can include with this and I don't know whether, in
principle, the resulting mpg files are still playable using plaympeg. I'd just
like to be reassured about these points before investing too much effort in
installing mplex (assuming it will run on my old system).
Once that is solved, I still have the problem of producing my own mp2 files
(or whatever format I have to produce) and, down the road, I don't rule out
wanting to burn something to a CD or DVD (more likely the former at this stage)
to watch on my TV, but one thing at a time. Right now, I just want to know what
tools I can use on my ancient system to add music to mpg files, such as one
finds at the two websites I listed above, to produce mpg files that I can
play using the resident plaympeg on my system.
--
Ignorantly,
Allan Adler <ara@zurich.csail.mit.edu>
* Disclaimer: I am a guest and *not* a member of the MIT CSAIL. My actions and
* comments do not reflect in any way on MIT. Also, I am nowhere near Boston.
| |
| Heiko Recktenwald 2007-02-25, 6:16 pm |
| Allan Adler wrote:
> search and learned about a program called mplex.
It is ok and does the job.
| |
| Allan Adler 2007-02-26, 6:20 pm |
| Heiko Recktenwald <me@privacy.net> writes:
> Allan Adler wrote:
>
> It is ok and does the job.
Thanks. Since mplex is part of the mjpeg stuff, I downloaded
mjpegtools-1.80 and started installing it. There were no problems
with configure and make ran for a while but just now crashed with
the following error message:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/local/include -I../utils -DNDEBUG -finline-functions -fno-PIC -march=i686 -mcpu=i686 -g -O2 -pthread -MT newdenoise.o -MD -MP -MF ".deps/newdenoise.Tpo" -c -o newdenoise.o newdenoise.cc; \
then mv -f ".deps/newdenoise.Tpo" ".deps/newdenoise.Po"; else rm -f ".deps/newdenoise.Tpo"; exit 1; fi
In file included from MotionSearcher.hh:16,
from newdenoise.cc:19:
BitmapRegion2D.hh:255: Internal error: Segmentation fault.
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
make[2]: *** [newdenoise.o] Error 1
make[2]: Leaving directory `/home/allan/NUDES/mjpegtools-1.8.0/y4mdenoise'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/allan/NUDES/mjpegtools-1.8.0'
make: *** [all] Error 2
I looked at the file y4mdenoise/BitmapRegion2D and found the following
illuminating comment:
// Part of BitmapRegion2D<> breaks gcc 2.95. An earlier arrangement of
// the code also broke gcc 3.3, but that seems to be in remission now.
#if defined(__GNUC__) && defined(__GNUC_MINOR__)
#if __GNUC__ == 2 && __GNUC_MINOR__ < 96
#define GCC_295_WORKAROUND
#endif
Since I'm running gcc 2.96, this is probably the problem. I've never before
seen code that causes the compiler to crash with a segmentation fault.
Anyway, I think mplex compiled. I can't test it because I don't have any
mp2 files but I'll try to get some.
--
Ignorantly,
Allan Adler <ara@zurich.csail.mit.edu>
* Disclaimer: I am a guest and *not* a member of the MIT CSAIL. My actions and
* comments do not reflect in any way on MIT. Also, I am nowhere near Boston.
| |
| Heiko Recktenwald 2007-02-27, 6:20 pm |
| Allan Adler wrote:
> Heiko Recktenwald <me@privacy.net> writes:
>
>
> Thanks. Since mplex is part of the mjpeg stuff, I downloaded
I have it as a single package for FreeBSD and used it once for MPEG 1
Video. Plus bla.mp2 audio.
Cannot avidemux do the job for you as well?
Avidemux is sotosay virtualdub for Linux.
H.
> mjpegtools-1.80 and started installing it. There were no problems
> with configure and make ran for a while but just now crashed with
> the following error message:
> if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/local/include -I../utils -DNDEBUG -finline-functions -fno-PIC -march=i686 -mcpu=i686 -g -O2 -pthread -MT newdenoise.o -MD -MP -MF ".deps/newdenoise.Tpo" -c -o newdenoise.o newdenoise.cc; \
> then mv -f ".deps/newdenoise.Tpo" ".deps/newdenoise.Po"; else rm -f ".deps/newdenoise.Tpo"; exit 1; fi
> In file included from MotionSearcher.hh:16,
> from newdenoise.cc:19:
> BitmapRegion2D.hh:255: Internal error: Segmentation fault.
> Please submit a full bug report.
> See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
> make[2]: *** [newdenoise.o] Error 1
> make[2]: Leaving directory `/home/allan/NUDES/mjpegtools-1.8.0/y4mdenoise'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/allan/NUDES/mjpegtools-1.8.0'
> make: *** [all] Error 2
>
> I looked at the file y4mdenoise/BitmapRegion2D and found the following
> illuminating comment:
> // Part of BitmapRegion2D<> breaks gcc 2.95. An earlier arrangement of
> // the code also broke gcc 3.3, but that seems to be in remission now.
> #if defined(__GNUC__) && defined(__GNUC_MINOR__)
> #if __GNUC__ == 2 && __GNUC_MINOR__ < 96
> #define GCC_295_WORKAROUND
> #endif
>
> Since I'm running gcc 2.96, this is probably the problem. I've never before
> seen code that causes the compiler to crash with a segmentation fault.
>
> Anyway, I think mplex compiled. I can't test it because I don't have any
> mp2 files but I'll try to get some.
| |
| Heiko Recktenwald 2007-02-27, 6:20 pm |
| Allan Adler wrote:
> Since I'm running gcc 2.96, this is probably the problem. I've never before
> seen code that causes the compiler to crash with a segmentation fault.
Isnt GCC 4 state of the art today?
>
> Anyway, I think mplex compiled. I can't test it because I don't have any
> mp2 files but I'll try to get some.
Do it yourself?
Btw, I think MPEG 1 Video can also sit in bla.mp4 files, so you could
also use aac or even mp3, mpeg4ip.sf.net , well, Quicktime may not play it.
H.
| |
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|