Hallo
Nagalenoj H. wrote:
> It's working great. Thanks. The video is clear. Finally, I've executed
> the command as
> ./rfbproxy -x ../../files/q3.fbs | ppmtoy4m -S 420jpeg | mpeg2enc -b
> 10000 --no-constraints -f 3 -4 1 -2 1 -q 4 -P -N 1.0 -M 2 -E -10 -D 10
> -a 2 -o video.mp2
>
> and
>
> ./rfbproxy -x ../../files/q3.fbs | ppmtoy4m -S 420jpeg |mpeg2enc -f 3 -q
> 4 -b 10000 --no-constraints -o video1.mp2
>
>
> The fbs file has one minute session(video). When I execute this command,
> It is taking around 4 minutes to convert fbs file to mp2. I feel this is
> quiet unfair, so is there any options to reduce this conversion duration
> without any loss in video.?
How many cores do you have in your computer ?
The -M 2 (or 4) helps. Is there a program in the pipeline that uses 100%
of one CPU ?
Did you run the pipeline with the time program ? So you know how much
time each program consumes (should work):
time ./rfbproxy -x ../../files/q3.fbs | time ppmtoy4m -S 420jpeg | \
time mpeg2enc -f 3 ...
You might gain some speed by using a buffer program like bfr:
http://www.glines.org/software/bfr
You use it in a way like that:
./rfbproxy -x ../../files/q3.fbs | ppmtoy4m -S 420jpeg | \
bfr -b 64M | mpeg2enc ...
auf hoffentlich bald,
Berni the Chaos of Woodquarter
Email: shadowlord@...
www: http://www.lysator.liu.se/~gz/bernhard

On Thu, 24 Sep 2009 10:00:07 +0530
"Nagalenoj H." <nagalenoj@...> wrote:
> > * How should I use a different codec to convert? Whether there is any
> other command to use in mjpegtools?
> Let me say what I'm trying to get. I need to convert a vnc session to
> swf file. I don't know how to do this directly. So, I'm first converting to
> mpg/avi and then I'm converting to swf.
Would an flv suffice? Then
http://www.jeremychapman.info/cms/mencoder-avi-to-flv-conversion might be worth a look, if mplayer can play the captured session.
/Sam

Hallo
> Whats the resolution of the video you create ?
>
> * I am capturing a screen which is having the pixel of 1024 x
> 768. So, I feel better to see the video in the same resolution.
I thought about something like that.
> a command like that might produce a better image:
> mpeg2enc -f 8 -4 1 -2 1 -q 5 -P -N 1.0 -M 2 -E -10 -D 10 -a 2 -o
> video.mp2
>
>
> * I've tried these options.
> So, the command is like,
> ./rfbproxy -x log.fbs | ppmtoy4m -S 420jpeg | mpeg2enc -f 8 -4 1 -2 1 -q
> 5 -P -N 1.0 -M 2 -E -10 -D 10 -a 2 -o video.mp2
> ./rfbproxy -x ../../files/q3.fbs | ppmtoy4m -S 420jpeg | mpeg2enc -f 8
> -q 4 -o video.mp2
>
> For both of it, failed with an error message and the error is as follows,
>
[...]
> **ERROR: [mpeg2enc] Horizontal size is greater than permitted in
> specified Level
If you have that error try using the --no-constraints option (more info
in the mpeg2enc manpage). Than mpeg2enc allows other sizes and bitrates.
You might use than a command like that:
... | mpeg2enc -f 3 -q 4 -b 10000 --no-constraints -o video.mp2
If that works you can add other options.
> * How should I use a different codec to convert? Whether there is
> any other command to use in mjpegtools?
Not with the mjpegtools. The mjpegtools are designed to produce mpeg 1/2
output. You need different video encoders.
You might take a look at libquicktime.
> Let me say what I'm trying to get. I need to convert a vnc session
> to swf file. I don't know how to do this directly. So, I'm first
> converting to mpg/avi and then I'm converting to swf.
Which kind of AVI Format is supported ?
auf hoffentlich bald,
Berni the Chaos of Woodquarter
Email: shadowlord@...
www: http://www.lysator.liu.se/~gz/bernhard

