[mythtv-users] 1,33:1 --> mythmkmovie --> 1:1
Joris
Joris.van.puyenbroeck at telenet.be
Wed Nov 3 08:57:26 UTC 2004
Hello,
I have a Debian-Mythtv boxwith a PVR-250 card running quite well .
Mythmkmovie (MPEG2 --> DIVX) works well with standard PAL tuner input
('input 4' as seen by ivtvctl), but doing the same conversion on a
composite-signal ('input 5' = my camcorder) keeps resulting in this
error : 640x480 (PAL?) is converted to a square 480x480.
Strangely enough, my patched mplayer plays the original mpeg-2 .nuv
files with a correct 4:3 ratio.
(for stdout messages, see below, sorry for the long email)
So, my conclusion is that this is a bug in (myth) mkmovie ?
Or did I do something wrong? For example, I've set the standard input to
PAL with ivtvctl -u 00xff, but as you can see, 'input 5' is still set to
PAL ánd NTSC ánd SECAM.
Is there an easy way to correct this ?
Thanks for all suggesions.
Gr
Joris Van Puyenbroeck
--
IVTVCTL -A
--
ioctl: IVTV_IOC_G_CODEC
Codec parameters
aspect : 2
audio : 0x00e9
bframes : 3
bitrate_mode: 0
bitrate : 9800000
bitrate_peak: 15000000
dnr_mode : 0
dnr_spatial : 0
dnr_temporal: 0
dnr_type : 0
framerate : 1
framespergop: 12
gop_closure : 1
pulldown : 0
stream_type : 0
ioctl: VIDIOC_G_FMT
Type : Video Capture
Width : 720
Height : 576
ioctl: VIDIOC_QUERYCAP
Driver name : ivtv
Card type : Vanilla iTVC15 card
Bus info : 0
Driver version: 266
Capabilities : 0x01070011
ioctl: VIDIOC_ENUMINPUT
Input : 0
Name : Composite 0
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
Status : 0
Input : 1
Name : Composite 1
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
Status : 0
Input : 2
Name : Composite 2
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
Status : 0
Input : 3
Name : Composite 3
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
Status : 0
Input : 4
Name : Tuner 0
Type : 0x00000001
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000000000FF ( PAL )
Status : 0
Input : 5
Name : Composite 4
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
Status : 0
Input : 6
Name : S-Video 0
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
Status : 0
Input : 7
Name : S-Video 1
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
Status : 0
Input : 8
Name : S-Video 2
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
Status : 0
Input : 9
Name : S-Video 3
Type : 0x00000002
Audioset: 0x00000003
Tuner : 0x00000000
Standard: 0x00000000007F3FFF ( PAL NTSC SECAM )
Status : 0
ioctl: VIDIOC_G_INPUT
Input = 4
ioctl: VIDIOC_ENUMOUTPUT
ioctl: VIDIOC_G_OUTPUT
ioctl: VIDIOC_G_OUTPUT failed
ioctl: VIDIOC_ENUMAUDIO
Input : 0
Name : Tuner Audio In
Input : 1
Name : Audio Line In
ioctl: VIDIOC_G_AUDIO
Input = 0: Tuner Audio In
ioctl: VIDIOC_G_FREQUENCY
Frequency = 4036
ioctl: VIDIOC_ENUMSTD
index : 0
ID : 0x0000000000003000
Name : NTSC
Frame period: 1001/30000
Frame lines : 525
index : 1
ID : 0x00000000000000FF
Name : PAL
Frame period: 1/25
Frame lines : 625
index : 2
ID : 0x00000000007F0000
Name : SECAM
Frame period: 1/25
Frame lines : 625
ioctl: VIDIOC_G_STD
Standard = 0x000000ff
ioctl: VIDIOC_QUERYCTRL
Brightness = 127
Contrast = 63
Saturation = 63
Hue = 0
Volume = 58880
Mute = 0
--
MKMOVIE OUTPUT (RESULTS IN 480x480 DIVX MOVIE)
--
MPEG-PS file format detected.
VIDEO: MPEG2 480x480 (aspect 2) 25.000 fps 6000.0 kbps (750.0 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:480x480 fps:25.00 ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 48000->192000 (384.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 480 x 480 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
audiocodec: framecopy (format=50 chans=2 rate=48000 bits=16 bps=48000
sample=1)
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not
writing vprp header.
VDec: vo config request - 480 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (480x480 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Pos: 0.8s 22f ( 4%) 0fps Trem: 0min 7mb A-V:0.084 [0:384]
Skipping frame!
Pos: 38.2s 957f (100%) 29fps Trem: 0min 8mb A-V:0.060 [1543:384]
Writing AVI index...
Fixing AVI header...
ODML: vprp aspect is 4:3.
Video stream: 1543.040 kbit/s (192879 bps) size: 7360299 bytes 38.160
secs 957 frames
Audio stream: 384.000 kbit/s (47999 bps) size: 1818144 bytes 37.878 secs
transcode v0.6.12 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
[transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms
[transcode] auto-probing source
/home/mythtv/videos/camerad-2004_10_31_9_51_PM.avi.tmp (ok)
[transcode] V: import format | DivX RIFF data, AVI (V=divx|A=mp3)
[transcode] V: pass-through | yes
[transcode] V: import frame | 480x480 1.00:1 [transcode] V:
bits/pixel | 0.312
[transcode] V: decoding fps,frc | 25.000,3
[transcode] A: import format | 0x50 MPEG layer-2 [48000,16,2] 384
kbps
[transcode] A: export format | 0x55 MPEG layer-3 [48000,16,2] 128
kbps
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame | 7680 (7680.000000)
[transcode] A: adjustment | 0 at 1000
[transcode] V: IA32 accel mode | 3dnow (3dnow mmxext mmx asm)
[transcode] V: video buffer | 50 @ 480x480
[import_mp3.so] v0.1.4 (2003-08-04) (audio) MPEG
[import_divx.so] v0.2.9 (2003-07-30) (video) DivX;-)/XviD/OpenDivX/DivX
4.xx/5.xx
[export_raw.so] v0.3.12 (2003-08-04) (video) * | (audio) MPEG/AC3/PCM
[import_mp3.so] MP3->PCM
[import_mp3.so] tcextract -a 0 -i
"/home/mythtv/videos/camerad-2004_10_31_9_51_PM.avi.tmp" -x mp2 -d 0 |
tcdecode -x mp2 -d 0 -z 48000
Audio: using new version
Audio: using lame-3.96 MMX
[export_raw.so] codec=DIVX, fps=25.000, width=480, height=480
dct: 0.000000 ms (0 calls)67 fps, 98.7%, ETA: 0:00:00, ( 0| 0| 8)
clean up | frame threads | unload modules | cancel signal | internal
threads | done
[transcode] encoded 946 frames (0 dropped, 0 cloned), clip length 37.84 s
--
C. MPLAYER OUTPUT (PLAYS NUV FILES WITH CORRECT RATIO!)
--
<snip>
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 480 x 480 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 480 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 480x480 => 640x480 Planar YV12
More information about the mythtv-users
mailing list