Jump to content

cannot play video on debian 7.8


helpmeemby
 Share

Go to solution Solved by Luke,

Recommended Posts

helpmeemby

Here is the error log:

 

{"Protocol":"File","Id":"4b6a884d0d614c061a2f4711467d341c","Path":"/tmp/testvideos/big_buck_bunny_720p_stereo.avi","Type":"Default","Container":"avi","Name":"","ReadAtN$


/usr/bin/ffmpeg -fflags +genpts -i file:"/tmp/testvideos/big_buck_bunny_720p_stereo.avi" -sn -codec:v:0 libx264 -force_key_frames expr:gte(t,n_forced*5) -pix_fmt yuv420$




ffmpeg version 1.0.10 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jul 25 2014 07:50:40 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc$
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, avi, from 'file:/tmp/testvideos/big_buck_bunny_720p_stereo.avi':
  Metadata:
    encoder         : MEncoder 2:1.0~rc2-0ubuntu13
  Duration: 00:09:56.45, start: 0.000000, bitrate: 3815 kb/s
    Stream #0:0: Video: msmpeg4v2 (MP42 / 0x3234504D), yuv420p, 1280x720, 24 tbr, 24 tbn, 24 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 245 kb/s
Invalid duration specification for force_key_frames: expr:gte(t

 

Link to comment
Share on other sites

Hi, your installed ffmpeg is extremely old, so i would start by updating that

ffmpeg version 1.0.10 Copyright (c) 2000-2014 the FFmpeg developers
Link to comment
Share on other sites

helpmeemby

I have upgraded to v3.0.2. I still get the error when I play the video and log appears to be less helpful at this time.

{"Protocol":"File","Id":"4b6a884d0d614c061a2f4711467d341c","Path":"/tmp/testvideos/big_buck_bunny_720p_stereo.avi","Type":"Default","Container":"avi","Name":"","ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[],"PlayableStreamFileNames":[],"Formats":[],"RequiredHttpHeaders":{}}

/usr/bin/ffmpeg -fflags +genpts -i file:"/tmp/testvideos/big_buck_bunny_720p_stereo.avi" -sn -codec:v:0 libx264 -force_key_frames expr:gte(t,n_forced*5) -pix_fmt yuv420p -preset superfast -crf 23 -b:v 88466127 -maxrate 88466127 -bufsize 176932254 -vsync vfr -profile:v high -level 51 -map_metadata -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 320000 -af "aresample=async=1" -y "/var/lib/emby-server/transcoding-temp/95f31898ac2f98e4fdebd223e5b09437.mkv"

I used these flags to build ffmpeg

./configure --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libspeex --enable-shared --enable-pthreads --enable-libopenjpeg --enable-libfaac --enable-nonfree
Link to comment
Share on other sites

it probably failed to start. make sure execute permissions have been granted on it.

 

outside of that you'd have to provide the complete emby server log for us to be able to offer any sort of insight.

Link to comment
Share on other sites

helpmeemby

This is what I found in the server log:

 

2016-06-09 07:44:15.3281 Info App: /usr/bin/ffmpeg -fflags +genpts -i file:"/tmp/testvideos/big_buck_bunny_720p_stereo.avi" -sn -codec:v:0 libx264 -force_key_frames expr:gte(t,n_forced*5) -pix_fmt yuv420p -preset superfast -crf 23 -b:v 82707027 -maxrate 82707027 -bufsize 165414054 -vsync vfr -profile:v high -level 51 -map_metadata -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 320000 -af "aresample=async=1" -y "/var/lib/emby-server/transcoding-temp/34a6dd6871944e42d8dfcacbabfbd7f0.mkv"

2016-06-09 07:44:15.3312 Error App: Error starting ffmpeg
*** Error Report ***
Version: 3.0.5972.0
Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
Operating system: Unix 3.14.32.6
Processor count: 4
64-Bit OS: True
64-Bit Process: True
Program data path: /var/lib/emby-server
Mono: 4.2.1 (Stable 4.2.1.102/6dd2d0d Fri Dec  4 18:45:15 UTC 2015)
Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
ApplicationName='/usr/bin/ffmpeg', CommandLine='-fflags +genpts -i file:"/tmp/testvideos/big_buck_bunny_720p_stereo.avi" -sn -codec:v:0 libx264 -force_key_frames expr:gte(t,n_forced*5) -pix_fmt yuv420p -preset superfast -crf 23 -b:v 82707027 -maxrate 82707027 -bufsize 165414054 -vsync vfr -profile:v high -level 51 -map_metadata -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 320000 -af "aresample=async=1" -y "/var/lib/emby-server/transcoding-temp/34a6dd6871944e42d8dfcacbabfbd7f0.mkv"', CurrentDirectory='', Native error= Cannot find the specified file
System.ComponentModel.Win32Exception
 at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) <0x40a9ce50 + 0x00f43> in <filename unknown>:0 
 at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) <0x40a9ccc0 + 0x000b3> in <filename unknown>:0 
 at System.Diagnostics.Process.Start () <0x40a9cc40 + 0x0004b> in <filename unknown>:0 
 at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
 at MediaBrowser.Api.Playback.BaseStreamingService+<StartFfMpeg>c__async1.MoveNext () <0x41f2f540 + 0x019ab> in <filename unknown>:0 
 
2016-06-09 07:44:15.3342 Error DtoUtils: ServiceBase<TRequest>::Service Exception
*** Error Report ***
Version: 3.0.5972.0
Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
Operating system: Unix 3.14.32.6
Processor count: 4
64-Bit OS: True
64-Bit Process: True
Program data path: /var/lib/emby-server
Mono: 4.2.1 (Stable 4.2.1.102/6dd2d0d Fri Dec  4 18:45:15 UTC 2015)
Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
ApplicationName='/usr/bin/ffmpeg', CommandLine='-fflags +genpts -i file:"/tmp/testvideos/big_buck_bunny_720p_stereo.avi" -sn -codec:v:0 libx264 -force_key_frames expr:gte(t,n_forced*5) -pix_fmt yuv420p -preset superfast -crf 23 -b:v 82707027 -maxrate 82707027 -bufsize 165414054 -vsync vfr -profile:v high -level 51 -map_metadata -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 320000 -af "aresample=async=1" -y "/var/lib/emby-server/transcoding-temp/34a6dd6871944e42d8dfcacbabfbd7f0.mkv"', CurrentDirectory='', Native error= Cannot find the specified file
System.ComponentModel.Win32Exception
 at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) <0x40a9ce50 + 0x00f43> in <filename unknown>:0 
 at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) <0x40a9ccc0 + 0x000b3> in <filename unknown>:0 
 at System.Diagnostics.Process.Start () <0x40a9cc40 + 0x0004b> in <filename unknown>:0 
 at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
 at MediaBrowser.Api.Playback.BaseStreamingService+<StartFfMpeg>c__async1.MoveNext () <0x41f2f540 + 0x019ab> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x633d3d5ff6d0 + 0x00029> in <filename unknown>:0 
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x633d3d5fd6b0 + 0x000a7> in <filename unknown>:0 
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x633d3d5fd630 + 0x0006b> in <filename unknown>:0 
 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x633d3d5fd5e0 + 0x0003a> in <filename unknown>:0 
 at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x633d3d5fdd10 + 0x00017> in <filename unknown>:0 
 at MediaBrowser.Api.Playback.Progressive.BaseProgressiveStreamingService+<GetStreamResult>c__async1.MoveNext () <0x41f2e030 + 0x00990> in <filename unknown>:0 
 
2016-06-09 07:44:15.3349 Error HttpServer: Error processing request for /emby/videos/4b6a884d0d614c061a2f4711467d341c/stream.mkv?DeviceId=c2a1593ac9a34860fc192aeb0bc617b8&MediaSourceId=4b6a884d0d614c061a2f4711467d341c&VideoCodec=h264&AudioCodec=mp3&VideoBitrate=82707027&AudioBitrate=320000&MaxAudioChannels=6&Level=51&Profile=high&PlaySessionId=cb3a9d5e347c43e1a3eb08a9d658ad74&api_key=cc82da9525924acc8a18af398aee678c&CopyTimestamps=true&ForceLiveStream=false
*** Error Report ***
Version: 3.0.5972.0
Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
Operating system: Unix 3.14.32.6
Processor count: 4
64-Bit OS: True
64-Bit Process: True
Program data path: /var/lib/emby-server
Mono: 4.2.1 (Stable 4.2.1.102/6dd2d0d Fri Dec  4 18:45:15 UTC 2015)
Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
ApplicationName='/usr/bin/ffmpeg', CommandLine='-fflags +genpts -i file:"/tmp/testvideos/big_buck_bunny_720p_stereo.avi" -sn -codec:v:0 libx264 -force_key_frames expr:gte(t,n_forced*5) -pix_fmt yuv420p -preset superfast -crf 23 -b:v 82707027 -maxrate 82707027 -bufsize 165414054 -vsync vfr -profile:v high -level 51 -map_metadata -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 320000 -af "aresample=async=1" -y "/var/lib/emby-server/transcoding-temp/34a6dd6871944e42d8dfcacbabfbd7f0.mkv"', CurrentDirectory='', Native error= Cannot find the specified file
ServiceStack.HttpError
No Stack Trace Available
 
Link to comment
Share on other sites

  • Solution
Cannot find the specified file

So either ffmpeg does not exist at 

/usr/bin/ffmpeg

or the emby process does not have permission to execute it. the emby package creates a system user called Emby, this is the system user that the server process runs under. So you need to make sure the emby system user has permission to execute it.

  • Like 1
Link to comment
Share on other sites

helpmeemby

thanks a lot it seemed to solve the video problem, but i still cannot play mp3 files. i will start a new thread for this.

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
 Share

×
×
  • Create New...