Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Stream Errors During HTTP Playback (Read 2042 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Stream Errors During HTTP Playback

I am trying to get foomar2000 to play my http stream without success.  I am getting constant "WARNING (foo_input_std) : mpeg stream error at XXXXX bytes, attempting resync" errors, which cause the music to stutter.

I am playing the music from a PHP file which dynamically re-encodes the MP3 at a lower bitrate using LAME.  I can stream the original mp3's without dynamically re-encoding them fine.  Also, if I re-encode the file outside php and stream it, it runs fine. 

I think the issue is with PHP outputing the header and passing through the data.  Other players are able to play the stream without issue, but Foobar2000 doesn't seem to like it.

Here's a sample php page that exhibits the problem for me:

Code: [Select]
<?
header("Content-type: audio/mp3");
echo(passthru('/usr/local/bin/lame -b 64 -f --silent Test.mp3 - '));
?>


Does anyone have any suggestions on how I can resolve the issue?