For FLV streams with H.264 video, the Generic DLNA profile retains the original video and only transcodes the audio, thanks to this:
- Code:
<OnlineTranscoding>
<Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384">
<Matches container="mp4"/>
<Matches container="flv" vCodec="h264"/>
<Matches container="applehttp" vCodec="h264"/>
</Video>
Both the LG profile in Serviio 0.6.2 and the
new profile being developed here do not change this. When the TV tunes in, it reports the video is H.264. So, I added the following to my LG profile:
- Code:
<OnlineTranscoding>
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384" >
<Matches container="flv" />
</Video>
</OnlineTranscoding>
It helped a lot. I can now play most streams. I guess the LG 47LW5600 TV does not like errors in its H.264 bitstream. Now, if there are errors in the incoming bitstream, ffmpeg decodes it into a messed up image and encodes that messed up image into a perfectly valid MPEG2 bitstream. I can keep watching even if the stream has problems occasionally.
The only remaining problem is "source disconnected". I think that means the time needed to start the stream exceeded the TV's timeout, and it thought Serviio stopped responding. It could theoretically be solved by sending blank video immediately, but I think that would require a change in Serviio, and not just a profiles.xml edit.