LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-29-2015, 06:45 PM   #1
gugamare
LQ Newbie
 
Registered: Dec 2004
Location: São Paulo, Brazil
Distribution: Ubuntu 9.10
Posts: 29

Rep: Reputation: 15
Video is choppy on Mint 17


Hello,

I've been having a bit of a problem playing videos on my Linux Mint 17 laptop. The problem is that when I play a large video file, the playback will be normal for a few seconds, then it will freeze for a split second and continue for another few seconds before doing it all again. The problem seems to be independent of the player: vlc, mplayer, totem, etc...

I've managed to work around the problem with mplayer by increassing the cache via the comand line, e.g.

> mplayer -cache 10000 -cache-min 80 MyVideo.mp4

But this is a workaround and I have to keep rembering the options, which is hard for a person who drinks as heavily as I do

So here are my questions:

1 - Is there a more elegant solution to this problem? i.e. Are there software packages such as new codecs I should install or a config file I should try to alter?

2 - Is there a way I can save the command line arguments in some kind of alias so that when I call mplayer it is actually calling mplayer with these arguments?

thanks.
 
Old 07-29-2015, 07:57 PM   #2
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Current: Debian and OpenSUSE. Past: Arch, RedHat (pre-RHEL). FreeBSD & OpenBSD novice, Hackintosh
Posts: 1,193
Blog Entries: 7

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Code:
alias mp4play="mplayer -cache 10000 -cache-min 80"
A page on how to set up aliases: http://tldp.org/LDP/abs/html/aliases.html

Is there a lot of hard drive activity other than playing the video?

What video card, and which drivers are you using? Processor, chipset?

Last edited by goumba; 07-29-2015 at 08:00 PM.
 
Old 07-30-2015, 05:50 AM   #3
gugamare
LQ Newbie
 
Registered: Dec 2004
Location: São Paulo, Brazil
Distribution: Ubuntu 9.10
Posts: 29

Original Poster
Rep: Reputation: 15
Thank you goumba,

I thought I had seen a linux command called "alias" before, but If I were a betting man, I would have never bet that I remembered that correctly. I will learn more about it in your link.

Regarding my hardware, here is the output of my lshw; another gold star for my memory:

Code:
    description: Notebook
    product: HP Pavilion dm4 Notebook PC (XH124UA#ABA)
    vendor: Hewlett-Packard
    version: 058B110000242B10000020100
    serial: CNU1120RWR
    width: 64 bits
    capabilities: smbios-2.6 dmi-2.6 vsyscall32
    configuration: boot=normal chassis=notebook family=103C_5335KV G=N L=CON B=HP S=PAV sku=XH124UA#ABA uuid=74D9E9AB-E40F-345A-25E1-DA32FC117F09
  *-core
       description: Motherboard
       product: 146A
       vendor: Hewlett-Packard
       physical id: 0
       version: 58.27
       serial: PBLKL00QE0H1WS
       slot: Base Board Chassis Location
     *-firmware
          description: BIOS
          vendor: Hewlett-Packard
          physical id: 0
          version: F.23
          date: 10/21/2010
          size: 1MiB
          capacity: 1984KiB
          capabilities: pci upgrade shadowing cdboot bootselect edd int13floppynec int13floppytoshiba int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int9keyboard int10video acpi usb biosbootspecification
     *-memory
          description: System Memory
          physical id: 13
          slot: System board or motherboard
          size: 4GiB
        *-bank:0
             description: SODIMM DDR3 Synchronous 1067 MHz (0,9 ns)
             product: M471B5773CHS-CH9
             vendor: Samsung
             physical id: 0
             serial: 772D344A
             slot: Bottom - Slot 1 (top)
             size: 2GiB
             width: 64 bits
             clock: 1067MHz (0.9ns)
        *-bank:1
             description: SODIMM DDR3 Synchronous 1067 MHz (0,9 ns)
             product: M471B5773CHS-CH9
             vendor: Samsung
             physical id: 1
             serial: 772D37A7
             slot: Bottom - Slot 2 (under)
             size: 2GiB
             width: 64 bits
             clock: 1067MHz (0.9ns)
     *-cpu
          description: CPU
          product: Intel(R) Core(TM) i5 CPU       M 450  @ 2.40GHz
          vendor: Intel Corp.
          physical id: 19
          bus info: cpu@0
          version: Intel(R) Core(TM) i5 CPU       M 450  @ 2.40GHz
          slot: CPU
          size: 2400MHz
          capacity: 2400MHz
          width: 64 bits
          clock: 1066MHz
          capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt lahf_lm ida arat dtherm tpr_shadow vnmi flexpriority ept vpid cpufreq
          configuration: cores=2 enabledcores=2 threads=4
        *-cache:0
             description: L3 cache
             physical id: 1a
             slot: L3 Cache
             size: 3MiB
             capacity: 3MiB
             capabilities: synchronous internal write-through unified
        *-cache:1
             description: L2 cache
             physical id: 1c
             slot: L2 Cache
             size: 256KiB
             capacity: 256KiB
             capabilities: synchronous internal write-through unified
        *-cache:2
             description: L1 cache
             physical id: 1d
             slot: L1 Cache
             size: 32KiB
             capacity: 32KiB
             capabilities: synchronous internal write-through instruction
     *-cache
          description: L1 cache
          physical id: 1b
          slot: L1 Cache
          size: 32KiB
          capacity: 32KiB
          capabilities: synchronous internal write-through data
     *-pci:0
          description: Host bridge
          product: Core Processor DRAM Controller
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 02
          width: 32 bits
          clock: 33MHz
          configuration: driver=agpgart-intel
          resources: irq:0
        *-display
             description: VGA compatible controller
             product: Core Processor Integrated Graphics Controller
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 02
             width: 64 bits
             clock: 33MHz
             capabilities: msi pm vga_controller bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:42 memory:b0000000-b03fffff memory:a0000000-afffffff ioport:3050(size=8)
        *-communication
             description: Communication controller
             product: 5 Series/3400 Series Chipset HECI Controller
             vendor: Intel Corporation
             physical id: 16
             bus info: pci@0000:00:16.0
             version: 06
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=mei_me latency=0
             resources: irq:43 memory:b4406100-b440610f
        *-usb:0
             description: USB controller
             product: 5 Series/3400 Series Chipset USB2 Enhanced Host Controller
             vendor: Intel Corporation
             physical id: 1a
             bus info: pci@0000:00:1a.0
             version: 05
             width: 32 bits
             clock: 33MHz
             capabilities: pm debug ehci cap_list
             configuration: driver=ehci-pci latency=0
             resources: irq:16 memory:b4405c00-b4405fff
        *-multimedia
             description: Audio device
             product: 5 Series/3400 Series Chipset High Definition Audio
             vendor: Intel Corporation
             physical id: 1b
             bus info: pci@0000:00:1b.0
             version: 05
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi pciexpress bus_master cap_list
             configuration: driver=snd_hda_intel latency=0
             resources: irq:45 memory:b4400000-b4403fff
        *-pci:0
             description: PCI bridge
             product: 5 Series/3400 Series Chipset PCI Express Root Port 1
             vendor: Intel Corporation
             physical id: 1c
             bus info: pci@0000:00:1c.0
             version: 05
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:17 ioport:2000(size=4096) memory:b3400000-b43fffff ioport:b0400000(size=16777216)
           *-network
                description: Ethernet interface
                product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:01:00.0
                logical name: eth0
                version: 03
                serial: 64:31:50:8a:e8:92
                size: 10Mbit/s
                capacity: 1Gbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl_nic/rtl8168d-2.fw latency=0 link=no multicast=yes port=MII speed=10Mbit/s
                resources: irq:40 ioport:2000(size=256) memory:b0404000-b0404fff memory:b0400000-b0403fff
        *-pci:1
             description: PCI bridge
             product: 5 Series/3400 Series Chipset PCI Express Root Port 2
             vendor: Intel Corporation
             physical id: 1c.1
             bus info: pci@0000:00:1c.1
             version: 05
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:16 ioport:1000(size=4096) memory:b2400000-b33fffff ioport:b1400000(size=16777216)
           *-network
                description: Wireless interface
                product: Centrino Wireless-N 1000 [Condor Peak]
                vendor: Intel Corporation
                physical id: 0
                bus info: pci@0000:02:00.0
                logical name: wlan0
                version: 00
                serial: 8c:a9:82:31:c3:4a
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=iwlwifi driverversion=3.13.0-24-generic firmware=39.31.5.1 build 35138 ip=192.168.1.40 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
                resources: irq:44 memory:b2400000-b2401fff
        *-usb:1
             description: USB controller
             product: 5 Series/3400 Series Chipset USB2 Enhanced Host Controller
             vendor: Intel Corporation
             physical id: 1d
             bus info: pci@0000:00:1d.0
             version: 05
             width: 32 bits
             clock: 33MHz
             capabilities: pm debug ehci cap_list
             configuration: driver=ehci-pci latency=0
             resources: irq:20 memory:b4405800-b4405bff
        *-pci:2
             description: PCI bridge
             product: 82801 Mobile PCI Bridge
             vendor: Intel Corporation
             physical id: 1e
             bus info: pci@0000:00:1e.0
             version: a5
             width: 32 bits
             clock: 33MHz
             capabilities: pci subtractive_decode bus_master cap_list
        *-isa
             description: ISA bridge
             product: Mobile 5 Series Chipset LPC Interface Controller
             vendor: Intel Corporation
             physical id: 1f
             bus info: pci@0000:00:1f.0
             version: 05
             width: 32 bits
             clock: 33MHz
             capabilities: isa bus_master cap_list
             configuration: driver=lpc_ich latency=0
             resources: irq:0
        *-storage
             description: SATA controller
             product: 5 Series/3400 Series Chipset 4 port SATA AHCI Controller
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: pci@0000:00:1f.2
             version: 05
             width: 32 bits
             clock: 66MHz
             capabilities: storage msi pm ahci_1.0 bus_master cap_list
             configuration: driver=ahci latency=0
             resources: irq:41 ioport:3048(size=8) ioport:305c(size=4) ioport:3040(size=8) ioport:3058(size=4) ioport:3020(size=32) memory:b4405000-b44057ff
        *-serial UNCLAIMED
             description: SMBus
             product: 5 Series/3400 Series Chipset SMBus Controller
             vendor: Intel Corporation
             physical id: 1f.3
             bus info: pci@0000:00:1f.3
             version: 05
             width: 64 bits
             clock: 33MHz
             configuration: latency=0
             resources: memory:b4406000-b44060ff ioport:3000(size=32)
        *-generic
             description: Signal processing controller
             product: 5 Series/3400 Series Chipset Thermal Subsystem
             vendor: Intel Corporation
             physical id: 1f.6
             bus info: pci@0000:00:1f.6
             version: 05
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=intel ips latency=0
             resources: irq:21 memory:b4404000-b4404fff
     *-pci:1
          description: Host bridge
          product: Core Processor QuickPath Architecture Generic Non-core Registers
          vendor: Intel Corporation
          physical id: 101
          bus info: pci@0000:ff:00.0
          version: 05
          width: 32 bits
          clock: 33MHz
     *-pci:2
          description: Host bridge
          product: Core Processor QuickPath Architecture System Address Decoder
          vendor: Intel Corporation
          physical id: 102
          bus info: pci@0000:ff:00.1
          version: 05
          width: 32 bits
          clock: 33MHz
     *-pci:3
          description: Host bridge
          product: Core Processor QPI Link 0
          vendor: Intel Corporation
          physical id: 103
          bus info: pci@0000:ff:02.0
          version: 05
          width: 32 bits
          clock: 33MHz
     *-pci:4
          description: Host bridge
          product: Core Processor QPI Physical 0
          vendor: Intel Corporation
          physical id: 104
          bus info: pci@0000:ff:02.1
          version: 05
          width: 32 bits
          clock: 33MHz
     *-pci:5
          description: Host bridge
          product: Core Processor Reserved
          vendor: Intel Corporation
          physical id: 105
          bus info: pci@0000:ff:02.2
          version: 05
          width: 32 bits
          clock: 33MHz
     *-pci:6
          description: Host bridge
          product: Core Processor Reserved
          vendor: Intel Corporation
          physical id: 106
          bus info: pci@0000:ff:02.3
          version: 05
          width: 32 bits
          clock: 33MHz
     *-scsi:0
          physical id: 1
          logical name: scsi0
          capabilities: emulated
        *-disk
             description: ATA Disk
             product: TOSHIBA MK5061GS
             vendor: Toshiba
             physical id: 0.0.0
             bus info: scsi@0:0.0.0
             logical name: /dev/sda
             version: MH00
             serial: 311LT51ZT
             size: 465GiB (500GB)
             capabilities: partitioned partitioned:dos
             configuration: ansiversion=5 sectorsize=512 signature=522b6e86
           *-volume:0
                description: EXT4 volume
                vendor: Linux
                physical id: 1
                bus info: scsi@0:0.0.0,1
                logical name: /dev/sda1
                logical name: /
                version: 1.0
                serial: 92f77b3f-fdc0-4ec0-b016-2ab7b22fca56
                size: 40GiB
                capacity: 40GiB
                capabilities: primary bootable journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized
                configuration: created=2014-08-09 11:28:35 filesystem=ext4 lastmountpoint=/ modified=2015-07-30 07:06:31 mount.fstype=ext4 mount.options=rw,relatime,errors=remount-ro,data=ordered mounted=2015-07-30 07:06:31 state=mounted
           *-volume:1
                description: Linux swap volume
                physical id: 2
                bus info: scsi@0:0.0.0,2
                logical name: /dev/sda2
                version: 1
                serial: fd88b9f4-a4f3-4742-a57d-2c528b62be97
                size: 8189MiB
                capacity: 8189MiB
                capabilities: primary nofs swap initialized
                configuration: filesystem=swap pagesize=4096
           *-volume:2
                description: EXT4 volume
                vendor: Linux
                physical id: 3
                bus info: scsi@0:0.0.0,3
                logical name: /dev/sda3
                logical name: /home
                version: 1.0
                serial: 9424d69d-2b57-4104-8770-2cd365351fe3
                size: 350GiB
                capacity: 350GiB
                capabilities: primary journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized
                configuration: created=2011-04-14 19:30:57 filesystem=ext4 lastmountpoint=/home modified=2015-07-30 07:06:31 mount.fstype=ext4 mount.options=rw,relatime,data=ordered mounted=2015-07-30 07:06:31 state=mounted
     *-scsi:1
          physical id: 2
          logical name: scsi1
          capabilities: emulated
        *-cdrom
             description: DVD-RAM writer
             product: DVD RW AD-7930H
             vendor: hp
             physical id: 0.0.0
             bus info: scsi@1:0.0.0
             logical name: /dev/cdrom
             logical name: /dev/sr0
             version: 2.81
             capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
             configuration: ansiversion=5 status=nodisc
  *-battery
       product: LU06062
       vendor: Dynapack
       physical id: 1
       slot: Primary
       capacity: 5744mWh
       configuration: voltage=10,8V
If there is any other information that could be helpful let me know. Thanks again.
 
Old 07-30-2015, 08:09 AM   #4
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Current: Debian and OpenSUSE. Past: Arch, RedHat (pre-RHEL). FreeBSD & OpenBSD novice, Hackintosh
Posts: 1,193
Blog Entries: 7

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
One thing I forgot to ask, what output driver is MPlayer using? Check in settings (right click the main window with all of the controls) under Video, and let us know.

I believe there's also somewhere in the settings dialog where you can set the video and audio cache without having to do it from the command line every time, but I don't have MPlayer handy ATM.

Last edited by goumba; 07-30-2015 at 08:11 AM.
 
Old 07-30-2015, 09:36 AM   #5
gugamare
LQ Newbie
 
Registered: Dec 2004
Location: São Paulo, Brazil
Distribution: Ubuntu 9.10
Posts: 29

Original Poster
Rep: Reputation: 15
In my command line mplayer uses the xv output driver, I believe.
 
Old 07-31-2015, 07:57 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,070
Blog Entries: 10

Rep: Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125
your setup looks normal enough.
media playback should work ootb.

try renaming mplayer directory, and try again.
try another media player. if you can get a recent version of mpv, i recommend that.

does this happen with ALL media files, regardless of type/location?

do other process take your resources?
what's the output of "top" during media playback (once for cpu, once for memory and once for i/o)?
 
Old 07-31-2015, 08:06 AM   #7
zeebra
Member
 
Registered: Dec 2011
Distribution: Mageia, Slackware
Posts: 959
Blog Entries: 11

Rep: Reputation: 271Reputation: 271Reputation: 271
How big is the file you are trying to play? What format is it and what is the resolution?

As far as I can see from your hardware, it would have issues playing 1080p

It could easily be the codec.

Alternatively check your cpu frequency settings. A bad setting could lead to bad movieplayback while everything else on computer works fine. I have had bugs with the "POWERSAVE" goovernor.

Check with "cpupower frequency-info" or cpufreq --help
 
Old 07-31-2015, 02:21 PM   #8
gugamare
LQ Newbie
 
Registered: Dec 2004
Location: São Paulo, Brazil
Distribution: Ubuntu 9.10
Posts: 29

Original Poster
Rep: Reputation: 15
Hello Zeebra, thanks as well for your help.

I get the following messages when I run mplayer with no commandline arguments. I believe it contains all of the resoultion/frequency information. The file is 313.9 Mb.

Code:
MPlayer2 2.0-701-gd4c5b7f-2ubuntu2 (C) 2000-2012 MPlayer Team

Playing MyVideo.mp4.
Detected file format: QuickTime / MOV (libavformat)
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
Clip info:
 major_brand: isom
 minor_version: 1
 compatible_brands: isom
 creation_time: 2011-09-08 11:43:25
Load subtitles in .
SUB: Added subtitle file (1): ./MyVideo.srt
Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
[ass] auto-open
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [libavcodec]
Selected audio codec: AAC (Advanced Audio Coding) [libavcodec]
AUDIO: 48000 Hz, 2 ch, floatle, 131.7 kbit/4.29% (ratio: 16458->384000)
AO: [pulse] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
VIDEO:  720x404  23.976 fps  579.4 kbps (72.4 kB/s)
VO: [xv] 720x404 => 720x404 Planar YV12 
Colorspace details not fully supported by selected vo.
[ass] PlayResX undefined, setting to 384
A:   9.4 V:   8.3 A-V:  1.053 ct:  0.000   0/  0  0%  2% 76.1% 50 0 


           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

A:  13.9 V:  13.9 A-V:  0.000 ct:  0.000   0/  0  0%  2% 48.6% 78 0
The output from "cpupower frequency-info" is as follows:

Code:
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.0 us.
  hardware limits: 1.20 GHz - 2.40 GHz
  available frequency steps: 2.40 GHz, 2.40 GHz, 2.27 GHz, 2.13 GHz, 2.00 GHz, 1.87 GHz, 1.73 GHz, 1.60 GHz, 1.47 GHz, 1.33 GHz, 1.20 GHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 1.20 GHz and 2.40 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 1.20 GHz.
  cpufreq stats: 2.40 GHz:10,43%, 2.40 GHz:0,07%, 2.27 GHz:0,30%, 2.13 GHz:0,25%, 2.00 GHz:0,29%, 1.87 GHz:0,23%, 1.73 GHz:0,24%, 1.60 GHz:0,21%, 1.47 GHz:0,28%, 1.33 GHz:0,34%, 1.20 GHz:87,36%  (43315)
  boost state support:
    Supported: yes
    Active: yes
    25500 MHz max turbo 4 active cores
    25500 MHz max turbo 3 active cores
    25500 MHz max turbo 2 active cores
    25500 MHz max turbo 1 active cores
 
Old 08-01-2015, 06:49 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,070
Blog Entries: 10

Rep: Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125
a single core cpu with 2.4GHz is good enough to play most non-HD video with mplayer.

the workaround you posted in post #1 is as good as it gets.

you can mark this [Solved] now.

ps:
to give you some rough estimation of what your computer is capable of:
a 45min TV episode should have less than 500MB, usually around 350.
a file can be smaller than that, but if it's only 5min long, then it's too hi-res for your machine.
you also have to watch your resources closely during video playback (e.g. close your browser completely).

Last edited by ondoho; 08-01-2015 at 06:53 AM.
 
Old 08-01-2015, 03:47 PM   #10
gugamare
LQ Newbie
 
Registered: Dec 2004
Location: São Paulo, Brazil
Distribution: Ubuntu 9.10
Posts: 29

Original Poster
Rep: Reputation: 15
Thanks everybody, although I feel there should be a more streamlined out-of-the-box solution for linux mint, the alias command is good enough for my purposes, so I'll mark my problem as solved. If anyone has further suggestions I'd be happy to try them out.
 
Old 08-03-2015, 05:53 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,070
Blog Entries: 10

Rep: Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125
Quote:
Originally Posted by gugamare View Post
I feel there should be a more streamlined out-of-the-box solution for linux mint, the alias command is good enough for my purposes, so I'll mark my problem as solved. If anyone has further suggestions I'd be happy to try them out.
firstly, aliases can be made permanent by adding them to ~/.bash_profile (this file is sometimes named differently. search the web, or better mint forums, how bash works at login).

if you use a graphical environment, you can tell your file browser to open movie files with that same command (not the alias) via the "Open with..." menu.

you can tell mplayer to always use these settings via its own config.
 
Old 08-04-2015, 05:01 PM   #12
zeebra
Member
 
Registered: Dec 2011
Distribution: Mageia, Slackware
Posts: 959
Blog Entries: 11

Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by ondoho View Post
firstly, aliases can be made permanent by adding them to ~/.bash_profile (this file is sometimes named differently. search the web, or better mint forums, how bash works at login).

if you use a graphical environment, you can tell your file browser to open movie files with that same command (not the alias) via the "Open with..." menu.

you can tell mplayer to always use these settings via its own config.
It doesn hurt to try to set the frequency governor to "performance". Some video cards leave much work on the computer. This also depends on the video players "output mode", which you should try various options of.

1. Try, as root or with sudo
Code:
cpupower frequency-set -g performance
And then play the video.

2. Play the video with VLC && gstreamer based interface. (not sure what mint uses)

3. Download ALL the correct codecs, aac, ac3, ffmpeg, faad, faac, mpeg etc etc.


Anyways, I have tried Mint and I quite like it. The one thing I found, alike to Ubuntu and all its derivatives, is that it is a bit slugish and slow compared to for example Mageia or source based GNU/Linux like Slackware.

You can always install another test distribution to check if the problem is distribution specific, or you can change to a lighter distribution.

In the end, the picture depends on the computer overall resources, the available resources and the graphic card. If the pictures pixelrate is very high and there are many pictures per second, then choppy picture quality might occur on hardware that cannot handle it. Even lower pixelrate and many pictures per second or high pixelrate and medium picture per second can cause choppy pictures on many laptops or old desktop computers.

I have had several choppy picture issues with videos in the past, but I always solved them by installing the correct codecs, adjusting the cpu frequency, using the correct display settings and driver (preferably the free driver). Even then my hardware has had limitations. HD 720p on this computer works fine, while HD 1080p is slightly choppy. Connecting things to a HDMI to 1080p tv, it plays 1080p very choppy and 720p very well. This is due to the hardware limitations and the display card on my computer. So I simply play the videos at 720p.

Good luck solving it!

Last edited by zeebra; 08-04-2015 at 05:04 PM.
 
Old 08-05-2015, 05:02 AM   #13
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,070
Blog Entries: 10

Rep: Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125Reputation: 5125
good advice, zeebra!
Quote:
Originally Posted by zeebra View Post
In the end, the picture depends on the computer overall resources
single core with 2.4GHz max.
that's why i said "it's as good as it gets".
ultimately, we would need to know more about the video(s) in question.
i had similar experiences on older devices - the usual 700mb compressed full-length movie plays just fine, put the 1080px dvd-rip (=HD) doesn't.
 
  


Reply

Tags
mplayer


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Choppy video when watching video in Firefox, VLC and Mplayer work fine maples Linux - Laptop and Netbook 9 07-06-2014 06:37 AM
Linux Mint Nadia on Dell Precision M6400 - wierd slowness, choppy video kourama Linux - Laptop and Netbook 2 02-05-2013 11:40 PM
Slow or choppy video Truc Linux - Newbie 1 01-22-2012 10:33 AM
installed a mythtv client, very choppy video on All meida (tv,video etc) zeltak Linux - Software 3 01-24-2007 01:53 PM
Choppy video BigDummy Fedora 0 05-07-2004 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration