Profile - transcode based on overall bit rate mode status
I recenty purchased my 1st. "smart" TV - Panasonic Viera (TX-L42E30B 2011) and I've been exploring its DLNA capabilities.
I particulary wanted to be able to use my Panny to access a growing library of movies stored on a networked server (Intel i7 quad 12GB Windows 7 ultimate x64).
I eventualy came upon Serviio which appears to meet my needs far better than other software free/fee that I looked at.
Most of my movies are stored as MKV files of varying quality and size.
I'm very pleased to say that with the advice and guidance within this forum, I've been able to play most movies using native support on the TV using a very slightly tweaked version of cerberus' profile (viewtopic.php?f=13&t=5119).
I have previously remuxed each MKV file (using MKVMerge - painless and quick) to remove any header compression as I understand that DLNA does not support header compression.
I've even found that the Panny has native support for subtitles and plays them fine as long as I don't transcode them!
So what's my problem?
Normally the Panny happily handles these movies very well including pause, restart, fast forward and fast reverse. However, for just a few movies, these navigation functions do not work. For these movies, pause works, but resume, fast forward or fast reverse will result in restarting the movie from its beginning.
After inspecting these problem MKV files (with MediaInfo) I've concluded that it is only MKV files that were originally encoded with "Overall Bit Rate Mode=Variable" that cause a problem. This may be a specific problem with my Panny, but I think its just a transport stream restriction?
So what do I want?
I really like the fact that Serviio presents 95% of my library to play native on the TV - that helps my network and keeps my server cool!
Ideally
>I would like an option in the Serviio profile so that I can select transcoding just for MKV files with "Variable Overall Bit Rate Mode".
>Now I realise this would probably involve additional inspection of the MKV file.
>I threw together a batch script using the command line version of MediaInfo to run through my library and identify all my problem MKV files.
Or 2nd best
>A method of providing a "user exit" which would hand over to a user written script where the decision to re-render or not can be made.
ps - here's a tested quick and dirty native ffmpeg cmd that rerenders to a reasonable quality and removes "Variable Bit Rate Mode" ...
ffmpeg.exe -i "input_file_path\filename.mkv" -y -threads 6 -async 1 -vcodec libx264 -coder 1 -flags +loop -cmp +chroma -partitions -parti8x8+parti4x4+partp8x8+partp4x4-partb8x8 -me_method hex -subq 5 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -wpredp 2 -vf "pad=max(iw\,ih*16/9):max(ih\,iw/16*9):(ow-iw)/2:(oh-ih)/2:black[out]" -acodec ac3 -ab 192k -ac 6 -copyts -scodec copy -map 0 "output_file_path\filename.MKV"
pps - above padding options provided by Illico within this forum.
Render: Panasonic Viera TX-L42E30B + DMP-BDT210 + Jelly Bean 4.1 Tablet + Onkyo TX-NR616 | Server: Intel i5 Win 7 ult x64 | NW: Homeplug @ 175 Mbps