Page 2 of 2

Re: [Tutorial] MadSonic / Enigma2 Transcoding Live TV

Posted: 28 Sep 2014, 12:02
by muiz
There was a new version of Madsonic for the NAS (Madsonic5.1-B5080-017.spk) so i dicided to give this another try.
I use a Synology NAS 213J with Version : 5.0-4493 Update 5
But again it does not work for me.
First i tried with the new settings for dreambox built in Madsonic.
I saw there are 2 built in, 1. tv->flv and 2. tv->mkv
How does subsonic know which one to use?
I tried to remove one by one to see if that worked, but no go.
Then i tried the commands from your guide, also a no go.
In both cases the videoplayer wont even start.
My tv file

Code: Select all

#EXTM3U
#EXTVLCOPT--http-reconnect=true
http://192.168.0.105:8001/1:0:19:5225:C99:3:EB0000:0:0:0:
Then i did rename a .mp4 to .tv and it plays fine.

Im wondering what im doing wrong here.

Re: [Tutorial] MadSonic / Enigma2 Transcoding Live TV

Posted: 28 Sep 2014, 12:50
by ebeneezer
Hi muiz,

try to define only one transcoding queue for .tv files towards a flv output - maybe Madsonic gets confused with more than one configuration.

Then make sure that you have the shell commands placed in the right directory on your NAS Madsonic server: tail, xargs, cut and ffmpeg of course.

They all have to have exec rights and must reside inside the Madsonic transcoding directory.

First try with a java-enabled web browser as a client - that always worked for me.

Alas, there never was a working video streaming client for Madsonic on iOS - so i now use a different setup to stream live-TV: VLC with the BlackBox App on iOS.

To dig deeper into your problem please set your loglevel to debug and post it here.

Regards,
Ebeneezer

Re: [Tutorial] MadSonic / Enigma2 Transcoding Live TV

Posted: 29 Sep 2014, 01:43
by muiz
Ahhh...
Then make sure that you have the shell commands placed in the right directory on your NAS Madsonic server: tail, xargs, cut and ffmpeg of course.

They all have to have exec rights and must reside inside the Madsonic transcoding directory.
And where do i find those? I saw a few but all for windows.

And Madsonic is using ffmpeg from serviio. Does that mean i have to place those files if they even exist in the servio directory to?

EDIT: I tried to run madsonic 5.1 on a PC to see if that makes any different.
But as i tought... it didnt.
In madsonic it looks like this by default:

Code: Select all

tv->flv  .... tail -n1 %s .... ffmpeg -ss %o -i - -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -c:v libx264 -preset superfast -threads 0 -
tv->mkv .... tail -n1 %s .... ffmpeg -ss %o -i - -c:v libx264 -preset superfast -b:v %bk -c:a libvorbis -f matroska -threads 0 -
I dont see xargs curl -s
And in the Transcode folder there is only "tail.exe"
I tried to ad xargs curl -s to both lines : No go
Tried only tv->mkv with and without xargs curl - : No go
Tried only tv->flv With and without xargs curl -s : No go
Then i tried to download xargs and curl and put both in the transcode folder and tried all of the above again. : No go
And when i rename a .mp4 file to .tv it says: Video not found or acces denied................
While the renamed .mp4 to .tv plays fine on the Synology NAS, it wont play on the PC. (Core i7 @ 4,2ghz 12gb mem SSD, Windows 8.1 x64 up to date also drivers etc up to date.)

The links i put in Internet tv radio like i did before still works fine. But i wonder what goes wrong here.

Re: [Tutorial] MadSonic / Enigma2 Transcoding Live TV

Posted: 29 Sep 2014, 09:48
by Papillion2012
Hallo muiz, Hallo Ebeneezer,

It is very difficult with Madsonic. I have tried everything, in Linux Ubuntu and Windows 7, but without success. In my log file I could never see what I am writing now:

