MPlayer: Recording specific time period of audio stream
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
MPlayer: Recording specific time period of audio stream
Is it possible to record a stream starting from a specific time in the stream, ending at some other time? What I mean is, you can use MPlayer to listen to an audio stream from a website, and record the stream to a file using the -dumpstream option. But this will record all the stream, from the very start till the end. What if I want to record starting say from minute 30 and ending in minute 50 for example? Can MPlayer do that? How can I do it?
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697
Rep:
If timing is not needed to be perfect then look for mp3record. It is a command that starts recording the pcm channel when you answer all the questions it ask then you esc when done.
I looked at the website you mentioned kencaz, but I am not sure how that setup will help me. I can start mplayer beforehand and leave it playing, but I see no way to start dumping sections of the stream after the playing has already started.
As I understand it, a script named streamrecorder, with lines like
#!/bin/sh
will start recording at 6:05, but it will open whatever URL is in the playlist file, and it will start dumping the stream into the file stream.wav since the beginning of the strem. This is what I do not want. I want to start the dumping the stream when say 35 minutes of streaming time have already passed. So it should start streaming first and then at some different time afterwards it should start the dumping. This is what I do not know how to make mplayer do.
Now, I tried mp3recorder as Brian suggested. It seems to be recording something and it generates an mp3 file. But when I try to listen to it, no sound is produced. It has some minutes of silent recording. Any clue of why it is doing that? Suggestions on how to fix it and make audio come out of it? I will appreciate your help a lot.
Anyone knows what can be wrong with my mp3record that it seems to record, and it generates an mp3 file aparently with information on it, but when I play it, no audio comes out of it? I hear nothing! What is happening? what can I do?
Are you using Fedora or SUSE. If so you may have to install .mp3 support. There may be some other Distro's involved in this copywrite stuff but these are two that I have heard that don't install with .mp3 support.
I am using RedHat 9.
This problem seems to be happening with mp3record only. I can for example convert files to mp3 using lame and that works fine, but mp3record does not seem to work :-S
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.