Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
myvcd problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
siskaman
n00b
n00b


Joined: 18 May 2003
Posts: 15

PostPosted: Sat Sep 20, 2003 11:12 am    Post subject: myvcd problem Reply with quote

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
View user's profile Send private message
Balthasar
n00b
n00b


Joined: 25 May 2003
Posts: 62
Location: Florida

PostPosted: Sat Nov 15, 2003 10:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
kboy
n00b
n00b


Joined: 11 Aug 2003
Posts: 34

PostPosted: Wed Dec 03, 2003 7:23 am    Post subject: Reply with quote

*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
View user's profile Send private message
dermot
Tux's lil' helper
Tux's lil' helper


Joined: 28 Mar 2003
Posts: 108
Location: Dublin, Ireland

PostPosted: Mon Jan 05, 2004 2:20 pm    Post subject: Reply with quote

*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
View user's profile Send private message
lizardloop
Apprentice
Apprentice


Joined: 16 Mar 2003
Posts: 278

PostPosted: Mon Jan 05, 2004 3:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
dermot
Tux's lil' helper
Tux's lil' helper


Joined: 28 Mar 2003
Posts: 108
Location: Dublin, Ireland

PostPosted: Mon Jan 05, 2004 3:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
lizardloop
Apprentice
Apprentice


Joined: 16 Mar 2003
Posts: 278

PostPosted: Mon Jan 05, 2004 4:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
lizardloop
Apprentice
Apprentice


Joined: 16 Mar 2003
Posts: 278

PostPosted: Mon Jan 05, 2004 5:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
lizardloop
Apprentice
Apprentice


Joined: 16 Mar 2003
Posts: 278

PostPosted: Mon Jan 05, 2004 7:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
dermot
Tux's lil' helper
Tux's lil' helper


Joined: 28 Mar 2003
Posts: 108
Location: Dublin, Ireland

PostPosted: Tue Jan 06, 2004 3:32 pm    Post subject: SORTED Reply with quote

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
View user's profile Send private message
st. anger
Apprentice
Apprentice


Joined: 30 Oct 2002
Posts: 273

PostPosted: Thu Jan 08, 2004 10:22 pm    Post subject: Reply with quote

before downgrading mjpegtools, i would suggest this:
https://forums.gentoo.org/viewtopic.php?t=33246&postdays=0&postorder=asc&highlight=myvcd&start=100#703651

it worked for me.
_________________
pizza.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum