Jump to content

Playback via WebInterface broken in Version 3.0.5782.0


Recommended Posts

Posted

Since the update of the Server from Version 3.0.5781.8 to 3.0.5782.0 i cannot play any movie (that are trasncoded) via the web interface.

 

Nobody else seems to have this problem, so it seems to be only a problem of my configuration. But i don't know how to fix.

 

In the transcoding log you can see that it is a issue of the parameter "force_key_frames" when calling ffmpeg.

The calling has changed from 3.0.5781.8 to 3.0.5782.0

Version 3.0.5781.?: -force_key_frames expr:gte(t,n_forced*5)
Version 3.0.5782.0: -force_key_frames "expr:gte(t,n_forced*3)"

 

I found an hint in the internet to include an Escape before the comma.

Hint: -force_key_frames "expr:gte(t\,n_forced*3)"

 

May this help?

http://nas:8096/emby/videos/ac79800f6b0f16bef60ab981de9cb0e7/hls1/main/0.ts?DeviceId=fa12ea0f834f81caeb12b285dcf77f59df99d453&MediaSourceId=ac79800f6b0f16bef60ab981de9cb0e7&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&VideoBitrate=348770909&AudioBitrate=320000&MaxAudioChannels=6&MaxHeight=1080&Level=41&Profile=high&PlaySessionId=f95bd9a522034fb59e2c178de2facaa7&api_key=c181696b47a24bd59121bb438b200b1a

{"Protocol":"File","Id":"ac79800f6b0f16bef60ab981de9cb0e7","Path":"/mnt/data2/admin/Filme/Fantasy/Zorn der Titanen.mpg","Type":"Default","Container":"mpg","Name":"480P/MPEG2VIDEO/AC3","RunTimeTicks":52038400000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"mpeg2video","IsInterlaced":false,"BitRate":4817283,"BitDepth":8,"RefFrames":1,"IsDefault":false,"IsForced":false,"Height":576,"Width":720,"AverageFrameRate":25,"RealFrameRate":25,"Profile":"Main","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":8,"IsAnamorphic":false},{"Codec":"ac3","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":384000,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"mp2","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":192000,"Channels":2,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":2,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":4817283,"RequiredHttpHeaders":{}}

/usr/bin/ffmpeg -i file:"/mnt/data2/admin/Filme/Fantasy/Zorn der Titanen.mpg" -map_metadata -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -b:v 4817283 -maxrate 4817283 -bufsize 9634566 -vsync vfr -profile:v high -level 41 -force_key_frames "expr:gte(t,n_forced*3)" -vf "scale=trunc(oh*a/2)*2:min(ih\,1080)" -flags -global_header -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 6 -ab 320000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -y "/var/lib/emby-server/transcoding-temp/6928c149a15bc498bb4b1c397faf41d0.m3u8"


avconv version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
  built on Mar 16 2015 13:20:58 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
[mpeg @ 0x80a75e0] max_analyze_duration reached
Guessed Channel Layout for  Input Stream #0.2 : stereo
Input #0, mpeg, from 'file:/mnt/data2/admin/Filme/Fantasy/Zorn der Titanen.mpg':
  Duration: 01:26:43.80, start: 0.186278, bitrate: 4817 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 5686 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5.1, fltp, 384 kb/s
    Stream #0.2[0x1c1]: Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s
Invalid duration specification for force_key_frames: expr:gte(t
Posted

Actually I think the issue might be that you've got avconv masquerading as ffmpeg. We have never done any testing with avconv and i have never seen this issue with ffmpeg

Posted

Yes, you are right.

I made a link from "/usr/bin/ffmpeg" to "/usr/bin/avconv". As far as i remember i had to do this because ffmpeg is not available in Ubuntu 14.04. It worked with Emby up to 3.0.5781.8.

 

Now i deleted the link and after a restart of Emby it uses "/var/lib/emby-server/ffmpeg/20150917/ffmpeg". This was the solution for my problem. I now have Version 3.0.5784.0 and the movies play again vie Web-Interface.

 

But other applications have no own ffmpeg and they need "/usr/bin/ffmpeg".

 

Is it possible to have "/usr/bin/ffmpeg" and tell emby to use his own "/var/lib/emby-server/ffmpeg/20150917/ffmpeg"?

Posted

i think we might do that in the future

  • 3 months later...
Posted

Yes I think that it will be a very good thing if we can choose if we want's to use emby's ffmpeg or the system ffmpeg or set a path to binary.

 

And by default set the emby's ffmpeg.

 

I've got lots of errors in wheezy when a package installs ffmpeg as a dependancy for example...

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...