Re: lsdvd: Alle Titel ab bestimmter Laenge

David Haller <[email protected]>
Newsgroups gmane.linux.suse.multimedia.german
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.