jocover / jetson-ffmpeg

ffmpeg support on jetson nano
Other
613 stars 196 forks source link

Missing info from README.md #54

Open danboid opened 4 years ago

danboid commented 4 years ago

Hi @jocover !

Thanks v.much for developing jetson-ffmpeg! I was hoping to use my nano as a media playback device but it was pretty useless for that until I discovered jetson-ffmpeg. Very impressive work!

There are at least 2 things I would like to see added to the README:

ffplay -vcodec h264_nvmpi -i vid.mkv
ffplay -vcodec hevc_nvmpi -noautorotate -i vid2.mp4

I also have a few of other questions that are unrelated to the documentation:

Do you know if nvmpi hardware decoding will work with mpv without having to rebuild or update the L4T mpv package, after installing jetson-ffmpeg as a Ubuntu package.

Have you created a Ubuntu (source) package for jetson-ffmpeg yet? It should easy enough to tweak the 20.04 ffmpeg source package (which is for ffmpeg 4.2.x) to create one for jetson-ffmpeg.

I have read on the NVidia dev forums that the official L4T build of ffmpeg is supposed to support hardware decoding now but I haven't got it to work, have you?

I'm running JetPack 4.4 on a Jetson Nano btw.

Thanks

danboid commented 4 years ago

Here are the instructions for building ffmpeg with the official decoding patch:

http://ffmpeg.org/pipermail/ffmpeg-devel/2020-June/263746.html

I presume that will get merged into ffmpeg instead of jetson-ffmpeg, because its from NVIDIA? Shame it doesn't support encoding.

I think nvmpi playback should work under mpv if it works under ffmpeg. I'll be trying it out later.

Should it be possible to build and run jetson-ffmpeg without the tegra libraries, say for example if anyone gets Arch, Debian or regular arm64 Ubuntu running on the jetson? That would be another advantage as it seems the official ffmpeg patch depends on the Tegra libraries. I've heard mesa has pretty good support for the Nano's GPU.

danboid commented 4 years ago

I think I've answered most of my own questions about jetson-ffmpeg etc now.

I have just tried to build jetson-ffmpeg on Armbian Focal (running on my nano) but running cmake fails because I don't have LIB_NVBUF installed. Do you think libnvbuf would be installable on alternative Tegra distros or do you think you could maybe change jsff so that it doesn't require nvbuf?

I've had a quick look at the mpv source and it seems its hwdec drivers are entirely separate from ffmpeg so hardware decoding isn't going to come for free under mpv, as you probably knew.

My only real question now is how can I use jsff or the official NV accelerated ffmpeg without having to use sudo?

eusoubrasileiro commented 2 years ago

@danboid I tried on this jetson nano image https://github.com/pythops/jetson-nano-image simple LT4 based. That doesn't work for Focal. I will try now going back to Bionic. I will post results here.

danboid commented 2 years ago

I didn't know of this custom Nano distro until now. I'm pretty busy this week but I'll try it out soon. Thanks @eusoubrasileiro !