2013/1/27 Frits Letteboer <[email protected]>:
> Hi,

Hi Frits!

> I'm currently testing the video features in liquidsoap and found some
> issues (or I messed up, also very possible :))
>
> I compiled the latest and greatest from GIT and made sure to include all
> dependencies (GStreamer most importantly) so that should work fine :)
>
> (Liquidsoap 1.0.1+scm
> (git://github.com/savonet/liquidsoap.git@50d00e2d3c308b356cedd63ff2d59c4a37e5dd50:20130126:232901))
>
> Plugins include GStreamer
>
> + file decoding
>   File decoding methods.
> [...]
>   + GSTREAMER
>    Decode a file using GStreamer.
> [...]
>
> However only OGG/theora files seem to be accepted:
>
> Command: liquidsoap 'output.sdl(single("Charlie the
> Unicorn-CsGYh8AacgY.mp4"))'
>
> Response:
> Invalid value at line 1, char 19-55:
>    Could not get a valid media file of kind {audio=0;video=1;midi=0}
> from "Charlie the Unicorn-CsGYh8AacgY.mp4".
>
> Command: liquidsoap 'output.sdl(single("big_buck_bunny_480p_stereo.ogg"))'
> Response:
>         Displays a window with the file playing
> -----------8<-------------8<-------------------
>
> So let's investigate:
>
> Command: liquidsoap -r "Charlie the Unicorn-CsGYh8AacgY.mp4"
> Request resolved.
> temporary="false"
> decoder="MP4"
> unknown="0"
> kind="{audio=0+;video=0+;midi=0+}"
> rid="0"
> initial_uri="Charlie the Unicorn-CsGYh8AacgY.mp4"
> status="ready"
> filename="Charlie the Unicorn-CsGYh8AacgY.mp4"
> Computing duration: failed.
> -----------8<-------------8<-------------------
>
> Command: liquidsoap -r big_buck_bunny_480p_stereo.ogg
> notification: Speex header too small
> notification: Speex header too small
> notification: Speex header too small
> notification: Speex header too small
> Request resolved.
> temporary="false"
> decoder="OGG"
> kind="{audio=0+;video=0+;midi=0+}"
> rid="0"
> initial_uri="big_buck_bunny_480p_stereo.ogg"
> status="ready"
> filename="big_buck_bunny_480p_stereo.ogg"
> Computing duration: 596.46 sec.
> -----------8<-------------8<-------------------
>
>
> Any pointers?

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.

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