• 1
  • 29
  • 30
  • 31(current)
  • 32
  • 33
  • 34
[LINUX] Problems compiling crystalhd branch
pfennig Wrote:Is 60-70% CPU load even while using the CrystalHD expected?

Sounds about right for a single core Atom [email protected] with a 1080p mov. Most of this is moving the decoded picture frame around and audio decoding. Considering that this video would cause your single core Atom to roll over and die if you tried software decoding, this is pretty good Smile

Depending on video content, I see anywhere from mid 20s to 50-60 percent on the AppleTV under ubuntu 8.04.
Reply
I have some trouble getting vesafb to work on karmic. Anyone mind sharing how they got it oing?
Reply
davilla Wrote:Considering that this video would cause your single core Atom to roll over and die if you tried software decoding, this is pretty good Smile

Pretty good my a$$, this is bloody brilliant!!!

I'm going to try using the audio delay setting in the OSD tonight to get the audio and video in sync, will post back if it doesn't help or if I see anything else wrong.
Reply
pfennig Wrote:Pretty good my a$$, this is bloody brilliant!!!

I'm going to try using the audio delay setting in the OSD tonight to get the audio and video in sync, will post back if it doesn't help or if I see anything else wrong.

Smile

If you can qualify the audio delay that would help. Always the same? Depends on audio codec ? Depends on video content ? MediaInfo can be used to dump all the info from a video file.

Anything that would help narrow down the cause. Also, check a/v sync ( type 'o' to pop up the codec OSD). It should be close to zero.
Reply
Davilla, are you saying you don't have any audio sync problems?

Both myself and waterhead (on AVSForum, see this thread, I'm tux99 there: http://www.avsforum.com/avs-vb/showthrea...st17991088 ) see it too, it can be anything from 0.5 to 2-3 seconds, that the video lags behind the sound.

I imagine that this is due to having to send the video to the crystalhd, get it decoded and receive it back, before displaying it, but I hope there is a solution. Adjusting audio delay in XBMC works, but it needs readjusting for every movie and also after any chapter jump or ffwd or rewind it changes again.

I'm using a D945GSEJT mobo (mobile Atom N270 single core, like in netbooks) and waterhead is using a netbook (also with N270 Atom). My cpu load is not excessive, I see 45% load with top during 1080p BD backup playback.

I thought you were aware of this audio sync issue and it was just one of the things you hadn't gotten round to fix yet, but if you are not and need further details I can provide you with a debug log, let me know if you need it.
Reply
ion_man Wrote:Davilla, are you saying you don't have any audio sync problems?

Most are in sync, VC1 in a m2ts are not, they were in sync in the past, grrr. That's under my setup. Others' have different setups. Since I don't have an A/V receiver, I run around in analog out downmix or digital out also downmixed.

I'm asking for details here, play a video, note the audio offset. Is it the same all the time for this video? Play it multiple times, seek, etc. Is the offset the same? Note the video and audio details with MediaInfo. Rinse/Repeat with another video file. Same or different behavior ?

If video is lagging audio and is in slow motion and xbmc.log shows frame drops like crazy, that's a different problem.
Reply
My audio seems to be about 0.3 - 0.4 seconds ahead of the video on the HD movie I tried (m2ts Quantum of Solace). Simply using the Audio Delay (or was it "Audio Offset") setting in the OSD fixed the problem however - it stayed in sync within the scene I watched, and seemed to be fine after fast forwarding about 10 minutes as well.

Another movie I tried looked better without any adjustment (though it was a dubbed mkv anime, so lip-sync isn't expected to be perfect anyway).

For now, I'd consider this a minor issue as it is fixable with the OSD settings. It would be nice not to have to spend 3-4 mins per movie getting the value just right however, so I'd mark this as something to revisit in the future for the 'final polish'.

ion_man said "after any chapter jump or ffwd or rewind it changes again" - I didn't see that, but if the case then this would be a more severe issue warranting a closer look.

Edit:
The QoS m2ts 1080p that I tested needed sound delayed by about 0.35 seconds. Seemed to stay consistent, but I didn't stop/start it multiple times last night, just got it in sync once and then FFed 10 mins or so and checked that it was still in sync. Then watched something else :-)
MediaInfo says:
General
BDAV: 4.00 GiB, 1h 46mn
1 Video stream: AVC
1 Audio stream: AC-3
Video:
4 783 Kbps (4 695 Kbps), 1920*1080 (16:9), at 29.97 fps, AVC ([email protected]) (CABAC / 3 ref frames)
Audio
384 Kbps, 48.0 KHz, 6 channels, AC-3

I dont have a usb s/pdif thingie yet, so I am also using audio downmixed to analog stereo out, if that makes a difference.
Video is smooth after initial startup, no framedrops on this one (I do have other samples that do framedrop a bit, I'll have to track those down and post mediainfo details)
Reply
Detailed MediaInfo output:
Code:
General
ID                               : 1
Complete name                    : QuantumOfSolace.m2ts
Format                           : BDAV
Format/Info                      : Blu-ray Video
File size                        : 4.00 GiB
Duration                         : 1h 46mn
Overall bit rate                 : 5 389 Kbps
Maximum Overall bit rate         : 35.5 Mbps

Video
ID                               : 4113 (0x1011)
Menu ID                          : 1 (0x1)
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : [email protected]
Format settings, CABAC           : Yes
Format settings, ReFrames        : 3 frames
Duration                         : 1h 46mn
Bit rate                         : 4 783 Kbps
Nominal bit rate                 : 4 695 Kbps
Width                            : 1 920 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16:9
Frame rate                       : 23.976 fps
Resolution                       : 24 bits
Colorimetry                      : 4:2:0
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.096
Stream size                      : 3.55 GiB (89%)
Writing library                  : x264 core 65 r1066M 045ae40
Encoding settings                : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=7 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=2pass / bitrate=4695 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=25000 / vbv_bufsize=25000 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00

Audio
ID                               : 4352 (0x1100)
Menu ID                          : 1 (0x1)
Format                           : AC-3
Format/Info                      : Audio Coding 3
Duration                         : 1h 46mn
Bit rate mode                    : Constant
Bit rate                         : 384 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Surround: L R, LFE
Sampling rate                    : 48.0 KHz
Stream size                      : 292 MiB (7%)
Reply
Davilla, I'll get back to you with more precise details and mediainfo output later (or tomorrow if I don't find the time for it later today), I'll build the latest svn first to test it with the latest code.
Reply
Ok, did some testing with svn27420 just now and it appears the lip-sync issues I had with previous svn builds from a week or 2 ago, are gone! Cool

I noticed though that some BD backups that used to play fine before (other than the lip-sync issues) now play at very low fps, instead of 24fps the following plays at 15-19 fps:
Code:
General
Complete name                    : movie1.mkv
Format                           : Matroska
File size                        : 22.1 GiB
Duration                         : 1h 48mn
Overall bit rate                 : 29.1 Mbps
Encoded date                     : UTC 2010-02-02 02:40:03
Writing application              : MakeMKV v1.4.11 beta linux(x86-release)
Writing library                  : libmakemkv v1.4.11 beta (0.7.7/0.8.1) i586-manbo-linux-gnu

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : [email protected]
Format settings, CABAC           : Yes
Format settings, ReFrames        : 4 frames
Muxing mode                      : Container [email protected]
Codec ID                         : V_MPEG4/ISO/AVC
Duration                         : 1h 48mn
Width                            : 1 920 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16:9
Frame rate                       : 23.976 fps
Resolution                       : 8 bits
Colorimetry                      : 4:2:0
Scan type                        : Progressive
Color primaries                  : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics         : BT.709-5, BT.1361
Matrix coefficients              : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio #1
ID                               : 2
Format                           : TrueHD
Codec ID                         : A_TRUEHD
Codec ID/Info                    : Dolby TrueHD
Duration                         : 1h 48mn
Channel(s)                       : 6 channels
Sampling rate                    : 48.0 KHz
Resolution                       : 24 bits
Title                            : 5.1
Language                         : English

Audio #2
ID                               : 3
Format                           : AC-3
Format/Info                      : Audio Coding 3
Codec ID                         : A_AC3
Duration                         : 1h 48mn
Bit rate mode                    : Constant
Bit rate                         : 640 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Surround: L R, LFE
Sampling rate                    : 48.0 KHz
Stream size                      : 497 MiB (2%)
Title                            : 3/2+1
Language                         : English

Text #1
ID                               : 4
Format                           : PGS
Codec ID                         : S_HDMV/PGS
Codec ID/Info                    : The same subtitle format used on BDs/HD-DVDs
Language                         : English

Text #2
ID                               : 5
Format                           : PGS
Codec ID                         : S_HDMV/PGS
Codec ID/Info                    : The same subtitle format used on BDs/HD-DVDs
Language                         : English

Menu
00:00:00.000                     : en:Chapter 00
00:00:48.048                     : en:Chapter 01
00:17:01.478                     : en:Chapter 02
00:20:04.494                     : en:Chapter 03
00:23:42.003                     : en:Chapter 04
00:24:37.893                     : en:Chapter 05
00:26:34.092                     : en:Chapter 06
00:27:56.466                     : en:Chapter 07
00:29:51.539                     : en:Chapter 08
00:33:59.162                     : en:Chapter 09
00:38:33.144                     : en:Chapter 10
00:44:52.272                     : en:Chapter 11
00:46:10.517                     : en:Chapter 12
00:52:14.297                     : en:Chapter 13
00:55:14.436                     : en:Chapter 14
00:56:36.476                     : en:Chapter 15
00:56:59.499                     : en:Chapter 16
00:59:49.502                     : en:Chapter 17
01:00:22.744                     : en:Chapter 18
01:02:15.857                     : en:Chapter 19
01:03:59.252                     : en:Chapter 20
01:08:50.126                     : en:Chapter 21
01:11:33.872                     : en:Chapter 22
01:14:03.105                     : en:Chapter 23
01:16:39.595                     : en:Chapter 24
01:19:38.106                     : en:Chapter 25
01:26:53.208                     : en:Chapter 26
01:29:31.199                     : en:Chapter 27
01:34:08.017                     : en:Chapter 28
01:36:28.616                     : en:Chapter 29
01:42:16.046                     : en:Chapter 30
01:42:45.117                     : en:Chapter 31
01:44:28.720                     : en:Chapter 32
Reply
The following plays audio only, the video stays stuck on the XBMC menu (this used to play fine before:

Code:
General
Complete name                    : movie2.mkv
Format                           : Matroska
File size                        : 20.4 GiB
Duration                         : 1h 46mn
Overall bit rate                 : 27.4 Mbps
Encoded date                     : UTC 2009-12-12 23:51:53
Writing application              : MakeMKV v1.4.9 beta linux(x86-release)
Writing library                  : libmakemkv v1.4.9 beta (0.7.7/0.8.1) i586-manbo-linux-gnu

Video
ID                               : 1
Format                           : VC-1
Format profile                   : AP@L3
Codec ID                         : WVC1
Codec ID/Hint                    : Microsoft
Duration                         : 1h 46mn
Bit rate                         : 25.4 Mbps
Width                            : 1 920 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16:9
Frame rate                       : 23.976 fps
Resolution                       : 8 bits
Colorimetry                      : 4:2:0
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.510
Stream size                      : 18.9 GiB (92%)

Audio
ID                               : 2
Format                           : DTS
Format/Info                      : Digital Theater Systems
Codec ID                         : A_DTS
Duration                         : 1h 46mn
Bit rate mode                    : Constant
Bit rate                         : 1 510 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Surround: L R, LFE
Sampling rate                    : 48.0 KHz
Resolution                       : 24 bits
Stream size                      : 1.13 GiB (6%)
Title                            : 3/2+1
Language                         : English

Text #1
ID                               : 3
Format                           : PGS
Codec ID                         : S_HDMV/PGS
Codec ID/Info                    : The same subtitle format used on BDs/HD-DVDs
Language                         : English

Text #2
ID                               : 4
Format                           : PGS
Codec ID                         : S_HDMV/PGS
Codec ID/Info                    : The same subtitle format used on BDs/HD-DVDs
Language                         : Italian

Text #3
ID                               : 5
Format                           : PGS
Codec ID                         : S_HDMV/PGS
Codec ID/Info                    : The same subtitle format used on BDs/HD-DVDs
Language                         : German

Menu
00:00:00.000                     : en:Chapter 00
00:07:26.529                     : en:Chapter 01
00:11:46.956                     : en:Chapter 02
00:16:46.755                     : en:Chapter 03
00:24:24.087                     : en:Chapter 04
00:29:05.452                     : en:Chapter 05
00:34:05.293                     : en:Chapter 06
00:37:30.790                     : en:Chapter 07
00:46:07.347                     : en:Chapter 08
00:53:37.380                     : en:Chapter 09
00:58:15.158                     : en:Chapter 10
01:04:49.218                     : en:Chapter 11
01:07:29.879                     : en:Chapter 12
01:12:01.859                     : en:Chapter 13
01:14:46.523                     : en:Chapter 14
01:20:36.164                     : en:Chapter 15
01:25:03.264                     : en:Chapter 16
01:29:09.385                     : en:Chapter 17
01:35:54.999                     : en:Chapter 18
01:39:24.959                     : en:Chapter 19

But the following plays fine at 24fps with good lip-sync, even when switching chapters:
Code:
General
Complete name                    : movie3.mkv
Format                           : Matroska
File size                        : 26.4 GiB
Duration                         : 1h 56mn
Overall bit rate                 : 32.4 Mbps
Encoded date                     : UTC 2009-09-03 01:52:10
Writing application              : MakeMKV v1.4.6 beta linux(x86-release)
Writing library                  : libmakemkv v1.4.6 beta (0.7.7/0.8.1) i586-manbo-linux-gnu

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : [email protected]
Format settings, CABAC           : Yes
Format settings, ReFrames        : 4 frames
Muxing mode                      : Container [email protected]
Codec ID                         : V_MPEG4/ISO/AVC
Duration                         : 1h 56mn
Bit rate                         : 31.1 Mbps
Width                            : 1 920 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16:9
Frame rate                       : 23.976 fps
Standard                         : NTSC
Resolution                       : 8 bits
Colorimetry                      : 4:2:0
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.625
Stream size                      : 25.3 GiB (96%)
Color primaries                  : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics         : BT.709-5, BT.1361
Matrix coefficients              : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio
ID                               : 2
Format                           : AC-3
Format/Info                      : Audio Coding 3
Codec ID                         : A_AC3
Duration                         : 1h 56mn
Bit rate mode                    : Constant
Bit rate                         : 640 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Surround: L R, LFE
Sampling rate                    : 48.0 KHz
Stream size                      : 535 MiB (2%)
Title                            : 3/2+1
Language                         : French

Text
ID                               : 3
Format                           : PGS
Codec ID                         : S_HDMV/PGS
Codec ID/Info                    : The same subtitle format used on BDs/HD-DVDs
Language                         : English

Menu
00:00:00.000                     : en:Chapter 00
00:07:13.015                     : en:Chapter 01
00:14:45.217                     : en:Chapter 02
00:20:56.088                     : en:Chapter 03
00:29:01.573                     : en:Chapter 04
00:34:39.118                     : en:Chapter 05
00:41:42.541                     : en:Chapter 06
00:45:34.773                     : en:Chapter 07
00:53:18.820                     : en:Chapter 08
01:03:08.451                     : en:Chapter 09
01:10:26.347                     : en:Chapter 10
01:18:35.669                     : en:Chapter 11
01:25:36.464                     : en:Chapter 12
01:32:05.394                     : en:Chapter 13
01:40:13.757                     : en:Chapter 14
01:46:16.995                     : en:Chapter 15

I guess the fact that the last one plays fine should mean that CrystalHD decoding in XBMC is working on my system, what's weird is why isn't it working for the other 2 files (and it was working for them with older svns too)?

(had to split post in two due to 10K limit per post on this forum)
Reply
ion_man Wrote:The following plays audio only, the video stays stuck on the XBMC menu (this used to play fine before:

VC1 in a mkv, oh goody. You say this played fine before, which svn version ?

I'd like a 50-100MB sample of this.
Reply
davilla Wrote:VC1 in a mkv, oh goody. You say this played fine before, which svn version ?

I'd like a 50-100MB sample of this.

It was svn27068, I just reinstalled it (I always build packages so I can switch between them easily) and I remembered wrong that VC1-MKV still plays only audio, the picture is stuck on the menu even with svn27068.

But the original M2TS that this MKV is made from plays fine (both with svn27068 and svn27420).
How come VC1 in a M2TS works but not in a MKV? (the video stream is identical, I haven't done any transcoding , only re-muxed from M2TS container to MKV container with Makemkv).

I can try to make a short sample of the VC1-MKV, but I have to find a Linux tool to do that (I don't have Windows at all at home).

It would be great if VC1 in MKV would work too, as I prefer remuxing to MKV, since chapters only work with MKV and I can eliminate all audio and subtitle tracks that I don't need.

But I noticed that with svn27068 the movie1.mkv I listed above plays fine at 24fps (with only slight oscillation between 23.x and 24.x) while with svn27420 it only plays at 15-19 fps as stated previously, so this is definitely a regression.
Reply
ion_man Wrote:It was svn27068, I just reinstalled it (I always build packages so I can switch between them easily) and I remembered wrong that VC1-MKV still plays only audio, the picture is stuck on the menu even with svn27068.

But the original M2TS that this MKV is made from plays fine (both with svn27068 and svn27420).
How come VC1 in a M2TS works but not in a MKV? (the video stream is identical, I haven't done any transcoding , only re-muxed from M2TS container to MKV container with Makemkv).

I can try to make a short sample of the VC1-MKV, but I have to find a Linux tool to do that (I don't have Windows at all at home).

It would be great if VC1 in MKV would work too, as I prefer remuxing to MKV, since chapters only work with MKV and I can eliminate all audio and subtitle tracks that I don't need.

But I noticed that with svn27068 the movie1.mkv I listed above plays fine at 24fps (with only slight oscillation between 23.x and 24.x) while with svn27420 it only plays at 15-19 fps as stated previously, so this is definitely a regression.

use dd to chop a sample from the beginning.

as for why vc1 in m2ts plays while vc1 in mkv does not, welcome to container parsing games.
Reply
davilla Wrote:use dd to chop a sample from the beginning.

as for why vc1 in m2ts plays while vc1 in mkv does not, welcome to container parsing games.

I have sent you the link to the sample file via PM.

Do you need a sample of that AVC mkv that plays only at 15-19fps too, or do you already know what the problem with that one is?
Reply
  • 1
  • 29
  • 30
  • 31(current)
  • 32
  • 33
  • 34

Logout Mark Read Team Forum Stats Members Help
[LINUX] Problems compiling crystalhd branch2