Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Premature EOF...?
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
max-232
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2006
Posts: 105
Location: Italy

PostPosted: Wed Jan 10, 2007 7:52 am    Post subject: Premature EOF...? Reply with quote

HI all,
I use a script for the dvd backup powered by vamps.

It works.
But now it won't works!

The error message of vamps is "vamps: Fatal: Premature EOF"

and the command is "play_cell -r 0 -g /dev/dvd 1 1 1 | vamps -E 1 -a 1 -S 1 > temp.mpeg".

I used reiser4 and all went well.
Yesterday evening I did a stage4, format all with ext3, and expanded the stage4 into the new partition.
and I got the error!

What about this error?

Many Thanks in advance.

Massimo
Back to top
View user's profile Send private message
max-232
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2006
Posts: 105
Location: Italy

PostPosted: Wed Jan 10, 2007 8:56 am    Post subject: Reply with quote

it seems to be a stdin problem....but I don't know how to manage it...
Back to top
View user's profile Send private message
max-232
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2006
Posts: 105
Location: Italy

PostPosted: Wed Jan 10, 2007 9:24 am    Post subject: Premature EOF Reply with quote

I've posted this in the Multimedia section, but maybe it's a kernel (stdin) problem?

Quote:


HI all,
I use a script for the dvd backup powered by vamps.

It works.
But now it won't works!

The error message of vamps is "vamps: Fatal: Premature EOF"

and the command is "play_cell -r 0 -g /dev/dvd 1 1 1 | vamps -E 1 -a 1 -S 1 > temp.mpeg".

I used reiser4 and all went well.
Yesterday evening I did a stage4, format all with ext3, and expanded the stage4 into the new partition.
and I got the error!

What about this error?

Many Thanks in advance.

Massimo


any ideas?
Back to top
View user's profile Send private message
max-232
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2006
Posts: 105
Location: Italy

PostPosted: Wed Jan 10, 2007 1:48 pm    Post subject: Reply with quote

...I've also upgraded the kernel to the gentoo-sources-2.6.19-r2 and enabled the HPET timer...could this be the problem?
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Wed Jan 10, 2007 4:45 pm    Post subject: Reply with quote

merged above two posts here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
max-232
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2006
Posts: 105
Location: Italy

PostPosted: Thu Jan 11, 2007 7:24 am    Post subject: Reply with quote

I've checked....
with the same config file, kernel 2.6.18, 2.6.17 works perfectly. 2.6.19 gives the error "vamps: Fatal: Premature EOF"

ideas?
Back to top
View user's profile Send private message
max-232
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2006
Posts: 105
Location: Italy

PostPosted: Fri Feb 09, 2007 4:56 pm    Post subject: Reply with quote

Hi!

I tried with the 2.6.20 kernel and still this problem....it seems something in stdin stdout....but I don't know...

ideas?

bye
Back to top
View user's profile Send private message
g1ul10
n00b
n00b


Joined: 01 Dec 2004
Posts: 11

PostPosted: Sun May 27, 2007 4:54 pm    Post subject: Reply with quote

Hi,
the same thing here. I'm using kernel 2.6.21. Did somebody find a solution?

Giulio.
Back to top
View user's profile Send private message
max-232
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2006
Posts: 105
Location: Italy

PostPosted: Mon May 28, 2007 5:35 pm    Post subject: Reply with quote

yes, I found a solution to run across the problem...it's not the best one, but for me it works.

As you can see here https://forums.gentoo.org/viewtopic-t-542488.html I've started working with fifos

heredown a scratch of code:
Code:

    mkfifo $cellz.fifo
    cat $cellz.fifo | vamps -E 1 -a $aidcount $subtitle -S 1 > temp$cellz.mpeg &
    play_cell -r 0 -g $defaultdvd $vts $pgc $cellz > $cellz.fifo
    rm $cellz.fifo


hope this help

bye!

Massimo
Back to top
View user's profile Send private message
RobertBradbury
n00b
n00b


Joined: 27 Jan 2007
Posts: 9
Location: Boston

PostPosted: Thu Jun 14, 2007 7:41 pm    Post subject: Reply with quote

It turns out this is under Gentoo Bug #175504.
https://bugs.gentoo.org/show_bug.cgi?id=175504

Its a bug in "vamps" that it isn't handling short reads from a pipe correctly. The "premature-eof.patch" file posted 21 Apr 2007 does appear to fix the problem when I apply it to vamps.c. It may be cropping up in more recent versions of the kernel due to variations in how fifos or pipes are scheduled.

It is unfortunate that this hasn't crept back into the vamps source code and a subsequent Gentoo update.
Back to top
View user's profile Send private message
RobertBradbury
n00b
n00b


Joined: 27 Jan 2007
Posts: 9
Location: Boston

PostPosted: Thu Jun 14, 2007 7:46 pm    Post subject: Reply with quote

The "premature EOF" bug report does appear to be mentioned (twice) in the sourceforge "vamps" bug database:
http://sourceforge.net/tracker/?group_id=130986&atid=719578

So its up to the vamps authors to fix the problem presumably.
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