Mailinglist Archive: opensuse-multimedia-de (127 mails)

< Previous Next >
Re: [opensuse-multimedia-de] lsdvd: Alle Titel ab bestimmter Laenge
  • From: David Haller <dnh@xxxxxxxxxxxx>
  • Date: Sat, 20 Feb 2010 23:55:59 +0100
  • Message-id: <20100220225559.GB3610@xxxxxxxxxxxxxxxxxx>
Hallo,

Am Sam, 20 Feb 2010, Al Bogner schrieb:
Wie definiere ich alle Titel, die zB länger als 30 Minuten sind?

Parse den Output von lsdvd. Oder das hier:

==== ~/bin/lsdvd-longest_track.pl ====
#!/usr/bin/perl -w
use strict;
use Data::Dumper;

our (%lsdvd, $lsdvddata);
{ local $/; $lsdvddata = <>; }
eval $lsdvddata; die "$@" if "$@";
foreach (@{$lsdvd{track}}) {
if( $_->{ix} == $lsdvd{longest_track} ) {
print Dumper($_);
}
}
1;
====

lsdvd -Op [-a -v -s] [foo.iso] | lsdvd-longest_track.pl

Statt der einfachen Ausgabe per Data::Dumper kannst du dir natürlich
genau das ausgeben lassen, was du willst.

HTH,
-dnh

--
Documentation: Cryptic, lacking, erroneous. Pick any three.
--
To unsubscribe, e-mail: opensuse-multimedia-de+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-multimedia-de+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References