vlc/totem don't play some AVC/H264 1080p60 videos

120 views
Skip to first unread message

R.M.

unread,
Feb 23, 2011, 10:41:32 AM2/23/11
to crystalhd-development
Hello,

vlc/totem don't play some AVC/H264 1080p60 videos

http://hdcam.web-pda.info/birds%20-%2018514072.mp4 (160 MB)

I have BCM 70015, ubuntu 10.04 LTS with libcrystalhd from
http://git.wilsonet.com/crystalhd.git/ 2011-01-23

regards,
R.M.

Naren (Narendra) Sankar

unread,
Feb 23, 2011, 11:39:53 AM2/23/11
to crystalhd-...@googlegroups.com
Can you be a little more specific in what doesn't work?

Any errors reported, kernel log, Gstreamer log would be very useful.
Naren Sankar
Broadcom Corporation
+1 408 218 6327
--
To post to this group, send email to
crystalhd-...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/crystalhd-development?hl=en

R.M.

unread,
Feb 23, 2011, 1:01:04 PM2/23/11
to crystalhd-development
Hello,
No error reported, only normal logs
Totem properties tab has framerate 30 but should be 60
Totem stop playing after 1-2 seconds
Totem dosn't work probably because totem cpu usage is more than 100%
(core 2 duo 1.5GHz) (probably lot of memcpy)
VLC should work because has removed image copy and cpu usage is only
about 30-50%
but VLC also stop playing after 1-2 seconds
(tested on VLC-1.1.7 and VLC-1.2.0-dev)

http://git.videolan.org/?p=vlc.git;a=history;f=modules/codec/crystalhd.c;h=6837efb7313d42fd0d5e9b7480ec9b98e8e12b15;hb=HEAD

regards,
R.M.

$vlc --codec crystalhd "birds - 18514072.mp4"
VLC media player 1.1.7 The Luggage (revision exported)
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
[0xb750316c] main interface error: no suitable interface module
[0x900367c] main libvlc error: interface "globalhotkeys,none"
initialization failed
[0x900367c] main libvlc: Running vlc with the default interface. Use
'cvlc' to use vlc without interface.
Blocked: call to setlocale(6, "")
Warning: call to srand(1298874313)
Warning: call to rand()
Blocked: call to setlocale(6, "")

(process:26950): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Running DIL (3.22.0) Version
DtsDeviceOpen: Opening HW in mode 0
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
Scaling command param 0x0,ctx_scal:0x0
[0x929a12c] crystalhd decoder: Opened CrystalHD hardware with success
Flush called with opcode 2
DtsAllocIoctlData Error

$totem "birds - 18514072.mp4"
Running DIL (3.22.0) Version
DtsDeviceOpen: Opening HW in mode 0
Scaling command param 0x0,ctx_scal:0x0

(totem:24066): GStreamer-CRITICAL **: gst_mini_object_unref: assertion
`mini_object->refcount > 0' failed
Flush called with opcode 2
DtsAllocIoctlData Error

$totem --debug "birds - 18514072.mp4"
(totem:24165): Totem-DEBUG: Received SaveYourself(SmSaveLocal, !
Shutdown, SmInteractStyleNone, !Fast) in state idle
(totem:24165): Totem-DEBUG: Setting initial properties
(totem:24165): Totem-DEBUG: Sending SaveYourselfDone(True) for initial
SaveYourself
(totem:24165): Totem-DEBUG: Received SaveComplete message in state
save-yourself-done
(totem:24165): Totem-DEBUG: Init of Python module
(totem:24165): Totem-DEBUG: Registering Python plugin instance:
BBCViewer+TotemPythonPlugin
(totem:24165): Totem-DEBUG: Creating object of type BBCViewer
+TotemPythonPlugin
(totem:24165): Totem-DEBUG: Creating Python plugin instance
(totem:24165): Totem-DEBUG: totem_playlist_add_one_mrl (): birds -
18514072.mp4 (null) (null)

Running DIL (3.22.0) Version
DtsDeviceOpen: Opening HW in mode 0
Scaling command param 0x0,ctx_scal:0x0
(totem:24165): Totem-DEBUG: Finalizing Python plugin instance

(totem:24165): GLib-GObject-WARNING **: invalid uninstantiatable type
`(null)' in cast to `GstBuffer'

(totem:24165): GStreamer-CRITICAL **: gst_mini_object_unref: assertion
`mini_object->refcount > 0' failed
Flush called with opcode 2
DtsAllocIoctlData Error


syslog:
Feb 23 18:22:55 b kernel: [36491.781557] crystalhd 0000:02:00.0:
Opening new user[0] handle
Feb 23 18:22:56 b kernel: [36493.092070] start_capture: pause_th:14,
resume_th:3
Feb 23 18:23:31 b kernel: [36528.266513] crystalhd 0000:02:00.0:
Closing user[0] handle via ioctl with mode 1c200



On Feb 23, 5:39 pm, "Naren (Narendra) Sankar" <nsan...@broadcom.com>
wrote:
> Can you be a little more specific in what doesn't work?
>
> Any errors reported, kernel log, Gstreamer log would be very useful.
> Naren Sankar
> Broadcom Corporation
> +1 408 218 6327
>
> ----- Original Message -----
> From: crystalhd-...@googlegroups.com <crystalhd-...@googlegroups.com>
> To: crystalhd-development <crystalhd-...@googlegroups.com>
> Sent: Wed Feb 23 07:41:32 2011
> Subject: [crystalhd-development] vlc/totem don't play some AVC/H264 1080p60 videos
>
> Hello,
>
> vlc/totem don't play some AVC/H264 1080p60 videos
>
> http://hdcam.web-pda.info/birds%20-%2018514072.mp4(160 MB)

R.M.

unread,
Feb 23, 2011, 1:05:13 PM2/23/11
to crystalhd-development

Philip Langdale

unread,
Feb 23, 2011, 1:46:54 PM2/23/11
to crystalhd-...@googlegroups.com
I know the hardware is supposed to decode 1080p60 but I can't
really believe you can memcpy the decoded frames fast enough
to show it...

--phil

Naren (Narendra) Sankar

unread,
Feb 23, 2011, 1:50:33 PM2/23/11
to crystalhd-...@googlegroups.com
A thing to try is to enable scaling.

On a lot of systems the PCIe bus real world performance is not fast enough to move 1080p60 either.

But scaling down to 720p 60 works very well.

Naren Sankar
+1 (408) 218 6327
Broadcom Corporation

--phil

--

R.M.

unread,
Feb 23, 2011, 2:08:56 PM2/23/11
to crystalhd-development
thanks, can you tell me how to enable hardware scaling to 720p60?

On Feb 23, 7:50 pm, "Naren (Narendra) Sankar" <nsan...@broadcom.com>
wrote:

R.M.

unread,
Feb 23, 2011, 3:12:52 PM2/23/11
to crystalhd-development

I added

BC_SCALING_PARAMS pScaleParams;
pScaleParams.sWidth = 1280;
pScaleParams.sHeight = 720;
pScaleParams.DNR = 1;

BC_FUNC(DtsSetScaleParams)(p_sys->bcm_handle, &pScaleParams)

and vlc works perfectly, thanks for help

regards,
R.M.



Reply all
Reply to author
Forward
0 new messages