Hi!

On 27-01-13 17:49, Romain Beauxis wrote:

>
> I think your problem is that the OGG decoder is picking up the file
> while you're expecting the gstreamer one to pick it up.

The problem wasn't the OGG-file, it was the MP4-file that didn't work. 
Anyway I tried the following, assuming that's what you meant (commenting 
out the 'sets' not needed):

#!/usr/local/bin/liquidsoap
#set("decoder.file_decoders",["META","WAV","MIDI","FLAC","AAC","MP4","MAD","CAMLIMAGES","SDL/IMAGE","GSTREAMER"])
set("decoder.file_extensions.gstreamer",["wmv","avi","mp4","3gp","webm","mkv","ogg"])
set("decoder.mime_types.gstreamer",["video/x-ms-asf","video/x-msvideo","video/mp4","video/3gpp","video/webm","video/x-matroska","application/ogg","application/x-ogg","audio/x-ogg","audio/ogg","video/ogg"])

output.sdl(single("/home/graver/Video's/Charlie the 
Unicorn-CsGYh8AacgY.mp4"))

Both come back with

Invalid value at line 6, char 19-76:
   Could not get a valid media file of kind {audio=0;video=1;midi=0} 
from "/home/graver/Video's/Charlie the Unicorn-CsGYh8AacgY.mp4"

Also, removing OGG from the decoders seems to break OGG too:

Invalid value at line 6, char 19-71:
   Could not get a valid media file of kind {audio=0;video=1;midi=0} 
from "/home/graver/Video's/big_buck_bunny_480p_stereo.ogg".



>
> What you need is two things:
> 1) Disable the OGG decoder:
> *- Check the list of decoders:
>      liquidsoap --conf-descr-key decoder.file_decoders
>
> ## Decoders and order used to decode files.
> # Default: ["META","WAV","MIDI","FLAC","OGG","MAD","GSTREAMER"]
> set("decoder.file_decoders",["META","WAV","MIDI","FLAC","OGG","MAD","GSTREAMER"])
>
> *- Disable OGG decoder in your script:
>
> set("decoder.file_decoders",["META","WAV","MIDI","FLAC","MAD","GSTREAMER"])
>
> By the way, you might also be able to just put OGG after GSTREAMER..
>
> 2) Associate the gstreamer file decoder with extension and mime type
> for ogg files:
>
> set("decoder.file_extensions.gstreamer",["wmv","avi","mp4","3gp","webm","mkv","ogg"])
> set("decoder.mime_types.gstreamer",["video/x-ms-asf","video/x-msvideo","video/mp4","video/3gpp","video/webm","video/x-matroska","application/ogg","application/x-ogg","audio/x-ogg","audio/ogg","video/ogg"])
>
> Only one of the two is needed tho..
>
> Now, with these settings, you should see the gstreamer decoder picking
> up your ogg file..
>
> 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