FAQ  •  Register  •  Login

Media Browser will not stream any files

<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Aug 04, 2012 10:50 am

Re: Media Browser will not stream any files

yes, enable detailed log and play thye file again. then try to run the FFmpeg command and post the error
<<

FastLaneJB

Serviio newbie

Posts: 10

Joined: Wed Feb 09, 2011 1:43 pm

Post Sat Aug 04, 2012 4:10 pm

Re: Media Browser will not stream any files

Hi Zip,

I've got debug logging enabled but don't see the ffmpeg command that it's trying to run in the logs. What I posted before was with debug logging enabled. That does change what's logged, if I turn it back to INFO I get a lot less information.

Is detail loggined a different option to debug?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Aug 05, 2012 5:28 pm

Re: Media Browser will not stream any files

the log you sent wad detailed, the ffmpeg command would be further up in the log though
<<

FastLaneJB

Serviio newbie

Posts: 10

Joined: Wed Feb 09, 2011 1:43 pm

Post Mon Aug 06, 2012 6:19 pm

Re: Media Browser will not stream any files

Hi Zip,

OK I found the command. It's a long way up which is why I must have not noticed it before.

So for the Medium setting which works the command is (Filename changed)...

  Code:
ffmpeg.exe -i C:\Folder\file.mkv -y -copyts -c:v flv -b:v 1000k -vf scale=853:480 -r 24000/1001 -g 15 -c:a libmp3lame -b:a 192k -ar 44100 -ac 2 -map 0:0 -map 0:1 -sn -f flv C:\Windows\TEMP\Serviio\transcoding-temp-1-flv_player-MEDIUM.stf


and for Original which doesn't work it's...

  Code:
ffmpeg.exe -i C:\Folder\file.mkv -y -copyts -c:v copy -c:a libmp3lame -b:a 192k -ar 44100 -ac 2 -map 0:0 -map 0:1 -sn -f flv C:\Windows\TEMP\Serviio\transcoding-temp-1-flv_player-ORIGINAL.stf


The ffmpeg output with the error at the end...

  Code:
ffmpeg version N-42368-gbf53863 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 10 2012 03:40:45 with gcc 4.6.3
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pk
g-config
  libavutil      51. 64.100 / 51. 64.100
  libavcodec     54. 33.100 / 54. 33.100
  libavformat    54. 15.102 / 54. 15.102
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  1.100 /  3.  1.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
Input #0, matroska,webm, from 'C:\Folder\file.mkv':
  Metadata:
    creation_time   : 2010-12-10 14:15:37
  Duration: 00:03:45.27, start: 0.000000, bitrate: 14504 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9],
 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      title           : File
    Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), s16, 768 kb/s (default)
    Metadata:
      title           : DTS 5.1 @ 768 kbps
    Stream #0:2(eng): Subtitle: text
    Stream #0:3(fre): Subtitle: text
    Stream #0:4(spa): Subtitle: text
[graph 0 input from stream 0:1 @ 02BC52E0] tb:1/48000 samplefmt:s16 samplerate:4
8000 chlayout:0x60f
[auto-inserted resampler 0 @ 003DF000] chl:5.1(side) fmt:s16 r:48000Hz -> chl:stereo fmt:s16 r:44100Hz
Output #0, flv, to 'C:\Windows\TEMP\Serviio\transcoding-temp-1-flv_player-ORIGINAL.stf':
  Metadata:
    encoder         : Lavf54.15.102
    Stream #0:0(eng): Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 1920x1080 [S
AR 1:1 DAR 16:9], q=2-31, 23.98 fps, 1k tbn, 1k tbc
    Metadata:
      title           : File
    Stream #0:1(eng): Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, stereo, s16,
 192 kb/s (default)
    Metadata:
      title           : DTS 5.1 @ 768 kbps
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (dca -> libmp3lame)
Press [q] to stop, [?] for help
[libmp3lame @ 0308CBA0] Que input is backward in time
[flv @ 02C8A5A0] pts (42) < dts (83) in stream 0
av_interleaved_write_frame(): Invalid argument


Guess I could fiddle with the command line to see what might fix it but the end result still needs to go into Serviio. Or is it maybe a problem with the ffmpeg build bundled with Windows?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Aug 06, 2012 11:04 pm

Re: Media Browser will not stream any files

