Hi everyone,
The past week I installed Icecast2 and Liquidsoap in a Amazon EC2 free
instance (Ubuntu 14.04) for my company. I can output to icecast
playlists with mp3 files without any problem. The problem arises when I
try to output a video file. I have tried with 2 different MP4 files and
1 AVI file. One of them cannot be shared, but I put here the other two:
MP4: http://techslides.com/demos/sample-videos/small.mp4
AVI: http://www.engr.colostate.edu/me/facil/dynamics/files/drop.avi
Well, I'm not really interested in playing AVI files in the radio. I
have tried with %gstreamer decoder and %ogg(%theora,%vorbis), but both
throw the same error:
Could not get a valid media file of kind {audio=1;video=1;midi=0} from
"small.mp4".
And liquidsoap -r small.mp4 says this:
Request resolved.
rid="0"
tool="HandBrake 0.9.4 2009112300"
status="ready"
initial_uri="small.mp4"
temporary="false"
filename="small.mp4"
decoder="MP4"
kind="{audio=0+;video=0+;midi=0+}"
Computing duration: failed.
Everything is in the ~/radio/ directory. There I have the script
(mp4.liq) and the video (small.mp4). This is the script:
#!/usr/bin/liquidsoap
set("log.file",false)
set("log.stdout",true)
set("log.level",3)
set("decoder.file_decoders",["MAD","GSTREAMER"])
set("decoder.file_extensions.gstreamer",["mp4"])
set("decoder.mime_types.gstreamer",["video/mp4"])
src = single("small.mp4")
output.icecast(
format = "video/mp4",
icy_metadata = "false",
%gstreamer(
channels=2,
audio="lamemp3enc",
has_video=true,
video="x264enc",
muxer="mpegtsmux",
metadata="metadata",
log=5,
pipeline=""
),
host = "localhost",
port = 8000,
password = "omitted",
mount = "gymix_video",
src
)
I have tried changing the parameters of %gstreamer (e.g.: channels=1).
And also tried using %ogg(%theora,%vorbis) instead of
%gstreamer(channels=2, audio...); tried changing the directory of the
scripts, of the videos; tried changing permissions of files;
removed+purged liquidsoap a couple of times and reinstalled it (with
apt-get install and with aptitude install); tried to build it from
source (couldn't, I did git clone, make init, make update, and in the
next step ./bootstrap threw error). Tried in my own Ubuntu 16.04 too,
doesn't work.
I paste here the output of dpkg -l | grep gstreamer and dpkg -l | grep
liquidsoap (without Description so that it's not so long):
ii gir1.2-gstreamer-1.0 1.2.4-0ubuntu1
amd64
ii gstreamer-tools 0.10.36-1.2ubuntu3
amd64
ii gstreamer0.10-tools 0.10.36-1.2ubuntu3
amd64
ii gstreamer1.0-libav:amd64 1.2.4-1~ubuntu1
amd64
ii gstreamer1.0-tools 1.2.4-0ubuntu1
amd64
ii libgstreamer-ocaml 0.2.0-2build1
amd64
ii libgstreamer-ocaml-dev 0.2.0-2build1
amd64
ii libgstreamer-plugins-base1.0-0:amd64 1.2.4-1~ubuntu2
amd64
ii libgstreamer-plugins-base1.0-dev 1.2.4-1~ubuntu2
amd64
ii libgstreamer-plugins-good1.0-0:amd64 1.2.4-1~ubuntu1
amd64
ii libgstreamer0.10-0:amd64 0.10.36-1.2ubuntu3
amd64
ii libgstreamer1.0-0:amd64 1.2.4-0ubuntu1
amd64
ii libgstreamer1.0-dev 1.2.4-0ubuntu1
amd64
ii liguidsoap 1.1.1-6ubuntu2
all
ii liquidsoap 1.1.1-6ubuntu2
amd64
ii liquidsoap-plugin-faad 1.1.1-6ubuntu2
amd64
ii liquidsoap-plugin-flac 1.1.1-6ubuntu2
amd64
ii liquidsoap-plugin-gstreamer 1.1.1-6ubuntu2
amd64
ii liquidsoap-plugin-icecast 1.1.1-6ubuntu2
amd64
ii liquidsoap-plugin-lame 1.1.1-6ubuntu2
amd64
ii liquidsoap-plugin-mad 1.1.1-6ubuntu2
amd64
ii liquidsoap-plugin-ogg 1.1.1-6ubuntu2
amd64
ii liquidsoap-plugin-pulseaudio 1.1.1-6ubuntu2
amd64
ii liquidsoap-plugin-taglib 1.1.1-6ubuntu2
amd64
ii liquidsoap-plugin-theora 1.1.1-6ubuntu2
amd64
ii liquidsoap-plugin-voaacenc 1.1.1-6ubuntu2
amd64
ii liquidsoap-plugin-vorbis 1.1.1-6ubuntu2
amd64
(In one of the installations I had all plugins installed, didn't work
neither).
Also this command displays the video correctly from the start to the end
(if I connect with VNC to the server and run it):
gst-launch-1.0 filesrc location=test.mp4 ! decodebin ! autovideoconvert
! autovideosink
I wish you could help me solve this problem before the end of this week,
it's very important.
Regards,
Mikel ------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users