User Profile

Collapse

Profile Sidebar

Collapse
Ajit Teli
Ajit Teli
Last Activity: Apr 1 '11, 06:01 AM
Joined: Jan 6 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Ajit Teli
    replied to VLC automation
    in Perl
    I am able to

    Here vlc://quit is not working. What do i need to for quitting vlc through perl?

    Code:
    #!usr/bin/perl
    use strict;
    no strict "vars";
    use warnings;
    
    use DBI;
    $dbh = DBI->connect('dbi:mysql:audio', 'root', 'ajitteli')
    	or die "connection error: $DBI::errstr\n";
    
    print "Enter the number of songs to be played:  ";
    my $num
    ...
    See more | Go to post
    Last edited by miller; Apr 3 '11, 04:11 AM. Reason: Please do not double post nor post Questions in the Insights section of the forums. I've merged your threads and added [code] tags to both of your posts.

    Leave a comment:


  • Ajit Teli
    started a topic VLC automation
    in Perl

    VLC automation

    I have pasted the perl script below. Here, I have stored audio files into the mysql database. the "print `vlc "@row"`;" statement launches vlc and starts playing. But it is not quitting after sleeping fot 10 sec. What do i need to do for that?

    Code:
    #!usr/bin/perl
    use strict;
    no strict "vars";
    use warnings;
    
    use DBI;
    $dbh = DBI->connect('dbi:mysql:audio',
    ...
    See more | Go to post
    Last edited by miller; Apr 1 '11, 06:21 AM. Reason: Code Tags

  • Ajit Teli
    started a topic How to run a ffmpeg perl script on Windows?
    in Perl

    How to run a ffmpeg perl script on Windows?

    Change path to the ffmpeg for windows xp. I have attached the script here...

    audinfo.txt
    Code:
    #!usr/bin/perl
    
    use strict;
    use warnings;
    my $perl = "G:\Perl\bin\perl.exe";
    use IPC::Open3;
    
    my @list = glob('*.mp3 *.MP3 *.mp4 *.mpg');
    foreach my $song (@list){
    print "$song \n";
    my $filename = $song;
    
    my %videoInfo = videoInfo($filename);
    ...
    See more | Go to post
    Last edited by Niheel; Jan 19 '11, 01:27 PM.

  • Ajit Teli
    started a topic How to play an mp3 file and quit the player?
    in Perl

    How to play an mp3 file and quit the player?

    vlc vlc://quit

    I used this command. It launches vlc and quits it suddenly.
    But I want to play a song. Just edit that command and send me.
    See more | Go to post
No activity results to display
Show More
Working...