Transcoding issues on Bravia 2010
This is what I could find and what I tested so far:
FLAC, MP3, AVI plays just fine, no issues and no problems.
MKV files stutter constantly as follows:
- Movie appears as AVC if use the default 2010 Bravia profile, or MPEG if I use the "- MKV" profile in the FAQ for Bravia. Fails equally in both modes.
- Stutters on any of the movies I have, they're 1080p and around 10-12gb each. CPU usage is quite high, but not 100% and disk I/O is normal. If I kill ffmpeg process, cpu idles and the movie continues to play so there's encoding "buffer" even with this old CPU, but I still have stuttering
- ifstat shows that the network usage is around 2mb/s, so it's hitting the DLNA limit I assume
However, if I copy the temporary .srt file FFMPEG is generating and rename it with .AVI extension, it appears as AVC (or MPEG2 if using the other profile) and it plays perfectly, no stuttering at all and ifstat shows a network usage above 2.1mb/s almost constantly with 6mb/s peaks.
I believe this might have something to do with the mime type renaming, but I'm quite a newbie in all this and couldn't get any further with the troubleshooting.
Notes:
- I'm using external subtitles
- FFMPEG is being called with this parameters:
ffmpeg -threads 2 -i /Storage/Movies/Seen/Thor.2011.1080p.BluRay.DTS-ES.x264.D-Z0N3/Thor.2011.1080p.BluRay.DTS-ES.x264.D-Z0N3.mkv -y -threads 2 -c:v mpeg2video -b:v 17000k -maxrate:v 17000k -bufsize:v 17000k -vf pad=1920:1080:0:132:black,setdar=4:3,subtitles=filename='/Storage/Movies/UnSeen/Thor.2011.1080p.BluRay.DTS-ES.x264.D-Z0N3/Thor.2011.1080p.BluRay.DTS-ES.x264.D-Z0N3.srt':original_size=1920x816:charenc=UTF-8 -r 24000/1001 -g 15 -c:a ac3 -b:a 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /Storage/tmp/Serviio/transcoding-temp-11017-sonymkv-ORIGINAL-c0ce38ebd5a275216473cb73862ef185.stf
- FFMPEG -i of the original file:
ffmpeg version git-2013-11-04-6cf0c41 Copyright (c) 2000-2013 the FFmpeg developers
built on Nov 4 2013 04:25:56 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-librtmp --enable-libxvid --enable-libass
libavutil 52. 49.100 / 52. 49.100
libavcodec 55. 40.101 / 55. 40.101
libavformat 55. 21.100 / 55. 21.100
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.100 / 3. 90.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Input #0, matroska,webm, from '/Storage/Movies/UnSeen/Thor.2011.1080p.BluRay.DTS-ES.x264.D-Z0N3/Thor.2011.1080p.BluRay.DTS-ES.x264.D-Z0N3.mkv':
Metadata:
creation_time : 2011-09-03 11:11:46
Duration: 01:54:55.20, start: 0.000000, bitrate: 15333 kb/s
- FFMPEG of the temp file
ffmpeg version git-2013-11-04-6cf0c41 Copyright (c) 2000-2013 the FFmpeg developers
built on Nov 4 2013 04:25:56 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-librtmp --enable-libxvid --enable-libass
libavutil 52. 49.100 / 52. 49.100
libavcodec 55. 40.101 / 55. 40.101
libavformat 55. 21.100 / 55. 21.100
libavdevice 55. 5.100 / 55. 5.100
libavfilter 3. 90.100 / 3. 90.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Input #0, mpegts, from 'transcoding2.avi':
Duration: 01:38:20.45, start: 1.436378, bitrate: 14639 kb/s
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 1920x1080 [SAR 3:4 DAR 4:3], max. 17000 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Stream #0:1[0x101](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 384 kb/s
I didn't let the FFMPEG transcoding to finish to save some time, but I've done it before while troubleshooting and works OK.
- I've tested it many times with different movies.
Is there any reason on why there is a difference between playing the transcoding on the fly or by playing it renamed? The temp is being taken as native and doesn't runs ffmpeg.
Thanks, appreciate your help and time.