View previous topic :: View next topic |
Author |
Message |
lizardloop Apprentice
Joined: 16 Mar 2003 Posts: 278
|
Posted: Mon Jan 05, 2004 1:15 pm Post subject: mplayer "&" |
|
|
For awhile I've been using the myvcd script to make video cds of the avis I have on my computer. When I upgraded to the 2.6 kernel it stoppped working so I thought I would just repeat the step myvcd takes manually and construct my vcds without the help of the script. After some reverse engineering and adding in various echos to the myvcd script I came up with this command to start making my vcds.
Code: |
mplayer -noframedrop -vo yuv4mpeg -ao pcm -waveheader -v -osdlevel 0 "/path/to/file.avi" & cat - < stream.yuv | yuvscaler -v 0 -O VCD | mpeg2enc -4 1 -2 1 -N 1 -M 1 -r 32 -v 2 -s -f 2 -b 1152 -B 260 -V 46 -g 6 -G 15 -F 1 -n n -4 1 -2 1 -o /path/to/file.mpv
|
Unfortunately rather than working I get this output.
Code: |
bash-2.05b$ mplayer -frames 100 -noframedrop -vo yuv4mpeg -ao pcm -waveheader -v -osdlevel 0 "incoming/Boogiepop_Phantom_-_01_-_Portraits_From_Memory_-_[P-A](3E132A45)[AniDB].avi" & cat < stream.yuv | yuvscaler -v 0 -O VCD | mpeg2enc -4 1 -2 1 -N 1 -M 1 -r 32 -v 2 -s -f 2 -b 1152 -B 260 -V 46 -g 6 -G 15 -F 1 -n n -4 1 -2 1 -o /home/loop/vcd/boogie1.mpv
[28] 19095
INFO: [yuvscaler] yuvscaler 1.6.1.90 (10-02-2003) is a general scaling utility for yuv frames
INFO: [yuvscaler] (C) 2001-2003 Xavier Biquard <xbiquard@free.fr>, yuvscaler -h for help, or man yuvscaler
MPlayer 1.0pre2-3.2.3 (C) 2000-2003 MPlayer Team
CPU: IDT/Centaur/VIA C3 Samuel 2 (WinChip C5B core)/C3 Ezra 801.4 MHz (Family: 6, Stepping: 8)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX 3DNow
Reading config file /usr/share/mplayer/mplayer.conf
Reading config file /home/loop/.mplayer/config
Reading /home/loop/.mplayer/codecs.conf: Can't open '/home/loop/.mplayer/codecs.conf': No such file or directory
Reading /usr/share/mplayer/codecs.conf: 61 audio & 157 video codecs
CommandLine: '-frames' '100' '-noframedrop' '-vo' 'yuv4mpeg' '-ao' 'pcm' '-waveheader' '-v' '-osdlevel' '0' 'incoming/Boogiepop_Phantom_-_01_-_Portraits_From_Memory_-_[P-A](3E132A45)[AniDB].avi'
get_path('font/font.desc') -> '/home/loop/.mplayer/font/font.desc'
font: can't open file: /home/loop/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit 3DNow) Optimized OnScreenDisplay
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
get_path('input.conf') -> '/home/loop/.mplayer/input.conf'
Can't open input config file /home/loop/.mplayer/input.conf: No such file or directory
Parsing input config file /usr/share/mplayer/input.conf
Input config file /usr/share/mplayer/input.conf parsed: 52 binds
get_path('Boogiepop_Phantom_-_01_-_Portraits_From_Memory_-_[P-A](3E132A45)[AniDB].avi.conf') -> '/home/loop/.mplayer/Boogiepop_Phantom_-_01_-_Portraits_From_Memory_-_[P-A](3E132A45)[AniDB].avi.conf'
|
And thats it, it sits there doing nothing. A quick check in top reveals that it isn't eating my cpu cycles. It appears to be just sitting there. Anyone got any ideas?
Last edited by lizardloop on Mon Jan 05, 2004 3:46 pm; edited 1 time in total |
|
Back to top |
|
|
lizardloop Apprentice
Joined: 16 Mar 2003 Posts: 278
|
Posted: Mon Jan 05, 2004 3:44 pm Post subject: |
|
|
It seems mplayer won't work correctly if you put the "&" symbol after it.
Code: |
bash-2.05b$ mplayer incoming/Ghost_in_the_Shell_Stand_Alone_Complex_-_21_-_Left_ Behind_Trace_-_Eraser_-_\[LMF\]\(b1c1715d\)\[AniDB\].avi &
[1] 19369
bash-2.05b$ MPlayer 1.0pre2-3.2.3 (C) 2000-2003 MPlayer Team
CPU: IDT/Centaur/VIA C3 Samuel 2 (WinChip C5B core)/C3 Ezra 802.2 MHz (Family: 6 , Stepping: 8)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX 3DNow
Reading config file /usr/share/mplayer/mplayer.conf
Reading config file /home/loop/.mplayer/config
Reading /home/loop/.mplayer/codecs.conf: Can't open '/home/loop/.mplayer/codecs. conf': No such file or directory
Reading /usr/share/mplayer/codecs.conf: 61 audio & 157 video codecs
font: can't open file: /home/loop/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
Can't open input config file /home/loop/.mplayer/input.conf: No such file or dir ectory
Input config file /usr/share/mplayer/input.conf parsed: 52 binds
|
mplayer simply doesn't show any video. |
|
Back to top |
|
|
Klepper n00b
Joined: 11 Apr 2003 Posts: 10
|
Posted: Wed Jan 07, 2004 4:57 pm Post subject: |
|
|
The two or three times I did this, I used this script as a base:
http://www.mail-archive.com/mjpeg-users@lists.sourceforge.net/msg00893.html
important parts:
Code: | mkfifo stream.yuv
mplayer -nosound -vo yuv4mpeg recording.avi -vop lavcdeint </dev/null &
mpeg2enc -o video.m2v -B 122 -f 4 -q 10 -I 0 -V 230 -n n -F 4 -r 32 -4 1 -2 1 -b 2430 stream.yuv --correct-svcd-hds --aspect 2
## Convert video to svcd |
From the code you gave you didn't
- make a fifo
- specify any inputfiles for the programs after mplayer _________________ ALONE, adj.
|
|
Back to top |
|
|
|