New data in.
I tested with a h264 sample from different source;
The Simpsons Movie – 720p Trailer, and albeit there was bit of a struggle to maintain audio sync, it didn't stutter at all.
For this sample 'ffmpeg -i' says the following:
- Code:
ffmpeg version N-31480-g8bc3a48, Copyright (c) 2000-2011 the FFmpeg developers
built on Jul 14 2011 23:37:53 with gcc 4.4.2
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross-prefix=i686-mingw32- --pkg-config=pkg-config
libavutil 51. 11. 0 / 51. 11. 0
libavcodec 53. 8. 0 / 53. 8. 0
libavformat 53. 6. 0 / 53. 6. 0
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 25. 0 / 2. 25. 0
libswscale 2. 0. 0 / 2. 0. 0
Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5000000/104271) -> 23.98 (24000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'The Simpsons Movie - Trailer.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
creation_time : 2007-02-19 05:03:04
Duration: 00:02:17.30, start: 0.000000, bitrate: 4283 kb/s
Stream #0.0(und): Video: h264 (Main), yuv420p, 1280x544, 4221 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
Metadata:
creation_time : 2007-02-19 05:03:04
Stream #0.1(und): Audio: aac, 48000 Hz, stereo, s16, 64 kb/s
Metadata:
creation_time : 2007-02-19 05:03:08
At least one output file must be specified
I vaguely remember reading somewhere that if you feed video with non-standard resolution to a Sony TV via DLNA, you may be asking for trouble. Could it be that the 480x352 resolution of my original test material is causing the stutter? I've now confirmed the phenomenon with more than one file.
If that's the case, and given that everything seems to work nicely when transcoded; I guess either Serviio or the profile (not sure if it can be done with the means of the profile alone) should always transcode video material with non-standard resolution.
Edit: The same seems to happen also with 480x272 resolution. With both these low resolutions the outcome isn't completely consistent; most of the time you get heavy stutter, then again sometimes the video plays otherwise ok, but audio is several seconds out of sync. None of this happens if the material is transcoded.
Edit #2: I noticed that in all my troubled samples the video stream profile is "Video: h264 (Constrained Baseline)", but in the working Simpsons sample it's "Video: h264 (Main)". Maybe this too could have an effect on this.