From: Manoj Bonda <mbonda-at-nvidia.com@ffmpeg.org>
To: Philip Langdale <philipl@overt.org>,
FFmpeg development discussions and patches
<ffmpeg-devel@ffmpeg.org>
Cc: Ashish Roy <AROY@nvidia.com>, Hardy Doelfel <hdoelfel@nvidia.com>,
Mandar Godse <mgodse@nvidia.com>,
Andy Ritger <ARitger@nvidia.com>,
Aaron Plattner <aplattner@nvidia.com>
Subject: Re: [FFmpeg-devel] [PATCH] AV1 VDPAU hwaccel Decode support
Date: Tue, 21 Jun 2022 02:45:21 +0000
Message-ID: <DM4PR12MB51020EA8D0110DEACA24E9C3A3B39@DM4PR12MB5102.namprd12.prod.outlook.com> (raw)
In-Reply-To: <20220519095432.7b07e873@fido7>
Hi Philip,
The issue seems to be from MPV side rather than from ffmpeg patch.
I was able to decode the clip Halo_AV1 properly bitmatching with nvcuvid output
with ffmpeg + VDPAU.
Please find the cmds I used to verify the same.
./ffmpeg -hwaccel vdpau -i /home/bondamanoj/VideoClips/AV1Clips/Halo_AV1.mp4 -y decoded_vdpau.yuv
./ffmpeg -hwaccel nvdec -i /home/bondamanoj/VideoClips/AV1Clips/Halo_AV1.mp4 decoded_nvcuvid.yuv
cmp decoded_vdpau.yuv ~/Downloads/ffmpeg-git2/FFmpeg/decoded_nvcuvid.yuv
The same clip is dumped using mpv via cmd
./mpv --hwdec=vdpau-copy --o=Halo_dump_av1.yuv --of=rawvideo /home/bondamanoj/VideoClips/AV1Clips/Halo_AV1.mp4
Is differing and is having corruption while playing.
Thanks,
ManojGupta.
> -----Original Message-----
> From: Philip Langdale <philipl@overt.org>
> Sent: Thursday, May 19, 2022 10:25 PM
> To: Manoj Bonda <mbonda@nvidia.com>
> Cc: Andy Ritger <ARitger@nvidia.com>; Aaron Plattner
> <aplattner@nvidia.com>; Mandar Godse <mgodse@nvidia.com>; Ashish Roy
> <AROY@nvidia.com>; Hardy Doelfel <hdoelfel@nvidia.com>
> Subject: Re: [FFmpeg-devel] [PATCH] AV1 VDPAU hwaccel Decode support
>
> External email: Use caution opening links or attachments
>
>
> On Thu, 19 May 2022 09:01:26 +0000
> Manoj Bonda <mbonda@nvidia.com> wrote:
>
> > Hi Philip,
> >
> > As mentioned earlier I am getting output matching with nvcuvid for
> > VDPAU While using ffmpeg.
> > With MPV I am not seeing issue with below cmd ./mpv --vo=vdpau
> > --hwdec=vdpau
> > /home/bondamanoj/VideoClips/AV1Clips/Chimera-AV1-8bit-1280x720-
> 3363kbp
> > s.ivf
> >
> > I am getting mpv failures with --vo=opengl or --vo=gpu and not
> > decoding the clip. Can you please share us the cmds and the clip used
> > by you where you saw corruption. So I can debug and fix the issue.
>
> Ok, it seems weird.
>
> I've been using youtube clips, so here's one from their original AV1 playlist
> (The Halo Infinite announce trailer):
>
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
> youtube.com%2Fwatch%3Fv%3DFmdb-
> KmlzD8&data=05%7C01%7Cmbonda%40nvidia.com%7Cf69926f451734
> 86cf2f208da39b8430d%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0
> %7C637885760832069373%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLj
> AwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%
> 7C%7C&sdata=Kw2mXnUdaupPhwBq13MCCiciZo6alDqTpM6sh88TMtg%
> 3D&reserved=0
>
> You then need yt-dlp installed.
>
> If you tell mpv to play the URL directly, it will use yt-dlp to stream it, and it
> appears to play just fine.
>
> However, if you use yt-dlp to download the stream to either mp4 or mkv, and
> then play that back, the playback is glitched.
>
> With nvdec, it plays fine either way.
>
> Minimum Command line:
>
> mpv --no-config --hwdec=vdpau --gpu-context=x11 <file or url>
>
> And switch vdpau for nvdec to compare the two.
>
> Hope that helps,
>
> --phil
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2022-06-21 2:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-16 13:15 ManojGuptaBonda
2022-05-17 4:46 ` Philip Langdale
2022-05-17 12:07 ` Manoj Bonda
[not found] ` <DM4PR12MB51026463462272DF753EDFAAA3D09@DM4PR12MB5102.namprd12.prod.outlook.com>
[not found] ` <20220519095432.7b07e873@fido7>
2022-06-21 2:45 ` Manoj Bonda [this message]
2022-06-22 10:13 ` Philip Langdale
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DM4PR12MB51020EA8D0110DEACA24E9C3A3B39@DM4PR12MB5102.namprd12.prod.outlook.com \
--to=mbonda-at-nvidia.com@ffmpeg.org \
--cc=AROY@nvidia.com \
--cc=ARitger@nvidia.com \
--cc=aplattner@nvidia.com \
--cc=ffmpeg-devel@ffmpeg.org \
--cc=hdoelfel@nvidia.com \
--cc=mgodse@nvidia.com \
--cc=philipl@overt.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git