Hallo
Nagalenoj H. wrote:
> Dear friends,
> I've recently come to know about the mjpegtools package. I'm
> using it to convert a vnc session to mpg or avi/mpg format. I'm using
> RFBproxy which works in the place of vnc viewer and captures the
> server's screen updates in a file(fbs format). When, I playback the
> recorded vnc session, the clarity of the video is clear.
>
> Having the RFBproxy
> manual[http://rfbproxy.sourceforge.net/manpage.html] as reference, I
> tried to convert the vnc session to mpg using the mjpegtools.
> I've used the commands as,
> rfbproxy -x log.fbs | ppmtoy4m -S 420jpeg | mpeg2enc -o
> video.mpg
> rfbproxy -x log.fbs | ppmtoy4m -S 420jpeg | ffmpeg -f
> yuv4mpegpipe -i - -vcodec mpeg4 video.avi
>
> After converting to any one of it, the video losses its clarity.
> I hope there might be some options to avoid this loss in clarity or is
> there any other command in the package to convert the vnc session to
> video file?
Whats the resolution of the video you create ?
The mpeg2enc command generates a mpeg-1 movie with a very low bitrate.
a mpeg2enc command like that will help:
mpeg2enc -f 8 -q 4 -o video.mp2
but generates a MPEG-2 Video file instead.
a command like that might produce a better image:
mpeg2enc -f 8 -4 1 -2 1 -q 5 -P -N 1.0 -M 2 -E -10 -D 10 -a 2 -o video.mp2
The problem is that MPEG will always soften the image. Because is is a
compression where you loose details. You can only make that amount a
little bit smaller.
If you need that details you need to find a different video codec.
auf hoffentlich bald,
Berni the Chaos of Woodquarter
Email: shadowlord@...
www: http://www.lysator.liu.se/~gz/bernhard

Dear friends,
I've recently come to know about the mjpegtools package. I'm using
it to convert a vnc session to mpg or avi/mpg format. I'm using RFBproxy
which works in the place of vnc viewer and captures the server's screen
updates in a file(fbs format). When, I playback the recorded vnc session,
the clarity of the video is clear.
Having the RFBproxy manual[
http://rfbproxy.sourceforge.net/manpage.html] as reference, I tried to
convert the vnc session to mpg using the mjpegtools.
I've used the commands as,
rfbproxy -x log.fbs | ppmtoy4m -S 420jpeg | mpeg2enc -o
video.mpg
rfbproxy -x log.fbs | ppmtoy4m -S 420jpeg | ffmpeg -f
yuv4mpegpipe -i - -vcodec mpeg4 video.avi
After converting to any one of it, the video losses its clarity. I
hope there might be some options to avoid this loss in clarity or is there
any other command in the package to convert the vnc session to video file?
--
Regards,
Nagalenoj H.

Hallo
> since version 1.9 of mjpegtools the quality vo SVCD-stills is very poor. The
> m2v files only have about 30 kb whereas in version 1.8 the size was about 180
> kb. All converting works properly, only mpeg2enc produces very poor quality.
>
> I use mjpegtools 1.9.0 from Ubuntu 9.04.
>
> mpeg2enc -v 2 -f 7 -a 2 -T 200 -n p -o 002.m2v
>
> Is this a problem of mjpegtools or do I something wrong?
It seems that there is a problem with the "new" Bitrate control.
Which seems to ignore or do something wrong the preset for the still
streams.
auf hoffentlich bald,
Berni the Chaos of Woodquarter
Email: shadowlord@...
www: http://www.lysator.liu.se/~gz/bernhard

Hallo
> thanks for the hint with "convert". This does the same as jpeg2yuv did
> before.
> I looked at the bugreport and saw that it was from 2005, but i can't
> imagine that the version included in Debian "Lenny" (current stable) is
> so old
> and why can't jpeg2yuv do what convert + ppmtoy4m can ?
Sorry I have no idea why jpeg2yuv can't do it.
I remember that there were certain problems using a smaller size than
multiplys of 16.
auf hoffentlich bald,
Berni the Chaos of Woodquarter
Email: shadowlord@...
www: http://www.lysator.liu.se/~gz/bernhard

Hallo
>> i used the mjpegtools 1:1.8.0-0.9 in Debian "Lenny" to convert a 1366x768
>> jpeg into a m1v file like this:
>> jpeg2yuv -f 25 -I p -j test%1d.jpg | mpeg2enc --no-constraints -f 0 -V 500 -b
>> 9000 -o bootlogo.m1v
>> to create a bootlogo for enigma2.
>>
>> Now with Debian squeeze and 1:1.9.0-0.5 i get the error ...
>> oops, didn't copy it because i downgraded and now it's no longer in the
>> buffer
>>
>> Anyways the error was something like jpeg2yuv: the width is not a
>> multiple of 16 please resize ....
>> Why ? It worked before (and now works with 1:1.8.0-0.9 again) ?
So you have installed the old version to work around the problem ?
Have you tried using convert and ppmtoy4m to generate a yuv stream ?
The command looks like that:
convert *.jpg ppm:- | ppmtoy4m -F 25:1 -i P -S 420jpeg | ....
There is a bug tracker entry that describes why there is that limit:
http://sourceforge.net/tracker/?func=detail&atid=105776&aid=1296447&group_id=5776
BTW: Gernot wrote the program so he might want to fix it ;)
>> P.S. If you want i can send you the jpeg it is around 1MB in size.
Should not be necessary.
auf hoffentlich bald,
Berni the Chaos of Woodquarter
Email: shadowlord@...
www: http://www.lysator.liu.se/~gz/bernhard

Hej Sven,
I am not active in this project anymore, thus I forward your message to
the list in the hope that someone can answer. :-)
Hope it works out!
/Gernot
> Hi,
>
> i used the mjpegtools 1:1.8.0-0.9 in Debian "Lenny" to convert a 1366x768
> jpeg into a m1v file like this:
> jpeg2yuv -f 25 -I p -j test%1d.jpg | mpeg2enc --no-constraints -f 0 -V 500 -b
> 9000 -o bootlogo.m1v
> to create a bootlogo for enigma2.
>
> Now with Debian squeeze and 1:1.9.0-0.5 i get the error ...
> oops, didn't copy it because i downgraded and now it's no longer in the
> buffer
>
> Anyways the error was something like jpeg2yuv: the width is not a
> multiple of 16 please resize ....
> Why ? It worked before (and now works with 1:1.8.0-0.9 again) ?
>
> Greets,
> Sven
>
> P.S. If you want i can send you the jpeg it is around 1MB in size.
>
>
>
>
>
>
>
>
>
Servus,
Gernot
GPU. 3D Vision. Europe. Future. Now.
Drop by: http://www.mpi-sb.mpg.de/~gziegler - http://www.geofront.eu

