On Wed, Sep 23, 2009 at 9:14 PM, Bernhard Praschinger
<shadowl...@utanet.at>wrote:
> 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?
>
* Thanks for your immediate reply.
> 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.
>
> 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
>
>
* 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,
INFO: [mpeg2enc] SETTING EXTENDED MMX for MOTION!
INFO: [mpeg2enc] SETTING SSE and MMX for TRANSFORM!
INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
INFO: [mpeg2enc] Selecting DVD output profile
INFO: [mpeg2enc] Assuming norm NTSC
INFO: [mpeg2enc] Progressive input - selecting progressive encoding.
INFO: [mpeg2enc] Encoding MPEG-2 video to video.mp2
INFO: [mpeg2enc] Horizontal size: 1024 pel
INFO: [mpeg2enc] Vertical size: 768 pel
INFO: [mpeg2enc] Aspect ratio code: 2 = 4:3 display
INFO: [mpeg2enc] Frame rate code: 4 = 30000.0/1001.0 (NTSC VIDEO)
INFO: [mpeg2enc] Bitrate: 7500 KBit/s
INFO: [mpeg2enc] Quality factor: 5 (Quantisation = 5) (1=best, 31=worst)
INFO: [mpeg2enc] Field order for input: none/progressive
INFO: [mpeg2enc] Sequence unlimited length
INFO: [mpeg2enc] Search radius: 16
INFO: [mpeg2enc] DualPrime: no
INFO: [mpeg2enc] Using one-pass rate controller
INFO: [mpeg2enc] GOP SIZE RANGE 9 TO 15
INFO: [mpeg2enc] Setting colour/gamma parameters to "NTSC"
INFO: [mpeg2enc] Progressive format frames = 1
**ERROR: [mpeg2enc] Horizontal size is greater than permitted in specified
Level
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.
>
> * 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.
> auf hoffentlich bald,
>
> Berni the Chaos of Woodquarter
>
> Email: shadowl...@utanet.at
> www:
> http://www.lysator.liu.se/~gz/bernhard<http://www.lysator.liu.se/%7Egz/bernhard>
>
>
I hope I can get a way here....
--
Regards,
Nagalenoj H.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users