Linux Choppy playback / Video stutter with Eden
#16
From your debug log, it looks like you're using VIDEO_TS rips. Can you test some h264 or VC1 content and see if you have the same issues?
HTPC 1 - Zotac ZBOX ID80U | 4GB RAM | 64GB SSD | Openelec | Confluence
HTPC 2 - Zotac ZBOX ID41U | 4GB RAM | 60GB SSD | Openelec | Confluence
Server - unRAID Server | 3 x 2TB WD Green HDD, 1TB WD Black HDD (Cache) | Sabnzbd | CouchPotato | Sickbeard
Reply
#17
Hi Plaguester,

I think I said this but, I only see the issue with DVDs. I specifically decrypted it to disk so that I could confirm it wasn't a data rate issue (DVD to RAM). And I also encoded the movie to h264/AC3 in mkv and see no problem.

-Craig
How to provide a Kodi log - debug log (wiki)

HTPC SETUP: Zotac ZBOX-ID41-PLUS-U | Intel Atom D525 1.8 GHz Dual-Core | 2GB RAM | NVIDIA® ION™ (w/512MB DDR3 memory) | 128G Plextor M5P Series PX-128M5Pro 2.5" 128GB SATA III MLC SSD
Reply
#18
Note that DVD playback does not make use of hw acceleration e.g. vdpau.
Reply
#19
I have the same issue. The video stops or hesitates every third or fifth second, then plays smoothly for a few seconds. Audio works fine.

Pastebin of debug-log: http://pastebin.com/FNGGL58V

Ethtool says I have 100 Mb with full duplex.

Setup:

Zotac H55
Intel Core i5
2 Gb RAM

No extra video cards on board.

Pressing "O" while watching movie tells me that two cores are working, but at around 20% or less. Streaming movie from a NAS through wired LAN.

This setup worked flawless before Eden.
Reply
#20
Hi folks. I'm also experiencing choppy playback for DVD iso files. I have a Zotact IONITX-L-E board (NVidia ION) where I run XBMC since v9. My previous setup was XBMCLive (Dharma) and it was FLAWLESSLY... I did test this same DVD ISO files in another machine and they're good.

My HTPC is wired through a 100Mbps switch and ethtool says it. All my media is stored in a Synology NAS and I can play 1080p mkvs (H.264, DTS, AC3, etc) movies with high bitrate (as 20, 30 Mb/s) that are located at the same Synology NAS I have with perfect smooth playback (have the 23.97 and 59.94 properly configured)

I'm using autofs to mount my NDS shares as I did in Dharma because the built-in NFS feature in Eden is not working for me. Didn't troubleshoot it yet, but it just locks XBMC and I had to hard reset it... (I get the loading image... it continues spinning, but can't get out of it).

I've built this system on top of Ubuntu 12.04 (server, minimal install) and using the oficial Team-XBMC ppa for Ubuntu Precise 12.04 LTS.

The CPUs are not under high load while playing, with less than 20% load most of the time. I suspect there is something wrong with the DVD ISO playback, as other's are seeing...

I'll collect some more logs and paste here....

Thx.
Reply
#21
Ok, just got the log in debug mode...

I see LOTS of this:

Code:
ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.

And here some other errors I see:

Code:
14:01:39 T:2946288448   ERROR: Unable to load libmpeg2.so.0, reason: libmpeg2.so.0: cannot open shared object file: No such file or directory
...
...
14:01:41 T:2773379904   ERROR: ffmpeg[A54E6B40]: [mpeg2video] ac-tex damaged at 13 0
...
...
14:01:41 T:2773379904   ERROR: ffmpeg[A54E6B40]: [mpeg2video] Warning MVs not available
...
...
14:02:22 T:2989766464   DEBUG: Error: Requested setting (pvrplayback.signalquality) was not found.  It must be case-sensitive
...
...

You can see the complete error log here.

Here are some info about the DVD ISO files I'm playing off of local hard disk to prove is nothing related with network streaming. I've used Mediainfo to display the details of one of the DVD ISO VOB files:

Code:
General
Complete name                            : /home/gpborges/.gvfs/Indiana.Jones.e.a.Última.Cruzada.%281989%29.iso/VIDEO_TS/VTS_06_1.VOB
Format                                   : MPEG-PS
File size                                : 1 024 MiB
Duration                                 : 1s 34ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 0 bps

Video
ID                                       : 224 (0xE0)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : M=3, N=12
Duration                                 : 1s 34ms
Bit rate mode                            : Variable
Bit rate                                 : 0 bps
Maximum bit rate                         : 9 800 Kbps
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 fps
Standard                                 : Component
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Scan order                               : 2:3 Pulldown
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 982.549
Stream size                              : 1 012 MiB (99%)
Color primaries                          : SMPTE 170M
Transfer characteristics                 : SMPTE 170M
Matrix coefficients                      : SMPTE 170M

Audio #1
ID                                       : 189 (0xBD)-128 (0x80)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Muxing mode                              : DVD-Video
Duration                                 : 256ms
Bit rate mode                            : Constant
Bit rate                                 : 448 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 14.0 KiB (0%)

Audio #2
ID                                       : 189 (0xBD)-129 (0x81)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Muxing mode                              : DVD-Video
Duration                                 : 320ms
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 7.50 KiB (0%)

Text #1
ID                                       : 189 (0xBD)-32 (0x20)
Format                                   : RLE
Format/Info                              : Run-length encoding
Muxing mode                              : DVD-Video

Text #2
ID                                       : 189 (0xBD)-33 (0x21)
Format                                   : RLE
Format/Info                              : Run-length encoding
Muxing mode                              : DVD-Video

Text #3
ID                                       : 189 (0xBD)-34 (0x22)
Format                                   : RLE
Format/Info                              : Run-length encoding
Muxing mode                              : DVD-Video

Text #4
ID                                       : 189 (0xBD)-35 (0x23)
Format                                   : RLE
Format/Info                              : Run-length encoding
Muxing mode                              : DVD-Video

Menu

I hope we can find a fix for this, and let me know if I can help with some other info.

Gabriel.

Reply
#22
Folks, just tried with a real DVD disk and I didn't have any stutter. Playback was really smooth, and I didn't notice anything.

I could also get rid of the error

Code:
15:28:54 T:2945710912   ERROR: Unable to load libmpeg2.so.0, reason: libmpeg2.so.0: cannot open shared object file: No such file or directory
15:28:54 T:2945710912   DEBUG: Dll libmpeg2.so.0 was not found in path
15:28:54 T:2945710912   DEBUG: FactoryCodec - Video: libmpeg2 - Failed

by installing libmpeg2-4:

Code:
sudo apt-get install libmpeg2-4

Question is: Why didn't it get installed when I installed XBMC? I suppose it should be there as a dep...

I've also installed w32codecs libdvdcss2 from medibuntu repository...

This error is filling my logs...

Code:
17:10:18 T:2989098816   DEBUG: Error: Requested setting (pvrplayback.signalquality) was not found.  It must be case-sensitive

It appears too much times in my log.

Here is the complete log where I tried to play some ISO, and some real dvd disks. (2 of them were badly scratched, so you will see some errors but due to the media. The one in good condition played smoothly)
Reply
#23
People, I was doing some more debugging tailing the logs while watching the movie. I could notice that every time the stutter starts, I see this filling the logs:

Code:
02:08:30 T:2989565760   DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
02:08:34 T:2945280832   DEBUG: CPullupCorrection: detected pattern of length 12: 83433.33 16677.78 16677.78 250288.89 16677.78 16677.78 16677.78 16677.78 16677.78 16677.78 16677.78 16677.78, frameduration: 41708.333333
02:08:37 T:2953673536   DEBUG: CDVDPlayer::ProcessSubData: Got complete SPU packet
02:08:46 T:2945280832   DEBUG: Previous line repeats 2 times.
02:08:46 T:2945280832   DEBUG: CPullupCorrection: pattern lost on diff 166855.555556
02:08:49 T:2953673536   DEBUG: CDVDPlayer::ProcessSubData: Got complete SPU packet
02:08:52 T:2945280832   DEBUG: Previous line repeats 1 times.
02:08:52 T:2945280832   DEBUG: CPullupCorrection: detected pattern of length 12: 83433.33 16677.78 16677.78 250288.89 16677.78 16677.78 16677.78 16677.78 16677.78 16677.78 16677.78 16677.78, frameduration: 41708.333333
02:08:55 T:2953673536   DEBUG: CDVDPlayer::ProcessSubData: Got complete SPU packet
02:09:05 T:2945280832   DEBUG: Previous line repeats 3 times.
02:09:05 T:2945280832   DEBUG: CPullupCorrection: pattern lost on diff 116800.000000
02:09:06 T:2953673536   DEBUG: CDVDPlayer::ProcessSubData: Got complete SPU packet
02:09:24 T:2945280832   DEBUG: Previous line repeats 3 times.
02:09:24 T:2945280832   DEBUG: CalcFrameRate counted 1000 frames without being able to calculate the framerate, giving up
02:09:32 T:2953673536   DEBUG: CDVDPlayer::ProcessSubData: Got complete SPU packet
02:09:35 T:2945280832   DEBUG: Previous line repeats 1 times.
02:09:35 T:2945280832   DEBUG: CPullupCorrection: detected pattern of length 12: 100111.11 16677.78 16677.78 233611.11 16677.78 16677.78 16677.78 16677.78 16677.78 16677.78 16677.78 16677.78, frameduration: 41708.333333
02:09:36 T:2953673536   DEBUG: CDVDPlayer::ProcessSubData: Got complete SPU packet
02:09:43 T:2945280832   DEBUG: Previous line repeats 1 times.
02:09:43 T:2945280832   DEBUG: CPullupCorrection: pattern lost on diff 16677.777778
02:09:43 T:2953673536   DEBUG: CDVDPlayer::ProcessSubData: Got complete SPU packet
02:09:52 T:2945280832   DEBUG: CPullupCorrection: detected pattern of length 12: 100111.11 16677.78 16677.78 233611.11 16677.78 16677.78 16677.78 16677.78 16677.78 16677.78 16677.78 16677.78, frameduration: 41708.333333
02:09:52 T:2945280832   DEBUG: CPullupCorrection: pattern lost on diff 83422.222222
02:09:52 T:2953673536   DEBUG: CDVDPlayer::ProcessSubData: Got complete SPU packet
02:09:58 T:2945280832   DEBUG: Previous line repeats 2 times.
02:09:58 T:2945280832   DEBUG: CPullupCorrection: detected pattern of length 12: 83433.33 16677.78 16677.78 250288.89 16677.78 16677.78 16677.78 16677.78 16677.78 16677.78 16677.78 16677.78, frameduration: 41708.333333

I'm sure there is something wrong/broken but don't know how to fix it.

If anyone needs any more info, logs, please let me know. I'm willing to help to get this issue resolved.

Thx!
Reply
#24
Correcting my post bellow... I tried today with another DVD disk (Prison Break, original) and it was stuttering a LOT.

This is my only issue I'm experiencing. Everything else runs pretty smoothly. I was suspecting it could be something related to refresh rates but just guessing...

Anyone to help here!?!?! :-(
Reply
#25
People, see in this tread the fix I've found for my choppy DVD/ISO playback...

http://forum.xbmc.org/showthread.php?tid...pid1142157

Thx everyone!
Reply
#26
Did not have DVD choppiness problems on Eden when I was using ubuntu 10.10 with an older nvidia driver. Cannot recall that version. When i changed to Xubuntu 12.04 I started having this problem with DVD playback (nvidia driver 295.43). Tried all the tweaks suggested above without success. Finally upgraded to kernel 3.4 and upgraded the nvidia drivers to 302.17. Now still with mild choppiness, but MUCH improved and watchable. With the older driver on ubuntu 10.10 could not get sound over HDMI, the new os and driver fixed that. I know this is not a complete fix but hopefully helps some of you.

System specs are Dell 8300 Dimension P4 2.8ghz, 3gb RAM, Sparkle Geforce 8400gs 256 mb PCI graphics card. Connected to 60" Sharp Aquos with HDMI. OS = Xubuntu 12.04, XBMC installed through official ubuntu repositories.

Link to upgrade linux kernel to 3.4 on ubuntu /Xubuntu 12.04
http://askubuntu.com/questions/140254/ho...-linux-3-4

Upgrade to latest Nvidia drivers using ppa method

sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current
Reply

Logout Mark Read Team Forum Stats Members Help
Choppy playback / Video stutter with Eden0