Skip to content

Commit

Permalink
updated video conversion info
Browse files Browse the repository at this point in the history
  • Loading branch information
baccala committed Aug 30, 2005
1 parent 03c2fbb commit 9990272
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
17 changes: 9 additions & 8 deletions README
Expand Up @@ -154,11 +154,16 @@ C) Use xrfbviewer, available from www.hexonet.de. This requires X to run,

RECORDING TO VIDEO

You probably need to record in shared-session mode for --export to work.
See the comments at the beginning of rfbproxy.c to understand why.
You probably need to record in shared-session mode for --export to
work. See the comments at the beginning of rfbproxy.c to understand
why. There are several different video codecs you can use, though I
think mjpegtools and ffmpeg are the main ones, and many different ways
to combine the various options. Look at the man page and the Makefile
for additional possibilities.

To convert a recorded session to MPEG using the mjpegtools package, do
something like (for DVD format):
About the simplest video conversion is to convert a recorded session
to MPEG using the mjpegtools package, doing something like (for DVD
format):

rfbproxy --export rfb.log \
| ppmtoy4m \
Expand All @@ -184,10 +189,6 @@ And mplex like this:
Now you've got a DVD-compatible MPEG program stream with both video
and audio in it.

You can also convert to video using ffmpeg, which supports a broader
range of video formats than mjpegtools. See the Makefile for some
targets showing possible invocation syntax.


Have fun.

Expand Down
30 changes: 15 additions & 15 deletions rfbproxy.1
Expand Up @@ -137,14 +137,14 @@ playback often helps. See
below for a better solution.

.TP
.I rfbproxy -x log.fbs | ppmtoy4m | mpeg2enc -o video.mpg
.I rfbproxy -x log.fbs | ppmtoy4m -S 420_jpeg | mpeg2enc -o video.mpg
Convert the VNC session in
.I log.fbs
to MPEG-2 using
.BR mjpegtools (1).

.TP
.I rfbproxy -x log.fbs | ppmtoy4m | ffmpeg -f yuv4mpegpipe -i - -vcodec mpeg4 video.avi
.I rfbproxy -x log.fbs | ppmtoy4m -S 420_jpeg | ffmpeg -f yuv4mpegpipe -i - -vcodec mpeg4 video.avi
Convert the VNC session in
.I log.fbs
to MPEG-4 using
Expand Down Expand Up @@ -179,42 +179,42 @@ vrec -s 48000 -b 16 -r audio
.RE

This one converts the recorded fbs/audio pair into a DVD-standard MPEG-2
with MP3 audio using
with MP2 audio using
.BR mjpegtools (1)
and
.BR lame (1).
.BR toolame (1).

.RS 4
#!/bin/sh
.P
rfbproxy -x fbs | ppmtoy4m | \\
rfbproxy -x fbs | ppmtoy4m -S 420_jpeg | \\
.br
yuvscaler -n ntsc -O DVD | mpeg2enc -f 8 -o video.mpv
.br
lame -m m -x -r -s 48 -h audio audio.mp3
toolame -m mono -s 48 audio audio.mp2
.br
mplex -f 8 -o video.mpg audio.mp3 video.mpv
mplex -f 8 -o video.mpg audio.mp2 video.mpv
.RE

And this one converts the recorded fbs/audio pair into an DivX5-compatible
MPEG-4 with MP2 audio using
And this one converts the recorded fbs/audio pair into an DivX6-compatible
MPEG-4 with MP3 audio using
.BR ffmpeg (1)
and
.BR toolame (1).
.BR lame (1).

.RS 4
#!/bin/sh
.P
toolame -m mono -s 48 audio audio.mp2
lame -m m -x -r -s 48 -h audio audio.mp3
.br
rfbproxy -x fbs | ppmtoy4m | \\
rfbproxy -x fbs | ppmtoy4m -S 420_jpeg | \\
.br
ffmpeg -f yuv4mpegpipe -i - -i audio.mp2 \\
ffmpeg -f yuv4mpegpipe -i - -i audio.mp3 \\
.br
-vcodec mpeg4 -b 800 -g 300 -bf 2 -acodec copy video.avi
-vcodec mpeg4 -vtag DivX -b 800 -g 300 -bf 2 -acodec copy video.avi
.RE

Both MPEG-2 and MPEG-4 files can be converted to Ogg/Vorbis:
Both MPEG-2 and MPEG-4 files can be converted to Ogg/Vorbis with ffmpeg2theora:

.RS 4
ffmpeg2theora -o video.ogg video.avi
Expand Down

0 comments on commit 9990272

Please sign in to comment.