Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I install & use h264bitstream? #50

Open
markfilipak opened this issue Oct 4, 2023 · 1 comment
Open

How do I install & use h264bitstream? #50

markfilipak opened this issue Oct 4, 2023 · 1 comment

Comments

@markfilipak
Copy link

markfilipak commented Oct 4, 2023

Sorry if this is the wrong place. I searched and this is all I found.

h264bitstream is a library, right?
Can you recommend an application that uses it to display to me the headers and values of AVC (H.264) videos?
How do I install h264bitstream? My attempt follows:

mark@mark-VirtualBox:~$ sudo apt-get install build-essential libtool autoconf ffmpeg
[sudo] password for mark:
Reading package lists... Done
Building dependency tree
Reading state information... Done
autoconf is already the newest version (2.69-11.1).
libtool is already the newest version (2.4.6-14).
The following additional packages will be installed:
g++ g++-9 libavresample4 libstdc++-9-dev
Suggested packages:
ffmpeg-doc g++-multilib g++-9-multilib gcc-9-doc libstdc++-9-doc
The following NEW packages will be installed:
build-essential ffmpeg g++ g++-9 libavresample4 libstdc++-9-dev
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.7 MB of archives.
After this operation, 49.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://mirrors.gigenet.com/ubuntuarchive focal-updates/main amd64 libstdc++-9-dev amd64 9.4.0-1ubuntu1~20.04.2 [1,722 kB]
Get:2 https://mirrors.gigenet.com/ubuntuarchive focal-updates/main amd64 g++-9 amd64 9.4.0-1ubuntu1~20.04.2 [8,421 kB]
Get:3 https://mirrors.gigenet.com/ubuntuarchive focal/main amd64 g++ amd64 4:9.3.0-1ubuntu2 [1,604 B]
Get:4 https://mirrors.gigenet.com/ubuntuarchive focal-updates/main amd64 build-essential amd64 12.8ubuntu1.1 [4,664 B]
Get:5 https://mirrors.gigenet.com/ubuntuarchive focal-updates/universe amd64 libavresample4 amd64 7:4.2.7-0ubuntu0.1 [54.2 kB]
Get:6 https://mirrors.gigenet.com/ubuntuarchive focal-updates/universe amd64 ffmpeg amd64 7:4.2.7-0ubuntu0.1 [1,453 kB]
Fetched 11.7 MB in 4s (3,322 kB/s)
Selecting previously unselected package libstdc++-9-dev:amd64.
(Reading database ... 404185 files and directories currently installed.)
Preparing to unpack .../0-libstdc++-9-dev_9.4.0-1ubuntu1~20.04.2_amd64.deb ...
Unpacking libstdc++-9-dev:amd64 (9.4.0-1ubuntu1~20.04.2) ...
Selecting previously unselected package g++-9.
Preparing to unpack .../1-g++-9_9.4.0-1ubuntu1~20.04.2_amd64.deb ...
Unpacking g++-9 (9.4.0-1ubuntu1~20.04.2) ...
Selecting previously unselected package g++.
Preparing to unpack .../2-g++_4%3a9.3.0-1ubuntu2_amd64.deb ...
Unpacking g++ (4:9.3.0-1ubuntu2) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../3-build-essential_12.8ubuntu1.1_amd64.deb ...
Unpacking build-essential (12.8ubuntu1.1) ...
Selecting previously unselected package libavresample4:amd64.
Preparing to unpack .../4-libavresample4_7%3a4.2.7-0ubuntu0.1_amd64.deb ...
Unpacking libavresample4:amd64 (7:4.2.7-0ubuntu0.1) ...
Selecting previously unselected package ffmpeg.
Preparing to unpack .../5-ffmpeg_7%3a4.2.7-0ubuntu0.1_amd64.deb ...
Unpacking ffmpeg (7:4.2.7-0ubuntu0.1) ...
Setting up libstdc++-9-dev:amd64 (9.4.0-1ubuntu1~20.04.2) ...
Setting up libavresample4:amd64 (7:4.2.7-0ubuntu0.1) ...
Setting up g++-9 (9.4.0-1ubuntu1~20.04.2) ...
Setting up g++ (4:9.3.0-1ubuntu2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up build-essential (12.8ubuntu1.1) ...
Setting up ffmpeg (7:4.2.7-0ubuntu0.1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.12) ...
mark@mark-VirtualBox:~$ autoreconf -i
autoreconf: 'configure.ac' or 'configure.in' is required
mark@mark-VirtualBox:~$
@aizvorski
Copy link
Owner

aizvorski commented Nov 7, 2023

You're on the right track - just need to run autoreconf -i inside this project's directory. Something like this should work

git clone https://github.com/aizvorski/h264bitstream
cd h264bitstream
autoreconf -i
./configure --prefix=/usr/local
make

If that works, you can then just run the included application h264_analyze

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants