nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   ION/VDPAU/H264 videos: No video playback (http://www.nvnews.net/vbulletin/showthread.php?t=168316)

bluC 11-06-11 02:44 PM

ION/VDPAU/H264 videos: No video playback
 
2 Attachment(s)
Hi,

i have issues with binary nvidia drivers for a while. I've tried all released and beta versions since may 2011, but fix doesn't come. My last try was done with nvidia beta 290.06 and linux 3.0.

In one sentence: Playing h264 videos doesn't work with vdpau enabled.

I've tried h624 codec with avi and mkv muxer: no playback.
I've tried xvid codec with avi and mkv muxer and playback works fine. So i conclude, this is not a muxer issue but a codec one. In all case, sound is played correctly.

When i play h264 videos without vdpau enabled, "all works fine". Except that Atom without vdpau cannot play 1080p h264 videos flawlessly.

My test have been done on a Zotac ZBOX (ZBOXHD-ND22-E) with an archlinux i686 distribution. Playing should be done with xbmc but neither mplayer, neither vlc works.
Today, i've tested openelec distribution, issues are still here.

I run playing with
Code:

$ DISPLAY=:0 mplayer -vo vdpau -vc ffh264vdpau 3.mkv
i also tried (as suggested here: here):
Code:

$ DISPLAY=:0 mplayer -vo vdpau -vc ffh264vdpau -demuxer lavf 3.mkv
The 2 previous doesn't work. The next works.
Code:

$ DISPLAY=:0 mplayer -vo xv 3.mkv
I've attached nvidia-bug-report.log.gz and the output of mplayer with
Code:

export VDPAU_TRACE=1
export VDPAU_NVIDIA_DEBUG=3

Do you have an suggestions?

Regards,

bluC 11-06-11 06:35 PM

Re: ION/VDPAU/H264 videos: No video playback
 
About the test file:

Quote:

$ ffmpeg -i 3.mkv
ffmpeg version 0.7.6, Copyright (c) 2000-2011 the FFmpeg developers
built on Oct 3 2011 13:06:32 with gcc 4.6.1 20110819 (prerelease)
configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-gpl --enable-version3 --enable-runtime-cpudetect --disable-debug
libavutil 50. 43. 0 / 50. 43. 0
libavcodec 52.122. 0 / 52.122. 0
libavformat 52.110. 0 / 52.110. 0
libavdevice 52. 5. 0 / 52. 5. 0
libavfilter 1. 80. 0 / 1. 80. 0
libswscale 0. 14. 1 / 0. 14. 1
libpostproc 51. 2. 0 / 51. 2. 0
[matroska,webm @ 0x8335e00] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5994/125) -> 23.98 (24000/1001)
Input #0, matroska,webm, from '3.mkv':
Duration: 03:16:02.81, start: 0.000000, bitrate: 896 kb/s
Stream #0.0: Video: h264 (Main), yuv420p, 1920x1080, PAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0.1(fre): Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s (default)
Metadata:
title : Français AC3@448
Stream #0.2(eng): Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Metadata:
title : Anglais AC3@448
Stream #0.3(fre): Subtitle: [0][0][0][0] / 0x0000
Metadata:
title : Sous Titres Français
Stream #0.4(fre): Subtitle: [0][0][0][0] / 0x0000 (default)
Metadata:
title : Sous Titres Français SubForced
At least one output file must be specified
About version:
xorg-server 1.11.1.902-1
libvdpau 0.4.1-1

cehoyos 11-07-11 05:42 AM

Re: ION/VDPAU/H264 videos: No video playback
 
I suspect not enough video memory.
Do H264 videos with smaller resolution work?

bluC 11-07-11 07:19 PM

Re: ION/VDPAU/H264 videos: No video playback
 
1 Attachment(s)
Quote:

Originally Posted by cehoyos (Post 2498745)
I suspect not enough video memory.
Do H264 videos with smaller resolution work?

Same issue with smaller resolution. This has maybe no connection but 1080p video can be completly played with -vo xv, but one frame of five.

Code:

$ ffmpeg -i 4.mkv
ffmpeg version 0.7.6, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct  3 2011 13:06:32 with gcc 4.6.1 20110819 (prerelease)
  configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-librtmp --enable-gpl --enable-version3 --enable-runtime-cpudetect --disable-debug
  libavutil    50. 43. 0 / 50. 43. 0
  libavcodec  52.122. 0 / 52.122. 0
  libavformat  52.110. 0 / 52.110. 0
  libavdevice  52.  5. 0 / 52.  5. 0
  libavfilter  1. 80. 0 /  1. 80. 0
  libswscale    0. 14. 1 /  0. 14. 1
  libpostproc  51.  2. 0 / 51.  2. 0
[matroska,webm @ 0x9172e00] max_analyze_duration 5000000 reached at 5024000
[matroska,webm @ 0x9172e00] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 119.88 (10000000/83417) -> 59.94 (60000/1001)
Input #0, matroska,webm, from '4.mkv':
  Duration: 01:35:39.96, start: 0.000000, bitrate: 576 kb/s
    Stream #0.0(eng): Video: h264 (High), yuv420p, 1280x576, PAR 1:1 DAR 20:9, 59.94 fps, 59.94 tbr, 1k tbn, 119.88 tbc
    Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
    Stream #0.2(eng): Subtitle: [0][0][0][0] / 0x0000 (default)
    Stream #0.3(rus): Subtitle: [0][0][0][0] / 0x0000
    Stream #0.4(fre): Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s (default)
At least one output file must be specified


cehoyos 11-08-11 07:05 AM

Re: ION/VDPAU/H264 videos: No video playback
 
Quote:

Originally Posted by bluC (Post 2498983)
Code:

    Stream #0.0(eng): Video: h264 (High), yuv420p, 1280x576, PAR 1:1 DAR 20:9, 59.94 fps, 59.94 tbr, 1k tbn, 119.88 tbc

I meant 320x240 (without reference frames, but I realize this is difficult to know).

Carl Eugen

bluC 11-08-11 09:12 AM

Re: ION/VDPAU/H264 videos: No video playback
 
Quote:

Originally Posted by cehoyos (Post 2499111)
I meant 320x240 (without reference frames, but I realize this is difficult to know).

Carl Eugen

Do you know where i can find this kind of file?

mlord 11-08-11 05:17 PM

Re: ION/VDPAU/H264 videos: No video playback
 
Do you have a sample of something that does not play for you there?

My own Zotac HD-ID11 and Zotac HD-ID41 boxes play h.264 recordings just fine, including the 1080 formats I have at hand, under MythTV with vdpau Advanced/2X enabled.

So it might be useful to see a sample of something that doesn't work for you there, and I'll try to reproduce it here with MythTV.

I don't often check back here though, so perhaps CC: me via email: mlord@pobox.com

Cheers

bluC 11-08-11 05:48 PM

Re: ION/VDPAU/H264 videos: No video playback
 
I've issue with every h264 video. Which version of nvidia driver? Which xorg release?

I tried an old nvidia driver a long time ago and it worked. But xorg server abi is no more compatible.

Regards,

mlord 11-08-11 08:01 PM

Re: ION/VDPAU/H264 videos: No video playback
 
Quote:

Originally Posted by bluC
I've issue with all h264 content. Which version of nvidia driver?
Which xorg release?

I'm using a system based upon Ubuntu "Maverick", a full 64-bit installation,
with mythtv-0.24-fixes (built from latest -git source code).

It has X.Org X Server 1.9.0, and is currently using the 275.28 Nvidia driver,
but earlier driver versions also worked fine.

The trick under Mythtv for getting x.264/1080 playback to work,
is to (1) do not enable "high quality scaling",
and (2) increase the number of VDPAU buffers to 42.
I also allow (3) three threads for decoding.

There's probably a way to specify similar parameters for mplayer,
but I don't use mplayer on that box.

With those settings, the playback may sputter ever so slightly for
the first 2 seconds or so, and is silky smooth for the rest of the playback.

Note that I only play videos that are stored on the internal SATA drive,
and I never attempt to play files from across the network.

Oh.. and about a year ago, I discovered that some boxes like this
require a kernel parameter at boot time to prevent issues from
the network interfaces: pci=nomsi

http://www.nvnews.net/vbulletin/show...3Dnomsi&page=2

Also, I use a stripped down XFCE desktop, not the full GNOME desktop.
There are some notes about that in the thread linked above.

Cheers

mlord 11-08-11 08:15 PM

Re: ION/VDPAU/H264 videos: No video playback
 
I've also now tried using "mplayer -vo vdpau -vc ffh264vdpau" to play various h.264 videos on that machine, and they all work just fine. This includes a bunch of 1440x1080 recordings from the BBC, as well as various 1920x800 movie rips, and a 1920x1080 video file.

Cheers

cehoyos 11-09-11 05:57 AM

Re: ION/VDPAU/H264 videos: No video playback
 
Quote:

Originally Posted by bluC (Post 2499147)
Do you know where i can find this kind of file?

Code:

ffmpeg -i 4.mkv -s 320x144 -vcodec libx264 out.mp4
(There may be a "-vprofile baseline" missing after libx264, please test.)

mlord 11-09-11 06:29 AM

Re: ION/VDPAU/H264 videos: No video playback
 
[libx264 @ 0x1bbb5d0]broken ffmpeg default settings detected
[libx264 @ 0x1bbb5d0]use an encoding preset (vpre)
...
Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height


All times are GMT -5. The time now is 05:30 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.