From owner-freebsd-questions@FreeBSD.ORG Sun Jan 17 01:32:14 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04CF61065695 for ; Sun, 17 Jan 2010 01:32:14 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from smtp.utwente.nl (smtp1.utsp.utwente.nl [130.89.2.8]) by mx1.freebsd.org (Postfix) with ESMTP id 7ED858FC08 for ; Sun, 17 Jan 2010 01:32:13 +0000 (UTC) Received: from nox.student.utwente.nl (nox.student.utwente.nl [130.89.165.91]) by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id o0H1VvdU015725; Sun, 17 Jan 2010 02:31:58 +0100 From: Pieter de Goeje To: freebsd-questions@freebsd.org Date: Sun, 17 Jan 2010 02:31:57 +0100 User-Agent: KMail/1.9.10 References: <267304.99050.qm@web56508.mail.re3.yahoo.com> In-Reply-To: <267304.99050.qm@web56508.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201001170231.57638.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact icts.servicedesk@utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Neil Short Subject: Re: need a Mencoder expert X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jan 2010 01:32:14 -0000 On Saturday 16 January 2010 20:13:34 Neil Short wrote: > I have a VOB file that I need to convert to something playable on a Sony > Walkman NWZ-E344. > > The walkman wants an ASF container, resolution of 320x240 (or less), wmv9 > codec, wma 2 codec, 30 frames per second, video bitrate of less than or > equal to 768k. If it only accepts WMV3 (Windows Media Video 9) then you're out of luck. FFmpeg, and by extension, mencoder, do not support WMV3 encoding. There appears to be a patch floating around on the internet which adds WMV3 encoding support to ffmpeg, but it is at least 2 years old... You can try WMV2 or even WMV1 (Windows Media Video 8 and 7 respectively). Both are supported by ffmpeg: ffmpeg -i somevideo -vcodec wmv2 -acodec wmav2 -b 768k -s qvga test.asf - Pieter > > I cannot seem to get a mencoder (nor ffmpeg) encoding line to work. > > Here's some data on a video that works: > $ ffmpeg -i Butterfly.wmv > .... > [wmv3 @ 0x29707c10]Extra data: 8 bits left, value: 0 > > Seems stream 1 codec frame rate differs from container frame rate: 1000.00 > (1000/1) -> 29.97 (30000/1001) Input #0, asf, from 'Butterfly.wmv': > Duration: 00:00:08.21, start: 5.000000, bitrate: 1126 kb/s > Stream #0.0: Audio: wmav2, 44100 Hz, stereo, s16, 96 kb/s > Stream #0.1: Video: wmv3, yuv420p, 320x208, 768 kb/s, 29.97 tbr, 1k > tbn, 1k tbc > > mplayer -identify Butterfly.wmv > .... > Playing Butterfly.wmv. > ASF file format detected. > ID_AUDIO_ID=1 > [asfheader] Audio stream found, -aid 1 > ID_VIDEO_ID=2 > [asfheader] Video stream found, -vid 2 > VIDEO: [WMV3] 320x208 24bpp 1000.000 fps 768.0 kbps (93.8 kbyte/s) > ID_FILENAME=Butterfly.wmv > ID_DEMUXER=asf > ID_VIDEO_FORMAT=WMV3 > ID_VIDEO_BITRATE=768000 > ID_VIDEO_WIDTH=320 > ID_VIDEO_HEIGHT=208 > ID_VIDEO_FPS=1000.000 > ID_VIDEO_ASPECT=0.0000 > ID_AUDIO_FORMAT=353 > ID_AUDIO_BITRATE=0 > ID_AUDIO_RATE=0 > ID_AUDIO_NCH=0 > ID_LENGTH=15.00 > Opening video filter: [screenshot=yes] > ========================================================================== > Requested video codec family [wmv9dmo] (vfm=dmo) not available. > Enable it at compilation. > Requested video codec family [wmvdmo] (vfm=dmo) not available. > Enable it at compilation. > Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family > [wmv3 @ 0x882b6f0]Extra data: 8 bits left, value: 0 > Selected video codec: [ffwmv3] vfm: ffmpeg (FFmpeg M$ WMV3/WMV9) > ========================================================================== > ID_VIDEO_CODEC=ffwmv3 > ========================================================================== > Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders > AUDIO: 44100 Hz, 2 ch, s16le, 96.0 kbit/6.81% (ratio: 12005->176400) > ID_AUDIO_BITRATE=96040 > ID_AUDIO_RATE=44100 > ID_AUDIO_NCH=2 > Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg)) > ========================================================================== > AO: [oss] 44100Hz 2ch s16le (2 bytes per sample) > ID_AUDIO_CODEC=ffwmav2 > Starting playback... > VDec: vo config request - 320 x 208 (preferred colorspace: Planar YV12) > VDec: using Planar YV12 as output csp (no 0) > Movie-Aspect is undefined - no prescaling applied. > [swscaler @ 0x8827710]SwScaler: using unscaled yuv420p -> bgr24 special > converter VO: [xv] 320x208 => 320x208 Planar YV12 > New_Face failed. Maybe the font path is wrong. > Please supply the text font file (~/.mplayer/subfont.ttf). > subtitle font: load_sub_face failed. > .... > > > ====== > > "What did you do?" the man holding the flashlight asked. > > "I put down a spider," he said, wondering why the man didn't see; in the > beam of yellow light the spider bloated up larger than life. "So it could > get away." > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"