Jump to content

External Subtitles on MP4 Files Produces "Video Error"


Recommended Posts

Posted (edited)

Using Server Version 3.0.5135.31685 and logging in through the webclient.

 

When I try to play a video file that's MP4 with an external subtitle file I get a "Video Error: There was an error playing the video" popup. This only started after the most recent server update for me. Wondering if it's happening for anyone else?

 

AVI files with external subs and MKVs with subs encoded work just fine. The MP4 file will play just fine without the subtitle. Only when I click to turn the external subtitle file on does the popup come up, but the file stops playing and I need to hit stop to restart playing the file.

 

Any suggestions or ideas would be appreciated.

 

Should also be noted that I have no issues playing MP4 files with external subtitles in MB3 Classic.

Edited by ESO223
Posted

Debug Server and ffmpeg logs please

Posted

Couple of things.

 

Can you please upload the subs file for community for me please (zipped)

Does this file exist on your system?

C:\Users\Ryan\AppData\Roaming\MediaBrowser-Server\cache\subtitles\5\51a9a1aa-ce56-b779-22f3-29b9071d9dd6.ass

What is the language of the subs file?

Posted

SRT (zipped) is attached. It's in english, and it happens with all external subs on MP4 files. The file you referenced is on my system too. Thanks for the assistance.

Posted

Ok I found a bug which may or may not be related will be looking at it a bit closer and will let you know.

  • 2 weeks later...
Posted

Any update on if the bug is related or a timeline for a fix? Like I said, this only started occuring after the latest MB Server update.

  • 3 weeks later...
Posted

Just a quick update. I upgraded to the new Server Beta (Version 3.0.5168.16132) and am still having the same issue. I know it wasn't mentioned in the major changes, but if it was a bug fix that was included it didn't change anything. Loving the new server though! Thanks for everyone's hard work! Thanks again for helping me figure out this issue.

Posted

Hi,

 

I have exactly the same issue !

Posted

Just for know, it is a webplayer issue or a stream issue ?

Can you tell what webplayer use MB3 ?

Thanks for your help :)

Posted

Webplayer issue. Custom player.

Posted

Aaah ok ! Thanks Tikuf :) I saw many many TV show, that's why i ask !

You know when you think make an update please :) !! I dont want to push you it's juste for Know ;)

Posted (edited)

@@nabsboss few things in the list before it but it will largely depend on @@Luke 's time

Edited by Tikuf
Posted

WHAAAT ??? Tell to Luke top put it on the top list and fix it before midnight !!!

I'm joking :) lol

I understand he do his best ! Thanks Tikuf for take your time too to give us some news ;)

Juste tell us when we can test it please when it will ready ;)

Posted (edited)

Hi,

 

On my tv show, what i don't understand, it's why before 480p 720kbps mb transcode in mp4 with vpx/vorbis

http://localhost:8096/mediabrowser/Videos/8dd117098b52cf6265bfa9c9d2d1c9cc/stream.mp4?audioChannels=2&starttimeticks=1125726650&SubtitleStreamIndex=2&AudioStreamIndex=1&deviceId=2b37a1c9bb4ef4494c5d549b28f3e231639f526d&Static=true&VideoCodec=vpx&AudioCodec=Vorbis&MaxWidth=720&VideoBitrate=872000&AudioBitrate=128000

and at 480p 720kbps, it transcode in webm with vpx/vorbis

http://localhost:8096/mediabrowser/Videos/8dd117098b52cf6265bfa9c9d2d1c9cc/stream.webm?audioChannels=2&starttimeticks=74253530&SubtitleStreamIndex=2&AudioStreamIndex=1&deviceId=2b37a1c9bb4ef4494c5d549b28f3e231639f526d&Static=false&VideoCodec=vpx&AudioCodec=Vorbis&MaxWidth=720&VideoBitrate=572000&AudioBitrate=128000

Trancode must be with mp4 video H264/aac usualy !?

Edited by nabsboss
Posted (edited)

hi,

 

i finaly found where is the issue. Like i said before mp4 is h264/aac and webm is vpx/vorbis.

 

in the transcode log:

