ffplay and vdpau?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

ffplay and vdpau?

Markus Grabner

                Hi all!

        Which command line options are required to use vdpau when playing an mts
video with ffplay? I tried the following:

1.) mplayer video.mts

This plays the video with ~94% processor usage.

2.) mplayer -vo vdpau video.mts

This plays the video with ~3% processor usage, which seems to confirm that my
system supports vdpau and decoding is actually done by the GPU.

3.) ffplay video.mts

This plays the video with ~107% processor usage (as reported by top, it's a
dual core machine with obviously more than one thread busy).

4.) ffplay -codec:v h264_vdpau video.mts

No video is rendered, only the sound is played. The following messages are
displayed ~2000 times:
[h264_vdpau @ 0x7fa13c004780] decoding to PIX_FMT_NONE is not supported.
[h264_vdpau @ 0x7fa13c004780] ff_MPV_common_init() failed.
[h264_vdpau @ 0x7fa13c004780] decode_slice_header error
[h264_vdpau @ 0x7fa13c004780] no frame!

5.) ffplay -codec:v h264_vdpau -pix_fmt vdpau_h264 video.mts

This terminates with the message
Option -pix_fmt is deprecated, use -pixel_format.

6.) ffplay -codec:v h264_vdpau -pixel_format vdpau_h264 video.mts

This terminates with the message
Option pixel_format not found.


I tried the following versions of ffplay:
*) release 0.11.1
*) current head revision from the git repository

and the following graphics cards:
*) Nvidia GeForce 9500 GT
*) Nvidia GeForce GTX 260

The behaviour was the same in all configurations. So how can I tell ffplay to
use vdpau for decoding?

        Thanks & kind regards,
                Markus

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: ffplay and vdpau?

Carl Eugen Hoyos
Markus Grabner <grabner <at> icg.tugraz.at> writes:

> Which command line options are required to use vdpau
> when playing an mts video with ffplay?

ffplay does not support VDPAU.

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: ffplay and vdpau?

Markus Grabner
On Tuesday 17 July 2012 21:41:14 Carl Eugen Hoyos wrote:
> Markus Grabner <grabner <at> icg.tugraz.at> writes:
> > Which command line options are required to use vdpau
> > when playing an mts video with ffplay?
>
> ffplay does not support VDPAU.
What a pity :-( I was looking for a simple way to demonstrate vdpau usage and
intended to debug into ffplay to find out how vdpau is used. I probably have
to change my plans...

But libavcodec supports vdpau, right? What would be the next simplest way to
use vdpau? Maybe mplayer?

        Thanks & kind regards,
                Markus


--
Markus Grabner
Institute for Computer Graphics and Vision
Graz University of Technology, Inffeldgasse 16a/II, 8010 Graz, Austria
WWW: http://www.icg.tugraz.at/Members/grabner

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: ffplay and vdpau?

Carl Eugen Hoyos
Markus Grabner <grabner <at> icg.tugraz.at> writes:

> But libavcodec supports vdpau, right? What would be the
> next simplest way to use vdpau? Maybe mplayer?

Afaict, MPlayer is the standard VDPAU testing application.
(The VDPAU support in MPlayer was mostly written by Nvidia.)

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: ffplay and vdpau?

Markus Grabner
On Wednesday 18 July 2012 06:05:54 Carl Eugen Hoyos wrote:
> Markus Grabner <grabner <at> icg.tugraz.at> writes:
> > But libavcodec supports vdpau, right? What would be the
> > next simplest way to use vdpau? Maybe mplayer?
>
> Afaict, MPlayer is the standard VDPAU testing application.
> (The VDPAU support in MPlayer was mostly written by Nvidia.)
Thanks for the hint, then I'll try this!

        Kind regards,
                Markus

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user