Saturday, January 30, 2010

Convert WMV to DVD using mencoder

ffmpeg -i sourcevideo.wmv -target ntsc-dvd -aspect 4:3 targetvideo.mpg

FFmpeg version SVN-r20372, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Nov 7 2009 17:50:32 with gcc 4.4.2 20091027 (Red Hat 4.4.2-7)
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.37. 1 / 52.37. 1
libavformat 52.39. 2 / 52.39. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1. 4. 1 / 1. 4. 1
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0

Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 30.00 (30/1)
Input #0, asf, from 'sourcevideo.wmv':
Duration: 00:11:45.18, start: 3.000000, bitrate: 2844 kb/s
Stream #0.0(eng): Audio: wmav2, 44100 Hz, 2 channels, s16, 64 kb/s
Stream #0.1(eng): Video: wmv2, yuv420p, 1600x1200, 2722 kb/s, 30 tbr, 1k tbn, 1k tbc
Metadata
WMFSDKVersion : 11.0.6002.18049
WMFSDKNeeded : 0.0.0.0000
IsVBR : 1
ASFLeakyBucketPairs:
VBR Peak : 6298117
Buffer Average : 37364
[ac3 @ 0x8bd0e60]No channel layout specified. The encoder will guess the layout, but it might be incorrect.
Output #0, dvd, to 'targetvideo.mpg':
Stream #0.0(eng): Video: mpeg2video, yuv420p, 720x480 [PAR 8:9 DAR 4:3], q=2-31, 6000 kb/s, 90k tbn, 29.97 tbc
Stream #0.1(eng): Audio: ac3, 48000 Hz, stereo, s16, 448 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Press [q] to stop encoding
[dvd @ 0x8bcfed0]buffer underflow i=1 bufi=1540 size=1792ate=1707.6kbits/s
Last message repeated 1 times
frame=21133 fps= 58 q=2.0 Lsize= 176904kB time=705.10 bitrate=2055.3kbits/s
video:132564kB audio:38568kB global headers:0kB muxing overhead 3.372647%


dvdauthor -o videodir -t targetvideo.mpg

DVDAuthor::dvdauthor, version 0.6.14.
Build options: gnugetopt graphicsmagick iconv freetype
Send bugs to

INFO: dvdauthor creating VTS
STAT: Picking VTS 01

STAT: Processing targetvideo.mpg...
STAT: VOBU 1168 at 171MB, 1 PGCS
INFO: Video pts = 0.500 .. 705.637
INFO: Audio[0] pts = 0.500 .. 705.748
STAT: VOBU 1174 at 172MB, 1 PGCS
INFO: Generating VTS with the following video attributes:
INFO: MPEG version: mpeg2
INFO: TV standard: ntsc
INFO: Aspect ratio: 4:3
INFO: Resolution: 720x480
INFO: Audio ch 0 format: ac3/2ch, 48khz drc

STAT: fixed 1174 VOBUS



Create table of contents

dvdauthor -o videodir -T

DVDAuthor::dvdauthor, version 0.6.14.
Build options: gnugetopt graphicsmagick iconv freetype
Send bugs to

INFO: dvdauthor creating table of contents
INFO: Scanning video/VIDEO_TS/VTS_01_0.IFO

mkisofs -dvd-video -o video_dvd.iso video

I: -input-charset not specified, using utf-8 (detected in locale settings)
5.64% done, estimate finish Sat Jan 30 22:25:39 2010
11.25% done, estimate finish Sat Jan 30 22:25:39 2010
16.89% done, estimate finish Sat Jan 30 22:25:39 2010
22.50% done, estimate finish Sat Jan 30 22:25:39 2010
28.13% done, estimate finish Sat Jan 30 22:25:39 2010
33.75% done, estimate finish Sat Jan 30 22:25:39 2010
39.38% done, estimate finish Sat Jan 30 22:25:39 2010
45.00% done, estimate finish Sat Jan 30 22:25:39 2010
50.63% done, estimate finish Sat Jan 30 22:25:39 2010
56.24% done, estimate finish Sat Jan 30 22:25:39 2010
61.88% done, estimate finish Sat Jan 30 22:25:39 2010
67.49% done, estimate finish Sat Jan 30 22:25:39 2010
73.13% done, estimate finish Sat Jan 30 22:25:39 2010
78.74% done, estimate finish Sat Jan 30 22:25:39 2010
84.37% done, estimate finish Sat Jan 30 22:25:40 2010
89.99% done, estimate finish Sat Jan 30 22:25:40 2010
95.62% done, estimate finish Sat Jan 30 22:25:40 2010
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 4096
Path table size(bytes): 42
Max brk space used 19000
88904 extents written (173 MB)