FAQ  •  Register  •  Login

[SOLVED] Online sources: Invalid Media on Debian...

<<

tomek4

Serviio newbie

Posts: 5

Joined: Thu Jan 08, 2015 9:04 am

Post Thu Jan 08, 2015 8:22 pm

[SOLVED] Online sources: Invalid Media on Debian...

Hi,

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):
  Code:
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


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
Last edited by tomek4 on Thu Jan 15, 2015 8:18 pm, edited 1 time in total.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jan 12, 2015 2:27 pm

Re: Online sources: Invalid Media on Debian but it works on

I think it's due to the FFmpeg being too new for 1.4, it doesn't support 'live_flv' container yet. 1.5 will fix that. So either wait for that or build ffmpeg from the sources provided on the Serviio download page.
<<

tomek4

Serviio newbie

Posts: 5

Joined: Thu Jan 08, 2015 9:04 am

Post Wed Jan 14, 2015 9:38 pm

Re: Online sources: Invalid Media on Debian but it works on

Hi,

thanks for reply.
Indeed, it's a ffmpeg issue.

I tried with another 2 ffmpeg versions and:
- it worked with:
  Code:
ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Copyright (c) 2000-2014 the FFmpeg developers
  built on Apr 26 2014 18:52:58 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --arch=amd64 --disable-stripping --enable-avresample --enable-pthreads --enable-runtime-cpudetect --extra-version='7:1.2.6-1~trusty1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    53.  5.103 / 53.  5.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100


- didn't work with:
  Code:
  ffmpeg version 2.4.1 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep 28 2014 00:05:49 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --ena                                                   ble-version3 --enable-x11grab --enable-libpulse --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb -                                                   -disable-decoder=amrwb --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-li                                                   bopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100


So I have to downgrade my version.
Once again many thanks!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Jan 14, 2015 10:03 pm

Re: Online sources: Invalid Media on Debian but it works on

1.5 is out, so give that a try
<<

tomek4

Serviio newbie

Posts: 5

Joined: Thu Jan 08, 2015 9:04 am

Post Thu Jan 15, 2015 8:17 pm

Re: Online sources: Invalid Media on Debian but it works on

1.5 finally solves the issue. Streams are playable even on Samsung H-series.
Thank you.

Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot] and 71 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.