RTMP - on linux problem !!!

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

RTMP - on linux problem !!!

Postby trumnausTM » Wed Dec 14, 2011 10:04 am

Goodmorning,

I'm working on a integration of great PSM server 1.5 with a realtime streaming enterprise system based on RED5.

I produce a channel on red5 like RTMP://92.168.222.190/mpegts/sream_127.0.0.1@Sensor_150

i try to make a WEB connection by :
Code: Select all
videostream.Web,Red5=test1,rtmpdump://rtmp2pms?-v&-r=rtmp%3A%2F%2F192.168.222.190%2Fmpegts%2Fstream_127.0.0.1@Sensor_250
videostream.Web,Red5=test2,rtmpdump://rtmp://rtmp2pms?-v&-r=192.168.222.190:1935/mpegts/stream_127.0.0.1@Sensor_250
videostream.Web,Red5=test3,rtmpdump://rtmp2pms?-v&-r=rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250


i use PMS 1.5 and PMSEncoder 1.5.11

when i try yhe connection, PMS make the connection to red 5,i have rtmpdumb download pipe on tmp directory, and transcoding pipe one.

i use airplay on ipad, samsung 40c7000 led tv and PS3 to try but i have the same error each time...


pmsencoer.log :
Code: Select all
2011-12-13 18:39:20 [INFO|PMSEncoder|launchTranscode|New I/O server worker #1-14]: invoking matcher for: rtmpdump://rtmp2pms?-v&-r=rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250
2011-12-13 18:39:20 [INFO|PMSEncoder|launchTranscode|New I/O server worker #1-14]: 2 matches ([rtmpdump://, RTMP(E)]) for: rtmpdump://rtmp2pms?-v&-r=rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250
2011-12-13 18:39:21 [INFO|ProcessManager|handleDownloadUnix|New I/O server worker #1-14]: downloader command: [/usr/bin/rtmpdump, -V, -e, -o, /tmp/ps3mediaserver/pmsencoder_downloader_out_1323797960721_2755, -r, rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250, -v]
2011-12-13 18:39:21 [INFO|ProcessManager|handleTranscode|New I/O server worker #1-14]: transcoder command: [ffmpeg, -v, 0, -y, -threads, 8, -i, /tmp/ps3mediaserver/pmsencoder_downloader_out_1323797960721_2755, -threads, 8, -target, ntsc-dvd, /tmp/ps3mediaserver/pmsencoder_transcoder_out_1323797960721_2755]
2011-12-13 18:39:28 [INFO|PMSEncoder|launchTranscode|New I/O server worker #1-15]: invoking matcher for: rtmpdump://rtmp2pms?-v&-r=rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250
2011-12-13 18:39:28 [INFO|PMSEncoder|launchTranscode|New I/O server worker #1-15]: 2 matches ([rtmpdump://, RTMP(E)]) for: rtmpdump://rtmp2pms?-v&-r=rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250
2011-12-13 18:39:29 [INFO|ProcessManager|handleDownloadUnix|New I/O server worker #1-15]: downloader command: [/usr/bin/rtmpdump, -V, -e, -o, /tmp/ps3mediaserver/pmsencoder_downloader_out_1323797968721_2744, -r, rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250, -v]
2011-12-13 18:39:29 [INFO|ProcessManager|handleTranscode|New I/O server worker #1-15]: transcoder command: [ffmpeg, -v, 0, -y, -threads, 8, -i, /tmp/ps3mediaserver/pmsencoder_downloader_out_1323797968721_2744, -threads, 8, -target, ntsc-dvd, /tmp/ps3mediaserver/pmsencoder_transcoder_out_1323797968721_2744]
2011-12-13 18:39:36 [INFO|PMSEncoder|launchTranscode|New I/O server worker #1-15]: invoking matcher for: rtmpdump://rtmp2pms?-v&-r=rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250
2011-12-13 18:39:36 [INFO|PMSEncoder|launchTranscode|New I/O server worker #1-15]: 2 matches ([rtmpdump://, RTMP(E)]) for: rtmpdump://rtmp2pms?-v&-r=rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250
2011-12-13 18:39:36 [INFO|ProcessManager|handleDownloadUnix|New I/O server worker #1-15]: downloader command: [/usr/bin/rtmpdump, -V, -e, -o, /tmp/ps3mediaserver/pmsencoder_downloader_out_1323797976420_2744, -r, rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250, -v]
2011-12-13 18:39:36 [INFO|ProcessManager|handleTranscode|New I/O server worker #1-15]: transcoder command: [ffmpeg, -v, 0, -y, -threads, 8, -i, /tmp/ps3mediaserver/pmsencoder_downloader_out_1323797976420_2744, -threads, 8, -target, ntsc-dvd, /tmp/ps3mediaserver/pmsencoder_transcoder_out_1323797976420_2744]
2011-12-13 18:43:55 [INFO|PMSEncoder|launchTranscode|New I/O server worker #1-3]: invoking matcher for: rtmpdump://rtmp2pms?-v&-r=rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250
2011-12-13 18:43:55 [INFO|PMSEncoder|launchTranscode|New I/O server worker #1-3]: 2 matches ([rtmpdump://, RTMP(E)]) for: rtmpdump://rtmp2pms?-v&-r=rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250
2011-12-13 18:43:55 [INFO|ProcessManager|handleDownloadUnix|New I/O server worker #1-3]: downloader command: [/usr/bin/rtmpdump, -V, -e, -o, /tmp/ps3mediaserver/pmsencoder_downloader_out_1323798235221_2845, -r, rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250, -v]
2011-12-13 18:43:55 [INFO|ProcessManager|handleTranscode|New I/O server worker #1-3]: transcoder command: [ffmpeg, -v, 0, -y, -threads, 8, -i, /tmp/ps3mediaserver/pmsencoder_downloader_out_1323798235221_2845, -threads, 8, -target, ntsc-dvd, /tmp/ps3mediaserver/pmsencoder_transcoder_out_1323798235221_2845]
2011-12-13 18:44:03 [INFO|PMSEncoder|launchTranscode|New I/O server worker #1-4]: invoking matcher for: rtmpdump://rtmp2pms?-v&-r=rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250
2011-12-13 18:44:03 [INFO|PMSEncoder|launchTranscode|New I/O server worker #1-4]: 2 matches ([rtmpdump://, RTMP(E)]) for: rtmpdump://rtmp2pms?-v&-r=rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250
2011-12-13 18:44:03 [INFO|ProcessManager|handleDownloadUnix|New I/O server worker #1-4]: downloader command: [/usr/bin/rtmpdump, -V, -e, -o, /tmp/ps3mediaserver/pmsencoder_downloader_out_1323798243220_2867, -r, rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250, -v]
2011-12-13 18:44:03 [INFO|ProcessManager|handleTranscode|New I/O server worker #1-4]: transcoder command: [ffmpeg, -v, 0, -y, -threads, 8, -i, /tmp/ps3mediaserver/pmsencoder_downloader_out_1323798243220_2867, -threads, 8, -target, ntsc-dvd, /tmp/ps3mediaserver/pmsencoder_transcoder_out_1323798243220_2867]
2011-12-13 18:44:11 [INFO|PMSEncoder|launchTranscode|New I/O server worker #1-4]: invoking matcher for: rtmpdump://rtmp2pms?-v&-r=rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250
2011-12-13 18:44:11 [INFO|PMSEncoder|launchTranscode|New I/O server worker #1-4]: 2 matches ([rtmpdump://, RTMP(E)]) for: rtmpdump://rtmp2pms?-v&-r=rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250
2011-12-13 18:44:11 [INFO|ProcessManager|handleDownloadUnix|New I/O server worker #1-4]: downloader command: [/usr/bin/rtmpdump, -V, -e, -o, /tmp/ps3mediaserver/pmsencoder_downloader_out_1323798251020_2867, -r, rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250, -v]
2011-12-13 18:44:11 [INFO|ProcessManager|handleTranscode|New I/O server worker #1-4]: transcoder command: [ffmpeg, -v, 0, -y, -threads, 8, -i, /tmp/ps3mediaserver/pmsencoder_downloader_out_1323798251020_2867, -threads, 8, -target, ntsc-dvd, /tmp/ps3mediaserver/pmsencoder_transcoder_out_1323798251020_2867]



debug.log :

Code: Select all
[New I/O server worker #1-4] INFO  18:44:11.020 Starting transcode/remux of Sensore 250
[mkfifo] DEBUG 18:44:11.020 Starting mkfifo --mode=777 /tmp/ps3mediaserver/pmsencoder_transcoder_out_1323798251020_2867
[mkfifo] DEBUG 18:44:11.036 Unix process ID (mkfifo): 8255
[mkfifo] DEBUG 18:44:11.236 Starting mkfifo --mode=777 /tmp/ps3mediaserver/pmsencoder_downloader_out_1323798251020_2867
[mkfifo] DEBUG 18:44:11.261 Unix process ID (mkfifo): 8261
[/usr/bin/rtmpdump] DEBUG 18:44:11.437 Starting /usr/bin/rtmpdump -V -e -o /tmp/ps3mediaserver/pmsencoder_downloader_out_1323798251020_2867 -r rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250 -v
[ffmpeg] DEBUG 18:44:11.437 Starting ffmpeg -v 0 -y -threads 8 -i /tmp/ps3mediaserver/pmsencoder_downloader_out_1323798251020_2867 -threads 8 -target ntsc-dvd /tmp/ps3mediaserver/pmsencoder_transcoder_out_1323798251020_2867
[ffmpeg] DEBUG 18:44:11.462 Reading pipe: /tmp/ps3mediaserver/pmsencoder_transcoder_out_1323798251020_2867
[Thread-1628] DEBUG 18:44:18.640 Stopping process: ffmpeg
[Thread-1628] DEBUG 18:44:18.640 Stopping Unix process 8255: mkfifo
[New I/O server worker #1-4] ERROR 18:44:18.640 There is no inputstream to return for Sensore 250 [PMSEncoder]
[Thread-1628] DEBUG 18:44:18.640 Stopping Unix process 8261: mkfifo
[Thread-1628] DEBUG 18:44:18.641 Stopping process: /usr/bin/rtmpdump
[Thread-1625] DEBUG 18:44:18.641 Error consuming stream of spawned process: Stream Closed


PMS.conf
Code: Select all
thumbnails = true
image_thumbnails = true
uuid = 9543d10d-1af5-3c79-92cd-5515ef1933ee
enable_archive_browsing = true
usecache = true
hide_enginenames = false
hidevideosettings = false
hide_transcode_folder = false
hide_empty_folders = false
hide_media_library_folder = false
dvd_isos_thumbnails = true
alternate_thumb_folder = /opt/MEDIASERVER/Img
engines = mencoder,tsmuxer,ffmpegaudio,mplayeraudio,tsmuxeraudio,pmsencoder,vlcvideo,mencoderwebvideo,mplayervideodump,mplayerwebaudio,vlcaudio,rawthumbs
network_interface = eth1
hostname = 192.168.222.190
folders = /home/Video
mencoder_forcefps = true
fix_25fps_av_mismatch = true
prevents_sleep_mode = true
http_engine_v2 = true
rtmpdump.path = /usr/bin/rtmpdump
minimized = false
channels.path = /home/pms-linux-1.50.0/channels
pmsencoder.script.directory = /home/aisac/pms-linux-1.50.0/scripts
cookie.path = /home/pms-linux-1.50.0/channels/data/cookies
get-flash-videos.path = /home/pms-linux-1.50.0/scripts
youtube-dl.path = /home/pms-linux-1.50.0/scripts
tsmuxer_mux_all_audiotracks = true
skiploopfilter = true
mencoder_scaler = true
mencoder_yadif = true
codec_spec_script =
~                 


The only error is
Code: Select all
 [New I/O server worker #1-4] ERROR 18:44:18.640 There is no inputstream to return for Sensore 250 [PMSEncoder]
,
if i try to use command line rtmpdump it correcly run...


i have same problem with all RTMP stream that i found on internet...

ffmpeg, mencoder, and so on are installed by apt-get

the system is a i7 quad core 3.2ghz 16gb ddr3 ram and wd raid edition 1.5 tb hard disk whit ubuntu 11.4

Please HELP!!!
Last edited by Raptor399 on Thu Dec 15, 2011 8:08 am, edited 1 time in total.
Reason: Edited for code fragments
trumnausTM
 
Posts: 8
Joined: Tue Dec 13, 2011 6:26 pm

IMPORTANT : CUSTOM Transcoder for file and live streams

Postby trumnausTM » Wed Dec 14, 2011 4:10 pm

Hello,

Is is possible to create a CUSTOM PLAYER that read from particular video file, or live stream to generate a
DLNA resource?

If is possible, how can find some documentation and example to implement it...

i have RTMP live stream and customVideoFile.. i want to read that without any plugin thar DOESN'T WORKS, ad i want to put that hard coded transcoded media to DLNA..

can you help me ?
trumnausTM
 
Posts: 8
Joined: Tue Dec 13, 2011 6:26 pm

Re: IMPORTANT : CUSTOM Transcoder for file and live streams

Postby meskibob » Wed Dec 14, 2011 4:29 pm

You'll need to use PMSencoder. It's a powerful plugin and the functionality is beyond what PMS needs/does by default. If you have an issue with PMSencoder and your specific stream, please post it (as you already have in your other post) and patiently wait for an answer.
In addition, you could try searching the forum (eg viewtopic.php?f=12&t=9329&p=61001#p60988)
I provide NO application support via PM or email, so please post your question to the forum per the Forum Rules.
meskibob
Moderator
 
Posts: 4788
Joined: Mon Jan 19, 2009 4:11 pm

Re: IMPORTANT : CUSTOM Transcoder for file and live streams

Postby trumnausTM » Wed Dec 14, 2011 4:36 pm

i'm workin on pmsencoder code and Ps3 media server code from 3 weeks... and i have the same errore...

I wanto to put an red5 rtmp stream on led dlna tv... in particular is a ip cctv streaming camera ....
but i have this error :

Code: Select all
[Thread-66] DEBUG 16:34:59.548 Stopping process: ffmpeg
[Thread-66] DEBUG 16:34:59.549 Stopping Unix process 7615: mkfifo
[Thread-56] ERROR 16:34:59.548 There is no inputstream to return for Sensore 250 [PMSEncoder]
[Thread-66] DEBUG 16:34:59.549 Stopping Unix process 7620: mkfifo
[Thread-66] DEBUG 16:34:59.549 Stopping process: /usr/bin/rtmpdump
[Thread-61] DEBUG 16:34:59.549 Error consuming stream of spawned process: Stream Closed
[Thread-71] INFO  16:34:59.920 Starting transcode/remux of Sensore 250
[mkfifo] DEBUG 16:34:59.921 Starting mkfifo --mode=777 /tmp/ps3mediaserver/pmsencoder_transcoder_out_1323876899920_131
[mkfifo] DEBUG 16:34:59.934 Unix process ID (mkfifo): 7664
[mkfifo] DEBUG 16:35:00.141 Starting mkfifo --mode=777 /tmp/ps3mediaserver/pmsencoder_downloader_out_1323876899920_131
[mkfifo] DEBUG 16:35:00.152 Unix process ID (mkfifo): 7669
[/usr/bin/rtmpdump] DEBUG 16:35:00.342 Starting /usr/bin/rtmpdump -V -e -o /tmp/ps3mediaserver/pmsencoder_downloader_out_1323876899920_131 -r rtmp://192.168.222.190/mpegts/stream_127.0.0.1@Sensor_250 -v
[ffmpeg] DEBUG 16:35:00.342 Starting ffmpeg -v 0 -y -threads 8 -v 5 -an -er careful -ec deblock -i /tmp/ps3mediaserver/pmsencoder_downloader_out_1323876899920_131 -threads 8 -target ntsc-dvd /tmp/ps3mediaserver/pmsencoder_transcoder_out_1323876899920_131
[ffmpeg] DEBUG 16:35:00.361 Reading pipe: /tmp/ps3mediaserver/pmsencoder_transcoder_out_1323876899920_131
[Thread-55] WARN  16:35:01.557 Sending kill -14 to the Unix process: 7573
[Thread-55] DEBUG 16:35:01.573 Successfully sent kill -14 to the Unix process: 7573



and i'm not able to debug it...
i'm using airplayer for testing...


RED5 is correctly streaming and rtmpdump take the stream.. but i think there is a problem with reading-writing on named pipe...
Last edited by chocolateboy on Sat Dec 17, 2011 1:35 pm, edited 1 time in total.
Reason: reformatted: http://tinyurl.com/4294qo2
trumnausTM
 
Posts: 8
Joined: Tue Dec 13, 2011 6:26 pm

Re: IMPORTANT : CUSTOM Transcoder for file and live streams

Postby trumnausTM » Wed Dec 14, 2011 6:40 pm

I probably foud areason for this problem...

red5 handshake time is bigger than the client refrash on input stream... how can i grow the timeout from DLNA client befour pms server retry to connect again?
trumnausTM
 
Posts: 8
Joined: Tue Dec 13, 2011 6:26 pm

Re: RTMP - on linux problem !!!

Postby trumnausTM » Wed Dec 14, 2011 7:22 pm

I found key for late starting of transcoding... but i have another problem ...

rtmp has no AUDIO!!

i have this problem now [Thread-300] DEBUG e.a.m.core.dlna.DLNAResource - External input stream instance is null... sounds not good, waiting 500ms
HELP!
trumnausTM
 
Posts: 8
Joined: Tue Dec 13, 2011 6:26 pm

sounds not good, waiting 500ms

Postby trumnausTM » Thu Dec 15, 2011 12:33 pm

Hello
Pmsencoder gives me this error :
DEBUG e.a.m.core.dlna.DLNAResource - External input stream instance is null... sounds not good, waiting 500ms

there is someone that had same error befoure ?

andrea
trumnausTM
 
Posts: 8
Joined: Tue Dec 13, 2011 6:26 pm

Re: sounds not good, waiting 500ms

Postby chocolateboy » Sat Dec 17, 2011 1:34 pm

chocolateboy
Project Member
 
Posts: 2580
Joined: Wed Sep 16, 2009 10:05 am

Re: RTMP - on linux problem !!!

Postby trumnausTM » Wed Dec 21, 2011 4:03 pm

i didn't find any solution to my problem...

/usr/bin/rtmpdump -v -e -o /home/aisac/aisacmediaserver/pmsencoder_downloader_out_1324479288869_340 -r rtmp://192.168.222.190/mpegts/stream_12 ... Sensor_251
it' correcly download

ffmpeg -v 0 -y -threads 2 -i /home/aisac/aisacmediaserver/pmsencoder_downloader_out_1324479288869_340 -threads 2 -target ntsc-dvd /home/aisac/aisacmediaserver/pmsencoder_transcoder_out_1324479288869_340

it's correctly read

but PMS gives me that this error
DLNAResource - External input stream instance is null... sounds not good, waiting 500ms
the input stream from the external transcoder process is null...

please help me :(
trumnausTM
 
Posts: 8
Joined: Tue Dec 13, 2011 6:26 pm


Return to Linux/Unix Support

Who is online

Users browsing this forum: Bing [Bot] and 4 guests