[Mjpeg-users] Mplex help needed

2004-12-31 Thread Adam Gautier
Greetings,

I am getting an underun error and warning that exists when mplex(ing) 1
set of audio and video files that was rendered from cinelerra.  The info
on the render setting is:

Video:
 Type: MPEG-1
 Bitrate: 100 (fixed)
 Quantization: 15
 I frame distance: 45
 Color model: YUV 4:2:0
 Denoise: on

Audio:
 Layer: 3
 Kbits per second: 256


Then I try to mplex these together via mplex

mplex output:

$ mplex -o 3mintest.mpeg final.m1v final.mp3
   INFO: [mplex] mplex version 1.6.2 (2.2.3 $Date: 2004/01/13 20:45:26 $)
INFO: [mplex] File final.m1v looks like an MPEG Video stream.
   INFO: [mplex] File final.mp3 looks like an MPEG Audio stream.
   INFO: [mplex] Found 1 audio streams and 1 video streams
   INFO: [mplex] Selecting generic MPEG1 output profile
   INFO: [mplex] Multiplexing video program stream!
   INFO: [mplex] Scanning for header info: Video stream e0 (final.m1v)
INFO: [mplex] VIDEO STREAM: e0
   INFO: [mplex] Frame width : 800
   INFO: [mplex] Frame height: 600
   INFO: [mplex] Aspect ratio: 1:0.6735
   INFO: [mplex] Picture rate: b reserved
   INFO: [mplex] Bit rate: 100 bits/sec
   INFO: [mplex] Vbv buffer size : 1222656 bytes
   INFO: [mplex] CSPF: 0
   INFO: [mplex] Scanning for header info: Audio stream c0 (final.mp3)
INFO: [mplex] MPEG AUDIO STREAM: c0
   INFO: [mplex] Audio version  : 1.0
   INFO: [mplex] Layer  :3
   INFO: [mplex] CRC checksums  :   no
   INFO: [mplex] Bit rate   :16384 bytes/sec (128 kbit/sec) INFO:
[mplex] Frequency  : 48000 Hz
   INFO: [mplex] Mode   :1 joint stereo
   INFO: [mplex] Mode extension :2
   INFO: [mplex] Copyright bit  :0 no copyright
   INFO: [mplex] Original/Copy  :1 original
   INFO: [mplex] Emphasis   :0 none
   INFO: [mplex] SYSTEMS/PROGRAM stream:
   INFO: [mplex] rough-guess multiplexed stream data rate: 1155496
INFO: [mplex] Setting best-guess data rate.
   INFO: [mplex] Run-in Sectors = 21 Video delay = 26798 Audio delay =
30398
   INFO: [mplex] New sequence commences...
   INFO: [mplex] Video e0: buf=  47104 frame=00 sector= INFO:
[mplex] Audio c0: buf=   4096 frame=00 sector= INFO:
[mplex] Padding : sector=
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=26798
required(DTS)=26798
++ WARN: [mplex] Video e0: buf=   4553 frame=01 sector=0021 ++
WARN: [mplex] Audio c0: buf=   4096 frame=00 sector= ++ WARN:
[mplex] Padding : sector=
... [SNIP] ...
++ WARN: [mplex] Video e0: buf=  45086 frame=000359 sector=2908 ++
WARN: [mplex] Audio c0: buf=   4096 frame=000595 sector=0113 ++ WARN:
[mplex] Padding : sector=
**ERROR: [mplex] Too many frame drops -exiting


The man page suggests that I reduce the input bitrate or increase the
output bitrate.  But, I am new to video/audio editing and I am a little
out of my league. What do I need to do the get these files to mplex
together?

TIA,

Adam Gautier










---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] Mplex help needed

2004-12-31 Thread Adam Gautier
> Ok, "generic MPEG-1" at a 1Mb/s rate.  That does seem a bit low
> for 800x600.

Should I raise it?

> Ah, so the video is for "computer playback" only.  That's not a
> framesize that is suitable for VCD/DVD use (and MP3 audio couldn't be
used for (S)VCD or DVD)

Right! I am trying to get the playback using SMPEG for the SDL library.  I
have tested with some mpeg files off the net and the player works fine my
issues has been mainly associated with the audio.  I am trying to record a
voice over for the video using audacity, I have some posts going on in
that mailing list as well.  Anyway, getting mp3 out of audacity properly
was a problem so I exported as a WAV and then used cinelerra to render the
video and audio into the final(.m1v and .mp3) files.  I have used mplex
for smaller video files and existing mp3 files on my system with the above
method and it worked fine (for nothing longer than 30s to 1min).  Anyway,
I am thinking that the problem has to do with audio. But, I do not know
enough to really make that statement. Also, is there a way that I can
mplex using a null audio source?

>
>   mplex -f 0 -r 1200 -o 3mintest.mpg final.m1v final.mp3
>
>   should work better.  What is needed is the "-r" option that is the sum
of the audio and video bitrates plus a little extra to account for
overhead and peaks.  If you still get an underrun error or two try bumping
up the value used with -r to 1300.


I tried both 1200 and 1300 no luck...


The bit rate for  the mp3 is interesting becuase I thought it was rendered
as 256(Kbs), Thoughts?

The relivant output:

$ mplex -f 0 -r 1300 -o 3mintest.mpg final.m1v final.mp3
   INFO: [mplex] mplex version 1.6.2 (2.2.3 $Date: 2004/01/13 20:45:26 $)
INFO: [mplex] File final.m1v looks like an MPEG Video stream.
   INFO: [mplex] File final.mp3 looks like an MPEG Audio stream.
   INFO: [mplex] Found 1 audio streams and 1 video streams
   INFO: [mplex] Selecting generic MPEG1 output profile
   INFO: [mplex] Multiplexing video program stream!
   INFO: [mplex] Scanning for header info: Video stream e0 (final.m1v)
INFO: [mplex] VIDEO STREAM: e0
   INFO: [mplex] Frame width : 800
   INFO: [mplex] Frame height: 600
   INFO: [mplex] Aspect ratio: 1:0.6735
   INFO: [mplex] Picture rate: b reserved
   INFO: [mplex] Bit rate: 100 bits/sec
   INFO: [mplex] Vbv buffer size : 1222656 bytes
   INFO: [mplex] CSPF: 0
   INFO: [mplex] Scanning for header info: Audio stream c0 (final.mp3)
INFO: [mplex] MPEG AUDIO STREAM: c0
   INFO: [mplex] Audio version  : 1.0
   INFO: [mplex] Layer  :3
   INFO: [mplex] CRC checksums  :   no
   INFO: [mplex] Bit rate   :16384 bytes/sec (128 kbit/sec) INFO:
[mplex] Frequency  : 48000 Hz
   INFO: [mplex] Mode   :1 joint stereo
   INFO: [mplex] Mode extension :2
   INFO: [mplex] Copyright bit  :0 no copyright
   INFO: [mplex] Original/Copy  :1 original
   INFO: [mplex] Emphasis   :0 none
   INFO: [mplex] SYSTEMS/PROGRAM stream:
   INFO: [mplex] rough-guess multiplexed stream data rate: 1155496
INFO: [mplex] target data-rate specified   : 130 INFO:
[mplex] Setting specified specified data rate: 130
   INFO: [mplex] Run-in Sectors = 21 Video delay = 23819 Audio delay =
27419 INFO: [mplex] New sequence commences...
   INFO: [mplex] Video e0: buf=  47104 frame=00 sector= INFO:
[mplex] Audio c0: buf=   4096 frame=00 sector= INFO:
[mplex] Padding : sector=
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=23819
required(DTS)=23819
...







---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users