Page 1 of 1

Samsung 4K TV stuttering video

PostPosted: Sat Oct 11, 2014 11:09 pm
by atc98092
So far, the TV seems to play almost everything I throw at it. Nothing but online sources appear to be transcoded. However, there's a slight stutter/jerkiness during playback of SD video (primarily ripped DVDs). There's no problem with audio, just the picture. Some are worse than others, but all SD video seems to exhibit it to some extent. The goofy part is that HD video does not have the same issue. :shock: They play perfectly smoothly. I've tried to enable transcoding for my MKV DVD rips, but I get an unsupported file error. The line I tried adding to the profile is last row below. I took it back out and they play again.

  Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192" forceInheritance="true">
            <Matches container="*" vCodec="h264" profile="high_10"/>
            <Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2"/>
            <Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.2"/>
            <Matches container="mp4" vCodec="mpeg4" aCodec="lpcm"/>
            <Matches container="mp4" vCodec="dvvideo"/>
            <Matches container="mp4" vCodec="mjpeg"/>
            <Matches container="matroska" vCodec="mjpeg"/>
</Video>

Using the H Series profile provided by Karnith (didn't work originally, but now it does) I can stream from Crackle with no issues. The TV is plugged into my wired gigabit network, so there's no bandwidth issues. I can watch Netflix and play a 4K video with no problem. don't know how much bandwidth that is using, but I'm sure it's a bunch.

If I connect to the same computer via Windows Media sharing, rather than Serviio, the SD video stutter is reduced a little but still there. Kind of points to the TV itself, but why on earth would the HD video play fine? It has to require more power to process the HD. The video bitrate is between 3-4 times higher for the HD stuff, with a couple of them touching 50Mbps.

Has any other Samsung user encountered such an issue, and is there perhaps a setting somewhere in the menus that might be having an effect on DLNA playback? :?:

Re: Samsung 4K TV stuttering video

PostPosted: Mon Oct 13, 2014 5:54 pm
by atc98092
I have isolated the issue. The stuttering occurs with any video encoded as MPEG2. This of course is the default codec for DVDs, so every DVD rip has it. I have over 1500 of them!

As a test I re-encoded the videos using H264 for the video, and the stutter goes away. This also explains why the Blu-Ray rips play fine, since no BD disc uses MPEG2.

I've notified Samsung, and so far the only response was to provide me a link that lists the supported formats. MPEG2 is listed as supported, but not in the MKV container. It does, however, list JMPEG as supported in MKV. I don't know what the difference is.

Could someone offer me a command line form FFMPEG to convert my MPEG2 MKV files to H264? Or is that possible? I've tried Handbrake, but beside how long a single movie takes (1+ hour for a 1:45 movie), it lowered the resolution for some reason, even though I couldn't find a setting for it.

Re: Samsung 4K TV stuttering video

PostPosted: Tue Oct 14, 2014 6:53 am
by Iveky
I will give you command line (for ffmpeg) to convert all videos at once, but wait till tonite...

Sent from my LG-E440 using Tapatalk 2

Re: Samsung 4K TV stuttering video

PostPosted: Tue Oct 14, 2014 9:47 pm
by atc98092
Iveky wrote:I will give you command line (for ffmpeg) to convert all videos at once, but wait till tonite...

Sent from my LG-E440 using Tapatalk 2


No problem. I had a no-notice last minute trip to DC (where I am now), so I won't be able to try anything until I get home over the weekend. Thanks! :P

Re: Samsung 4K TV stuttering video

PostPosted: Wed Oct 15, 2014 4:19 am
by Iveky
these are some examples, so try to see if it helps you:

faster without recoding:

ffmpeg -i Taken.mkv -vcodec copy -strict -2 TakenMP4.mp4
ffmpeg -i input.mkv -vcodec copy -acodec copy output.mp4
ffmpeg -i input.mkv -vcodec copy -acodec copy output.mpg <<<< try this first?

full recoding:
ffmpeg -i Taken.mkv -strict -2 TakenMP4.mp4

If you want to choose video, audio or subtitle tracks specifically, you can also use stream specifiers:
ffmpeg -i test.mkv -c:v libx264 -c:a ac3 -crf 20 -map 0:v:0 -map 0:a:1 test.mp4
Here, 0:v:0 is the first video stream and 0:a:1 is the second audio stream.
how to take out subtiltle:
ffmpeg -i The.Matrix.1999.1080p.mkv -map 0:s:4 The.Matrix.1999.1080p.srt


I hope this helped you, after you find a way how to create one file that don't stutter, it is easy to create batch file to processs all videos in folder... :)

Re: Samsung 4K TV stuttering video

PostPosted: Wed Oct 15, 2014 10:11 pm
by atc98092
Thank you my friend. Don't know if I want to output to MPG, as I think I'll lose the ability to select captions. I think I need either MKV or MP4 for that to work.

So, as a test I would run "ffmpeg -i input.mkv -h264 copy -ac3 copy output.mp4", to get the video changed to H.264? Or does the command line use a different phrase? I see the FFMPEG wiki use libx264, but that seems like a *nix command, not Windows.

Since I won't be able to test this until Sunday, I have some time to research :)

Re: Samsung 4K TV stuttering video

PostPosted: Thu Oct 16, 2014 10:33 am
by Iveky
Try from above: Taken, full recoding.

Sent from my LG-E440 using Tapatalk 2

Re: Samsung 4K TV stuttering video

PostPosted: Mon Oct 20, 2014 2:51 am
by atc98092
Iveky wrote:Try from above: Taken, full recoding.

Sent from my LG-E440 using Tapatalk 2


OK, just completed one conversion. Just getting ready to go in and watch it. Won't watch much, as it's 8pm and I get up at 3:30. :lol: I'm a little concerned with loss of quality, as the file size is less than a quarter the original. The movie I tried was from 1931 (Dracula), so image quality shouldn't be an issue for this particular one :)

However, I also noticed my subtitles are now gone from the file. In the original, they were in VobSub sufmat, and the TV played them. Now they're gone. I can always rip the captions from the original file and make an SRT file, but I would have preferred them remaining within the container. That way the Roku might be able to play them as well, since MP4 and H264 video will play natively on it.

Thanks!

Re: Samsung 4K TV stuttering video

PostPosted: Mon Oct 20, 2014 1:26 pm
by Iveky
I already gave you example how to take out subtitles, read again
If dont work, try 0:s:1 or other number if more subtitles are there

Sent from my LG-E440 using Tapatalk 2

Re: Samsung 4K TV stuttering video

PostPosted: Tue Oct 21, 2014 12:17 am
by atc98092
Iveky wrote:I already gave you example how to take out subtitles, read again
If dont work, try 0:s:1 or other number if more subtitles are there

Sent from my LG-E440 using Tapatalk 2


Ah, so you did. I kind of glossed over that. Sorry. :oops:

I'd prefer to keep the captions intact in the file, however. Think I'll play with the handbrake settings and see how it performs. It's pretty easy to queue up multiple files in there as well.

Thanks!