Jump to content

issue with ios and server


tomk67
Go to solution Solved by Tikuf,

Recommended Posts

tomk67

hi,

 

i have installed mediabrowser today and have an issue with the ios MB Mobile. Streaming via Browser works like a charm but i cannot open a movie with the MB Mobile.

 

I get the following error log:

 

ffmpeg version N-61061-gf34cceb Copyright © 2000-2014 the FFmpeg developers
  built on Mar  4 2014 00:44:56 with gcc 4.8.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 66.101 / 52. 66.101
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.101 / 55. 33.101
  libavdevice    55. 11.100 / 55. 11.100
  libavfilter     4.  2.100 /  4.  2.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Invalid duration specification for itsoffset: 0,001
 
and the server log lookes like this:
 
2014-03-31 01:40:20.4386 Info - App: C:\Users\x\AppData\Roaming\MediaBrowser-Server\ffmpeg\20140304\ffmpeg.exe -itsoffset 0,001  -ss 585.818 -fflags genpts -i file:"V:\MediaBrowser\TV Series\x\Season 1\x s01e01.avi" -ss 1 -map_metadata -1 -threads 2 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -preset ultrafast -b:v 1170106 -maxrate (1170106*.80) -bufsize 1170106 -r 23.976 -vsync vfr -force_key_frames expr:if(isnan(prev_forced_t),gte(t,.1),gte(t,prev_forced_t+5)) -vf "scale=min(iw\,568):trunc(ow/a/2)*2" -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -af "adelay=1,aresample=async=1" -hls_time 10 -start_number 0 -hls_list_size 1440 "V:\MediaBrowser\transcode\a7ae167d-ed54-6232-ec71-ae6dc9a7f4e3.m3u8"  -threads 2 -vn -codec:a:0 libmp3lame -ac 2 -ab 32000 -hls_time 10 -start_number 0 -hls_list_size 1440 "V:\MediaBrowser\transcode\a7ae167d-ed54-6232-ec71-ae6dc9a7f4e3-low.m3u8"
2014-03-31 01:40:20.4826 Info - App: FFMpeg exited with code 1 for V:\MediaBrowser\transcode\a7ae167d-ed54-6232-ec71-ae6dc9a7f4e3.m3u8
2014-03-31 01:40:23.3039 Error - DtoUtils: ServiceBase<TRequest>::Service Exception
Sequence contains no matching element
System.InvalidOperationException
  at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
  at MediaBrowser.Api.UserLibrary.UserLibraryService.GetSession()
  at MediaBrowser.Api.UserLibrary.UserLibraryService.Post(OnPlaybackProgress request)
  at lambda_method(Closure , Object , Object )
  at ServiceStack.Host.ServiceExec`1.<>c__DisplayClass6.<CreateExecFn>b__5(Object service, Object request)
  at ServiceStack.Host.ServiceRunner`1.Execute(IRequest request, Object instance, TRequest requestDto)
 
2014-03-31 01:40:23.3039 Error - HttpServer: Error processing request for /mediabrowser/Users/79e14141ee623c26aa45ff2cf9caea0e/PlayingItems/b0f358977f8a4bb6490b5b143439c940/Progress?PositionTicks=5868180000&IsPaused=false&format=json
Sequence contains no matching element
ServiceStack.HttpError
No Stack Trace Available
 
 
Is this a local confguration problem? I have tried it on 2 different windows 7 ultimate pc. If i copy the command into the windows command window i get the error : Invalid duration specification for itsoffset 0,001
 
Thanks for your help 
 
Best regards Thomas
 
Link to comment
Share on other sites

tomk67

i have tried some different commands and have found out that the following command works.

 

C:\Users\x\AppData\Roaming\MediaBrowser-Server\ffmpeg\20140304\ffmpeg.exe -itsoffset "0.001"   -fflags genpts -i file:"V:\MediaBrowser\TV Series\x\Season 1\x-s01e01.avi" -map_metadata -1 -threads 2 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -preset ultrafast -b:v 1170106 -maxrate (1170106*.80) -bufsize 1170106 -r 23.976 -vsync vfr -force_key_frames expr:if(isnan(prev_forced_t),gte(t,.1),gte(t,prev_forced_t+5)) -vf "scale=min(iw\,568):trunc(ow/a/2)*2" -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -af "adelay=1,aresample=async=1" -hls_time 10 -start_number 0 -hls_list_size 1440 "V:\MediaBrowser\transcode\b2206069-95df-b07c-d8fb-8c599a945933.m3u8"  -threads 2 -vn -codec:a:0 libmp3lame -ac 2 -ab 32000 -hls_time 10 -start_number 0 -hls_list_size 1440 "V:\MediaBrowser\transcode\b2206069-95df-b07c-d8fb-8c599a945933-low.m3u8"

 

so -itsoffset 0,001 does not work but itsoffset "0.001" works. Could that be a problem with austrian localisation on an english windows version?

 

best regards Thomas

  • Like 1
Link to comment
Share on other sites

tomk67

Luke,

 

i have a second problem. The server deletes all mkv avi mp4 files in my media browser directory when i restart the server.

 

This happens two times this day - but not every time when i restart. This is really bad. 

 

I will try to investigate this.

 

best regards Thomas

Link to comment
Share on other sites

That's strange because we don't actually delete files unless you use the delete button

Link to comment
Share on other sites

tomk67

ok i think i have found what the problem is. it was my fault but i think this is important to says! 

 

i have all my video files in :

 

v:\MediaBrowser\TVSeries\...

 

and the mistake i have made was that i have defined the "Server Cache Path" to v:\MediaBrowser. OK this was silly, but maybe you can make a remark in the webinterface that this is not a good idea. 

 

After i have changed this, the problem is gone and the server does not try to delete the files.

 

For me this is not really a problem because this is only for testing purposes, but if you have thousand of video files in the directory than they are gone.

 

greetings thomas

Link to comment
Share on other sites

tomk67

HI,

 

is there a release date for the next server release,

 

Or ist there any other workaround for this problem?

 

I cannot use iphone with the actual server release!

 

Greetings Thomas

Link to comment
Share on other sites

  • Solution
Tikuf

The issue is the , rather than the . the ffmpeg requires as you have stated. The only possible work around (prior to a new release) is to change the localization on you pc.

 

Control Panel -> Region and Language 

 

additional settings change the decimal symbol from a , to a  .

 

I think that should do it (I have not tested it but worth a shot) as a temp fix anyhow.

 

533ab03e31c5c_local.jpg

  • Like 1
Link to comment
Share on other sites

tomk67

hi tikuf,

 

i tried that 2 days ago. but i did'nt reboot the server after the changes in the localisation.

 

after a server reboot it works now, but I cannot really change the setting, because its my development machine.

 

so to everybody who has this problem:

 

change the localisation settings as shown above (if possible) and reboot the mediabrowser server!

 

grettings tom

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...