[Solved] Video transcoding issues in 6.0 - 'hlsjs: Video...'

Need help? Post your questions here.

Moderator: moderators

[Solved] Video transcoding issues in 6.0 - 'hlsjs: Video...'

Postby ratsark » Tue May 10, 2016 6:14 am

TL;DR: If you see the 'hlsjs: Video not properly encoded' error, edit your HTTP Live Streaming command to replace '-map 0:0 -map 0:1' with '-map 0:v:0 -map 0:a:0'

Hi all,

I've noticed transcoding issues with the new player on certain files, and I think I've tracked the issue down to a simple change that can be made to the HTTP Live Streaming command.

I re-ran the ffmpeg command I found in the logs for the video that wouldn't transcode, with verbosity increased. This is the command that should transcode 10 seconds of video, but I found that it would output nothing. After some analysis, it appears that this is because it attempts to transcode the first two streams in the file (-map 0:0 -map 0:1), which in this case are both subtitle tracks. Using a slightly different map syntax (-map 0:v:0 -map 0:a:0) should have the effect of mapping the first video and the first audio stream, which I assume is what was intended.

It seems that updating the HTTP Live Streaming command accordingly fixes the issue. I haven't done a ton of testing yet, but everything I've tried so far seems to work.

If you encounter this issue as well, please let me know whether or not the change worked for you.
ratsark
 
Posts: 4
Joined: Thu Dec 08, 2011 5:51 pm

Re: [Solved] Video transcoding issues in 6.0 - 'hlsjs: Video

Postby sindre_mehus » Tue May 10, 2016 8:18 pm

Cool, I wasn't aware of that syntax. Makes sense to use it both for HLS, downsample and transcoding commands.

Thanks, I'll make these default in the next version.

Sindre
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway


Return to Help

Who is online

Users browsing this forum: No registered users and 13 guests