Programming :: Making The Mplayer To Skip Some Files?

Jun 6, 2010

GNU/Linux kernel 2.6, Slackware 12.0
MPlayer 1.0rc2-4.1.2
GNU Bash 3.1.17

I've got a set of MP3 files on dir .../foo/ and I want mplayer to play them sequencely but skipping some of them. If I run 'mplayer *' this will do but ofcourse won't skip any files. I think a shell script could be written to do that. It would be something like this (using some pseudocode):

#!/bin/bash
#After an example from Intro_Linux by M. Garret.
LIST=$(ls *.mp3)

[code]....

View 3 Replies


ADVERTISEMENT

Ubuntu Multimedia :: How To Skip Forward/backwards With Mplayer

Apr 9, 2010

when watching a movie in browser (ff/chrome) or using mplayer to replace flash on ..... for instance, i cannot skip around the video i'm watching...

- is there a way to be able to skip forward/backwards with mplayer?

- is there a way to replace mplayer with another program that will allow me to skip?

View 4 Replies View Related

Software :: Skip/jump To A "particular Place" Or "specified Time/second" In Mplayer?

Apr 19, 2010

how do I skip to a particular second/frame *while* watching a video in mplayer?

View 3 Replies View Related

Programming :: How To Skip Getchar In C

Oct 1, 2010

I would like to read an input from keyboard using getchar. However, if no input (No Carriage return/new line none whatsoever) is given after say, 5 seconds, I would like to skip the getchar and move on. How do I do this in C. I'm using GNU compiler set.

View 6 Replies View Related

Ubuntu :: Audio Files Skip Every Now And Then

Jul 6, 2011

Strange problem from a couple of months, Audio files skip every now and then. Sounds like buffering issue. MP3, Wav etc. all skip on VLC, Qamp etc, once in a minute or two, its quite random. i thought there was CPU spikes or something by some program i installed. I checked the system monitor and found no unusual spikes in the CPU... so i am thinking this must be the audio buffers. Can i set the buffers for the for the driver or something? my machine is: Dell Inspiron Mini netbook Ubutu lucid 10.04, 2bg RAM, 260GB HDD

View 1 Replies View Related

Programming :: C- How To Skip Dirs That Are Mounted Twice

Aug 27, 2010

I need to list a directory recursively but I want to skip subdirs that were already mounted. There are 2 cases:

a) a filesystem was mounted twice, like in this example:

- "/dev/sda2" was mounted on "/mnt/mnt_point1"
- "/dev/sda2" was mounted on "/mnt/mnt_point2"

I want to list "/mnt" but descend only in "/mnt/mnt_point1"

b) part of the file hierarchy was remounted somewhere else, with "mount --bind":

- "mount --bind /home/user/tmp/test /home/user/tmp/mounted_test"

I want to list "/home/user/tmp" but descend only in "test" "statfs" and "statvfs" don't offer any information to discern if a dir was mounted twice. One solution would be to read "/etc/mtab" (as "find" command does it) and perform some checks, but I think that this is pretty expensive (one has to read /etc/mtab every time one encounters a dir; if this file is read only when program starts, a mount could occur in between reads, so that the program will be inaccurate). Another solution would be to filter kernel events (via libudev or Netlink) and do this reading of /etc/mtab only when a MOUNT event was issued.

View 1 Replies View Related

Programming :: Skip Execution Of A Function In A Script?

Mar 15, 2011

I have a bash script which is composed of different functions.I want to able to select which functions to be executed when i run the script, for that i thought about using a flag in the function. but i dont know how to skip the function whose flag is set to zero.

Code:

