How to verify mpeg and VC1 video codec license

Ask questions about Arch Linux ARM. Please search before making a new topic.

How to verify mpeg and VC1 video codec license

Postby Kallewirsch666 » Sun Aug 04, 2019 8:43 pm

On Raspbian there are the command
$this->bbcode_second_pass_code('', '
vcgencmd codec_enabled MPG2
vcgencmd codec_enabled WVC1
')

to verify installed mpeg and vc1 licenses.

How can I do that under arch arm?

Thanks for any hint
Kallewirsch
Kallewirsch666
 
Posts: 4
Joined: Sun Aug 04, 2019 8:33 pm

Re: How to verify mpeg and VC1 video codec license

Postby Kallewirsch666 » Sun Aug 04, 2019 8:44 pm

Sorry, I forgot to mention that it is a raspberry pi model 2
Kallewirsch666
 
Posts: 4
Joined: Sun Aug 04, 2019 8:33 pm

Re: How to verify mpeg and VC1 video codec license

Postby graysky » Sun Aug 04, 2019 9:32 pm

Why would be be any different under Arch ARM? You likely do not have the prefix in your path. Edit your shell rc (~/.bashrc perhaps) and add this under any other PATH lines:
$this->bbcode_second_pass_code('', 'PATH=$PATH:$HOME/bin:/opt/vc/bin')

Or you can call the executable via it's full path:
$this->bbcode_second_pass_code('', '/opt/vc/bin/vcgencmd codec_enabled MPG2')
graysky
Developer
 
Posts: 1894
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: How to verify mpeg and VC1 video codec license

Postby Kallewirsch666 » Mon Aug 05, 2019 7:11 pm

Yes thanks, it is there. I didn't search for it.
Apologize...
Kallewirsch666
 
Posts: 4
Joined: Sun Aug 04, 2019 8:33 pm

Re: How to verify mpeg and VC1 video codec license

Postby acconciox » Mon Aug 12, 2019 1:52 pm

to activate video codec is not enough:
install mpv-rpi and ffmpeg-mmal from AUR, ffmpeg from extra repo, has --enable-omx only, to use mmal (mpeg video codec license mmal) i have to install from aur: ffmpeg-mmal and mpv-rpi, where there is
$this->bbcode_second_pass_code('', '--enable-mmal \
--enable-omx \
--enable-omx-rpi \
')
but i have to downgrade kernel and firmware and bootloader packages, or mpv will crash (but maybe is a problem in my system only), i dont know how to enable VC1 on ffmpeg, i suppose is another --enable... from PKGBUILD.
here is my latest downgrade working.
$this->bbcode_second_pass_code('', 'linux-raspberrypi-4.19.50-1-armv7h.pkg.tar.xz
linux-raspberrypi-headers-4.19.50-1-armv7h.pkg.tar.xz
raspberrypi-bootloader-20190611-1-any.pkg.tar.xz
raspberrypi-bootloader-x-20190611-1-any.pkg.tar.xz
raspberrypi-firmware-20190611-1-armv7h.pkg.tar.xz
')
.. to use mmal accel in mpv there is some line to add on mpv.conf
try to uncomment some of these lines and see what happens:
$this->bbcode_second_pass_code('', '# vo=rpi
# hwdec=mmal
# hwdec-codecs=mpeg4,h264,mpeg2
# hwdec-codecs=all
')

You should see hardware decoding on terminal when you run
$this->bbcode_second_pass_code('', 'mpv --vo=rpi --hwdec=mmal --hwdec-codecs=all /dev/sr0 # /dev/sr0 should be dvd usb device
')
(to check wich line to add on mpv.conf) run mpv --hwdec=help should be helpful to change options or mpv --vo=help ... and so on.
I dont know if vlc is ready for hardware acceleration, i know only how to use mpv. If there is a faster set up, let me know please. :)

ciao.
acconciox
 
Posts: 110
Joined: Thu May 05, 2016 4:39 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 10 guests