Hi Erik,

I don't think that the video decoders for now support `mp4` files. You
may want to try with gstreamer, perhaps.

Romain

2016-12-15 1:40 GMT-06:00 Erik Hagman <[email protected]>:
> Hello!
>
> I've been trying to get liquidsoap with video to work for some days now,
> tried different kinds of installations metods etc but I end up with the same
> thing over and over again.
> "[decoder:3] Unable to decode "file.whatever" as {audio=2;video=1;midi=0}!"
>
> Running Ubuntu Server 16.04 with Opam installed Liquidsoap 1.2.1.
>
> This is what log says:
>
> 2016/12/15 08:22:41 >>> LOG START
> 2016/12/15 08:22:41 [main:3] Liquidsoap 1.2.1
> 2016/12/15 08:22:41 [main:3] Using: bytes=[distributed with OCaml 4.02 or
> above] pcre=7.2.3 dtools=0.3.2 duppy=0.5.2 duppy.syntax=0.5.2 cry=0.4.1
> mm=0.3.0 ogg=0.5.0 vorbis=0.6.2 mad=0.4.5 dynlink=[distributed with Ocaml]
> lame=0.3.3 aacplus=0.2.2 fdkaac=0.2.1 theora=0.3.1 taglib=0.3.2
> camomile=0.8.5
> 2016/12/15 08:22:41 [protocols.external:3] Found "/usr/bin/curl".
> 2016/12/15 08:22:41 [frame:3] Using 44100Hz audio, 24Hz video, 88200Hz
> master.
> 2016/12/15 08:22:41 [frame:3] Frame size must be a multiple of 7350 ticks =
> 3675 audio samples = 2 video samples.
> 2016/12/15 08:22:41 [frame:3] Targetting 'frame.duration': 0.04s = 1764
> audio samples = 3528 ticks.
> 2016/12/15 08:22:41 [frame:3] Frames last 0.08s = 3675 audio samples = 2
> video samples = 7350 ticks.
> 2016/12/15 08:22:41 [threads:3] Created thread "generic queue #1".
> 2016/12/15 08:22:41 [threads:3] Created thread "generic queue #2".
> 2016/12/15 08:22:41 [playlist(dot)m3u:3] Loading playlist...
> 2016/12/15 08:22:41 [playlist(dot)m3u:3] No mime type specified, trying
> autodetection.
> 2016/12/15 08:22:41 [playlist(dot)m3u:3] Playlist treated as format
> application/x-mpegURL
> 2016/12/15 08:22:41 [playlist(dot)m3u:3] Successfully loaded a playlist of 4
> tracks.
> 2016/12/15 08:22:41 [/video:3] Connecting mount /video for
> source@localhost...
> 2016/12/15 08:22:41 [decoder:3] Unable to decode
> "/media/hdd/Video/small.webm" as {audio=2;video=1;midi=0}!
> 2016/12/15 08:22:41 [decoder:3] Unable to decode
> "/media/hdd/Video/small.mp4" as {audio=2;video=1;midi=0}!
> 2016/12/15 08:22:41 [decoder:3] Unable to decode
> "/media/hdd/Video/SampleVideo.mp4" as {audio=2;video=1;midi=0}!
> 2016/12/15 08:22:41 [decoder:3] Unable to decode
> "/media/hdd/Video/small.ogv" as {audio=2;video=1;midi=0}!
> 2016/12/15 08:22:41 [/video:3] Connection setup was successful.
> 2016/12/15 08:22:41 [threads:3] Created thread "wallclock_fallback_5276" (1
> total).
> 2016/12/15 08:22:41 [clock.wallclock_fallback_5276:3] Streaming loop starts,
> synchronized by active sources.
> 2016/12/15 08:22:41 [fallback_5276:3] Switch to blank.
> 2016/12/15 08:22:43 [decoder:3] Unable to decode
> "/media/hdd/Video/small.webm" as {audio=2;video=1;midi=0}!
> 2016/12/15 08:22:43 [decoder:3] Unable to decode
> "/media/hdd/Video/small.mp4" as {audio=2;video=1;midi=0}!
> 2016/12/15 08:22:43 [decoder:3] Unable to decode
> "/media/hdd/Video/SampleVideo.mp4" as {audio=2;video=1;midi=0}!
> 2016/12/15 08:22:43 [decoder:3] Unable to decode
> "/media/hdd/Video/small.ogv" as {audio=2;video=1;midi=0}!
> --------------------------------------------------------------------------------------------------------------------------------------------
>
> after running this script:
>
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
> #!/home/erik/.opam/system/bin/liquidsoap
>
> # Liquidsoap Script for Bronydom Video Stream (for streaming to an Icecast2
> server) Doesn't support RTMP yet, also needs a pretty powerful server to
> handle. Set/change the following: hostname, portno, passw, mountpoint
>
> # playlistdir (directory of all the videos, automatically recursively
> searches for files) The default values require a local instance of Icecast2
> to be running.
>
> hostname = "localhost"
> portno = 8000
> passw = "hackme"
> mountpoint = "/video"
>
> playlistdir = "/media/hdd/Video/playlist.m3u"
>
> set("log.file",false)
> set("log.file.path","/path/to/log/file")
>
> # Nah, we don't need log files right now, we can just go to the console for
> that.
>
> set("log.stdout", true) set("log.level",3) # Set loglevel to 3, for
> debugging purposes.
>
> # Set 480p resolution @ 24fps
>
> set("frame.video.width", 848)
> set("frame.video.height", 480)
> set("frame.video.samplerate", 24)
>
> # Now we setup the video source. If no videos are located, fallback to a
> blank stream.
> source = playlist(playlistdir)
> security = blank(id="blank")
> videostream = fallback(track_sensitive = false, [source, security])
>
> # GStreamer outputs require this so that Liquidsoap doesn't handle syncing,
> but rather GStreamer itself
> clock.assign_new(sync=false,[videostream])
>
> # Now we output to the Icecast2 server.
> output.icecast( %ogg(
>   %theora(
>     quality=20,
>     width=848,
>     height=480
>   ),
> %vorbis.cbr(
>     samplerate=44100,
>     channels=2,
>     bitrate=128
> )),
> format="video/ogg",
> host=hostname,
> port=portno,
> password=passw,
> mount=mountpoint,
> icy_metadata="false",
> fallible=true, videostream)
>
> # End of script. That's all it takes :D
>
> ----------------------------------------------------------------------------------------------------------------------------------
>
> also tried using the example from the website:
>
> ----------------------------------------------------------------------------------------------------------------------------------
>
> #!/usr/local/bin/liquidsoap
>
> set("log.file",false)
> set("log.file.path","/path/to/log/file")
>
> source = single("/media/hdd/Video/small.mp4")
>
> output.icecast(
>         %ogg(%theora(quality=25,width=320,height=240),%vorbis),
>         host="localhost",
>         port=8000,
>         password="hackme",
>         mount="/videostream",
>         source)
>
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Could not get a valid media file of kind {audio=2;video=1;midi=0} from
> "/media/hdd/Video/small.mp4".
>
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Liquidsoap and icecast work perfectly fine with mp3 but I really want video
> to work! Please help! =/
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to