how to use time out in mplayer?

Posted by manoj on Super User See other posts from Super User or by manoj
Published on 2010-06-13T23:56:25Z Indexed on 2010/06/14 0:03 UTC
Read the original article Hit count: 294

Filed under:
|
|
|

I am trying to save audio using mplayer from a live http stream. saving audio is successful. If there is no live stream playing it does not exit automatically. Is there any way to set timeout if there is no live stream?

code : mplayer -i -t 00:00:10 -acodec libmp3lame -ab 24 -ar 8000 audio.mp3

Thanks in advance.

© Super User or respective owner

how to use time out in mplayer?

Posted by manoj on Stack Overflow See other posts from Stack Overflow or by manoj
Published on 2010-06-14T15:38:14Z Indexed on 2010/06/14 15:42 UTC
Read the original article Hit count: 293

Filed under:
|
|
|

I am trying to save audio using mplayer from a live http stream. saving audio is successful. If there is no live stream playing it does not exit automatically. Is there any way to set timeout if there is no live stream?

code : mplayer -i url -t 00:00:10 -acodec libmp3lame -ab 24 -ar 8000 audio.mp3

Thanks in advance.

© Stack Overflow or respective owner

Related posts about streaming

Related posts about mplayer

  • Physics like asteroides

    as seen on Game Development - Search for 'Game Development'
    I try to make a ship that has the physic properties like asteroides. I have this for now(All in Java): Ship.class public class Ship { public static final float sMaxHealth = 0.1F; public static final float sMaxMoveVelocity = 5.0F; public static final float sMaxAngleVelocity… >>> More

  • mplayer audio desync

    as seen on Super User - Search for 'Super User'
    I have and avi file and an ac3 file that contains an alternate audio stream. I run mplayer like: mplayer -audiofile foo.ac3 bar.avi mplayer takes the audio stream from the ac3 file as expected, but when I try to scroll the video using arrows or pgup/pgdown keys, the audio gets desynced: mplayer… >>> More

  • Mplayer no sound when playing some movies

    as seen on Super User - Search for 'Super User'
    Ok, that's a bit of a strange problem, that somehow crept into my system. It used to work fine. Here is the problem as far as I can identify it. When I try to play certain video files with mplayer, there is no sound. As far as I can tell, it is only an issue with ac3 and dts sound tracks (using the… >>> More

  • Problems with freetype on OSX 10.7.4

    as seen on Super User - Search for 'Super User'
    I'm trying to install mplayer with OSD using homebrew. I've added both --enable-menu and --with-freetype-config=/usr/local/Cellar/freetype/2.4.10/freetype-config to the brew recipe. ==> Downloading http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.tar.xz Already downloaded: /Library/Caches/Homebrew/mplayer-1… >>> More

  • Conquer Video on Linux with MPlayer

    as seen on Internet.com - Search for 'Internet.com'
    <b>Linux.com:</b> "MPlayer is not your run-of-the mill video player. It's a multi-platform codec-chewing monster truck of a video player for the connoisseur of video players. It has options galore and has the flexibility to play almost anything under the sun." >>> More