myfunc1(){
local flag=1
commands
{

[code]....

View 2 Replies View Related

General :: How To Skip User Created Files During RPM Upgrade

Sep 4, 2009

I am trying to create an RPM package. However when the RPM package installs, it need to skip some files that might have been created by the user after the last installation and use of the program. Is there a way to build RPM package that just skips the user created content in the installation dir.

For example:
lets say my RPM package creates the following dir and creates files required by my application, say .app files.
/ppm/config/

However the user may also create a few .xml files in the same dir. How will I package my program that will not delete the .xml files from the above dir and will just create the application files (.app files).

View 2 Replies View Related

Programming :: Make Getchar() Skip A Leading Space?

Jul 10, 2010

How do I make getchar() skip a leading space? The situation I am looking is this: I print a prompt that ends in a space printf("Input: ");and then when I use getchar() to read the text that was typed after the prompt, it appears to process the trailing space as a leading space that belongs to the input.

how can the space be skipped, preferably without inserting code that explicitly checks whether I'm reading the first character or not. I have already found out that I can skip such a space using scanf scanf (" %c", &ch); where the leading space in the format string eliminates leading spaces from the input string. That is the sort of thing I have in mind.

View 7 Replies View Related

Ubuntu :: Copying Files To A Directory And Skip The Files That Already Exist In The Directory?

Jun 30, 2011

How would i go about copying files to a directory, yet skip the files that already exist in the directory, and also remove the files that are in the directory. For example:

Code:

$ls /dir1
img001.jpg
img002.jpg

[code]....

Now i would like to copy from dir1 to dir2, but the contents of dir2 would be:

Code:

$ls /dir2
img003.jpg

View 7 Replies View Related

Software :: Making A Bash Script To Read In Different Files And Rename Output Files?

May 7, 2009

Until now i haven't had to dabble with bash scripts.

I have a program that reads in data files. These are named datafile01_R, datafile01_G, datafile01_B, they then increment, so datafile02_R etc i have about 600 of these. the program reads in 3 data sets at a time from each run, so files_01 r, g, and b.

The program then does its magic, and outputs about 40 different files, depending on the file, they gone to folders named R, G, B, psa, or tracking.

The program itself has configuration files to say where the files should gone when analyzed, there is also the config files that reads in the data sets.

At the moment i have to run one set of data, then go in and manually change the input file location, and run again. But, doing this, even though a different data set, the new set overwrites the old set in one of the output folders. So i need a way to increment the output filenames after they are written and before the program is run again with the new data set.

View 1 Replies View Related

Slackware :: Cannot Play Wmv Video Files With Mplayer?

Sep 25, 2010

I downloaded the codecs from slakbuilds and installed but mplayer still complains about missing codec for mwv format

View 10 Replies View Related

OpenSUSE Multimedia :: VLC, MPlayer Slow On Playback Of HD Files?

Apr 6, 2011

I can't seem to watch 576p or 720p files without either VLC tearing and blocking or MPlayer freezing for a few frames, or stuttering. I can't figure out why.

I have a Intel Q6600 and a GTX480 with the latest drivers on OpenSUSE 11.4. Qt 4.7.1

On VLC 1.1.8/1.2.0 I've tried X11 video out, XVideo video out and GLX video out. I've also tried enabling hardware decoding under Advanced > Inputs/Codecs > FFmpeg to no avail.

On MPlayer 0.6.9, I set my cores to 4, and and tried XVideo output and VDPAU output.

View 3 Replies View Related

Ubuntu Multimedia :: How To Play Flv Files With Totem Mplayer

Oct 21, 2010

I tried to play FLV movie files with Totem Mplayer but it gets error internal stream error. How can I play this kind of files in ubuntu 8.04

View 2 Replies View Related

Red Hat :: Uninstalling Mplayer Installed By Compiling Source Files?

Feb 2, 2010

how to uninstall Mplayer and other programs that is installed by compiling source files(./configure, make , make install)

View 14 Replies View Related

Ubuntu :: Making Some Files (Run Only)

May 29, 2011

Is it possible to disable the run/display/cancel dialog just for some selected files and keep it for others? I want to be able to just click on some files which would run them instantly yet still being asked what to do if I click on other files. Say, launching files a, b & c would make them execute but launching files d, e, f and all others would pop-up the dialog asking me what to do. So can it be done?

View 6 Replies View Related

Programming :: Mplayer Play Flash Streams - How To Detect The URL

Jan 6, 2011

from the php or html webpages pages, can we find the direct link to the flv files. videos it is easy, ok, because it places with firefox the flv file into the temp. but what about all other streams of webcams, videos, music, ... so that one can use mplayer

View 1 Replies View Related

Programming :: Making An Awk Script ?

Sep 29, 2010

Making an awk script. If you tell me to read the documentation.. I know.. you're right.

By the way, here is some input

Code:

My awk program has to work in this way:

until the end of the document if the beginning of the line is "START11" while the beginning of the line is different form "END11" print the whole line (print the "END11" line too)

View 1 Replies View Related

Programming :: Making A Graph In C

Dec 1, 2010

I am trying to understand how can I make a graph in C. So I wrote some program.

Code:
#include "declarations.h"
graph root = NULL;
int main()
{

[Code]....

View 6 Replies View Related

Debian Multimedia :: Mplayer Audio Extraction From Video Files

Dec 9, 2010

I am on Squeeze. In the past I have successfully extracted audio from video files. Recently when I try it I get an unplayable file, just some brief noise nothing more. Mplayer on the other hand plays every video and audio file out there. Is there something wrong with mplayer? I installed mplayer from the repo. I haven't compile mplayer since before Lenny.

View 14 Replies View Related

Ubuntu Multimedia :: Can't Play Any WMA Files, Neither In Rhythmox, Totem, VLC, Or Mplayer

Jan 7, 2010

Since upgrading to 64-bit Karmic, I can't play any WMA files, neither in Rhythmox, Totem, VLC, or mplayer. It used to work well with 64-bit Intrepid.

I've added the medibuntu repos and installed ubuntu-restricted-extras (including w64codecs). Still, when rhythmbox or totem opens a WMA file, they search for an appropriate codec and don't find anything.

View 3 Replies View Related

Ubuntu Multimedia :: Mplayer Doesn't Play Files Over The Network?

Jan 11, 2010

How can I get mplayer to play files over the network? It seems like I am not the only one that wants this feature. Does anyone got a work around for this?

View 9 Replies View Related

Programming :: Compiling Mplayer - Boat Load Of Linker Errors

Mar 30, 2011

I did a ./configure and make and got this returned about 1/2 hr later:

Code:
undefined reference to `glDisable'
undefined reference to `glDisable'
undefined reference to `glutKeyboardFunc'
undefined reference to `glutSpecialFunc'
undefined reference to `glReshapeFunc'

And the oddest part is.... I passed --disable-gl to configure!

View 4 Replies View Related

Programming :: Draw A Circle In C++ Without Making Use Of BGI

Apr 10, 2010

How can one draw a circle in c++ without making use of BGI.

View 4 Replies View Related

Programming :: Making A Graphic Animation In C#?

May 3, 2011

I'm trying to create something like this:[URL]...when you press "fire" you see the graphic.My program already does all the math, but what i want is that animation of the projectile moving depending on the entered data.i really don't know how to accomplish that.I'm using Gtk#.what would i need to create something like that??

View 1 Replies View Related

Programming :: Making A Scrambler From Python?

Jul 28, 2011

was making a scrambler from python and this is what i have

# Scramble word re-arrange characters
import random
scrambler= raw_input("put a word and i will unscramble:")

[code]....

View 9 Replies View Related

Fedora :: Xine And AVI Files - Reports A Codec Missing While Mplayer Plays

Jan 19, 2010

I try using xine to play AVI files, but it reports a codec missing while mplayer plays it just fine. I use F11 with all the latest updates.

View 4 Replies View Related

Ubuntu :: 10.10 - Making Blocked Files Executable?

Oct 14, 2010

I just upgraded to 10.10 (everything was working fine in 10.04). I have .jar files that in 10.04 would execute with OpenJDK. Now I get an error message, telling me that it is blocked:

"The file '[path]' is not marked as executable. If this was downloaded or copied from an untrusted source, it may be dangerous to run. For more details, read about the executable bit."

I try to set it as executable like it was before, and it's a no go. My checkmark takes then quickly disappears before my eyes.

View 5 Replies View Related

Ubuntu :: Making Playable DVD From Video Files

Oct 19, 2010

Does anyone use Ubuntu to make (video) DVDs? That is, not just burn an existing .iso, but take a number of video files (e.g. mpeg) and create a playable DVD from them.

View 2 Replies View Related

General :: Making Grep Find Files Containing '$'

Dec 5, 2010

I want to find files containing the "$" char (ascii 0x24). 'Grep -irl $ *' would output the names of every file in path *, of course, because it means end of line (EOL). So giving grep the string "$" won't do. So I tried 'grep -irl $ *'. But this doesn't work either and I do not understand why. Am I not escaping the dollar sign? grep should interpret it literally. Neither 'grep -irl "$" *' will work. Fortunately, there's LQ, besides grep's man page.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved