Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#271 wmpeg sometimes kills perldl if file already exists

closed-fixed
nobody
None
5
2011-05-31
2011-05-24
Derek Lamb
No

with the current git, in the perldl shell:

$test1 = byte random(3,300,300,1)*256;
$test1->wmpeg('test1.mpg') ;
$test1->wmpeg('test1.mpg') ; #complains that test1.mpg already exists, and drops me back to the perldl shell.

$test2 = byte random(3,300,300,10)*256;
$test2->wmpeg('test2.mpg') ;
$test2->wmpeg('test2.mpg') ; #ditto

$test3 = byte random(3,300,300,20)*256;
$test3->wmpeg('test3.mpg');
$test3->wmpeg('test3.mpg'); #kills perldl

full output (including the ffmpeg diagnostics), as well as perldl -V, attached.

Discussion

  • Derek Lamb
    Derek Lamb
    2011-05-24

    full output of the above commands

     
    Attachments
  • Derek Lamb
    Derek Lamb
    2011-05-24

    output of $ perl -Mblib perldl -V

     
    Attachments
  • Chris Marshall
    Chris Marshall
    2011-05-25

    I cannot reproduce the problem on my system but
    I believe the thing that is killing the interactive
    shell is a SIGPIPE being received. Try putting

    $SIG{PIPE} = 'IGNORE';

    before the pipe open to ffmpeg and let me know
    if that resolves the problem. I plan to move the
    existing file detection and handling to the perl
    level eventually (either fail before the ffmpeg
    open or change the output filename or ask if
    overwrite is desired and delete the file if so...).

    --Chris

     
  • Chris Marshall
    Chris Marshall
    2011-05-27

    I added the $SIG{PIPE} to the wmpeg() piped open
    to ffmpeg in the latest git. Please see if this fixes the
    problem you see. As I mentioned, I am not able to
    reproduce the failure.

     
  • Derek Lamb
    Derek Lamb
    2011-05-31

    That fix seems to do it. The example code I posted now exhibits the same behavior for $test3 as for $test1 and $test2. Closing this bug. thanks!

     
  • Derek Lamb
    Derek Lamb
    2011-05-31

    • status: open --> closed-fixed