Standard AVCHD m2ts files play with glitches

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Streamerke Offline
Member
Posts: 98
Joined: Apr 2012
Reputation: 0
Post: #1
Hi,

Footage taken with my Panasonic SD900 plays with jerky and with glitches. The m2ts files however were created with Sony Vegas and are the product of encoding, so there is no relationship anymore with the raw footage. To be sure I muxed the files again using TSMuxer but the result is exactly the same.

The files play on any other compatibel device or software: VLS media player, Media Player Classic, Popcorn Hour, PS3 (if renamed mpg), ... I am on the last release of XBMC: Eden 11.0 beta 3. I think there is definitely a codec problem in XBMC here. I can upload a file if required. Who can help?

Regards
find quote
Streamerke Offline
Member
Posts: 98
Joined: Apr 2012
Reputation: 0
Post: #2
No-one has info?
find quote
Streamerke Offline
Member
Posts: 98
Joined: Apr 2012
Reputation: 0
Post: #3
No-one has this problem and no-one takes an interest? Is a media center not supposed to play home movies? Strange...

Well, I did another test, this time with Corel Video Studio X5. This program can both smart render and encode. The output of the smart render process cannot be played well either however the behaviour is different. The movies play well untill the first transition to the next clip (the place where the video was trimmed). From that point on the video hangs and starts jumping a frame forward and backward.

Again, the output plays well on VLC Media player etc. Not in XBMC.

Am I wasting my time here asking for help?
find quote
bluray Offline
Posting Freak
Posts: 8,316
Joined: May 2011
Reputation: 145
Post: #4
Not enough info for any of us to offer solution-

Hardware- cpu, gpu, etc
software- OS, driver, etc

>Alienware X51- do it all HTPC
>Simplify XBMC configurations
>HOW-TO Bitstreaming using XBMC
I refused to watch movie without bitstreaming HD audio!
find quote
DDDamian Offline
Team-XBMC Developer
Posts: 3,030
Joined: Sep 2011
Reputation: 254
Location: Canada
Post: #5
Sounds like messed up video, but if VLC plays it (which is based on ffmpeg) then XBMC might do better at now that the latest ffmpeg version has been merged into master. However you'll need to build it yourself or wait for nightlies to resume as the merge was held off until after Eden, and has just happened.

System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon AVR-3808CI - Denon DVD-5900 Universal Player - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray - X-Box 360 - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!
find quote
Streamerke Offline
Member
Posts: 98
Joined: Apr 2012
Reputation: 0
Post: #6
Video is certainly not messed up, besides I can create 2 different kinds of problematic behaviour with the same footage depending on the way I edited and processed the video. I now found out that the raw footage straight from the camera plays fine.

Hardware:

CPU: Intel Core 2 Quad Q9450 @ 2.66Ghz
GPU: Nvidea Geforce 9600 GS

Software:

Windows Vista SP2 64 bit
GPU Driver: I tried the very latest GeForce 9600 GS Driver v.296.10 WHQL

I am in the process of testing before I migrate from my current Popcorn Hour solution to a PC based XBMC which is why I installed the latest drivers etc. It is here that I came across the seemingly problematic support of AVCHD files. I rolled back to the original version of the GPU driver just to make sure that the driver update was not causing this problem. The version of the GPU driver does not seem to affect the problem.
find quote
Ned Scott Offline
Team-XBMC Wiki Guy
Posts: 19,834
Joined: Jan 2011
Reputation: 247
Location: Arizona, USA
Post: #7
debug logs and sample files will help to understand the issue.

You can make easy links to the XBMC wiki using double brackets around common XBMC words: [[debug log]] = debug log, [[Video library]] = Video library, [[SMB]] = SMB , [[userdata]] = userdata, etc
find quote
bluray Offline
Posting Freak
Posts: 8,316
Joined: May 2011
Reputation: 145
Post: #8
@streamerke-

You can try these simple configurations-

1. Set power option in W7 control panel to "high performance"- make a full use of your powerful Q9450
2. Enable DXVA2 using DXVA render method and disable everything else in XBMC settings/videos/playback

>Alienware X51- do it all HTPC
>Simplify XBMC configurations
>HOW-TO Bitstreaming using XBMC
I refused to watch movie without bitstreaming HD audio!
find quote
Streamerke Offline
Member
Posts: 98
Joined: Apr 2012
Reputation: 0
Post: #9
Hi,

I enabled DXVA2, in fact I did it earlier as a test showed that some high bitrate HD movies were played with some judder. After enabling DXVA2 everything is as smooth as can be. After all my testing is done I will reinstall my system to be used as media center. Then I need to install the latest Nvidea drivers. I already tested them. The problem reported here is a bit better but not much. I rolled back to the old version of the driver.

Anyway, I created a debug log and I uploaded test footage. The link is here for everyone to download: http://wtrns.fr/nJOJgAAg1PCddqZ


I hope this problem gets solved. This is the only showstopper left. I have experimented with Handbrake to convert the home movies that do not play well in XBMC but the result is not the same quality. I will continue testing in that area as well but I sure hope that one day I can just play my home movies in XBMC.
find quote
bluray Offline
Posting Freak
Posts: 8,316
Joined: May 2011
Reputation: 145
Post: #10
(2012-04-09 17:54)Streamerke Wrote:  Hi,

I enabled DXVA2, in fact I did it earlier as a test showed that some high bitrate HD movies were played with some judder. After enabling DXVA2 everything is as smooth as can be. After all my testing is done I will reinstall my system to be used as media center. Then I need to install the latest Nvidea drivers. I already tested them. The problem reported here is a bit better but not much. I rolled back to the old version of the driver.

Anyway, I created a debug log and I uploaded test footage. The link is here for everyone to download: http://wtrns.fr/nJOJgAAg1PCddqZ


I hope this problem gets solved. This is the only showstopper left. I have experimented with Handbrake to convert the home movies that do not play well in XBMC but the result is not the same quality. I will continue testing in that area as well but I sure hope that one day I can just play my home movies in XBMC.
Have you select DXVA as Render Method instead of Auto? Have you set power option in W7 control panel to "high performance"?

>Alienware X51- do it all HTPC
>Simplify XBMC configurations
>HOW-TO Bitstreaming using XBMC
I refused to watch movie without bitstreaming HD audio!
find quote
Streamerke Offline
Member
Posts: 98
Joined: Apr 2012
Reputation: 0
Post: #11
I did put DXVA as render method, I will check the high performance setting. I have got Vista, not W7. Is this in the power/energy settings that I need to check?

Edit: I installed XBMC on a laptop and tried to play the same files. Same problem here...

Did you play the file I uploaded?
(This post was last modified: 2012-04-09 23:03 by Streamerke.)
find quote
Ned Scott Offline
Team-XBMC Wiki Guy
Posts: 19,834
Joined: Jan 2011
Reputation: 247
Location: Arizona, USA
Post: #12
Tried your test file and it plays flawlessly on my 2009 Macbook Pro (2.8 GHz Core 2 duo), Mac OS X 10.7.3. No dropped frames, using CPU decoding.

Tried it on my ATV1, which is an Intel Pentium M, running a custom Linux build and using a Broadcom Crystal HD decoder, which normally plays everything I throw at it, and it stuttered like mad.

I'm guessing that hardware decoding is messing up, or it may even be limited to specific types of hardware decoding. CPU decoding should work, though. In other words, XBMC is trying to use hardware decoding when it shouldn't.

You can make easy links to the XBMC wiki using double brackets around common XBMC words: [[debug log]] = debug log, [[Video library]] = Video library, [[SMB]] = SMB , [[userdata]] = userdata, etc
find quote
bluray Offline
Posting Freak
Posts: 8,316
Joined: May 2011
Reputation: 145
Post: #13
(2012-04-09 23:01)Streamerke Wrote:  I did put DXVA as render method, I will check the high performance setting. I have got Vista, not W7. Is this in the power/energy settings that I need to check?
My kid laptop playback is not smooth with Power Saver and Balanced, but playback very smooth with High Performance power option. You can use this guide for Vista- Set Power Options to High Performance.

Can you try to disable "Adjust display refresh rate to match video" and "Sync playback to display" too?

>Alienware X51- do it all HTPC
>Simplify XBMC configurations
>HOW-TO Bitstreaming using XBMC
I refused to watch movie without bitstreaming HD audio!
find quote
Streamerke Offline
Member
Posts: 98
Joined: Apr 2012
Reputation: 0
Post: #14
Hi,

I narrowed down the problem now!

- I changed the energy settings to "High performance" => No impact whatsoever.
- Rendering method => I can choose what I want but it does not affect the problem in any way
- I installed the latest Geforce drivers again => improvement but problem not gone

THEN I simply disabled the "Allow hardware acceleration (DXVA2)" setting in XBMC => Problem GONE!

Apparently this setting is activated by default, I cannot remember setting it.


OK, this makes me very happy as I can now play my home movies. I am wondering though what the problem really is. Does XBMC not work well with the Nvidea drivers. This seems to be the case as different versions of the drivers cause different kinds of behaviour. I think I want to use handware acceleration to get the best out of my system, right?
(This post was last modified: 2012-04-10 08:46 by Streamerke.)
find quote
Ned Scott Offline
Team-XBMC Wiki Guy
Posts: 19,834
Joined: Jan 2011
Reputation: 247
Location: Arizona, USA
Post: #15
Hardware acceleration just means your CPU doesn't have to work as hard. As far as quality goes, CPU decoding tends to be a little better on average, mostly because CPU/software decoding can be more forgiving of video formats that have quirks. More or less.

If the CPU can handle it, then I wouldn't worry much about hardware decoding being enabled. CPU decoding will use more battery power on a laptop, though.

You can make easy links to the XBMC wiki using double brackets around common XBMC words: [[debug log]] = debug log, [[Video library]] = Video library, [[SMB]] = SMB , [[userdata]] = userdata, etc
(This post was last modified: 2012-04-10 11:11 by Ned Scott.)
find quote
Post Reply