From owner-freebsd-doc@FreeBSD.ORG Sun Apr 27 07:00:02 2008 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48CF51065675 for ; Sun, 27 Apr 2008 07:00:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1A3978FC1A for ; Sun, 27 Apr 2008 07:00:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3R701tL080430 for ; Sun, 27 Apr 2008 07:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3R701WM080429; Sun, 27 Apr 2008 07:00:01 GMT (envelope-from gnats) Resent-Date: Sun, 27 Apr 2008 07:00:01 GMT Resent-Message-Id: <200804270700.m3R701WM080429@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gabor PALI Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 432C51065672 for ; Sun, 27 Apr 2008 06:55:07 +0000 (UTC) (envelope-from pali.gabor@googlemail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id B84DB8FC1D for ; Sun, 27 Apr 2008 06:55:06 +0000 (UTC) (envelope-from pali.gabor@googlemail.com) Received: by fg-out-1718.google.com with SMTP id 16so5009131fgg.35 for ; Sat, 26 Apr 2008 23:55:05 -0700 (PDT) Received: by 10.86.80.5 with SMTP id d5mr4806528fgb.57.1209279305638; Sat, 26 Apr 2008 23:55:05 -0700 (PDT) Received: from pgj@FreeBSD.org ( [80.98.116.90]) by mx.google.com with ESMTPS id e9sm17000551muf.0.2008.04.26.23.55.03 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 26 Apr 2008 23:55:04 -0700 (PDT) Received: by pgj@FreeBSD.org (sSMTP sendmail emulation); Sun, 27 Apr 2008 08:55:01 +0200 Message-Id: <48142348.09b6660a.4af1.03e1@mx.google.com> Date: Sun, 27 Apr 2008 08:55:01 +0200 From: "Gabor PALI" Sender: =?UTF-8?B?UMOBTEkgR8OhYm9yIErDoW5vcw==?= To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: docs/123132: [patch] Fix tags in Handbook Chapter 7 (Multimedia) X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gabor PALI List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Apr 2008 07:00:02 -0000 >Number: 123132 >Category: docs >Synopsis: [patch] Fix tags in Handbook Chapter 7 (Multimedia) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 27 07:00:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Gabor PALI >Release: FreeBSD 6.3-STABLE i386 >Organization: >Environment: System: FreeBSD disznohal 6.3-STABLE FreeBSD 6.3-STABLE #4: Fri Apr 4 23:29:43 CEST 2008 dezzy@disznohal:/usr/obj/usr/src/sys/GENERIC_ i386 >Description: I found the tags in Chapter 7 (``Multimedia'') of the FreeBSD Handbook are used in an unconsistent manner, so I created a patch for this. >How-To-Repeat: >Fix: Here it goes: --- multimedia.patch.diff begins here --- Index: chapter.sgml =================================================================== RCS file: /doc/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml,v retrieving revision 1.128 diff -u -r1.128 chapter.sgml --- chapter.sgml 9 Aug 2007 09:09:26 -0000 1.128 +++ chapter.sgml 27 Apr 2008 06:40:23 -0000 @@ -293,7 +293,7 @@ &prompt.user; cat filename > /dev/dsp - where filename can be any file. + where filename can be any file. This command line should produce some noise, confirming the sound card is actually working. @@ -494,7 +494,7 @@ MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo - /dev/dsp1.0 should be replaced with the + /dev/dsp1.0 should be replaced with the dsp device entry on your system. @@ -556,8 +556,8 @@ audio/lame in the ports tree. Using the ripped WAV files, the following command will - convert audio01.wav to - audio01.mp3: + convert audio01.wav to + audio01.mp3: &prompt.root; lame -h -b 128 \ --tt "Foo Song Title" \ @@ -644,7 +644,7 @@ Run mpg123 -s audio01.mp3 - > audio01.pcm + > audio01.pcm @@ -1069,18 +1069,18 @@ through one of the various video interfaces set the option: - &prompt.user; mplayer -vo xv testfile.avi - &prompt.user; mplayer -vo sdl testfile.avi - &prompt.user; mplayer -vo x11 testfile.avi - &prompt.root; mplayer -vo dga testfile.avi - &prompt.root; mplayer -vo 'sdl:dga' testfile.avi + &prompt.user; mplayer -vo xv testfile.avi + &prompt.user; mplayer -vo sdl testfile.avi + &prompt.user; mplayer -vo x11 testfile.avi + &prompt.root; mplayer -vo dga testfile.avi + &prompt.root; mplayer -vo 'sdl:dga' testfile.avi It is worth trying all of these options, as their relative performance depends on many factors and will vary significantly with hardware. To play from a DVD, replace the - testfile.avi with where N is the title number to play and DEVICE is the @@ -1141,7 +1141,7 @@ or bad performance. Here are a couple of examples to get you going. First a simple copy: - &prompt.user; mencoder input.avi -oac copy -ovc copy -o output.avi + &prompt.user; mencoder input.avi -oac copy -ovc copy -o output.avi Improper combinations of command line options can yield output files that are @@ -1149,16 +1149,16 @@ just want to rip to a file, stick to the in mplayer. - To convert input.avi to the MPEG4 + To convert input.avi to the MPEG4 codec with MPEG3 audio encoding (audio/lame is required): - &prompt.user; mencoder input.avi -oac mp3lame -lameopts br=192 \ - -ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi + &prompt.user; mencoder input.avi -oac mp3lame -lameopts br=192 \ + -ovc lavc -lavcopts vcodec=mpeg4:vhq -o output.avi This has produced output playable by mplayer and xine. - input.avi can be replaced with + input.avi can be replaced with and run as root to re-encode a DVD title directly. Since you are likely to be dissatisfied with @@ -1202,7 +1202,7 @@ Alternatively, it may be invoked to play a file immediately without the GUI with the command: - &prompt.user; xine -g -p mymovie.avi + &prompt.user; xine -g -p mymovie.avi @@ -1230,11 +1230,11 @@ example to show how to convert a DivX file into a PAL MPEG-1 file (PAL VCD): - &prompt.user; transcode -i input.avi -V --export_prof vcd-pal -o output_vcd -&prompt.user; mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa + &prompt.user; transcode -i input.avi -V --export_prof vcd-pal -o output_vcd +&prompt.user; mplex -f 1 -o output_vcd.mpg output_vcd.m1v output_vcd.mpa The resulting MPEG file, - output_vcd.mpg, is ready to be played with + output_vcd.mpg, is ready to be played with MPlayer. You could even burn the file on a CD-R media to create a Video CD, in this case you will need to install and use both /dev/uscanner0 which is owned by the operator group. Adding the user - joe to the + joe to the operator group will allow him to use the scanner: --- multimedia.patch.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: