I think you wanted to scale, and I'd run bitter_bpp_merge2.sh here. Here it is:
#!/bin/sh
__________________________________________________________
$ mplayer -v
Playing dvd://1.
libdvdread: Using libdvdcss version 1.2.8 for DVD access
Reading disc structure, please wait...
There are 3 titles on this DVD.
There are 16 chapters in this DVD title.
There are 1 angles in this DVD title.
libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient
libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000012f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00000190
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000da24
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x001e0f89
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x001e0fc2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x001e21df
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x001e2218
libdvdread: Elapsed time 0
libdvdread: Found 3 VTS's
libdvdread: Elapsed time 0
DVD successfully opened.
[open] audio stream: 0 audio format: lpcm (stereo) language: en aid: 160
[open] audio stream: 1 audio format: ac3 (5.1) language: en aid: 128
[open] number of audio channels on disk: 2.
[open] number of subtitles on disk: 0
DVD start cell: 0 pack: 0x0-0x5721
DVD start=0 end=1914172
CACHE_PRE_INIT: 0 [0] 0 pre:209715 eof:0
Cache fill: 3.12% (32768 bytes) No bind found for key JOY_AXIS3_MINUS
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for Nullsoft Streaming Video
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename dvd://1 ext: (null)
Checking for MOV
Checking for VIVO
header block 1 size: 0
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 67835, FOUND 47, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=1140851708
LMLM4 Stream Format not found
system stream synced at 0xD (13)!
==> Found video stream: 0
/snip/ (removed dvd_next_cell: blah blah)
DVD Seek! lba=0xE9A23 cell=7 packs: 0xD90C6-0x11D780
Angle-seek synced by cell/vob IDN search!
==> Found audio stream: 160
==> Found audio stream: 129
/snip/
DVD Seek! lba=0x1D3447 cell=15 packs: 0x1D3426-0x1D353C
dvd_next_cell: next1=0xF
dvd_next_cell: next2=0xF
cache_stream_seek: WARNING! Can't seek to 0xE9A23EE0 !
DVD Seek! lba=0x0 cell=0 packs: 0x0-0x5721
Angle-seek synced by cell/vob IDN search!
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO: MPEG2 720x480 (aspect 2) 29.970 fps 7750.0 kbps (968.8 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x480 fps:29.97 ftime:=0.0334
get_path('sub/') -> '/home/mzilikazi64/.mplayer/sub/'
get_path('default.sub') -> '/home/mzilikazi64/.mplayer/default.sub'
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [dvdpcm] Uncompressed DVD/VOB LPCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer.
AUDIO: 48000 Hz, 2 ch, s16be, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [dvdpcm] afm:dvdpcm (Uncompressed DVD/VOB LPCM)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports layers.
[x11] Using workaround for Metacity bugs.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports FULLSCREEN state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/s16be -> 48000Hz/2ch/s16be...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/s16be
AF_pre: 48000Hz/2ch/s16be
alsa-init: requested format: 48000 Hz, 2 channels, 8
alsa-init: compiled for ALSA-1.0.8
alsa-init: setup for 1/2 channel(s)
alsa-init: 1 soundcard found, using: default
alsa-init: pcm opend in block-mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Big Endian
AO: [alsa] 48000Hz 2ch s16be (2 bps)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy@streamminister.de>
AO: Comment: under developement
Building audio filter chain for 48000Hz/2ch/s16be -> 48000Hz/2ch/s16be...
[dummy] Was reinitialized: 48000Hz/2ch/s16be
[dummy] Was reinitialized: 48000Hz/2ch/s16be
Starting playback...
alsa-space: free space = 65536, prepared --
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (720x480->720x540,flags=0,'MPlayer',0x32315659)
VO: [x11] 720x480 => 720x540 Planar YV12
VO: Description: X11 ( XImage/Shm )
VO: Author: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
Sharing memory.
SwScaler: using unscaled Planar YV12 -> BGRA special converter
*** [vo] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
*** [vo] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
*** [vo] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
mzilikazi64@hestviken:~/Muddy_Test$ .032 93/ 93 5% 9% 0.2% 0 0 44%
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think I know what's wrong. Number one, bitter_bpp *can't* (yet) handle LPCM audio, and it looks like that's what you've got. It can handle the AC3 in that movie if you want that, though!
Until I find a dvd with LPCM audio, I'll specifically add some code in 1.4.2 (coming out in a day or so, after I fine tune the subtitle support) that will ignore LPCM streams. That's why you saw the line about "uninitalized value... line 685" in your output.
Short answer: Wait until version 1.4.3 at least :) Sorry. Any good suggestions on where I can pick up a dvd with this type of audio to study it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Oops, made a mistake above. The "initialized value..." error is not because of the LPCM audio, it's because MPlayer says the audio is track 128, then decides later it's track 129. Definitely MPlayers fault. I'll look into this in MPlayer.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, this is my first attempt at using bitter_bpp. :)
Some info:
AMD Athlon(tm) 64 Processor 3200+
2x512M Mushkin pc3200
160G Seagate SATA
Kanotix 64 (Debian Sid)
mplayer -version
MPlayer 1.0pre7-3.3.5 (C) 2000-2005 MPlayer Team
bittter_bpp 1.4.1
Title: A Tribute To Muddy Waters
Format: NTSC
bitter_bpp --gui --autodetect --devel > bpp_output.file
(the folowing is outputted to the terminal only not the bpp_output.file)
Use of uninitialized value in addition (+) at /usr/bin/bitter_bpp line 685.
$cat bpp_output.file
I'll use /dev/dvd as a potential path to the image...
Autodetecting...
$longest_track: 1
$movie_length: 4539
- lsdvd reports time: 01:15:39 (4539 seconds)...
$chapters: 16
seek chapter times: 5 8 13
- cropping: 704:368:8:56
- detecting audio tracks...
Audio string: (5.1) language: en aid: 128
Audio string aid: 128
number of detected audio tracks: 1
$audio_kbps_total: 0, added track 128
$scaling_choice: 656:384
You're 'audioing' w/o actually writing files!
Here's bitter_bpp_audio_cue.sh:
#!/bin/sh
mplayer -aid 128 -dvd-device /dev/dvd -dumpaudio -dumpfile 128.ac3 dvd://1
I'm not expecting scaling in bitter_bpp_merge.sh
You're 'audioing' w/o actually writing files!
Here's bitter_bpp_audio_cue.sh:
#!/bin/sh
mplayer -aid 128 -dvd-device /dev/dvd -dumpaudio -dumpfile 128.ac3 dvd://1
I'm not expecting scaling in bitter_bpp_merge.sh
$scaling_choice: 656:384
Here's bitter_bpp_video_cue.sh:
#!/bin/sh
mencoder -nosound -dvd-device /dev/dvd dvd://1 -ofps 23.976 -vf crop=704:368:8:5 6,hqdn3d=2:1:2,scale=656:384 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1284:vpas s=1:v4mv:mbd=2:trell:cmp=10:subcmp=10:mbcmp=10:autoaspect -o /dev/null
mencoder -nosound -dvd-device /dev/dvd dvd://1 -ofps 23.976 -vf crop=704:368:8:5 6,hqdn3d=2:1:2,scale=656:384 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1284:vpas s=3:v4mv:mbd=2:trell:cmp=10:subcmp=10:mbcmp=10:autoaspect -o temp_movie.avi
I think you wanted to scale, and I'd run bitter_bpp_merge2.sh here. Here it is:
#!/bin/sh
__________________________________________________________
$ mplayer -v
Playing dvd://1.
libdvdread: Using libdvdcss version 1.2.8 for DVD access
Reading disc structure, please wait...
There are 3 titles on this DVD.
There are 16 chapters in this DVD title.
There are 1 angles in this DVD title.
libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient
libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000012f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00000190
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000da24
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x001e0f89
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x001e0fc2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x001e21df
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x001e2218
libdvdread: Elapsed time 0
libdvdread: Found 3 VTS's
libdvdread: Elapsed time 0
DVD successfully opened.
[open] audio stream: 0 audio format: lpcm (stereo) language: en aid: 160
[open] audio stream: 1 audio format: ac3 (5.1) language: en aid: 128
[open] number of audio channels on disk: 2.
[open] number of subtitles on disk: 0
DVD start cell: 0 pack: 0x0-0x5721
DVD start=0 end=1914172
CACHE_PRE_INIT: 0 [0] 0 pre:209715 eof:0
Cache fill: 3.12% (32768 bytes) No bind found for key JOY_AXIS3_MINUS
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for Nullsoft Streaming Video
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename dvd://1 ext: (null)
Checking for MOV
Checking for VIVO
header block 1 size: 0
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 67835, FOUND 47, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=1140851708
LMLM4 Stream Format not found
system stream synced at 0xD (13)!
==> Found video stream: 0
/snip/ (removed dvd_next_cell: blah blah)
DVD Seek! lba=0xE9A23 cell=7 packs: 0xD90C6-0x11D780
Angle-seek synced by cell/vob IDN search!
==> Found audio stream: 160
==> Found audio stream: 129
/snip/
DVD Seek! lba=0x1D3447 cell=15 packs: 0x1D3426-0x1D353C
dvd_next_cell: next1=0xF
dvd_next_cell: next2=0xF
cache_stream_seek: WARNING! Can't seek to 0xE9A23EE0 !
DVD Seek! lba=0x0 cell=0 packs: 0x0-0x5721
Angle-seek synced by cell/vob IDN search!
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO: MPEG2 720x480 (aspect 2) 29.970 fps 7750.0 kbps (968.8 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x480 fps:29.97 ftime:=0.0334
get_path('sub/') -> '/home/mzilikazi64/.mplayer/sub/'
get_path('default.sub') -> '/home/mzilikazi64/.mplayer/default.sub'
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [dvdpcm] Uncompressed DVD/VOB LPCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer.
AUDIO: 48000 Hz, 2 ch, s16be, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [dvdpcm] afm:dvdpcm (Uncompressed DVD/VOB LPCM)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports layers.
[x11] Using workaround for Metacity bugs.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports FULLSCREEN state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/s16be -> 48000Hz/2ch/s16be...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/s16be
AF_pre: 48000Hz/2ch/s16be
alsa-init: requested format: 48000 Hz, 2 channels, 8
alsa-init: compiled for ALSA-1.0.8
alsa-init: setup for 1/2 channel(s)
alsa-init: 1 soundcard found, using: default
alsa-init: pcm opend in block-mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Big Endian
AO: [alsa] 48000Hz 2ch s16be (2 bps)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy@streamminister.de>
AO: Comment: under developement
Building audio filter chain for 48000Hz/2ch/s16be -> 48000Hz/2ch/s16be...
[dummy] Was reinitialized: 48000Hz/2ch/s16be
[dummy] Was reinitialized: 48000Hz/2ch/s16be
Starting playback...
alsa-space: free space = 65536, prepared --
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (720x480->720x540,flags=0,'MPlayer',0x32315659)
VO: [x11] 720x480 => 720x540 Planar YV12
VO: Description: X11 ( XImage/Shm )
VO: Author: Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
Sharing memory.
SwScaler: using unscaled Planar YV12 -> BGRA special converter
*** [vo] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
*** [vo] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
*** [vo] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
mzilikazi64@hestviken:~/Muddy_Test$ .032 93/ 93 5% 9% 0.2% 0 0 44%
I think I know what's wrong. Number one, bitter_bpp *can't* (yet) handle LPCM audio, and it looks like that's what you've got. It can handle the AC3 in that movie if you want that, though!
Until I find a dvd with LPCM audio, I'll specifically add some code in 1.4.2 (coming out in a day or so, after I fine tune the subtitle support) that will ignore LPCM streams. That's why you saw the line about "uninitalized value... line 685" in your output.
Short answer: Wait until version 1.4.3 at least :) Sorry. Any good suggestions on where I can pick up a dvd with this type of audio to study it?
Oh yeah, thanks for going through all that work to help! I appreciate it.
Oops, made a mistake above. The "initialized value..." error is not because of the LPCM audio, it's because MPlayer says the audio is track 128, then decides later it's track 129. Definitely MPlayers fault. I'll look into this in MPlayer.