you can play with the command, but this (pts < dts) is usually present when remuxing (codec copy), mostly mkv files - FFmpeg devs dont consider this a bug and blame file not being encoded properly - which is fair enough.
<<

FastLaneJB

Serviio newbie

Posts: 10

Joined: Wed Feb 09, 2011 1:43 pm

Post Tue Aug 07, 2012 9:55 am

Re: Media Browser will not stream any files

Yeah I did a bit of Googling and it seemed it's all to do with ffmpeg. That's fair enough and completely out of your hands anyway.

Thanks for your help Zip. :)
<<

mayhem2408

Streaming enthusiast

Posts: 24

Joined: Thu Mar 22, 2012 5:00 am

Post Fri Aug 10, 2012 4:46 am

Re: Media Browser will not stream any files

I am having the same problem. I have just finished compiling ffmpeg from the sources on the download page.

I have found the reason I am getting the error, but can't fix it myself. See the Log Below
  Code:
2012-08-10 14:27:34,146 DEBUG [MediaItemDAOImpl] Getting file of media item 408
2012-08-10 14:27:34,148 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /mnt/user/Movies/AVP (2004) 1080p.h264.ac3.sup.chap.mkv
2012-08-10 14:27:34,149 DEBUG [ProcessExecutor] Starting ffmpeg -i /mnt/user/Movies/AVP (2004) 1080p.h264.ac3.sup.chap.mkv -y -copyts -c:v copy -c:a libmp3lame -b:a 192k -ar 44100 -ac 2 -map 0:0 -map 0:1 -sn -f flv /mnt/user/tmp/Serviio/Serviio/transcoding-temp-408-flv_player-ORIGINAL.stf
2012-08-10 14:27:34,151 ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory
2012-08-10 14:27:41,941 WARN  [ServiioStatusService] IOException occured. Returning error code 500 to the REST layer. Message: Transcoded file '/mnt/user/tmp/Serviio/Serviio/transcoding-temp-408-flv_player-ORIGINAL.stf' cannot be found, FFmpeg execution probably failed


You can see the ffmpeg command line is
  Code:
ffmpeg -i /mnt/user/Movies/AVP (2004) 1080p.h264.ac3.sup.chap.mkv -y -copyts -c:v copy -c:a libmp3lame -b:a 192k -ar 44100 -ac 2 -map 0:0 -map 0:1 -sn -f flv /mnt/user/tmp/Serviio/Serviio/transcoding-temp-408-flv_player-ORIGINAL.stf


If I run this at the prompt, it fails with the error.
  Code:
-bash: syntax error near unexpected token '('


If I put double quotes around the input filename like this
  Code:
ffmpeg -i "/mnt/user/Movies/AVP (2004) 1080p.h264.ac3.sup.chap.mkv" -y -copyts -c:v copy -c:a libmp3lame -b:a 192k -ar 44100 -ac 2 -map 0:0 -map 0:1 -sn -f flv /mnt/user/tmp/Serviio/Serviio/transcoding-temp-408-flv_player-ORIGINAL.stf

It works perfectly and I get a nice stf file at the end of it which will play perfectly in VLC.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Aug 10, 2012 9:58 am

Re: Media Browser will not stream any files

the problem is this:

  Code:
ERROR [ProcessExecutor] Fatal error in process starting: Cannot run program "ffmpeg": java.io.IOException: error=2, No such file or directory


