View previous topic :: View next topic |
Author |
Message |
siskaman n00b
Joined: 18 May 2003 Posts: 15
|
Posted: Sat Sep 20, 2003 11:12 am Post subject: myvcd problem |
|
|
Hello!
I just tried out myvcd 1.4, and had the following problem:
startet by that command:
myvcd test -quality best -svcdout -sample /root/myvcd-dist/Ally.avi
I got this output:
*** MYVCD SYSTEM MESSAGE: Beginning Processing.
*** Probing /root/myvcd-dist/Ally.avi, please wait...
mplayer -noframedrop -vo yuv4mpeg -ao pcm -waveheader -v -osdlevel 0 -frames 1000 /root/myvcd-dist/Ally.avi
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
**ERROR: [mpeg2enc] Unable to open: 2:
No such file or directory
**ERROR: [mpeg2enc] Could not read YUV4MPEG2 header: system error (failed read/write)!
MPlayer 1.0pre1-3.3.1 (C) 2000-2003 MPlayer Team
CPU: Advanced Micro Devices Athlon TB Thunderbird (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx
Reading config file /usr/share/mplayer/mplayer.conf
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf': Datei oder Verzeichnis nicht gefunden
Reading /usr/share/mplayer/codecs.conf: 60 audio & 156 video codecs
CommandLine: '-noframedrop' '-vo' 'yuv4mpeg' '-ao' 'pcm' '-waveheader' '-v' '-osdlevel' '0' '-frames' '1000' '/root/myvcd-dist/Ally.avi'
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: Das Gerät oder die Ressource ist belegt (mplayer should be setuid root or /dev/rtc should be readable by the user.)
Using usleep() timing
get_path('input.conf') -> '/root/.mplayer/input.conf'
Can't open input config file /root/.mplayer/input.conf: Datei oder Verzeichnis nicht gefunden
Parsing input config file /usr/share/mplayer/input.conf
Input config file /usr/share/mplayer/input.conf parsed: 52 binds
get_path('Ally.avi.conf') -> '/root/.mplayer/Ally.avi.conf'
....
list_end=0x15C
INFO: [mp2enc] format = 0x1, audio length = 2147479552 bytes
INFO: [mp2enc] slots/frame = 731
INFO: [mp2enc] frac SpF=0.429, tot bitrate=224 kbps, s freq=44.1 kHz
INFO: [mp2enc] Fractional number of slots, padding required
INFO: [mp2enc] System is little endian
INFO: [mp2enc] Avg slots/frame = inf; b/smp = inf; br = inf kbps
INFO: [mp2enc] Encoding with psychoacoustic model 2 is finished
INFO: [mp2enc] The MPEG encoded output file name is "./test.mpa"
ls: ./test.mpv: Datei oder Verzeichnis nicht gefunden
(standard_in) 1: parse error
/usr/local/bin/myvcd: line 991: let: mpv_fs=: syntax error: operand expected (error token is "=")
/usr/local/bin/myvcd: line 993: let: output_fs=(0+): syntax error: operand expected (error token is ")")
/usr/local/bin/myvcd: line 995: let: output_ratio=/840: syntax error: operand expected (error token is "/840")
I know it's a little long, but maybe someone understands the problem. As I can see something's wrong with mpeg2enc. But WHY??
Thanx a lot.
siskaman |
|
Back to top |
|
|
Balthasar n00b
Joined: 25 May 2003 Posts: 62 Location: Florida
|
Posted: Sat Nov 15, 2003 10:02 pm Post subject: |
|
|
I'm getting the same error... Anyone know what's up ? _________________ "Trust the computer industry to shorten Year 2000 to Y2K. It was this kind of thinking that caused the problem in the first place."
Just because it's common sense, doesn't mean it's common practice. - Will Rogers |
|
Back to top |
|
|
kboy n00b
Joined: 11 Aug 2003 Posts: 34
|
Posted: Wed Dec 03, 2003 7:23 am Post subject: |
|
|
*bump*
Code: | ls: ./test-svcd.mpv: No such file or directory
(standard_in) 1: parse error
/usr/local/bin/myvcd: line 991: let: mpv_fs=: syntax error: operand expected (error token is "=")
/usr/local/bin/myvcd: line 993: let: output_fs=(0+): syntax error: operand expected (error token is ")")
/usr/local/bin/myvcd: line 995: let: output_ratio=/840: syntax error: operand expected (error token is "/840")
|
same here...anyone find a solution? _________________ AMD Ahtlon 2400+ @ 9x240 1.725 vcore
2x512 Buffalo Tech 6-2-2-2.0 3.2vdimm
Sapphire Radeon 9600XT 256 MB |
|
Back to top |
|
|
dermot Tux's lil' helper
Joined: 28 Mar 2003 Posts: 108 Location: Dublin, Ireland
|
Posted: Mon Jan 05, 2004 2:20 pm Post subject: |
|
|
*bump*
what's up with this, does anyone know? _________________ Dermot
I bought some rock star ashes from the back of Rolling Stone
I don't think he would've minded - he couldn't sell his soul |
|
Back to top |
|
|
lizardloop Apprentice
Joined: 16 Mar 2003 Posts: 278
|
Posted: Mon Jan 05, 2004 3:46 pm Post subject: |
|
|
I'am having problems with myvcd too. It might be something to do with my other problem.
https://forums.gentoo.org/viewtopic.php?p=753132#753132
As far as I know myvcd calls mplayer with the character "&" after it in order to perform it's other functions. |
|
Back to top |
|
|
dermot Tux's lil' helper
Joined: 28 Mar 2003 Posts: 108 Location: Dublin, Ireland
|
Posted: Mon Jan 05, 2004 3:48 pm Post subject: |
|
|
So did you remove the ampersand (&)? Did that fix your problem? _________________ Dermot
I bought some rock star ashes from the back of Rolling Stone
I don't think he would've minded - he couldn't sell his soul |
|
Back to top |
|
|
lizardloop Apprentice
Joined: 16 Mar 2003 Posts: 278
|
Posted: Mon Jan 05, 2004 4:03 pm Post subject: |
|
|
Removing the "&" simply stops myvcd doing encoding as it sits waiting for mplayer to stream out the video. Which it doesn't do as its waiting for something to start pulling on the stream (if thats how it works, I have little understanding of pipes and streams). |
|
Back to top |
|
|
lizardloop Apprentice
Joined: 16 Mar 2003 Posts: 278
|
Posted: Mon Jan 05, 2004 5:20 pm Post subject: |
|
|
Code: |
transcode -i incoming/Boogiepop_Phantom_-_01_-_Portraits_From_Memory_-_\[P-A\]\(3E132A45\)\[AniDB\].avi -Q 5,5 -V -y mpeg2enc,mp2enc -F "2,-4 1 -2 1 -N 1 -M 2 -r 32 -v 0 -s -f 2 -b 1152 -B 260 -V 46 -S 840 -g 6 -G 15 -F 1 -n n -4 1 -2 1" -Z 352x240 -E 44100 -b 224 -o test
|
I've just set this command going encoding a file I previously encoded using tmpeg encoder on a windows machine. It's taking an insanely long time to encode but once it is done I will compare it to the vcd made with tmpeg. The reason it is taking so long is because I have whacked up all the quality settings. |
|
Back to top |
|
|
lizardloop Apprentice
Joined: 16 Mar 2003 Posts: 278
|
Posted: Mon Jan 05, 2004 7:10 pm Post subject: |
|
|
Heres a dirty way round the myvcd problem.
Open a virtual terminal put this in it:
Code: |
cat - < stream.yuv | yuvscaler -v 0 -M WIDE2STD -O VCD -O SIZE_352x240 -n n | mpeg2enc -4 1 -2 1 -N 1 -M 2 -r 32 -v 1 -s -f 2 -b 1152 -B 260 -V 46 -S 840 -g 6 -G 15 -F 1 -n n -4 1 -2 1 -o ./test.mpv
|
Run that and then open another virtual terminal and run this.
Code: |
mplayer -noframedrop -vo yuv4mpeg -ao pcm -waveheader -v -osdlevel 0 "/path/to/your/video/file"
|
Run that and you should notice your first terminal window saying stuff about encoding files. Once this relatively lengthy (it's geared for very high quality as thats how I like it) process has finished run.
Code: |
mp2enc -v 2 -b 224 -r 44100 -s -o test.mpa < audiodump.wav
|
Then run.
Code: |
mplex -f 2 -m 1 -V -b 46 -M -O 0 test.mpv test.mpa -o test.mpg
|
After all that you should have a valid vcd mpeg that you can use vcdimager to make an image of and cdrdao to burn. Note though that the commands I gave you are not generic, they will only work for widescreen ntsc 23.97 fps source files (happened to be the one I was testing on). To make the commands work for other source files read the manpages of mpeg2enc, mplex, mp2enc, yuvscaler and make the neccessary changes to the commands. Good luck. |
|
Back to top |
|
|
dermot Tux's lil' helper
Joined: 28 Mar 2003 Posts: 108 Location: Dublin, Ireland
|
Posted: Tue Jan 06, 2004 3:32 pm Post subject: SORTED |
|
|
Alright, I figured this one out!
Basically, mpeg2enc in mjpegtools-1.6.1+ appears to be buggy or have changed in some way that breaks compatibility with the myvcd script. I rolled it back to version 1.6.0 and the script works perfectly now! Excellent!
The line I used for rolling it back... Code: | CFLAGS="-O3 -march=pentium -funroll-loops" USE="-avi" emerge \<mjpegtools-1.6.1 |
I used the -avi flag to stop it trying to rollback avifile to a previous version, because the ebuild kept bombing out. I don't what effect this'll have on the script, but it appears to work with at least some files. _________________ Dermot
I bought some rock star ashes from the back of Rolling Stone
I don't think he would've minded - he couldn't sell his soul |
|
Back to top |
|
|
st. anger Apprentice
Joined: 30 Oct 2002 Posts: 273
|
|
Back to top |
|
|
|