Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jan 2010 02:31:57 +0100
From:      Pieter de Goeje <pieter@degoeje.nl>
To:        freebsd-questions@freebsd.org
Cc:        Neil Short <neshort@yahoo.com>
Subject:   Re: need a Mencoder expert
Message-ID:  <201001170231.57638.pieter@degoeje.nl>
In-Reply-To: <267304.99050.qm@web56508.mail.re3.yahoo.com>
References:  <267304.99050.qm@web56508.mail.re3.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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"





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001170231.57638.pieter>