Hi Yoann!

2013/1/25 Yoann QUERET <[email protected]>:
> I try to add an external decoder using ffmpeg, to add more supported
> format on input stream (accp, mms, rtsp, ..).
>
> I make a very simple test with an AUDIO/AACP input stream :
>
> def test_ffmpeg(file) =
>      int_of_string("-1")
> end

You know you can just return -1 here:

def test_ffmpeg(file) =
  -1
end

:-)

Or, even simplier:

> ffmpeg_p = "< /dev/null /usr/bin/ffmpeg -i - -"
> add_decoder(name="FFMPEG",description="Decode files using the ffmpeg
> decoder binary",test=test_ffmpeg, ffmpeg_p)

ffmpeg_p = "< /dev/null /usr/bin/ffmpeg -i - -"
add_decoder(name="FFMPEG",description="Decode files using the ffmpeg
decoder binary",test={-1}, ffmpeg_p)

> set("decoder.mime_types.aac",["audio/aac","audio/aacp","audio/x-hx-aac-adts"])
> set("decoder.stream_decoders",["WAV","PCM/BASIC","FLAC","OGG","MAD","FFMPEG"])

This made me realize that custom decoders are not currently supported
for streams. Streams decoders are picked up according to mime types
that they support. However, there is no way to specify which mime type
your custom decode supports, so it will never be picked..

I'll fix that in time for the release, keep an eye on the list :-)
Romain

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to