Click to See Complete Forum and Search --> : Movie.bin/cue files (Converting to DVD compatible Mpegs


pyrael
03-17-2006, 01:58 PM
OK, So far what I have accomplished is to use mencoder to convert a movie file from .bin to .mpeg. This is how I did it:

mplayer cue://movie.cue:2 -dumpstream -dumpfile movie.mpg

which did exactly what I expected (I think??). I now have an mpeg of the movie. Next I wanted to convert it to dvd compatible. - this is where I am having the problem. I used je_fro's avi to dvd script (can't remember the name off hand) and changed (and removed) some of the options to make it mpg to dvd. My resulting dvd mpeg has no audio :(

So, obviously I did "something" wrong. Any Ideas on how I can do this?

Here is the output from playing back the mpeg that I encoded.
[root@localhost DVD]# mplayer -v assault13.mpg
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale

MPlayer dev-CVS--4.0.2 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium 4/Celeron 4 Northwood; Pentium 4 EE/Xeon Prestonia,Gallatin (Family: 15, Stepping: 9)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1

get_path('codecs.conf') -> '/root/.mplayer/codecs.conf'
Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' 'assault13.mpg'
init_freetype
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
font: can't open file: /root/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Failed to open /dev/rtc: Device or resource busy (it should be readable by the user.)
Using nanosleep() timing
get_path('input.conf') -> '/root/.mplayer/input.conf'
Can't open input config file /root/.mplayer/input.conf: No such file or directory
Can't open input config file /etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
get_path('assault13.mpg.conf') -> '/root/.mplayer/assault13.mpg.conf'
Playing assault13.mpg.
get_path('sub/') -> '/root/.mplayer/sub/'
[file] File size is 832872796 bytes
STREAM: [file] assault13.mpg
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename assault13.mpg ext: .mpg
Checking for Nullsoft Streaming Video
Checking for MOV
Checking for VIVO
header block 1 size: 0
AVS: avs_check_file - attempting to open file assault13.mpg
AVS: File is too big, aborting...
Checking for PVA
Checking for MPEG-TS...
THIS DOESN'T LOOK LIKE AN MPEG-TS FILE!
TRIED UP TO POSITION 0, FOUND 0, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=-8
LMLM4 Stream Format not found
system stream synced at 0x11065 (69733)!
==> Found video stream: 0
==> Found audio stream: 0
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO: MPEG2 480x480 (aspect 2) 29.970 fps 2500.0 kbps (312.5 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:480x480 fps:29.97 ftime:=0.0334
get_path('sub/') -> '/root/.mplayer/sub/'
get_path('default.sub') -> '/root/.mplayer/default.sub'
================================================== ========================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: made decode tables with MMX optimization
mp3lib: using MMX optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer II, 44100 Hz 224 kbit Stereo, BPF: 731
Channels: 2, copyright: No, original: No, CRC: Yes, emphasis: 0
AUDIO: 44100 Hz, 2 ch, s16le, 224.0 kbit/15.87% (ratio: 28000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
================================================== ========================
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 NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours FULLSCREEN STAYS_ON_TOP ABOVE BELOW X atoms
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x0101fe).
[xv common] Maximum source image dimensions: 1920x1080
================================================== ========================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 480 x 480 (preferred colorspace: 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.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
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))
================================================== ========================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
ao2: 44100 Hz 2 chans s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 44100 Hz samplerate (requested: 44100)
audio_setup: frags: 8/8 (16384 bytes/frag) free: 131072
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Starting playback...
VDec: vo config request - 480 x 480 (preferred colorspace: 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 (480x480->640x480,flags=0,'MPlayer',0x32315659)
VO: [xv] 480x480 => 640x480 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel@goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
Xvideo image format: 0x35315652 (RV15) packed
Xvideo image format: 0x36315652 (RV16) packed
Xvideo image format: 0x55595659 (YVYU) packed
Xvideo image format: 0x3231564e (NV12) planar
Xvideo image format: 0x3132564e (NV21) planar
using Xvideo port 56 for hw scaling
[xv] dx: 0 dy: 0 dw: 640 dh: 480
*** [vo] Allocating mp_image_t, 480x480x12bpp YUV planar, 345600 bytes
[xv] dx: 0 dy: 0 dw: 640 dh: 480
*** [vo] Allocating mp_image_t, 480x480x12bpp YUV planar, 345600 bytes
*** [vo] Allocating (slices) mp_image_t, 480x480x12bpp YUV planar, 345600 bytes
A: 10.5 V: 10.5 A-V: 0.012 ct: 0.041 294/294 131803% 2591987% 2723781.6% 3 0
[8]+ Stopped mplayer -v assault13.mpg

The original .bin file is encoded for SVCD I burnt it to a CDRW and attempted to watch it. Mplayer complained that it was an encrypted movie and it was blocky and choppy. I can play it beautifully from the .cue with mplayer so the image is good. Also, The resulting SVCD will not play in my DVD player (which can play ANYTHING) so I am assuming that k3b screwed up on the overburn (743MB file).

dkeav
03-17-2006, 02:25 PM
if you get the file into a mpeg2 format you can use dvdauthor to create your dvd

pyrael
03-17-2006, 03:05 PM
I tried that LOL

this is what I got :

about a millio lines of output like this:

WARN: Skipping sector, waiting for first VOBU...

and then this:

WARN: Partial sector read (176 bytes); discarding data.
STAT: VOBU 0 at 0MB, 1 PGCS
Segmentation fault

here's the command/options I used:

dvdauthor -o ./dvd -x dvd.xml

and here's the dvd.xml file I pointed to:

dvdauthor>
<vmgm />
<titleset>
<titles>
<pgc>
<vob file="assault13.mpg" chapters="0" />
<vob file="assault13_b.mpg" />
</pgc>
</titles>
</titleset>
</dvdauthor>

I wasn't interested in making a menu or anything lol. I just want it to play in a DVD player.

So, what am I doing wrong???

thanks

je_fro
03-17-2006, 06:52 PM
I use bin2iso for bin and cue files. Then I mount the iso and proceed from there. No idea why you get no audio though...I'd have to see the script to tell you...
That said, I should tell you that not every dvd has worked for me. I usually take them and wash them with warm soapy water first, but even then 1 in 20 will fail. It's usually truncation that's the problem though...

dkeav
03-18-2006, 02:51 AM
aye, ive found that remultiplexing can often fix this issue

use the transcode tools (tcextract, mplex) to remultiplex the video and audio, and often dvdauthor will work then

dvdauthor -o somenewdvd filename.mpg should do it then you need to make the ifo files with dvdauthor -T somenewdvd

conversly mkdir ~/dvdtmp && mv assult13.mpg ~/dvdtmp/dump.mpg

and grab my dvd script at http://dkeav.homeunix.org/menc.sh.txt

menc -copy dvd should generate a iso for you to burn before you burn it you can test it with mplayer -dvd-device filename.iso dvd://1

pyrael
03-18-2006, 01:23 PM
I didn't want to burn them lol, just wasnterd to rip them. I got the images to be read by mplayer and ripped them with : mplayer cue://movie.cue:2 -dumpstream -dumpfile movie.mpg

Problem now is that the video is 480x480 (1:1 SVCD) aspect and I need it at 4:3 (NTSC DVD) It wouldn't bother me if it had a black bar on the sides or top & bottom. Just as long as it is readable in a dvd player (On a DVD) the problem I am having now is converting the SVCD mpegs to dvd compliant. I tried making the dvd with just the mpegs as is, but they gave those errors. I also tried using the tovid scripts -- http://tovid.berlios.de
Worked for on svcd to DVD but for some reason the next one I tried, the audio was there but about 5 to 10 minutes off versus the video. I tried using the option -nowav (don't make wav file before ac3) that didn't work at all.
If I made the dvd PAL, would it still play in my DVD player? If I had DVDRW's I'd fool around alot more with it but can't find them for a decent price here.

thanks

pyrael
03-20-2006, 04:50 AM
I got the darned thing burned finally. Well, not a GOOD burn, but it is burned.
The audio fluctuates in the second half. Not too bad but it makes you feel like you're watching one of those overdubbed japanese films. I set the second to encode and went to bed, so one of those pesky tasks I have scheduled to run probably messed it up.

I tried doing annother movie, this one was 3 .bin files long and it is in 480x480 24000:1001 fps format (SVCD). I have tried a bunch of diferent methods with no avail. I even went as far as to rip them to .avi and then cat them (with the script I posted) - which didn't do much better. Author the mpegs directly didn't help either. The voice gets about 15 minutes out of sync. I read "somewhere" that it might be telecined video, but when I ran the -benchmark option, it came back progressive and didn't change frame rates during the whole video.
Anyone wanna take a crack at it??

thanks
Pyrael