ffmpeg is not a the path (at least for the user/process). So either add ffmpeg to the path or use ffmpeg.location system property (http://www.serviio.org/index.php?option ... icle&id=43)
<<

mayhem2408

Streaming enthusiast

Posts: 24

Joined: Thu Mar 22, 2012 5:00 am

Post Sun Aug 12, 2012 10:38 pm

Re: Media Browser will not stream any files

I have made sure that ffmpeg is in the path. I do not get the error anymore. Just the spinning circle waiting to play. In the tmp folder, the stf file is being created and getting larger. I'll get another detailed log and post it shortly.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Aug 12, 2012 11:26 pm

Re: Media Browser will not stream any files

Try a different browser. Also make sure you don't have RealPlayer installed.
<<

mayhem2408

Streaming enthusiast

Posts: 24

Joined: Thu Mar 22, 2012 5:00 am

Post Tue Aug 14, 2012 2:36 am

Re: Media Browser will not stream any files

Interesting. It works OK in Firefox 14, but does not work in IE 9 or Google Chrome.

In IE9, the Flowplayer sits there with the spinning circle, thinking.
In Google Chrome, the flowplayer does not show, Just a grey blank panel.

It also works in ServiiGo (I know it's not your software, but interesting to note)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Aug 14, 2012 12:13 pm

Re: Media Browser will not stream any files

It might be down to Flash plugin version, for example. Also latest Flash doesn't work well with RealPlayer, so if you have that installed, remove it.
<<

javaxprt

Serviio newbie

Posts: 8

Joined: Sun Dec 23, 2012 2:30 pm

Post Sun Dec 23, 2012 2:39 pm

Re: Media Browser will not stream any files

I followed this thread because I'm getting the same error. Rebuilding ffmpeg didn't help. I cant play any of my files in mediabrowser.
Some info here:
Linux thinkpad 2.6.32-45-generic #101-Ubuntu SMP Mon Dec 3 15:39:38 UTC 2012 x86_64 GNU/Linux
ffmpeg version N-42368-gbf53863 Copyright (c) 2000-2012 the FFmpeg developers
built on Dec 23 2012 09:05:52 with gcc 4.4.3
configuration:
libavutil 51. 64.100 / 51. 64.100
libavcodec 54. 33.100 / 54. 33.100
libavformat 54. 15.102 / 54. 15.102
libavdevice 54. 1.100 / 54. 1.100
libavfilter 3. 1.100 / 3. 1.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100

Switched on the DEBUG. Don't see any errors. Strange.

Any thoughts ?

Thanks.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Dec 23, 2012 2:41 pm

Re: Media Browser will not stream any files

What does it do when you say it can't play any files?
<<

javaxprt

Serviio newbie

Posts: 8

Joined: Sun Dec 23, 2012 2:30 pm

Post Sun Dec 23, 2012 8:25 pm

Re: Media Browser will not stream any files

Screenshot.png
Here's the screen shot. This happens each time with every file I try to play. Some of the files are over 20GB btw. Does that make any difference?
Screenshot.png (364.14 KiB) Viewed 9567 times


Grep returns this from the log:

akirillov > grep error /usr/share/serviio/log/serviio.log
2012-12-23 15:23:06,199 WARN [ProcessExecutor] Process ffmpeg has a return code of 1! This is a possible error.
2012-12-23 15:23:13,539 WARN [ServiioStatusService] IOException occured. Returning error code 500 to the REST layer. Message: Transcoded file '/tmp/Serviio/transcoding-temp-52-flv_player-MEDIUM.stf' cannot be found, FFmpeg execution probably failed
2012-12-23 15:23:13,663 WARN [ServiioStatusService] IOException occured. Returning error code 500 to the REST layer. Message: Transcoded file '/tmp/Serviio/transcoding-temp-52-flv_player-MEDIUM.stf' cannot be found, FFmpeg execution probably failed
2012-12-23 15:23:13,769 WARN [ServiioStatusService] IOException occured. Returning error code 500 to the REST layer. Message: Transcoded file '/tmp/Serviio/transcoding-temp-52-flv_player-MEDIUM.stf' cannot be found, FFmpeg execution probably failed
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Dec 24, 2012 11:47 am

Re: Media Browser will not stream any files

Ffmpeg failed. Do you have a recent version? If yes, enable detailed log, find the failing ffmpeg command and execute it manually
<<

javaxprt

Serviio newbie

Posts: 8

Joined: Sun Dec 23, 2012 2:30 pm

Post Mon Dec 24, 2012 2:42 pm

Re: Media Browser will not stream any files

I have enabled debug, but I don't see any exceptions in the log. Is there some other log I should look in?
<<

javaxprt

Serviio newbie

Posts: 8

Joined: Sun Dec 23, 2012 2:30 pm

Post Mon Dec 24, 2012 2:48 pm

Re: Media Browser will not stream any files

Here's what I found:

akirillov > ffmpeg -threads auto -i /media/storage/video/movies/Total\ Recall\ \(2012,\ HD\).mkv -y -copyts -c:v flv -b:v 1000k -maxrate:v 1000k -bufsize:v 1000k -vf scale=854:480 -r 24000/1001 -g 15 -c:a libmp3lame -b:a 192k -ar 44100 -ac 2 -map 0:0 -map 0:1 -sn -f flv /tmp/Serviio/transcoding-temp-22-flv_player-MEDIUM.stf
ffmpeg version N-42368-gbf53863 Copyright (c) 2000-2012 the FFmpeg developers
built on Dec 23 2012 09:05:52 with gcc 4.4.3
configuration:
libavutil 51. 64.100 / 51. 64.100
libavcodec 54. 33.100 / 54. 33.100
libavformat 54. 15.102 / 54. 15.102
libavdevice 54. 1.100 / 54. 1.100
libavfilter 3. 1.100 / 3. 1.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
Input #0, matroska,webm, from '/media/storage/video/movies/Total Recall (2012, HD).mkv':
Metadata:
title : Total Recall (2012)
creation_time : 2012-11-12 01:28:19
Duration: 02:10:16.32, start: 0.000000, bitrate: 23647 kb/s
Chapter #0.0: start 0.000000, end 525.775000
Metadata:
title : Chapter 1
Chapter #0.1: start 525.775000, end 1080.704000
Metadata:
title : Chapter 2
Chapter #0.2: start 1080.704000, end 1453.243000
Metadata:
title : Chapter 3
Chapter #0.3: start 1453.243000, end 1879.877000
Metadata:
title : Chapter 4
Chapter #0.4: start 1879.877000, end 2394.266000
Metadata:
title : Chapter 5
Chapter #0.5: start 2394.266000, end 2738.819000
Metadata:
title : Chapter 6
Chapter #0.6: start 2738.819000, end 2985.607000
Metadata:
title : Chapter 7
Chapter #0.7: start 2985.607000, end 3492.280000
Metadata:
title : Chapter 8
Chapter #0.8: start 3492.280000, end 3940.185000
Metadata:
title : Chapter 9
Chapter #0.9: start 3940.185000, end 4506.960000
Metadata:
title : Chapter 10
Chapter #0.10: start 4506.960000, end 4865.109000
Metadata:
title : Chapter 11
Chapter #0.11: start 4865.109000, end 5243.112000
Metadata:
title : Chapter 12
Chapter #0.12: start 5243.112000, end 5865.776000
Metadata:
title : Chapter 13
Chapter #0.13: start 5865.776000, end 6197.649000
Metadata:
title : Chapter 14
Chapter #0.14: start 6197.649000, end 6689.682000
Metadata:
title : Chapter 15
Chapter #0.15: start 6689.682000, end 7816.320000
Metadata:
title : Chapter 16
Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1(rus): Audio: ac3, 48000 Hz, 5.1(side), s16, 640 kb/s (default)
Metadata:
title : AC3 5.1 @ 640 kbps - Дублированный
Stream #0:2(ukr): Audio: ac3, 48000 Hz, 5.1(side), s16, 640 kb/s
Metadata:
title : AC3 5.1 @ 640 kbps - Дублированный
Stream #0:3(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s16, 1536 kb/s
Metadata:
title : DTS-HD MA 5.1 @ 2467 kbps
Stream #0:4(eng): Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Metadata:
title : Commentary
Stream #0:5(rus): Subtitle: text (default)
Metadata:
title : captions
Stream #0:6(rus): Subtitle: text
Stream #0:7(ukr): Subtitle: text
Metadata:
title : captions
Stream #0:8(eng): Subtitle: text
Stream #0:9(rus): Subtitle: text
Metadata:
title : Commentary
Stream #0:10: Attachment: mjpeg
Metadata:
filename : cover.jpg
mimetype : image/jpeg

Unknown encoder 'libmp3lame'
<<

javaxprt

Serviio newbie

Posts: 8

Joined: Sun Dec 23, 2012 2:30 pm

Post Mon Dec 24, 2012 2:51 pm

Re: Media Browser will not stream any files

And one more question: I see in the log output that this ffmpeg command runs with unescaped spaces and parenthesis in video file name - is that OK?
<<

javaxprt

Serviio newbie

Posts: 8

Joined: Sun Dec 23, 2012 2:30 pm

Post Mon Dec 24, 2012 3:24 pm

Re: Media Browser will not stream any files

All is well now. I've recompiled ffmpeg with --enable-libmp3lame. It works perfectly now.
Thanks. :)
PreviousNext

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 33 guests

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