Video - File not found or Access denied - debugging

General discussions.

Moderator: moderators

Video - File not found or Access denied - debugging

Postby squashed » Mon Dec 29, 2014 10:56 am

I have come to understand that the error message 'File not found or access denied' in the JW Player is a general purpose message and covers just about all failures.

So - not really that helpful and typically nothing to do with 'Access denied' at all. In reality it's 'file not found' but not with reference to the video file but the temporary file created by the transcoding (which is probably stdout).

Regardless of your OS version or type I found the single most useful thing to do is to insert the switch '-report' into the transcoder settings in Subsonic.

To help with your debugging do this:-

1. Go into Subsonic and head over to 'Settings' ... 'Players'
2. Delete all the players for this account except for just one.
3. In the settings for that one player under 'active transcodings' untick the mkv option leaving just flv/h264 checked (and mp3 audio).
4. 'Save'
5. next go to 'transcodings'
6. pick the flv/h264 transcode line (ffmpeg -ss %o -i %s -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -c:v libx264 -preset superfast -threads 0 -)
7. insert '-report' before '-async' (ffmpeg -ss %o -i %s -report -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -c:v libx264 -preset superfast -threads 0 -)
8. 'save'

Go back to your video and attempt to play. Get the error 'file not found....' - check that that the player reference is correct in the error message.

Now go to your backend Subsonic server and hunt down the log file generated by the ffmpeg. I have Windows XP and mine was in .../program files/subsonic/ffmpeg_<date_time>.log

The log file is great - it has every switch and how it's been interpreted and mine had this:-

Code: Select all
:
:
:
[graph 1 aresample for input stream 0:1 @ 02f37620] ch:2 chl:stereo fmt:s16p r:44100Hz -> ch:2 chl:stereo fmt:s16p r:44100Hz
[libx264 @ 0300db40] your cpu does not support SSE1, but x264 was compiled with asm
[libx264 @ 0300db40] to run x264, recompile without asm (configure --disable-asm)
Output #0, flv, to 'pipe:':
    Stream #0:0, 0, 0/0: Video: h264, none, q=2-31, 128 kb/s, SAR 1:1 DAR 0:0, 25 fps
    Metadata:
      encoder         : Lavc56.19.100 libx264
    Stream #0:1, 0, 0/0: Audio: mp3, 0 channels, 128 kb/s
    Metadata:
      encoder         : Lavc56.19.100 libmp3lame
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (mp2 (native) -> mp3 (libmp3lame))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[AVIOContext @ 02ffbf60] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 02f31060] Statistics: 1986704 bytes read, 5 seeks


Clue 1 was : at the bottom 'Error opening output stream' - ok so now I understand 'File not found' - but why.
Clue 2 was : above [libx264...] your CPU does not support SSE1 (whatever that is)

So for me the fix was simple. Back into Subsonic - take off the '-report' switch and remove the '-c:v libx264' switch

Now it works fine.

I've done no further testing at all - which I will do - but i thought this would help.

Mike
squashed
 
Posts: 12
Joined: Sun Jul 18, 2010 3:51 pm

Re: Video - File not found or Access denied - debugging

Postby blueturtles » Mon Dec 29, 2014 3:23 pm

Great write up. Can't wait to try it out. Thanks.
User avatar
blueturtles
 
Posts: 57
Joined: Thu Nov 04, 2010 10:40 pm


Return to General

Who is online

Users browsing this forum: No registered users and 13 guests