| View previous topic :: View next topic |
| Author |
Message |
Rrraymond
Joined: 04 Nov 2010 Posts: 11
|
Posted: Sun Nov 07, 2010 12:06 pm Post subject: Dump-file creating empty files |
|
|
Hi all,
I'm quite new to IceCast and I can use some help at the dump-file part.
I've just installed '2.3.2-kh27.1' and was trying out the dump-file part out, which did not work for me.
It creates files which increase in size while I'm steaming, but I cannot play them. When I open them in VLC it shows it's length and such but there's no sound.
When I open it with Totem it says it cannot decode it.
I can imagine this being a permission problem.
However, I've created a user called 'radio' which it runs on, and 'radio' has gotten Read/Write permissions to the folder I'm dumping the stream in.
Anyone got a clue what I'm doing wrong here?
Thanks in advance!
All help is appreciated!
Edit: I notice that when the dump-file is created it's got 'read/write' permissions for the owner, but 'read-only' for 'group'. Is that OK? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Nov 07, 2010 2:07 pm Post subject: |
|
|
how can an empty dump file increase in size?
a permission problem would affect your ability to read the file at all, It's been a while since I looked at the file writing part, so I'll have to recheck it. you also need to be clear on the format of the stream, ogginfo can be used to check the format of the dump file if ogg is being used.
karl. |
|
| Back to top |
|
 |
Rrraymond
Joined: 04 Nov 2010 Posts: 11
|
Posted: Sun Nov 07, 2010 9:27 pm Post subject: |
|
|
Guess your right about the file not being empty.
The stream format is OGG, fed by icegenerator.
Can this still be a permissions problem if I see the filesize increasing?
I just checked the dump file again by viewing the 'Media Info' in VLC and it says:
Type: Audio
Codec: Vorbis Audio (vorb)
Channels: 2
Sample rate: 44100 Hz
Bitrate: 158 kb/s
And VLC appears to be playing the file, there's just no sound. Totem just refuses the file and says it can't decode it.
I hope that info might help, tried anything I could think of so far..
Thanks in advance. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Nov 08, 2010 2:10 am Post subject: |
|
|
that would tend to indicate the file is valid. It will not be a permission issue if you are getting information about the content. If vlc is playing the content (eg the timer increases) but there is no audible playback then that would indicate that it's silence. If you are saying that you get playback through vlc from the stream but not with the dump-file then I would need to check into that.
karl. |
|
| Back to top |
|
 |
Rrraymond
Joined: 04 Nov 2010 Posts: 11
|
Posted: Mon Nov 08, 2010 7:05 am Post subject: |
|
|
Exactly, VLC plays my stream just fine but when playing the dumpfile it appears to be playing but there's no sound. It does show it's progress and total length though.
Are you sure this problem lies at IceCast? I haven't heard anyone else about it.
Thanks again. |
|
| Back to top |
|
 |
Rrraymond
Joined: 04 Nov 2010 Posts: 11
|
Posted: Mon Nov 08, 2010 4:43 pm Post subject: |
|
|
Just tried running IceCast (same version) on Windows and it's got the same problem.
The file gets created and increases in size but there's no sound.
It looks like exactly the same type of file, VLC opens and plays it, but there's no sound, WinAmp does nothing, and Totem says 'Cannot decode stream'.
I'll try IceCast 2.3.2's dump-file function to see if that makes any difference.
Edit: The regular 2.3.2 Win32 version does have a working dump-file function. |
|
| Back to top |
|
 |
Rrraymond
Joined: 04 Nov 2010 Posts: 11
|
Posted: Sat Nov 13, 2010 11:37 am Post subject: |
|
|
I don't want to be rude or anything, but I'm wondering if there's any news on this problem?
If a fix would be too time consuming I'll look for an alternative. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Nov 13, 2010 9:26 pm Post subject: |
|
|
I've to look at this in more detail yet, I'm just a bit backed up with other things at the moment. You can use curl/wget to get the stream so you do have a workaround however some have expressed a dump file cycle so I will be getting back to it.
karl. |
|
| Back to top |
|
 |
Rrraymond
Joined: 04 Nov 2010 Posts: 11
|
Posted: Mon Nov 15, 2010 6:11 am Post subject: |
|
|
Great, thanks!  |
|
| Back to top |
|
 |
Rrraymond
Joined: 04 Nov 2010 Posts: 11
|
Posted: Sat Dec 11, 2010 2:32 pm Post subject: |
|
|
Still haven't got this worked out, so I decided to do some troubleshooting yesterday.
So I found out that the dump-file does work when I dump a MP3 stream.
But still fails on an OGG dump.
Also I completely overlooked you saying I should use 'ogginfo' to check the dump, so I did that now, I got the following output:
| Code: |
Warning: Could not decode vorbis header packet 1 - invalid vorbis stream (1)
Warning: Could not decode vorbis header packet 1 - invalid vorbis stream (1)
Vorbis stream 1:
Total data length: 0 bytes
Playback length: 0m:00.000s
Average bitrate: -nan kb/s
Logical stream 1 ended
|
(The 'Could not decode' message appears about 25 million times)
I hope this is of any use to you.
In the meantime, I'm using the following workaround now:
I've got the mountpoint which I want to record set to start 'streamTranscoderv3' using 'on-connect' which streams to an MP3 mount, which gets dumped succesfully. Works okay, but the transcoder consumes quite a lot of CPU.
Thanks again.
Ray |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Dec 24, 2010 7:02 pm Post subject: |
|
|
found the cause, I'll fix this in the next update, stupid bug on my part.
karl. |
|
| Back to top |
|
 |
Rrraymond
Joined: 04 Nov 2010 Posts: 11
|
Posted: Sun Jan 02, 2011 8:58 pm Post subject: |
|
|
That is great news! Thanks for the effort  |
|
| Back to top |
|
 |
|