Choppy video under Ubuntu but not Windows











up vote
4
down vote

favorite












This video is not playing smoothly with totem or VLC under Ubuntu:



http://thomas-guettler.de/tmp/20181011_113036-0.MP4



It works with Windows.



What I mean with "is not playing smoothly" is:




  • I see it, but it looks like there are only four frames. The playing jumps.

  • On Windows it is smooth. You see the car in the background drive along.


Version: Ubuntu 18.04.1 LTS



Is there a way to get it working like it should???



===> vainfo
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Sandybridge Mobile - 2.1.0
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc


Background: This is just an example. All videos created by my Lumix camera don't play well under Ubuntu :-(










share|improve this question
























  • @guettli What is your graphics card? Please add output of vainfo (installable with sudo apt install vainfo) to the question.
    – N0rbert
    Nov 19 at 8:37










  • @N0rbert I updated the question
    – guettli
    Nov 27 at 20:08










  • Using mpv, with my not so powerful onboard Intel 3rd Gen Core processor Graphics Controller, it dropped about 50 frames. Ffmpeg says the video is a 4K with video stream bitrate 97501 kb/s. It's the heaviest video this laptop has ever seen :D
    – aasril
    Nov 29 at 9:05










  • sandybridge is pretty weak, post this, inxi -CG For curiosity does this work any better, 0x0.st/sGsn.mp4 (still 4k, reduced bit rate) note that totem probably doesn't use vaapi by default (needs gstreamer1.0-vaapi package which can be an issue), , vlc probably does, try mpv.
    – doug
    Nov 29 at 23:45












  • P.S. Thanks for the acceptance, favour returned: question upvoted! ;-)
    – Fabby
    Dec 3 at 0:32















up vote
4
down vote

favorite












This video is not playing smoothly with totem or VLC under Ubuntu:



http://thomas-guettler.de/tmp/20181011_113036-0.MP4



It works with Windows.



What I mean with "is not playing smoothly" is:




  • I see it, but it looks like there are only four frames. The playing jumps.

  • On Windows it is smooth. You see the car in the background drive along.


Version: Ubuntu 18.04.1 LTS



Is there a way to get it working like it should???



===> vainfo
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Sandybridge Mobile - 2.1.0
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc


Background: This is just an example. All videos created by my Lumix camera don't play well under Ubuntu :-(










share|improve this question
























  • @guettli What is your graphics card? Please add output of vainfo (installable with sudo apt install vainfo) to the question.
    – N0rbert
    Nov 19 at 8:37










  • @N0rbert I updated the question
    – guettli
    Nov 27 at 20:08










  • Using mpv, with my not so powerful onboard Intel 3rd Gen Core processor Graphics Controller, it dropped about 50 frames. Ffmpeg says the video is a 4K with video stream bitrate 97501 kb/s. It's the heaviest video this laptop has ever seen :D
    – aasril
    Nov 29 at 9:05










  • sandybridge is pretty weak, post this, inxi -CG For curiosity does this work any better, 0x0.st/sGsn.mp4 (still 4k, reduced bit rate) note that totem probably doesn't use vaapi by default (needs gstreamer1.0-vaapi package which can be an issue), , vlc probably does, try mpv.
    – doug
    Nov 29 at 23:45












  • P.S. Thanks for the acceptance, favour returned: question upvoted! ;-)
    – Fabby
    Dec 3 at 0:32













up vote
4
down vote

favorite









up vote
4
down vote

favorite











This video is not playing smoothly with totem or VLC under Ubuntu:



http://thomas-guettler.de/tmp/20181011_113036-0.MP4



It works with Windows.



What I mean with "is not playing smoothly" is:




  • I see it, but it looks like there are only four frames. The playing jumps.

  • On Windows it is smooth. You see the car in the background drive along.


Version: Ubuntu 18.04.1 LTS



Is there a way to get it working like it should???



===> vainfo
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Sandybridge Mobile - 2.1.0
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc


Background: This is just an example. All videos created by my Lumix camera don't play well under Ubuntu :-(










share|improve this question















This video is not playing smoothly with totem or VLC under Ubuntu:



http://thomas-guettler.de/tmp/20181011_113036-0.MP4



It works with Windows.



What I mean with "is not playing smoothly" is:




  • I see it, but it looks like there are only four frames. The playing jumps.

  • On Windows it is smooth. You see the car in the background drive along.


Version: Ubuntu 18.04.1 LTS



Is there a way to get it working like it should???



===> vainfo
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Sandybridge Mobile - 2.1.0
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc


Background: This is just an example. All videos created by my Lumix camera don't play well under Ubuntu :-(







video vlc totem






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 29 at 23:43









Fabby

26.1k1360159




26.1k1360159










asked Nov 19 at 6:40









guettli

66742063