Hello,
since version 1.9 of mjpegtools the quality vo SVCD-stills is very poor. The
m2v files only have about 30 kb whereas in version 1.8 the size was about 180
kb. All converting works properly, only mpeg2enc produces very poor quality.
I use mjpegtools 1.9.0 from Ubuntu 9.04.
mpeg2enc -v 2 -f 7 -a 2 -T 200 -n p -o 002.m2v
Is this a problem of mjpegtools or do I something wrong?
greetings
Helmi

On Wed, 2 Sep 2009, Bernhard Praschinger wrote:
> I have tested it here on a Suse and MAC 10.5.8, and it compiles here to.
>
> I get some error messages when I tries to compile the newdenoise.cc on
> the mac. I will investigate it next weekend. It compiles well on the PC
> running Linux.
Interesting. I just did a compile on the Mac (10.5.8) a minute ago
and didn't see any errors with newdenoise.cc
Let us know what you find out.
>
Cheers,
Steven Schultz

Hallo
> * Steven M. Schultz on Monday, August 31, 2009 at 15:03:33 -0700
>> On Mon, 31 Aug 2009, Christian Ebert wrote:
>>> $ sw_vers
>>> ProductName: Mac OS X
>>> ProductVersion: 10.5.8
>> Got your 10.6 on order ? :-)
>
> Nope ;-)
>
>> A change was checked in to do a test compile and force $proc back to
>> "nocona" if the 'core2' is rejected.
>>
>> Works fine now.
>
> It does indeed. Thanks!
I have tested it here on a Suse and MAC 10.5.8, and it compiles here to.
I get some error messages when I tries to compile the newdenoise.cc on
the mac. I will investigate it next weekend. It compiles well on the PC
running Linux.
auf hoffentlich bald,
Berni the Chaos of Woodquarter
Email: shadowlord@...
www: http://www.lysator.liu.se/~gz/bernhard