Re: [Mjpeg-users] How to use the -S option of mplex?

2003-01-06 Thread Andrew Stevens
On Sunday 05 Jan 2003 2:25 pm, you wrote:
 On Sun, Jan 05, 2003 at 12:49:12PM +0100, Andrew Stevens wrote:
  Sounds like your using an older version.  There was a bug where the size
  for -f 8 was effectively hard-wired to 2GB.
 
  This is certainly fixed in the development version and I think I also
  merged in the (1 line) fix into the 1.6.1 stable release.

 Well, no, mplex gives me:

 mjpegtools mplex version 1.6.1
 Usage: mplex [params] -o output filename pattern input file...

 Prior to that, I was using version 1.6.0 with same result.

O.k. the fix you want is that in mplex/multplexor.cc
The line after case MPEG_FORMAT_DVD :
max_segment_size = 2000*1024*1024;
should actually read:

if( max_segment_size == 0 )   max_segment_size = 2000*1024*1024;

I think the cause of the Problem is fairly obvious when you see the above ;-)
There should be a 1.6.2 release with bug-fixed and updated mplex and mpeg2enc
out pretty shortly that does include the fix.

Andrew
PS
If all you're interested in is spliting the file over mutliple CD's for 
storage then simply using the split utility to split the output files at 
2048 byte boundaries will work just fine.

E.g.

cat bigfiles.*.mpg | split -b 780m - littlefiles.
for f in littlefiles.*
do
mv $f $f.mpg
done

N.b. this will *not* work for (S)VCD but there mpeg2enc/mplex will handle the 
splitting for you correctly.

Andrew


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users



Re: [Mjpeg-users] How to use the -S option of mplex?

2003-01-06 Thread Selva Nair
On Sun, 5 Jan 2003, Gregoire Favre wrote:

 On Sun, Jan 05, 2003 at 12:49:12PM +0100, Andrew Stevens wrote:
 
  Sounds like your using an older version.  There was a bug where the size for 
  -f 8 was effectively hard-wired to 2GB.  
  
  This is certainly fixed in the development version and I think I also merged 
  in the (1 line) fix into the 1.6.1 stable release.
 
 Well, no, mplex gives me:
 
 mjpegtools mplex version 1.6.1
 Usage: mplex [params] -o output filename pattern input file...
 
 Prior to that, I was using version 1.6.0 with same result.
 
 Thank you for your answer ;-)
 
 Please keep CC to me as I am not on this ml!!!
 
   Grégoire

Here is what I did to mplex/multplex.cc to get -S working..
(this patch is for 1.6.0, but its is essentially a 1 line
change easily applied by hand on other versions if needed..)

--- multplex.cc.old Mon Apr 29 12:30:56 2002
+++ multplex.cc Sun Nov 24 13:35:59 2002
@@ -271,7 +271,9 @@
 timestamp_iframe_only = true;
 video_buffers_iframe_only = true;
vbr = true;
-opt_max_segment_size = 2000*1024*1024;
+// opt_max_segment_size = 2000*1024*1024;
+// changed to activate the -S option 
+if(opt_max_segment_size = 0) opt_max_segment_size = 2000*1024*1024;
 opt_multifile_segment = true;
 break;
 
Selva



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users



Re: [Mjpeg-users] How to use the -S option of mplex?

2003-01-05 Thread Gregoire Favre
On Sun, Jan 05, 2003 at 07:32:40AM +0100, Bernhard Praschinger wrote:

Good morming ;-)

  mplex -f 8 -S 400 -o name%d.mpg 001.mp*
  to mux files together, but I alwasy get 2 Gb files :-(
 That is a correct behavior of mplex. 
 
  Any idea on how to use this option?
 man mplex 

Well, do you really think I haddn't?
I am too stupid to understand how to use the -S option:

   -S|--max-segment-size num
  This option specifies the maximum size of output files in MBytes
  (2^10).  The default is 2000 Mbytes (splitting output before  2G
  limits  can  hit).   When  the  limit  is reached a  new file is
  started.

So what's wrong with my -S 400?

I am a little bit disapointed by this answer :-(

Please CC to me as I am not in this ml, thank you very much,

Grégoire

http://ulima.unil.ch/greg ICQ:16624071 mailto:[EMAIL PROTECTED]


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users



Re: [Mjpeg-users] How to use the -S option of mplex?

2003-01-05 Thread Andrew Stevens
On Saturday 04 Jan 2003 9:01 pm, Gregoire Favre wrote:
 Hello,

 I use this:

 mplex -f 8 -S 400 -o name%d.mpg 001.mp*

 to mux files together, but I alwasy get 2 Gb files :-(

 Any idea on how to use this option?

 Thank you very much and please CC to me as I am not on this ml!!!

   Grégoire

Sounds like your using an older version.  There was a bug where the size for 
-f 8 was effectively hard-wired to 2GB.  

This is certainly fixed in the development version and I think I also merged 
in the (1 line) fix into the 1.6.1 stable release.

Andrew


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users



Re: [Mjpeg-users] How to use the -S option of mplex?

2003-01-05 Thread Gregoire Favre
On Sun, Jan 05, 2003 at 12:13:13PM +0100, Bernhard Praschinger wrote:

 With that information I cannot exactly tell. I know that it works on my
 machine with 100MB (I have no stream with more than 400 MB lying
 around). 
 The only differnce I see with the information you reveal is that you do
 not specifie each stream. That might be a differnece. 
 Try to specifie the audio and video stream:
 mplex -f 8 -S 400 audio.mp2 video.m2v -o dvd%d.mpg

Well, I have tried exactly that:

mplex -f 8 -S 400 /video2/001.mp2 -o dvd%d.mpg

   INFO: [mplex] mplex version 2.2.1 ($Date: 2002/02/04 19:06:14 $)
   INFO: [mplex] File /video2/001.mp2 looks like an MPEG Audio stream.
   INFO: [mplex] File /video2/001.mpv looks like an MPEG Video stream.
   INFO: [mplex] Found 1 video streams 1 MPEG audio streams and 0 AC3 streams
   INFO: [mplex] Selecting DVD output profile (INCOMEPLETE)
   INFO: [mplex] Scanning for header info: Video stream e0 (/video2/001.mpv) 
   INFO: [mplex] VIDEO STREAM: e0
   INFO: [mplex] Frame width : 720
   INFO: [mplex] Frame height: 576
   INFO: [mplex] Aspect ratio: 4:3 display
   INFO: [mplex] Picture rate: 25.000 frames/sec
   INFO: [mplex] Bit rate: 7766400 bits/sec
   INFO: [mplex] Vbv buffer size : 229376 bytes
   INFO: [mplex] CSPF: 0
   INFO: [mplex] Scanning for header info: Audio stream c0 (/video2/001.mp2)
   INFO: [mplex] AUDIO STREAM:
   INFO: [mplex] Audio version  : 1.0
   INFO: [mplex] Layer  :3
   INFO: [mplex] CRC checksums  :  yes
   INFO: [mplex] Bit rate   :32768 bytes/sec (256 kbit/sec)
   INFO: [mplex] Frequency  : 48000 Hz
   INFO: [mplex] Mode   :0 stereo
   INFO: [mplex] Mode extension :0
   INFO: [mplex] Copyright bit  :0 no copyright
   INFO: [mplex] Original/Copy  :0 copy
   INFO: [mplex] Emphasis   :0 none
   INFO: [mplex] SYSTEMS/PROGRAM stream:
   INFO: [mplex] rough-guess multiplexed stream data rate: 8158800
   INFO: [mplex] target data-rate specified   : 1008
   INFO: [mplex] Setting specified specified data rate: 1008
   INFO: [mplex] Sectors = 89 Video delay = 13019 Audio delay = 13019
   INFO: [mplex] New sequence commences...
   INFO: [mplex] Video e0: buf= 237568 frame=00 sector=
   INFO: [mplex] Audio c0: buf=   4096 frame=00 sector=
   INFO: [mplex] Scanned to end AU 147456
   INFO: [mplex] STREAM e0 completed @ 147456.
   INFO: [mplex] STREAM c0 completed @ 245761.
   INFO: [mplex] Multiplex completion at SCR=530850523.
   INFO: [mplex] Video e0: buf= 193052 frame=147456 sector=01420140
   INFO: [mplex] Audio c0: buf=   1792 frame=245761 sector=00093439
   INFO: [mplex] VIDEO_STATISTICS: e0
   INFO: [mplex] Video Stream length:   357844096 bytes
   INFO: [mplex] Sequence headers:12724
   INFO: [mplex] Sequence ends   :1
   INFO: [mplex] No. Pictures:   147457
   INFO: [mplex] No. Groups  :12724
   INFO: [mplex] No. I Frames:12724 avg. size 43477 bytes
   INFO: [mplex] No. P Frames:36429 avg. size 23466 bytes
   INFO: [mplex] No. B Frames:98304 avg. size 14797 bytes
   INFO: [mplex] No. D Frames:0 avg. size 0 bytes
   INFO: [mplex] Average bit-rate :  3882800 bits/sec
   INFO: [mplex] Peak bit-rate:  699  bits/sec
   INFO: [mplex] BUFFERING min 15 Buf max 134306
   INFO: [mplex] AUDIO_STATISTICS: c0
   INFO: [mplex] Audio stream length 188745216 bytes.
   INFO: [mplex] Syncwords  :   245762
   INFO: [mplex] Frames :   245762 padded
   INFO: [mplex] Frames :0 unpadded
   INFO: [mplex] BUFFERING min 15 Buf max 779
   INFO: [mplex]  
   INFO: [mplex] MUX STATUS: no under-runs detected.

And the first files is 2.0Gb and the second 900Mb :-(

 For more help you need to give more information. Starting with the
 version of the mjpeg tools you use, the commands used, the filesizes.

I use mjpeg 1.6.1, the command I alreday gives several times, the filesizes
are a lots different from time to time, here:
-rw-r--r--1 greg greg 181M Jan  5 12:19 /video2/001.mp2
-rw-r--r--1 greg greg 2.7G Jan  5 12:19 /video2/001.mpv

 And why you want to split a DVD stream into pices. I have the strange
 feeling that you are trying something not suitable or not allowed for
 DVD. 

Because, I use this to create a DVD:
ifogen -o /video2/tmp/VIDEO_TS/VTS mpeg_files
tocgen /video2/tmp/VIDEO_TS

And if the mpeg files are smaller I got more chapters ;-)
If you know other way to make DVD under linux, I would enjoy to know
about that way, and I like to have some chapters in my DVD (made with
recordings from VDR).

Thank you very much for all help, and please keep CC to me as I am not
on this ml ;-)

Have a great day,

Grégoire

http://ulima.unil.ch/greg ICQ:16624071 mailto:[EMAIL PROTECTED]