[SOLVED] Online sources: Invalid Media on Debian...
I can't add online source to Serviio server installed on Debian, but exactly the same URL works on Serviio for Windows.
Validation (Check stream URL) fails and exception appears in logs when I try to add it.
I think that the problem may be connected with special characters in URL: & and @ but I already tried to escape them.
I also noticed error during ffmpeg -i command: "At least one output file must be specified" but not sure if it can affect validation.
RTMP Source (example):
Environment:
- Code:
serviio-1.4.1.2,
Linux 3.4.104+ #3 SMP PREEMPT Wed Nov 19 08:28:34 CET 2014 armv7l GNU/Linux
ffmpeg version git-2015-01-08-a85f033 Copyright (c) 2000-2015 the FFmpeg developers
built on Jan 8 2015 15:29:25 with gcc 4.9.1 (Debian 4.9.1-19)
configuration: --arch=armhf --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree --enable-libaacplus --enable-librtmp --enable-libmp3lame --enable-libass --enable-libopus --enable-libtheora
libavutil 54. 16.100 / 54. 16.100
libavcodec 56. 20.100 / 56. 20.100
libavformat 56. 18.100 / 56. 18.100
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 6.100 / 5. 6.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Serviio log:
- Code:
2015-01-08 20:36:59,349 DEBUG [ActionsServerResource] Action with name 'checkStreamUrl' was requested
2015-01-08 20:36:59,350 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: rtmp://any.domain.tv:80/live/stream?user=anyuser@mail.com&pass=secretpasswordstring swfUrl=http://any.domain.tv/flowplayer.swf pageUrl=http://any.domain.tv live=1
2015-01-08 20:36:59,352 DEBUG [ProcessExecutor] Starting ffmpeg -analyzeduration 10000000 -i rtmp://any.domain.tv:80/live/stream?user=anyuser@mail.com&pass=secretpasswordstring swfUrl=http://any.domain.tv/flowplayer.swf pageUrl=http://any.domain.tv live=1
...
2015-01-08 20:37:12,670 DEBUG [RepositoryServerResource] Updating repository with values: OnlineRepository [repositoryUrl=rtmp://any.domain.tv:80/live/stream?user=anyuser@mail.com&pass=secretpasswordstring swfUrl=http://any.domain.tv/flowplayer.swf pageUrl=http://any.domain.tv live=1, fileType=VIDEO, repoType=LIVE_STREAM, thumbnailUrl=null, repositoryName=stream name, enabled=true, accessGroupIds=[1], order=1, id=null]
2015-01-08 20:37:12,671 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2015-01-08 20:37:12,674 DEBUG [OnlineRepositoryDAOImpl] Creating a new Repository (url = rtmp://any.domain.tv:80/live/stream?user=anyuser@mail.com&pass=secretpasswordstring swfUrl=http://any.domain.tv/flowplayer.swf pageUrl=http://any.domain.tv live=1)
...
2015-01-08 20:37:12,723 DEBUG [OnlineContentCacheDecorator] Stored online content 'rtmp://any.domain.tv:80/live/stream?user=anyuser@mail.com&pass=secretpasswordstring swfUrl=http://any.domain.tv/flowplayer.swf pageUrl=http://any.domain.tv live=1' in the cache (online_feeds), returning it
2015-01-08 20:37:12,725 DEBUG [FeedUpdaterThread] Retrieving information about the video stream 'rtmp://any.domain.tv:80/live/stream?user=anyuser@mail.com&pass=secretpasswordstring swfUrl=http://any.domain.tv/flowplayer.swf pageUrl=http://any.domain.tv live=1'
2015-01-08 20:37:12,726 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: rtmp://any.domain.tv:80/live/stream?user=anyuser@mail.com&pass=secretpasswordstring swfUrl=http://any.domain.tv/flowplayer.swf pageUrl=http://any.domain.tv live=1
2015-01-08 20:37:12,728 DEBUG [ProcessExecutor] Starting ffmpeg -analyzeduration 10000000 -i rtmp://any.domain.tv:80/live/stream?user=anyuser@mail.com&pass=secretpasswordstring swfUrl=http://any.domain.tv/flowplayer.swf pageUrl=http://any.domain.tv live=1
...
2015-01-08 20:37:15,996 DEBUG [FeedUpdaterThread] Marking online item rtmp://any.domain.tv:80/live/stream?user=anyuser@mail.com&pass=secretpasswordstring swfUrl=http://any.domain.tv/flowplayer.swf pageUrl=http://any.domain.tv live=1 as 'invalid essence'
2015-01-08 20:37:15,997 WARN [FeedUpdaterThread] Failed to retrieve online item information for rtmp://any.domain.tv:80/live/stream?user=anyuser@mail.com&pass=secretpasswordstring swfUrl=http://any.domain.tv/flowplayer.swf pageUrl=http://any.domain.tv live=1. It might not play.
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveMetadata(FeedUpdaterThread.java:320)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:237)
at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:116)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
at org.serviio.library.metadata.FFmpegMetadataRetriever.validateMandatoryMetadata(FFmpegMetadataRetriever.java:467)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:100)
at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveOnlineMetadata(FFmpegMetadataRetriever.java:138)
at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveMetadata(FeedUpdaterThread.java:299)
... 2 more
FFMPEG output:
- Code:
ffmpeg -i "rtmp://any.domain.tv:80/live/stream?user=anyuser@mail.com&pass=secretpasswordstring swfUrl=http://any.domain.tv/flowplayer.swf pageUrl=http://any.domain.tv live=1"
ffmpeg version git-2015-01-08-a85f033 Copyright (c) 2000-2015 the FFmpeg developers
built on Jan 8 2015 15:29:25 with gcc 4.9.1 (Debian 4.9.1-19)
configuration: --arch=armhf --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree --enable-libaacplus --enable-librtmp --enable-libmp3lame --enable-libass --enable-libopus --enable-libtheora
libavutil 54. 16.100 / 54. 16.100
libavcodec 56. 20.100 / 56. 20.100
libavformat 56. 18.100 / 56. 18.100
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 6.100 / 5. 6.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Metadata:
Server NGINX RTMP (github.com/arut/nginx-rtmp-module)
width 1280.00
height 720.00
displayWidth 1280.00
displayHeight 720.00
duration 0.00
framerate 25.00
fps 25.00
videodatarate 1500.00
videocodecid 7.00
audiodatarate 128.00
audiocodecid 10.00
Input #0, live_flv, from 'rtmp://any.domain.tv:80/live/stream?user=anyuser@mail.com&pass=secretpasswordstring swfUrl=http://any.domain.tv/flowplayer.swf pageUrl=http://any.domain.tv live=1':
Metadata:
Server : NGINX RTMP (github.com/arut/nginx-rtmp-module)
displayWidth : 1280
displayHeight : 720
fps : 25
profile :
level :
Duration: 00:00:00.00, start: 29910.831000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], 1536 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc
Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 131 kb/s
At least one output file must be specified
Any help will be appreciated