[2014-02-21 20:37:54,455] DEBUG TranscodeInputStream - Starting transcoder: [/Library/Application Support/mads
onic/transcode/tail] [-n1] [/Volumes/LaCie/iDocs TV Bouquets/iDocs TV/3sat HD.tv]
[2014-02-21 20:37:54,468] DEBUG TranscodeInputStream - Starting transcoder: [/Library/Application Support/mads
onic/transcode/xargs] [curl] [-s]
[2014-02-21 20:37:54,481] DEBUG TranscodeInputStream - Starting transcoder: [/Library/Application Support/mads
onic/transcode/ffmpeg] [-i] [-] [-async] [1] [-b:v] [1000k] [-analyzeduration] [4000] [-probesize] [10000] [-a
r] [44100] [-ac] [2] [-vcodec] [libx264] [-preset] [ultrafast] [-acodec] [libmp3lame] [-loglevel] [info] [-thr
eads] [4] [-filter:v] [yadif] [-f] [flv] [-]
[2014-02-21 20:37:54,611] DEBUG InputStreamReaderThread - (/Library/Application Support/madsonic/transcode/ffm
peg) ffmpeg version 2.1.git-a044a18 Copyright (c) 2000-2013 the FFmpeg developers
[2014-02-21 20:37:54,611] DEBUG InputStreamReaderThread - (/Library/Application Support/madsonic/transcode/ffm
peg) built on Jan 7 2014 14:10:02 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
[2014-02-21 20:37:54,611] DEBUG InputStreamReaderThread - (/Library/Application Support/madsonic/transcode/ffm
peg) configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libm
p3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --
enable-libmodplug --enable-libvpx --enable-libspeex --enable-libass --enable-libbluray --enable-gnutls --enabl
e-libfreetype --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man --enable-shared --enable-

It would be very fine, if someone could write here, what exactly to do, to make Madsonic to succes.
Hope that one day Madsonic work, as it has to work.
Friendly greetings Papillion

Re: [Tutorial] MadSonic / Enigma2 Transcoding Live TV

Posted: 29 Sep 2014, 10:19
by muiz
same here i spend hours to get this work, but no succes.
I hope He fixes his guide inc. things to download and where to put etc. cause it is NOT working at the moment. :cry:

Re: [Tutorial] MadSonic / Enigma2 Transcoding Live TV

Posted: 29 Sep 2014, 10:26
by Papillion2012
What we need is:
Madsonic
All the help file in transcoding
The exactly ffmpeg
Writing the file Rights
and all the Files and help files on one Page
One page Linux
One page Windows 7
That is, what i want, to make Madsonic to work with succes.

Re: [Tutorial] MadSonic / Enigma2 Transcoding Live TV

Posted: 29 Sep 2014, 15:55
by GJ51
I understand how frustrating this can get - but my son and I have spent a few years working on getting Live TV to work. I bought me first PC in 1983, my son is a CS major at the University of Maryland currently in a Cybersecurity Honors program and has worked as a data mining and content analytics specialist for several years at such organizations as NASA, Gallup, and a major East Coast ISP as a research analyst.

Finally, this summer, he had a few weeks to really look into setting up Live TV through Madsonic by capturing the stream from our Silicon Dust HD Homerun and passing it through. I think his motivation was so he could watch TV in his dorm room. Most of what he did can be reviewed here:

http://theaverageguy.tv/2014/08/16/stre ... -subsonic/

He also does frequent podcasts on this site which may be of interest to some. http://theaverageguy.tv/

The point here is that this isn't easy stuff and ALL the stars need to be properly aligned to get it working consistently. We haven't worked with Enigma, but I would think that much of the same concepts should apply from the work we did.

Once the Channel definition files are set up, the feed is passed to Madsonic and transcoded with:

ffmpeg -ss %o -i %z -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -c:v libx264 -preset superfast -threads 0 -

using the latest ffmpeg in the Madsonic transcode pack which can be found here:

http://forum.madsonic.org/viewtopic.php?f=36&t=1135

File rights are always an issue, especially in the Linux environment. I'm not a Linux expert, but I do know that most of the problems and fixes have been discussed many times in the Subsonic forums. I agree that it would be nice if concise installation tutorials/instructions were in an easy to follow consolidated location, but the information is available with some searching. In all honesty, the Linux installation is more difficult than Windoze and may not be a task without a lot of frustration for a newbie. I've done a Linux install a few times and all it did was make me more appreciative of how easy it is to install in Windows.