66742063












  • @guettli What is your graphics card? Please add output of vainfo (installable with sudo apt install vainfo) to the question.
    – N0rbert
    Nov 19 at 8:37










  • @N0rbert I updated the question
    – guettli
    Nov 27 at 20:08










  • Using mpv, with my not so powerful onboard Intel 3rd Gen Core processor Graphics Controller, it dropped about 50 frames. Ffmpeg says the video is a 4K with video stream bitrate 97501 kb/s. It's the heaviest video this laptop has ever seen :D
    – aasril
    Nov 29 at 9:05










  • sandybridge is pretty weak, post this, inxi -CG For curiosity does this work any better, 0x0.st/sGsn.mp4 (still 4k, reduced bit rate) note that totem probably doesn't use vaapi by default (needs gstreamer1.0-vaapi package which can be an issue), , vlc probably does, try mpv.
    – doug
    Nov 29 at 23:45












  • P.S. Thanks for the acceptance, favour returned: question upvoted! ;-)
    – Fabby
    Dec 3 at 0:32


















  • @guettli What is your graphics card? Please add output of vainfo (installable with sudo apt install vainfo) to the question.
    – N0rbert
    Nov 19 at 8:37










  • @N0rbert I updated the question
    – guettli
    Nov 27 at 20:08










  • Using mpv, with my not so powerful onboard Intel 3rd Gen Core processor Graphics Controller, it dropped about 50 frames. Ffmpeg says the video is a 4K with video stream bitrate 97501 kb/s. It's the heaviest video this laptop has ever seen :D
    – aasril
    Nov 29 at 9:05










  • sandybridge is pretty weak, post this, inxi -CG For curiosity does this work any better, 0x0.st/sGsn.mp4 (still 4k, reduced bit rate) note that totem probably doesn't use vaapi by default (needs gstreamer1.0-vaapi package which can be an issue), , vlc probably does, try mpv.
    – doug
    Nov 29 at 23:45












  • P.S. Thanks for the acceptance, favour returned: question upvoted! ;-)
    – Fabby
    Dec 3 at 0:32
















@guettli What is your graphics card? Please add output of vainfo (installable with sudo apt install vainfo) to the question.
– N0rbert
Nov 19 at 8:37




@guettli What is your graphics card? Please add output of vainfo (installable with sudo apt install vainfo) to the question.
– N0rbert
Nov 19 at 8:37












@N0rbert I updated the question
– guettli
Nov 27 at 20:08




@N0rbert I updated the question
– guettli
Nov 27 at 20:08












Using mpv, with my not so powerful onboard Intel 3rd Gen Core processor Graphics Controller, it dropped about 50 frames. Ffmpeg says the video is a 4K with video stream bitrate 97501 kb/s. It's the heaviest video this laptop has ever seen :D
– aasril
Nov 29 at 9:05




Using mpv, with my not so powerful onboard Intel 3rd Gen Core processor Graphics Controller, it dropped about 50 frames. Ffmpeg says the video is a 4K with video stream bitrate 97501 kb/s. It's the heaviest video this laptop has ever seen :D
– aasril
Nov 29 at 9:05












sandybridge is pretty weak, post this, inxi -CG For curiosity does this work any better, 0x0.st/sGsn.mp4 (still 4k, reduced bit rate) note that totem probably doesn't use vaapi by default (needs gstreamer1.0-vaapi package which can be an issue), , vlc probably does, try mpv.
– doug
Nov 29 at 23:45






sandybridge is pretty weak, post this, inxi -CG For curiosity does this work any better, 0x0.st/sGsn.mp4 (still 4k, reduced bit rate) note that totem probably doesn't use vaapi by default (needs gstreamer1.0-vaapi package which can be an issue), , vlc probably does, try mpv.
– doug
Nov 29 at 23:45














P.S. Thanks for the acceptance, favour returned: question upvoted! ;-)
– Fabby
Dec 3 at 0:32




P.S. Thanks for the acceptance, favour returned: question upvoted! ;-)
– Fabby
Dec 3 at 0:32










4 Answers
4






active

oldest

votes

















up vote
3
down vote



accepted
+50










This is an H.264 30FPS high-resolution video and to play it smoothly you need hardware acceleration, and as it plays smoothly under Windows and not under Ubuntu, (I'm assuming this is on the same machine) this leads me to believe you have installed the correct video drivers under Windows but not under Ubuntu.



So this has nothing to do with Ubuntu or the video itself, but with the video drivers under Ubuntu...




  • Go here for nVidia

  • Go here for AMD


If it plays well on a fast new Windows machine and doesn't play well on an old clunker that has Ubuntu installed, just transcode the video to a lower resolution and frame rate and the old clunker will be able to play it smoothly as well:



ffmpeg -i 20181011_113036-0.MP4 -c:v libx264 -strict -2 -r 25 -s 1110x832 -c:a libmp3lame -b:a 256K 20181011_113036-1.MP4


Note: On my machine running Ubuntu, 20181011_113036-0.MP4 plays smoothly out of the box...






share|improve this answer





















  • You'd probably want to rotate the vid also, 90 degrees clockwise, i.e add -vf "transpose=1" to ffmpeg command
    – doug
    Nov 29 at 23:33










  • @doug Probably OP has a portrait screen or he would have filmed it in landscape mode, no? ;-) >:-)
    – Fabby
    Nov 29 at 23:34












  • It's a Sandy Bridge Processor so over a decade old? The Intel Integrated graphics aren't that great. Definitely no mention of nVidia or Radeon card in OP's question but it's in your answer my friend :)
    – WinEunuuchs2Unix
    Nov 29 at 23:38










  • We'll see! ;-) @WinEunuuchs2Unix I'm very good at reading between the lines and gyrating towards the correct Root Cause...
    – Fabby
    Nov 29 at 23:39








  • 1




    Reducing the size with ffmpg was a good idea. The video size decreased a lot and the videos are not choppy any more. Thank you!
    – guettli
    Dec 2 at 20:23


















up vote
2
down vote













I can play the video in Firefox and VLC (both installed on Ubuntu 18.04 LTS inside VirtualBox).



So it seems that you have not installed some codecs. Install them with:



sudo apt install ubuntu-restricted-addons


and try again :)





Note: for integrated Intel hardware acceleration is provided by i965-va-driver package; for Nvidia it is provided by libvdpau_nvidia.so library (installed with proprietary driver). You can check status of your VA with vainfo command.





Remarks: on physically installed Ubuntu MATE 16.04.5 LTS the video is played flawlessly only on Haswell i7 (using Intel® HD Graphics 4600). Mobile Ivy Bridge with Intel® HD Graphics 4000 plays video with jumps (in vlc, mplayer, totem, kaffeine, mpv, parole).

If the video is really 4K, then it may be too hard for old graphics :)






share|improve this answer























  • ubuntu-restricted-addons were already installed.
    – guettli
    Nov 27 at 20:02










  • i965-va-driver is installed, too
    – guettli
    Nov 27 at 20:04










  • Unfortunately is still does not play like on windows. It jumps from one picture to the next.
    – guettli
    Nov 27 at 20:09


















up vote
1
down vote













18.04 with Gnome Desktop on an old Sandy Bridge processor's Integrated Graphics would be very slow simply moving around windows and resizing them. Try the Unity Desktop instead:




  • Install Unity instead of Gnome in 18.04


For even greater speed and possibly stability try Ubuntu 16.04 with Unity Desktop:




  • How to downgrade Ubuntu 18.04 to 16.04?






share|improve this answer





















  • The usual suspects! :D +1
    – Fabby
    Nov 29 at 23:37








  • 1




    Haha... Bounty Hunter Incorporated :p. +1 et tu :)
    – WinEunuuchs2Unix
    Nov 29 at 23:39


















up vote
1
down vote













Xubuntu 18.10 amd 64; 2GB RAM; 3rd generation Intel i3 3120m



On Firefox:- Doesn't simply play. Browser doesn't hang either, it's just shows the video thumbnail. Maybe because of low server speed or maybe Firefox can't handle, not sure.



On MPV with SMPlayer frontend:- Plays smoothly, probably without frame-drop (as it isn't allowed in SMPlayer settings). Though it looks a bit strange on my 720p display. Especially the railings of the gate.



I'm a newcomer in Ubuntu but I've installed these stuff after installing it-



ubuntu-restricted-extras ffmpeg libavfilter-extra i965-va-driver-shaders va-driver-all beignet-opencl-icd



However you probably can't install the beignet-opencl-icd as Open CL isn't officially supported on 2nd generation (Sandybridge) processors.



Hardware decoding is enabled in SMPlayer (video output driver and hardware decoder is set to vaapi, no. of threads for decoding is set to 4)






share|improve this answer























  • Oh, you're using vanilla Ubuntu? I can't even run Ubuntu smoothly (17.10 & above) without doing anything, while Kubuntu runs fine on my 7 year old notebook (even Windows 10 runs better than Ubuntu). Maybe you should try any other flavour of Ubuntu, I use Xubuntu. While it's lightweight & very CPU friendly, it doesn't look that nice. Though it depends on the taste.
    – HattinGokbori87
    Dec 3 at 8:06











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1094139%2fchoppy-video-under-ubuntu-but-not-windows%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























4 Answers
4






active

oldest

votes








4 Answers
4






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
3
down vote



accepted
+50










This is an H.264 30FPS high-resolution video and to play it smoothly you need hardware acceleration, and as it plays smoothly under Windows and not under Ubuntu, (I'm assuming this is on the same machine) this leads me to believe you have installed the correct video drivers under Windows but not under Ubuntu.



So this has nothing to do with Ubuntu or the video itself, but with the video drivers under Ubuntu...




  • Go here for nVidia

  • Go here for AMD


If it plays well on a fast new Windows machine and doesn't play well on an old clunker that has Ubuntu installed, just transcode the video to a lower resolution and frame rate and the old clunker will be able to play it smoothly as well:



ffmpeg -i 20181011_113036-0.MP4 -c:v libx264 -strict -2 -r 25 -s 1110x832 -c:a libmp3lame -b:a 256K 20181011_113036-1.MP4


Note: On my machine running Ubuntu, 20181011_113036-0.MP4 plays smoothly out of the box...






share|improve this answer





















  • You'd probably want to rotate the vid also, 90 degrees clockwise, i.e add -vf "transpose=1" to ffmpeg command
    – doug
    Nov 29 at 23:33










  • @doug Probably OP has a portrait screen or he would have filmed it in landscape mode, no? ;-) >:-)
    – Fabby
    Nov 29 at 23:34












  • It's a Sandy Bridge Processor so over a decade old? The Intel Integrated graphics aren't that great. Definitely no mention of nVidia or Radeon card in OP's question but it's in your answer my friend :)
    – WinEunuuchs2Unix
    Nov 29 at 23:38










  • We'll see! ;-) @WinEunuuchs2Unix I'm very good at reading between the lines and gyrating towards the correct Root Cause...
    – Fabby
    Nov 29 at 23:39








  • 1




    Reducing the size with ffmpg was a good idea. The video size decreased a lot and the videos are not choppy any more. Thank you!
    – guettli
    Dec 2 at 20:23















up vote
3
down vote



accepted
+50










This is an H.264 30FPS high-resolution video and to play it smoothly you need hardware acceleration, and as it plays smoothly under Windows and not under Ubuntu, (I'm assuming this is on the same machine) this leads me to believe you have installed the correct video drivers under Windows but not under Ubuntu.



So this has nothing to do with Ubuntu or the video itself, but with the video drivers under Ubuntu...




  • Go here for nVidia

  • Go here for AMD


If it plays well on a fast new Windows machine and doesn't play well on an old clunker that has Ubuntu installed, just transcode the video to a lower resolution and frame rate and the old clunker will be able to play it smoothly as well:



ffmpeg -i 20181011_113036-0.MP4 -c:v libx264 -strict -2 -r 25 -s 1110x832 -c:a libmp3lame -b:a 256K 20181011_113036-1.MP4


Note: On my machine running Ubuntu, 20181011_113036-0.MP4 plays smoothly out of the box...






share|improve this answer





















  • You'd probably want to rotate the vid also, 90 degrees clockwise, i.e add -vf "transpose=1" to ffmpeg command
    – doug
    Nov 29 at 23:33










  • @doug Probably OP has a portrait screen or he would have filmed it in landscape mode, no? ;-) >:-)
    – Fabby
    Nov 29 at 23:34












  • It's a Sandy Bridge Processor so over a decade old? The Intel Integrated graphics aren't that great. Definitely no mention of nVidia or Radeon card in OP's question but it's in your answer my friend :)
    – WinEunuuchs2Unix
    Nov 29 at 23:38










  • We'll see! ;-) @WinEunuuchs2Unix I'm very good at reading between the lines and gyrating towards the correct Root Cause...
    – Fabby
    Nov 29 at 23:39








  • 1




    Reducing the size with ffmpg was a good idea. The video size decreased a lot and the videos are not choppy any more. Thank you!
    – guettli
    Dec 2 at 20:23













up vote
3
down vote



accepted
+50







up vote
3
down vote



accepted
+50




+50




This is an H.264 30FPS high-resolution video and to play it smoothly you need hardware acceleration, and as it plays smoothly under Windows and not under Ubuntu, (I'm assuming this is on the same machine) this leads me to believe you have installed the correct video drivers under Windows but not under Ubuntu.



So this has nothing to do with Ubuntu or the video itself, but with the video drivers under Ubuntu...




  • Go here for nVidia

  • Go here for AMD


If it plays well on a fast new Windows machine and doesn't play well on an old clunker that has Ubuntu installed, just transcode the video to a lower resolution and frame rate and the old clunker will be able to play it smoothly as well:



ffmpeg -i 20181011_113036-0.MP4 -c:v libx264 -strict -2 -r 25 -s 1110x832 -c:a libmp3lame -b:a 256K 20181011_113036-1.MP4


Note: On my machine running Ubuntu, 20181011_113036-0.MP4 plays smoothly out of the box...






share|improve this answer












This is an H.264 30FPS high-resolution video and to play it smoothly you need hardware acceleration, and as it plays smoothly under Windows and not under Ubuntu, (I'm assuming this is on the same machine) this leads me to believe you have installed the correct video drivers under Windows but not under Ubuntu.



So this has nothing to do with Ubuntu or the video itself, but with the video drivers under Ubuntu...




  • Go here for nVidia

  • Go here for AMD


If it plays well on a fast new Windows machine and doesn't play well on an old clunker that has Ubuntu installed, just transcode the video to a lower resolution and frame rate and the old clunker will be able to play it smoothly as well:



ffmpeg -i 20181011_113036-0.MP4 -c:v libx264 -strict -2 -r 25 -s 1110x832 -c:a libmp3lame -b:a 256K 20181011_113036-1.MP4


Note: On my machine running Ubuntu, 20181011_113036-0.MP4 plays smoothly out of the box...







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 29 at 23:15









Fabby

26.1k1360159




26.1k1360159












  • You'd probably want to rotate the vid also, 90 degrees clockwise, i.e add -vf "transpose=1" to ffmpeg command
    – doug
    Nov 29 at 23:33










  • @doug Probably OP has a portrait screen or he would have filmed it in landscape mode, no? ;-) >:-)
    – Fabby
    Nov 29 at 23:34












  • It's a Sandy Bridge Processor so over a decade old? The Intel Integrated graphics aren't that great. Definitely no mention of nVidia or Radeon card in OP's question but it's in your answer my friend :)
    – WinEunuuchs2Unix
    Nov 29 at 23:38










  • We'll see! ;-) @WinEunuuchs2Unix I'm very good at reading between the lines and gyrating towards the correct Root Cause...
    – Fabby
    Nov 29 at 23:39








  • 1




    Reducing the size with ffmpg was a good idea. The video size decreased a lot and the videos are not choppy any more. Thank you!
    – guettli
    Dec 2 at 20:23


















  • You'd probably want to rotate the vid also, 90 degrees clockwise, i.e add -vf "transpose=1" to ffmpeg command
    – doug
    Nov 29 at 23:33










  • @doug Probably OP has a portrait screen or he would have filmed it in landscape mode, no? ;-) >:-)
    – Fabby
    Nov 29 at 23:34












  • It's a Sandy Bridge Processor so over a decade old? The Intel Integrated graphics aren't that great. Definitely no mention of nVidia or Radeon card in OP's question but it's in your answer my friend :)
    – WinEunuuchs2Unix
    Nov 29 at 23:38










  • We'll see! ;-) @WinEunuuchs2Unix I'm very good at reading between the lines and gyrating towards the correct Root Cause...
    – Fabby
    Nov 29 at 23:39








  • 1




    Reducing the size with ffmpg was a good idea. The video size decreased a lot and the videos are not choppy any more. Thank you!
    – guettli
    Dec 2 at 20:23
















You'd probably want to rotate the vid also, 90 degrees clockwise, i.e add -vf "transpose=1" to ffmpeg command
– doug
Nov 29 at 23:33




You'd probably want to rotate the vid also, 90 degrees clockwise, i.e add -vf "transpose=1" to ffmpeg command
– doug
Nov 29 at 23:33












@doug Probably OP has a portrait screen or he would have filmed it in landscape mode, no? ;-) >:-)
– Fabby
Nov 29 at 23:34






@doug Probably OP has a portrait screen or he would have filmed it in landscape mode, no? ;-) >:-)
– Fabby
Nov 29 at 23:34














It's a Sandy Bridge Processor so over a decade old? The Intel Integrated graphics aren't that great. Definitely no mention of nVidia or Radeon card in OP's question but it's in your answer my friend :)
– WinEunuuchs2Unix
Nov 29 at 23:38




It's a Sandy Bridge Processor so over a decade old? The Intel Integrated graphics aren't that great. Definitely no mention of nVidia or Radeon card in OP's question but it's in your answer my friend :)
– WinEunuuchs2Unix
Nov 29 at 23:38












We'll see! ;-) @WinEunuuchs2Unix I'm very good at reading between the lines and gyrating towards the correct Root Cause...
– Fabby
Nov 29 at 23:39






We'll see! ;-) @WinEunuuchs2Unix I'm very good at reading between the lines and gyrating towards the correct Root Cause...
– Fabby
Nov 29 at 23:39






1




1




Reducing the size with ffmpg was a good idea. The video size decreased a lot and the videos are not choppy any more. Thank you!
– guettli
Dec 2 at 20:23




Reducing the size with ffmpg was a good idea. The video size decreased a lot and the videos are not choppy any more. Thank you!
– guettli
Dec 2 at 20:23












up vote
2
down vote













I can play the video in Firefox and VLC (both installed on Ubuntu 18.04 LTS inside VirtualBox).



So it seems that you have not installed some codecs. Install them with:



sudo apt install ubuntu-restricted-addons


and try again :)





Note: for integrated Intel hardware acceleration is provided by i965-va-driver package; for Nvidia it is provided by libvdpau_nvidia.so library (installed with proprietary driver). You can check status of your VA with vainfo command.





Remarks: on physically installed Ubuntu MATE 16.04.5 LTS the video is played flawlessly only on Haswell i7 (using Intel® HD Graphics 4600). Mobile Ivy Bridge with Intel® HD Graphics 4000 plays video with jumps (in vlc, mplayer, totem, kaffeine, mpv, parole).

If the video is really 4K, then it may be too hard for old graphics :)






share|improve this answer























  • ubuntu-restricted-addons were already installed.
    – guettli
    Nov 27 at 20:02










  • i965-va-driver is installed, too
    – guettli
    Nov 27 at 20:04










  • Unfortunately is still does not play like on windows. It jumps from one picture to the next.
    – guettli
    Nov 27 at 20:09















up vote
2
down vote













I can play the video in Firefox and VLC (both installed on Ubuntu 18.04 LTS inside VirtualBox).



So it seems that you have not installed some codecs. Install them with:



sudo apt install ubuntu-restricted-addons


and try again :)





Note: for integrated Intel hardware acceleration is provided by i965-va-driver package; for Nvidia it is provided by libvdpau_nvidia.so library (installed with proprietary driver). You can check status of your VA with vainfo command.





Remarks: on physically installed Ubuntu MATE 16.04.5 LTS the video is played flawlessly only on Haswell i7 (using Intel® HD Graphics 4600). Mobile Ivy Bridge with Intel® HD Graphics 4000 plays video with jumps (in vlc, mplayer, totem, kaffeine, mpv, parole).

If the video is really 4K, then it may be too hard for old graphics :)






share|improve this answer























  • ubuntu-restricted-addons were already installed.
    – guettli
    Nov 27 at 20:02










  • i965-va-driver is installed, too
    – guettli
    Nov 27 at 20:04










  • Unfortunately is still does not play like on windows. It jumps from one picture to the next.
    – guettli
    Nov 27 at 20:09













up vote
2
down vote










up vote
2
down vote









I can play the video in Firefox and VLC (both installed on Ubuntu 18.04 LTS inside VirtualBox).



So it seems that you have not installed some codecs. Install them with:



sudo apt install ubuntu-restricted-addons


and try again :)





Note: for integrated Intel hardware acceleration is provided by i965-va-driver package; for Nvidia it is provided by libvdpau_nvidia.so library (installed with proprietary driver). You can check status of your VA with vainfo command.





Remarks: on physically installed Ubuntu MATE 16.04.5 LTS the video is played flawlessly only on Haswell i7 (using Intel® HD Graphics 4600). Mobile Ivy Bridge with Intel® HD Graphics 4000 plays video with jumps (in vlc, mplayer, totem, kaffeine, mpv, parole).

If the video is really 4K, then it may be too hard for old graphics :)






share|improve this answer














I can play the video in Firefox and VLC (both installed on Ubuntu 18.04 LTS inside VirtualBox).



So it seems that you have not installed some codecs. Install them with:



sudo apt install ubuntu-restricted-addons


and try again :)





Note: for integrated Intel hardware acceleration is provided by i965-va-driver package; for Nvidia it is provided by libvdpau_nvidia.so library (installed with proprietary driver). You can check status of your VA with vainfo command.





Remarks: on physically installed Ubuntu MATE 16.04.5 LTS the video is played flawlessly only on Haswell i7 (using Intel® HD Graphics 4600). Mobile Ivy Bridge with Intel® HD Graphics 4000 plays video with jumps (in vlc, mplayer, totem, kaffeine, mpv, parole).

If the video is really 4K, then it may be too hard for old graphics :)







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 30 at 20:48

























answered Nov 19 at 8:36









N0rbert

20.4k54494




20.4k54494












  • ubuntu-restricted-addons were already installed.
    – guettli
    Nov 27 at 20:02










  • i965-va-driver is installed, too
    – guettli
    Nov 27 at 20:04










  • Unfortunately is still does not play like on windows. It jumps from one picture to the next.
    – guettli
    Nov 27 at 20:09


















  • ubuntu-restricted-addons were already installed.
    – guettli
    Nov 27 at 20:02










  • i965-va-driver is installed, too
    – guettli
    Nov 27 at 20:04










  • Unfortunately is still does not play like on windows. It jumps from one picture to the next.
    – guettli
    Nov 27 at 20:09
















ubuntu-restricted-addons were already installed.
– guettli
Nov 27 at 20:02




ubuntu-restricted-addons were already installed.
– guettli
Nov 27 at 20:02












i965-va-driver is installed, too
– guettli
Nov 27 at 20:04




i965-va-driver is installed, too
– guettli
Nov 27 at 20:04












Unfortunately is still does not play like on windows. It jumps from one picture to the next.
– guettli
Nov 27 at 20:09




Unfortunately is still does not play like on windows. It jumps from one picture to the next.
– guettli
Nov 27 at 20:09










up vote
1
down vote













18.04 with Gnome Desktop on an old Sandy Bridge processor's Integrated Graphics would be very slow simply moving around windows and resizing them. Try the Unity Desktop instead:




  • Install Unity instead of Gnome in 18.04


For even greater speed and possibly stability try Ubuntu 16.04 with Unity Desktop:




  • How to downgrade Ubuntu 18.04 to 16.04?






share|improve this answer





















  • The usual suspects! :D +1
    – Fabby
    Nov 29 at 23:37








  • 1




    Haha... Bounty Hunter Incorporated :p. +1 et tu :)
    – WinEunuuchs2Unix
    Nov 29 at 23:39















up vote
1
down vote













18.04 with Gnome Desktop on an old Sandy Bridge processor's Integrated Graphics would be very slow simply moving around windows and resizing them. Try the Unity Desktop instead:




  • Install Unity instead of Gnome in 18.04


For even greater speed and possibly stability try Ubuntu 16.04 with Unity Desktop:




  • How to downgrade Ubuntu 18.04 to 16.04?






share|improve this answer





















  • The usual suspects! :D +1
    – Fabby
    Nov 29 at 23:37








  • 1




    Haha... Bounty Hunter Incorporated :p. +1 et tu :)
    – WinEunuuchs2Unix
    Nov 29 at 23:39













up vote
1
down vote










up vote
1
down vote









18.04 with Gnome Desktop on an old Sandy Bridge processor's Integrated Graphics would be very slow simply moving around windows and resizing them. Try the Unity Desktop instead:




  • Install Unity instead of Gnome in 18.04


For even greater speed and possibly stability try Ubuntu 16.04 with Unity Desktop:




  • How to downgrade Ubuntu 18.04 to 16.04?






share|improve this answer












18.04 with Gnome Desktop on an old Sandy Bridge processor's Integrated Graphics would be very slow simply moving around windows and resizing them. Try the Unity Desktop instead:




  • Install Unity instead of Gnome in 18.04


For even greater speed and possibly stability try Ubuntu 16.04 with Unity Desktop:




  • How to downgrade Ubuntu 18.04 to 16.04?







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 29 at 23:36









WinEunuuchs2Unix

41.4k1070156




41.4k1070156












  • The usual suspects! :D +1
    – Fabby
    Nov 29 at 23:37








  • 1




    Haha... Bounty Hunter Incorporated :p. +1 et tu :)
    – WinEunuuchs2Unix
    Nov 29 at 23:39


















  • The usual suspects! :D +1
    – Fabby
    Nov 29 at 23:37








  • 1




    Haha... Bounty Hunter Incorporated :p. +1 et tu :)
    – WinEunuuchs2Unix
    Nov 29 at 23:39
















The usual suspects! :D +1
– Fabby
Nov 29 at 23:37






The usual suspects! :D +1
– Fabby
Nov 29 at 23:37






1




1




Haha... Bounty Hunter Incorporated :p. +1 et tu :)
– WinEunuuchs2Unix
Nov 29 at 23:39




Haha... Bounty Hunter Incorporated :p. +1 et tu :)
– WinEunuuchs2Unix
Nov 29 at 23:39










up vote
1
down vote













Xubuntu 18.10 amd 64; 2GB RAM; 3rd generation Intel i3 3120m



On Firefox:- Doesn't simply play. Browser doesn't hang either, it's just shows the video thumbnail. Maybe because of low server speed or maybe Firefox can't handle, not sure.



On MPV with SMPlayer frontend:- Plays smoothly, probably without frame-drop (as it isn't allowed in SMPlayer settings). Though it looks a bit strange on my 720p display. Especially the railings of the gate.



I'm a newcomer in Ubuntu but I've installed these stuff after installing it-



ubuntu-restricted-extras ffmpeg libavfilter-extra i965-va-driver-shaders va-driver-all beignet-opencl-icd



However you probably can't install the beignet-opencl-icd as Open CL isn't officially supported on 2nd generation (Sandybridge) processors.



Hardware decoding is enabled in SMPlayer (video output driver and hardware decoder is set to vaapi, no. of threads for decoding is set to 4)






share|improve this answer























  • Oh, you're using vanilla Ubuntu? I can't even run Ubuntu smoothly (17.10 & above) without doing anything, while Kubuntu runs fine on my 7 year old notebook (even Windows 10 runs better than Ubuntu). Maybe you should try any other flavour of Ubuntu, I use Xubuntu. While it's lightweight & very CPU friendly, it doesn't look that nice. Though it depends on the taste.
    – HattinGokbori87
    Dec 3 at 8:06















up vote
1
down vote













Xubuntu 18.10 amd 64; 2GB RAM; 3rd generation Intel i3 3120m



On Firefox:- Doesn't simply play. Browser doesn't hang either, it's just shows the video thumbnail. Maybe because of low server speed or maybe Firefox can't handle, not sure.



On MPV with SMPlayer frontend:- Plays smoothly, probably without frame-drop (as it isn't allowed in SMPlayer settings). Though it looks a bit strange on my 720p display. Especially the railings of the gate.



I'm a newcomer in Ubuntu but I've installed these stuff after installing it-



ubuntu-restricted-extras ffmpeg libavfilter-extra i965-va-driver-shaders va-driver-all beignet-opencl-icd



However you probably can't install the beignet-opencl-icd as Open CL isn't officially supported on 2nd generation (Sandybridge) processors.



Hardware decoding is enabled in SMPlayer (video output driver and hardware decoder is set to vaapi, no. of threads for decoding is set to 4)






share|improve this answer























  • Oh, you're using vanilla Ubuntu? I can't even run Ubuntu smoothly (17.10 & above) without doing anything, while Kubuntu runs fine on my 7 year old notebook (even Windows 10 runs better than Ubuntu). Maybe you should try any other flavour of Ubuntu, I use Xubuntu. While it's lightweight & very CPU friendly, it doesn't look that nice. Though it depends on the taste.
    – HattinGokbori87
    Dec 3 at 8:06













up vote
1
down vote










up vote
1
down vote









Xubuntu 18.10 amd 64; 2GB RAM; 3rd generation Intel i3 3120m



On Firefox:- Doesn't simply play. Browser doesn't hang either, it's just shows the video thumbnail. Maybe because of low server speed or maybe Firefox can't handle, not sure.



On MPV with SMPlayer frontend:- Plays smoothly, probably without frame-drop (as it isn't allowed in SMPlayer settings). Though it looks a bit strange on my 720p display. Especially the railings of the gate.



I'm a newcomer in Ubuntu but I've installed these stuff after installing it-



ubuntu-restricted-extras ffmpeg libavfilter-extra i965-va-driver-shaders va-driver-all beignet-opencl-icd



However you probably can't install the beignet-opencl-icd as Open CL isn't officially supported on 2nd generation (Sandybridge) processors.



Hardware decoding is enabled in SMPlayer (video output driver and hardware decoder is set to vaapi, no. of threads for decoding is set to 4)






share|improve this answer














Xubuntu 18.10 amd 64; 2GB RAM; 3rd generation Intel i3 3120m



On Firefox:- Doesn't simply play. Browser doesn't hang either, it's just shows the video thumbnail. Maybe because of low server speed or maybe Firefox can't handle, not sure.



On MPV with SMPlayer frontend:- Plays smoothly, probably without frame-drop (as it isn't allowed in SMPlayer settings). Though it looks a bit strange on my 720p display. Especially the railings of the gate.



I'm a newcomer in Ubuntu but I've installed these stuff after installing it-



ubuntu-restricted-extras ffmpeg libavfilter-extra i965-va-driver-shaders va-driver-all beignet-opencl-icd



However you probably can't install the beignet-opencl-icd as Open CL isn't officially supported on 2nd generation (Sandybridge) processors.



Hardware decoding is enabled in SMPlayer (video output driver and hardware decoder is set to vaapi, no. of threads for decoding is set to 4)







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 3 at 8:04

























answered Nov 30 at 21:44









HattinGokbori87

644113




644113












  • Oh, you're using vanilla Ubuntu? I can't even run Ubuntu smoothly (17.10 & above) without doing anything, while Kubuntu runs fine on my 7 year old notebook (even Windows 10 runs better than Ubuntu). Maybe you should try any other flavour of Ubuntu, I use Xubuntu. While it's lightweight & very CPU friendly, it doesn't look that nice. Though it depends on the taste.
    – HattinGokbori87
    Dec 3 at 8:06


















  • Oh, you're using vanilla Ubuntu? I can't even run Ubuntu smoothly (17.10 & above) without doing anything, while Kubuntu runs fine on my 7 year old notebook (even Windows 10 runs better than Ubuntu). Maybe you should try any other flavour of Ubuntu, I use Xubuntu. While it's lightweight & very CPU friendly, it doesn't look that nice. Though it depends on the taste.
    – HattinGokbori87
    Dec 3 at 8:06
















Oh, you're using vanilla Ubuntu? I can't even run Ubuntu smoothly (17.10 & above) without doing anything, while Kubuntu runs fine on my 7 year old notebook (even Windows 10 runs better than Ubuntu). Maybe you should try any other flavour of Ubuntu, I use Xubuntu. While it's lightweight & very CPU friendly, it doesn't look that nice. Though it depends on the taste.
– HattinGokbori87
Dec 3 at 8:06




Oh, you're using vanilla Ubuntu? I can't even run Ubuntu smoothly (17.10 & above) without doing anything, while Kubuntu runs fine on my 7 year old notebook (even Windows 10 runs better than Ubuntu). Maybe you should try any other flavour of Ubuntu, I use Xubuntu. While it's lightweight & very CPU friendly, it doesn't look that nice. Though it depends on the taste.
– HattinGokbori87
Dec 3 at 8:06


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1094139%2fchoppy-video-under-ubuntu-but-not-windows%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei