Re: [Mjpeg-users] mplex not splitting output as requested

2004-03-14 Thread Andrew Stevens
Hi all,

There is currently a bug in the handling of sequence end marker / I-frames 
alignmnet constraints.   Markers/I-frames can be missed if they are preceded 
by a B or P frame that is smaller than a single progream stream sector.

I am currently working on this issue and should have a fix ready this evening.


cheers,

Andrew



---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] mplex not splitting output as requested

2004-03-13 Thread Bernhard Praschinger
Hallo

> > Which version of the mjpegtools do you use ?
> I am using mjpegtools-1.6.2 on a Gentoo Linux box.
Ok.

> > > $ transcode -V -i o.rei.leao.avi -y mpeg2enc,null \
> > > -w 2800 --export_asr 2 \
> > > -F '5,-s -B 285 -V 230 -S 804 -4 2 -2 1  -q 4 -K hi-res -E -8 -R 0' \
> > > -o o.rei.leao.cd \
> > > -a 1 -b 224,0,5 --a52_dolby_off -J astat=o.rei.leao.cd.scl \
> > > -Z 480x368 -Y -56,0
> > I cant tell for the transcode command, but -S 804 and -B 285 should do
> > the thing.
> > Can you run it a way so the command trancode execute is shown ?
> 
> transcode shows the command line used to call mpeg2enc. From
> my log file I get:
> 
> [export_mpeg2enc.so] cmd=mpeg2enc -v 0 -I 0 -q 3 -f 5 -4 2 -2 3 -b 2800 -F 1 -n n  
> -a 2 -V 230 -o "o.rei.leao.cd.m2v" -s -B 285 -V 230 -S 804 -4 2 -2 1  -q 4 -K hi-res 
> -E -8 -R 0
> 
> (Remember that when an option appears more than one
> in the mpeg2enc command line, the latest one is
> used.)
I do not have to like what how transcode "extends" the options. 

> > I think transcode is doing something wrong because mpeg when you run
> > mpeg2enc it splits by default a 700MB.
> > You see this when mpeg2enc start in that 2 lines:
> >INFO: [mpeg2enc] New Sequence every 700 Mbytes
> >INFO: [mpeg2enc] Assuming non-video stream of 230 Kbps
> 
> transcode adds the option "-v 0" to the mpeg2enc command line,
> as you can see. Adding the "-v 1" option myself to mpeg2enc
> command line (through the "-F" option of transcode), I can
> see the following in the log:
>
>INFO: [mpeg2enc] New Sequence every 804 Mbytes
>INFO: [mpeg2enc] Assuming non-video stream of 285 Kbps
That lookes correct. 
 
> So the problem should not be with transcode, as mpeg2enc
> knows that it should start a new sequence every 804 Mbytes.
My problem is that mplex splits it exact at that point with you command.
Where I set it (40MB) because I don't have such a large video arround.

When you encode with -V 1 take a look at the last lines. If mpeg2enc
sets a split point it starts to number that frame with 0, so the
framenumber mpeg2enc prints out is much smaller than the aboslute number
of frames.
 
> Everything indicates that there is a bug in
> mpeg2enc. Maybe the developers could take
> a look.
You can prove that by providing the framenumbers.
And the mplex output.

auf hoffentlich bald,

Berni the Chaos of Woodquarter

Email: [EMAIL PROTECTED]
www: http://www.lysator.liu.se/~gz/bernhard


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] mplex not splitting output as requested

2004-03-13 Thread romildo
On Sat, Mar 13, 2004 at 06:04:18PM +0100, Bernhard Praschinger wrote:
> Hallo
> 
> > I am making a (non-standard) SVCD from an AVI file
> > using transcode, mpeg2enc, toolame and mplex with
> > the commands
> Which version of the mjpegtools do you use ?

I am using mjpegtools-1.6.2 on a Gentoo Linux box.

> > $ transcode -V -i o.rei.leao.avi -y mpeg2enc,null \
> > -w 2800 --export_asr 2 \
> > -F '5,-s -B 285 -V 230 -S 804 -4 2 -2 1  -q 4 -K hi-res -E -8 -R 0' \
> > -o o.rei.leao.cd \
> > -a 1 -b 224,0,5 --a52_dolby_off -J astat=o.rei.leao.cd.scl \
> > -Z 480x368 -Y -56,0
> I cant tell for the transcode command, but -S 804 and -B 285 should do
> the thing.
> Can you run it a way so the command trancode execute is shown ?

transcode shows the command line used to call mpeg2enc. From
my log file I get:

[export_mpeg2enc.so] cmd=mpeg2enc -v 0 -I 0 -q 3 -f 5 -4 2 -2 3 -b 2800 -F 1 -n n  -a 
2 -V 230 -o "o.rei.leao.cd.m2v" -s -B 285 -V 230 -S 804 -4 2 -2 1  -q 4 -K hi-res -E 
-8 -R 0

(Remember that when an option appears more than one
in the mpeg2enc command line, the latest one is
used.)

> I think transcode is doing something wrong because mpeg when you run
> mpeg2enc it splits by default a 700MB.
> You see this when mpeg2enc start in that 2 lines:
>INFO: [mpeg2enc] New Sequence every 700 Mbytes
>INFO: [mpeg2enc] Assuming non-video stream of 230 Kbps

transcode adds the option "-v 0" to the mpeg2enc command line,
as you can see. Adding the "-v 1" option myself to mpeg2enc
command line (through the "-F" option of transcode), I can
see the following in the log:

   INFO: [mpeg2enc] New Sequence every 804 Mbytes
   INFO: [mpeg2enc] Assuming non-video stream of 285 Kbps

So the problem should not be with transcode, as mpeg2enc
knows that it should start a new sequence every 804 Mbytes.

> > $ mplex -f 5 -V -o o.rei.leao.cd.%d.mpg \
> > o.rei.leao.cd.m2v o.rei.leao.cd.mp2
> That command lokkes nice too.
> 
> > $ ls -l *.cd.*
> > -rw-r--r--  1 romildo romildo 1211728952 Mar 13 03:57 o.rei.leao.cd.1.mpg
> > -rw-r--r--  1 romildo romildo 1041265749 Mar 13 01:09 o.rei.leao.cd.m2v
> > -rw-r--r--  1 romildo romildo  149317056 Mar 13 03:55 o.rei.leao.cd.mp2
> > -rw-r--r--  1 romildo romildo  6 Mar 13 01:09 o.rei.leao.cd.scl
> > 
> > I hoped the resulting MPG file being splitted into
> > 2 files of size 804M, as I have been doing with many
> > other movies, but it was not. Any reasons for that?
> You need to provide more inforamtion about what transcode does. And the
> options mpeg2enc really gets. 

See above.

> On the other Hand I would recommend you to take a look at the mjpeg-peg
> howto, section: "Decoding streams with mplayer"  
> A other nice and fast way to transcode streams.

I have already done some SVCDs using mplayer, but
I prefer to be with transcode now. It is easier
ans faster.

It is the second time I find the described problem.

Both problems were solved by modifying some
options. In this case changing the sequence
length to 800 worked. (I have also omitted
the "-E -8" option.)

Everything indicates that there is a bug in
mpeg2enc. Maybe the developers could take
a look.

Regards.

Romildo


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


Re: [Mjpeg-users] mplex not splitting output as requested

2004-03-13 Thread Bernhard Praschinger
Hallo

> I am making a (non-standard) SVCD from an AVI file
> using transcode, mpeg2enc, toolame and mplex with
> the commands
Which version of the mjpegtools do you use ?

> $ transcode -V -i o.rei.leao.avi -y mpeg2enc,null \
> -w 2800 --export_asr 2 \
> -F '5,-s -B 285 -V 230 -S 804 -4 2 -2 1  -q 4 -K hi-res -E -8 -R 0' \
> -o o.rei.leao.cd \
> -a 1 -b 224,0,5 --a52_dolby_off -J astat=o.rei.leao.cd.scl \
> -Z 480x368 -Y -56,0
I cant tell for the transcode command, but -S 804 and -B 285 should do
the thing.
Can you run it a way so the command trancode execute is shown ?

I think transcode is doing something wrong because mpeg when you run
mpeg2enc it splits by default a 700MB.
You see this when mpeg2enc start in that 2 lines:
   INFO: [mpeg2enc] New Sequence every 700 Mbytes
   INFO: [mpeg2enc] Assuming non-video stream of 230 Kbps

> $ mplex -f 5 -V -o o.rei.leao.cd.%d.mpg \
> o.rei.leao.cd.m2v o.rei.leao.cd.mp2
That command lokkes nice too.

> $ ls -l *.cd.*
> -rw-r--r--  1 romildo romildo 1211728952 Mar 13 03:57 o.rei.leao.cd.1.mpg
> -rw-r--r--  1 romildo romildo 1041265749 Mar 13 01:09 o.rei.leao.cd.m2v
> -rw-r--r--  1 romildo romildo  149317056 Mar 13 03:55 o.rei.leao.cd.mp2
> -rw-r--r--  1 romildo romildo  6 Mar 13 01:09 o.rei.leao.cd.scl
> 
> I hoped the resulting MPG file being splitted into
> 2 files of size 804M, as I have been doing with many
> other movies, but it was not. Any reasons for that?
You need to provide more inforamtion about what transcode does. And the
options mpeg2enc really gets. 

On the other Hand I would recommend you to take a look at the mjpeg-peg
howto, section: "Decoding streams with mplayer"  
A other nice and fast way to transcode streams.

auf hoffentlich bald,

Berni the Chaos of Woodquarter

Email: [EMAIL PROTECTED]
www: http://www.lysator.liu.se/~gz/bernhard


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users


[Mjpeg-users] mplex not splitting output as requested

2004-03-13 Thread romildo
Hello.

I am making a (non-standard) SVCD from an AVI file
using transcode, mpeg2enc, toolame and mplex with
the commands

$ transcode -V -i o.rei.leao.avi -y mpeg2enc,null \
-w 2800 --export_asr 2 \
-F '5,-s -B 285 -V 230 -S 804 -4 2 -2 1  -q 4 -K hi-res -E -8 -R 0' \
-o o.rei.leao.cd \
-a 1 -b 224,0,5 --a52_dolby_off -J astat=o.rei.leao.cd.scl \
-Z 480x368 -Y -56,0

$ transcode -i o.rei.leao.avi -y null,toolame \
-a 1 -b 224,0,5 --a52_dolby_off \
-s 1.155 -m o.rei.leao.cd -Z 480x368 -Y -56,0

$ mplex -f 5 -V -o o.rei.leao.cd.%d.mpg \
o.rei.leao.cd.m2v o.rei.leao.cd.mp2

$ ls -l *.cd.*
-rw-r--r--  1 romildo romildo 1211728952 Mar 13 03:57 o.rei.leao.cd.1.mpg
-rw-r--r--  1 romildo romildo 1041265749 Mar 13 01:09 o.rei.leao.cd.m2v
-rw-r--r--  1 romildo romildo  149317056 Mar 13 03:55 o.rei.leao.cd.mp2
-rw-r--r--  1 romildo romildo  6 Mar 13 01:09 o.rei.leao.cd.scl

I hoped the resulting MPG file being splitted into
2 files of size 804M, as I have been doing with many
other movies, but it was not. Any reasons for that?

Romildo


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users