On Windows installations things are much simpler. The only thing you need to do is edit the service permissions authentication if you need to access a library in a UNC share. If all your media files are on the local machine in a public directory you shouldn't have to do anything. The Windows installation tutorial on the Subsonic site is very thorough and covers most of the pitfalls one would encounter during installation, Perhaps it's time to review that info and post it over here. Maybe a Linux expert can do the same for that installation.

Keep in mind that this is a User forum on an open source project that only has one developer supporting everything that gets done. It's not a corporation with teams of people doing product development and support. It's a work in progress that gets much better with community support and participation where we share and contribute to helping new users solve their problems.

HTH

I'll try to get some time to work on a Windows tutorial updated for Madsonic as soon as I can.

Re: [Tutorial] MadSonic / Enigma2 Transcoding Live TV

Posted: 29 Sep 2014, 16:41
by Papillion2012
Thank you Sir, for your work with our Problems. You are a Gentleman. We wait for your Instructions.

Re: [Tutorial] MadSonic / Enigma2 Transcoding Live TV

Posted: 29 Sep 2014, 17:57
by muiz
But then i always need a PC. And its for Homerun and not Dreambox. Not very usefull, sorry no offence.

It would be cool (for some) to run this on a NAS.
But untill someone has a fix or a guide to get this working i stick with my own idea to put them in the internet radio links.

Re: [Tutorial] MadSonic / Enigma2 Transcoding Live TV

Posted: 29 Sep 2014, 18:12
by ebeneezer
Friends,

i am trying to help, but i need your logfiles.

Windows versions of xargs,cut and tal you can get here: https://github.com/bmatzelle/gow/wiki. ffmpeg for Windows can be obtained here: http://ffmpeg.zeranoe.com/builds/

For Linux installations all those commands including ffmpeg come with linux - simply install via packet management.

Drop your logfiles and I will have a look at it.

Regards,
EG

Re: [Tutorial] MadSonic / Enigma2 Transcoding Live TV

Posted: 29 Sep 2014, 19:06
by GJ51
muiz wrote:But then i always need a PC. And its for Homerun and not Dreambox. Not very usefull, sorry no offence.

It would be cool (for some) to run this on a NAS.
But untill someone has a fix or a guide to get this working i stick with my own idea to put them in the internet radio links.
My apologies,

No offense taken.

The purpose of my post was not intended to address your individual problem. I'm sorry if you misconstrued it's purpose. Rather, I was merely attempting to give the issue a bit of context in the hope that it would be useful for those concerned, to understand the challenges faced with debugging something this complex, and hopefully letting those with the expertise, the option of looking at the work that was done with the HDHR which is now working very well, in the hope that it might provide a measure of idea stimulation that might help resolve outstanding issues with the Enigma2 platform.
But then i always need a PC. It would be cool (for some) to run this on a NAS.
I'm not entirely sure that I understand what you mean here. Madsonic is always on a host machine. In my case it's on a Windows server. Yes it would be cool to run it on a NAS, but I don't think you'll find a NAS with enough CPU power to effectively do the required transcoding.

Re: [Tutorial] MadSonic / Enigma2 Transcoding Live TV

Posted: 29 Sep 2014, 22:20
by muiz
Untill there is a solution or a better NAS. I stick with the way i descibed a few posts back. It streams the dreambox to the VLC plugin which also plays the radio stations on Madsonic.

To bad the Dreambox WebTV doesnt work when i add it to madsonic. it Wont start playing. I gues it doesnt want to be framed.
Image

Re: [Tutorial] MadSonic / Enigma2 Transcoding Live TV

Posted: 22 Dec 2014, 17:12
by ebeneezer
The Tut is broken with Madsonic 5.2 - seems Madsonic refuses to start a transcoder for very small files.
Stay tuned

Re: [Tutorial] MadSonic / Enigma2 Transcoding Live TV

Posted: 06 Dec 2015, 05:24
by littledevil667
Hi, I have problems getting the stream to work
madsonicdreambox.jpg