2014-03-09 16:42:45.6319 Info - App: C:\Users\Jon\AppData\Roaming\MediaBrowser-Server\ffmpeg\20140304\ffmpeg.exe -ss 4.751999 -fflags genpts -i file:"\\192.168.0.10\Serie\Arrow\Season 02\Arrow.S02E01.HDTV.x264-LOL.mp4" -ss 1 -map 0:0 -map 0:1 -vcodec libx264 -force_key_frames expr:if(isnan(prev_forced_t),gte(t,.1),gte(t,prev_forced_t+5)) -copyts -vf "scale=min(iw\,720):trunc(ow/a/2)*2,ass='C\:/mediabrowser cache/web cache/subtitles/f/f8e4010d-e2d4-90c4-2d49-6e7a70b0e414.ass',setpts=PTS -6/TB" -preset superfast -crf 18 -maxrate 900563 -bufsize 1801126 -r 23.976 -vsync vfr -profile:v baseline -level 3 -map_metadata -1 -threads 0 -acodec aac -strict experimental -ac 2 -ab 120805 -af "adelay=1,aresample=async=1,asetpts=PTS-6/TB" "C:\mediabrowser cache\transcode cache\994fb976-c04e-25dc-c588-42cfef462895.webm"

we saw that for encode to h264/aac we have an output file webm instead of mp4 that is cause the issue.

If i replace webm with mp4, it work like a charm.

 

It is possible to make the change in the code when it is possible please !? i really need to use subtitle with my tv show library !

 

thanks for your help

Edited by nabsboss
Posted (edited)

Hi guys !

 

the test i made before, it was with chrome. Now i tested with mozilla and this time the outpout file is fine in mp4 but the codec used are vpx/vorbis :(

App: C:\Users\Jon\AppData\Roaming\MediaBrowser-Server\ffmpeg\20140304\ffmpeg.exe -ss 7.633874 -fflags genpts -i file:"\\192.168.77.10\Serie\Arrow\Season 02\Arrow.S02E02.HDTV.x264-LOL.mp4" -ss 1 -map 0:0 -map 0:1 -vcodec libvpx -force_key_frames expr:if(isnan(prev_forced_t),gte(t,.1),gte(t,prev_forced_t+5)) -copyts -vf "scale=min(iw\,720):-1,ass='C\:/mediabrowser cache/web cache/subtitles/b/b5e5615e-8f04-d3c8-486e-fdb29941fbfe.ass',setpts=PTS -9/TB" -speed 16 -quality good -profile:v 0 -slices 8 -crf 4 -b:v 893482 -r 23.976 -vsync vfr -map_metadata -1 -threads 2 -acodec libvorbis -ac 2 -ab 125493 -af "adelay=1,aresample=async=1,asetpts=PTS-9/TB" -f mp4 -movflags frag_keyframe+empty_moov "C:\Jon\AppData\Roaming\MediaBrowser-Server\transcoding-temp\1ef4b947-e269-7d92-394b-b0efc240246c.mp4"

So if i resume the video error when i applied subtitle on same mp4 video with same bitrate (480p- 3.5Mbps):

- in chrome we get h264/aac transcode with webm output file instead of mp4 output file

- in mozilla we get vpx/vorbis transcode with mp4 output file instead of h264/aac transcode

- in IE i can't test because i have a video source error

 

By the way in the same video mp4, in a lower bitrate (480p - 1.0 Mbps) the subtitle work (tested only in mozilla).

Like you can see below, the transcode vpx/vorbis with webm output file is good but it's not in mp4 output file with h264/aac :(

App: C:\Users\Jon\AppData\Roaming\MediaBrowser-Server\ffmpeg\20140304\ffmpeg.exe -ss 2.17 -fflags genpts -i file:"\\192.168.77.10\Serie\Arrow\Season 02\Arrow.S02E02.HDTV.x264-LOL.mp4" -ss 1 -map 0:0 -map 0:1 -vcodec libvpx -force_key_frames expr:if(isnan(prev_forced_t),gte(t,.1),gte(t,prev_forced_t+5)) -copyts -vf "scale=min(iw\,720):-1,ass='C\:/mediabrowser cache/web cache/subtitles/b/b5e5615e-8f04-d3c8-486e-fdb29941fbfe.ass',setpts=PTS -3/TB" -speed 16 -quality good -profile:v 0 -slices 8 -crf 4 -b:v 872000 -r 23.976 -vsync vfr -map_metadata -1 -threads 2 -acodec libvorbis -ac 2 -ab 125493 -af "adelay=1,aresample=async=1,asetpts=PTS-3/TB" "C:\Users\Jon\AppData\Roaming\MediaBrowser-Server\transcoding-temp\5aa66904-52ad-d0b3-5a8f-ff187879ae65.webm"

Hope it will help !

Edited by nabsboss
Posted

Yes that is the bug i mentioned earlier in the thread we just haven't gotten to fixing yet sorry but it will be soon.

  • 2 weeks later...
Posted

OK thanks ! Let me know when it will be fixed and if you need some test !

  • 4 weeks later...
Posted

OOh it works great :) thanks a lot !!!

 

It is possible to have a feature to change the size and the subtitle font ?

Posted

it is being worked on, thank you for the report.

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