LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   .bin/.cue to .avi? (https://www.linuxquestions.org/questions/linux-general-1/bin-cue-to-avi-249413/)

apokryphos 10-31-2004 07:11 AM

.bin/.cue to .avi?
 
What program could I use to convert a .bin (with a .cue) moviefile to an .avi?

SciYro 10-31-2004 10:50 AM

if you can play the files in mplayer, look at the command mencoder , by default it produces avi's , but can also make mpg's if i recall ...

apokryphos 10-31-2004 11:53 AM

Nope; that's part of the problem. Can't play them in mplayer; but essentially, I really just want to convert to .avi files.

acid_kewpie 10-31-2004 12:23 PM

mplayer CAN play vcd's from .cin/.bin file pairs. this means that mencoder CAN encode from .cue/.bin to .avi. check the manpage for mplayer for details of mecnoders usage.

apokryphos 10-31-2004 01:52 PM

Do you need an extra codec to play them? I've got around 4/5 different .bin/.cue files, and none of them work with mplayer.

acid_kewpie 10-31-2004 01:56 PM

nope. i guess you're using the wrong command, but all you've said it "it doesn't work" whcih is not useful.

apokryphos 10-31-2004 02:05 PM

Sorry; I've just been opening it up in GUI. Tried running it through Konsole, and get the same classic mplayer "Error!". This is the output, if it's any use:
Quote:

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 2081 MHz (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Reading config file /etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/francis/.mplayer/config
[cfg] read config file: /home/francis/.mplayer/gui.conf
Reading config file /home/francis/.mplayer/gui.conf
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
Reading /home/francis/.mplayer/codecs.conf: Can't open '/home/francis/.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.
font: can't open file: /home/francis/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Failed to open /dev/rtc: Permission denied (it should be readable by the user.)
Using usleep() timing
Can't open input config file /home/francis/.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.
SKIN dir 1: '/home/francis/.mplayer/Skin'
SKIN dir 2: '/usr/share/mplayer/Skin'

Playing /home/francis/torrent/finished/Collateral.2004.TC.SVCD-SToRMVCD/CD1/coll.cd1-stormvcd.bin.
MPEG-PS file format detected.
VIDEO: MPEG2 480x480 (aspect 2) 29.970 fps 2530.0 kbps (316.2 kbyte/s)
==========================================================================
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: 28000->192000 (224.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
==========================================================================
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)
audio_setup: Can't open audio device /dev/dsp: Device or resource busy
alsa-init: got device=0, subdevice=0
alsa-init: 1 soundcard found, using: default
Hmm, interestingly enough, after leaving it open for some time, the film starts playing, but is interrupted every second or two by an Error message flashes and disturbing the playback.

acid_kewpie 10-31-2004 03:06 PM

try from a console then...
Code:

mplayer cue://file[:track] [options]

apokryphos 10-31-2004 03:32 PM

I'm putting in:
Code:

mplayer cue://file:/home/francis/torrent/finished/Collateral.2004.TC.SVCD-SToRMVCD/CD1/coll.cd1-stormvcd.cue
and I'm getting "invalid cue track". Sorry, I was a little confused about what you had there; am I doing it right?

acid_kewpie 10-31-2004 03:34 PM

drop all the file:// nonsense... just put the real file anem there.

apokryphos 10-31-2004 03:52 PM

Still getting the "Error!" with:
Code:

[bincue] cannot open
...that's from:

mplayer cue://home/francis/torrent/finished/Collateral.2004.TC.SVCD-SToRMVCD/CD1/coll.cd1-stormvcd.cue

Figured I might need an extra / there before home, but I still get an Error!, but without hte [bincue] stuff this time.

acid_kewpie 10-31-2004 03:54 PM

mplayer cue://home/francis/torrent/finished/Collateral.2004.TC.SVCD-SToRMVCD/CD1/coll.cd1-stormvcd.cue

right? again please provide the FULL output from mplayer. it can be easy to miss something.

apokryphos 10-31-2004 03:58 PM

You're quick. ;) I had edited back in a coupla mins after. Hmm, ok, the full output:
Code:

[francis@localhost CD1]$ mplayer cue:///home/francis/torrent/finished/Collateral.2004.TC.SVCD-SToRMVCD/CD1/coll.cd1-stormvcd.cue
MPlayer 1.0pre5-3.3.3 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 2081 MHz (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Reading config file /etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/francis/.mplayer/config
[cfg] read config file: /home/francis/.mplayer/gui.conf
Reading config file /home/francis/.mplayer/gui.conf
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
Reading /home/francis/.mplayer/codecs.conf: Can't open '/home/francis/.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.
font: can't open file: /home/francis/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Failed to open /dev/rtc: Permission denied (it should be readable by the user.)
Using usleep() timing
Can't open input config file /home/francis/.mplayer/input.conf: No such file ordirectory
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.
SKIN dir 1: '/home/francis/.mplayer/Skin'
SKIN dir 2: '/usr/share/mplayer/Skin'

Playing cue:///home/francis/torrent/finished/Collateral.2004.TC.SVCD-SToRMVCD/CD1/coll.cd1-stormvcd.cue.
dirname: /home/francis/torrent/finished/Collateral.2004.TC.SVCD-SToRMVCD/CD1
[bincue] using bin file coll.cd1-stormvcd.bin
track 00:  format=20  00:00:00
track 01:  format=20  00:06:56
MPEG-PS file format detected.
VIDEO:  MPEG2  480x480  (aspect 2)  29.970 fps  2530.0 kbps (316.2 kbyte/s)
==========================================================================
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: 28000->192000 (224.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
==========================================================================
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)
audio_setup: Can't open audio device /dev/dsp: Device or resource busy
alsa-init: got device=0, subdevice=0
alsa-init: 1 soundcard found, using: default

and

Code:

[francis@localhost CD1]$ mplayer cue://home/francis/torrent/finished/Collateral.2004.TC.SVCD-SToRMVCD/CD1/coll.cd1-stormvcd.cue
MPlayer 1.0pre5-3.3.3 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 2081 MHz (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Reading config file /etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/francis/.mplayer/config
[cfg] read config file: /home/francis/.mplayer/gui.conf
Reading config file /home/francis/.mplayer/gui.conf
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
Reading /home/francis/.mplayer/codecs.conf: Can't open '/home/francis/.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.
font: can't open file: /home/francis/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Failed to open /dev/rtc: Permission denied (it should be readable by the user.)
Using usleep() timing
Can't open input config file /home/francis/.mplayer/input.conf: No such file ordirectory
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.
SKIN dir 1: '/home/francis/.mplayer/Skin'
SKIN dir 2: '/usr/share/mplayer/Skin'

Playing cue://home/francis/torrent/finished/Collateral.2004.TC.SVCD-SToRMVCD/CD1/coll.cd1-stormvcd.cue.
dirname: home/francis/torrent/finished/Collateral.2004.TC.SVCD-SToRMVCD/CD1
[bincue] cannot open home/francis/torrent/finished/Collateral.2004.TC.SVCD-SToRMVCD/CD1/coll.cd1-stormvcd.cue


Exiting... (Exit)


acid_kewpie 10-31-2004 04:06 PM

hehe, i'll try to slow down....

remove and unneccesary leading directories. if you're already in you home dir, drop "home/user/"

apokryphos 10-31-2004 04:21 PM

It works! Well... not really. Just tried it with two .cue files, and in both cases it starts working perfectly and then cuts off a few seconds later. In both cases I get something like...
Code:

Broken frame at 0x1E892
I'm extracting two others now, so I'll see if the files are the problem, though I doubt it.

Edit: Oh, the whole output:
Code:

[francis@localhost CD1]$ gmplayer cue://fbC-cell1.cue
MPlayer 1.0pre5-3.3.3 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 2474 MHz (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Reading config file /etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/francis/.mplayer/config
[cfg] read config file: /home/francis/.mplayer/gui.conf
Reading config file /home/francis/.mplayer/gui.conf
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
Disabling DPMS
Reading /home/francis/.mplayer/codecs.conf: Can't open '/home/francis/.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.
font: can't open file: /home/francis/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Failed to open /dev/rtc: Permission denied (it should be readable by the user.)
Using usleep() timing
Can't open input config file /home/francis/.mplayer/input.conf: No such file ordirectory
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.
SKIN dir 1: '/home/francis/.mplayer/Skin'
SKIN dir 2: '/usr/share/mplayer/Skin'

Playing cue://fbC-cell1.cue.
dirname: .
bincue_path: .
[bincue] using bin file fbC-cell1.bin
track 00:  format=20  00:00:00
track 01:  format=20  00:04:00
MPEG-PS file format detected.
VIDEO:  MPEG1  352x240  (aspect 12)  29.970 fps  1150.0 kbps (143.8 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 28000->176400 (224.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 240 (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 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 352 x 240 (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] 352x240 => 352x264 Planar YV12
A:  4.8 V:  4.8 A-V:  0.003 ct:  0.075  126/126  4% 11%  0.7% 0 0 0%
Broken frame at 0x1E892
A:  5.1 V:  5.3 A-V: -0.142 ct:  0.077  141/141  3% 11%  0.6% 0 0 0%
Successfully enabled DPMS

Exiting... (Exit)



All times are GMT -5. The time now is 03:22 PM.