Hi, Just to let you know, I started reviewing the code in external_decoder.ml. I'm gonna make it fail more gracefully when something goes wrong (as is the case here) with the external process.
Cheers, David On Thu, Jan 16, 2014 at 2:00 PM, JD Buys <jdb...@gmail.com> wrote: > Sorry for the late reply, but holiday got in the way...:) > > I am using the following code to register ffmpeg which I found somewhere on > the internet: > > def test_ffmpeg(file) = -1 end > ffmpeg_p = "/usr/bin/ffmpeg -i - -f wav -" > add_decoder(name="FFMPEG",description="Decode files using the ffmpeg decoder > binary",mimes=["audio/aacp","application/octet-stream","audio/x-wav"],test=test_ffmpeg,ffmpeg_p) > > JD > > > On Thu, Dec 19, 2013 at 10:32 AM, Samuel Mimram <smim...@gmail.com> wrote: >> >> Hi, >> >> Could you please show us your script? In particular, the part >> registering ffmpeg as an external decoder... >> >> Cheers, >> >> Samuel. >> >> On Mon, Dec 16, 2013 at 3:23 PM, JD Buys <jdb...@gmail.com> wrote: >> > Sorry, I said from wav, it was a wma file >> > >> > >> > On Mon, Dec 16, 2013 at 4:19 PM, JD Buys <jdb...@gmail.com> wrote: >> >> >> >> Hi guys, >> >> >> >> I Upgraded to the latest ffmpeg and now I am getting the following >> >> error >> >> when I want to stream a wav file to mp3. >> >> >> >> 2013/12/16 08:38:43 [clock.wallclock_main:2] Source shoutcast failed >> >> while >> >> streaming: Broken pipe in write()! >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Raised by primitive >> >> operation >> >> at file "unix.ml", line 173, characters 7-34 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Called from file >> >> "decoder/external_decoder.ml", line 135, characters 18-45 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Called from file >> >> "tools/tutils.ml", line 80, characters 16-19 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Re-raised at file >> >> "tools/tutils.ml", line 82, characters 39-40 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Called from file >> >> "tools/tutils.ml", line 85, characters 14-18 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Re-raised at file >> >> "tools/tutils.ml", line 85, characters 54-55 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Called from file >> >> "sources/request_source.ml", line 66, characters 12-24 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Called from file >> >> "sources/request_source.ml", line 442, characters 4-22 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Called from file >> >> "source.ml", >> >> line 500, characters 8-26 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Called from file >> >> "operators/switch.ml", line 205, characters 10-18 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Called from file >> >> "source.ml", >> >> line 500, characters 8-26 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Called from file >> >> "conversions/audio_to_stereo.ml", line 48, characters 17-33 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Called from file >> >> "source.ml", >> >> line 500, characters 8-26 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Called from file >> >> "operators/switch.ml", line 205, characters 10-18 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Called from file >> >> "source.ml", >> >> line 500, characters 8-26 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Called from file >> >> "operators/insert_metadata.ml", line 47, characters 6-20 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Called from file >> >> "source.ml", >> >> line 500, characters 8-26 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Called from file >> >> "outputs/output.ml", line 169, characters 8-23 >> >> 2013/12/16 08:38:43 [clock.wallclock_main:3] Called from file >> >> "clock.ml", >> >> line 160, characters 17-25 >> >> >> >> Any ideas? >> >> >> >> JD >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > Rapidly troubleshoot problems before they affect your business. Most IT >> > organizations don't have a clear picture of how application performance >> > affects their revenue. With AppDynamics, you get 100% visibility into >> > your >> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of >> > AppDynamics >> > Pro! >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Savonet-users mailing list >> > Savonet-users@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/savonet-users >> > >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> Savonet-users mailing list >> Savonet-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/savonet-users > > > > ------------------------------------------------------------------------------ > CenturyLink Cloud: The Leader in Enterprise Cloud Services. > Learn Why More Businesses Are Choosing CenturyLink Cloud For > Critical Workloads, Development Environments & Everything In Between. > Get a Quote or Start a Free Trial Today. > http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk > _______________________________________________ > Savonet-users mailing list > Savonet-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/savonet-users > -- David ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users