ultravideo / kvazaar

An open-source HEVC encoder
BSD 3-Clause "New" or "Revised" License
834 stars 180 forks source link

encoding my video file in Petalinux #151

Open alexbukit opened 7 years ago

alexbukit commented 7 years ago

Hi, I want to ask you about encoding my video file (YUV format), that the file is on the SD Card. I want do encoding its with HEVC (h265) by Petalinux and the result of encoding will be put in the SD Card. I have ZC702 board of Xilinx. Thank you.

Alex

ari-koivula commented 7 years ago

Sure, go ahead and ask. What's the problem?

alexbukit commented 7 years ago

I want to ask you about encoding my video file (YUV format), that the file is on the SD Card. I want do encoding its with HEVC (h265) by offline and the result of encoding will be put in the SD Card. I have ZC702 board of Xilinx. Thank you.

On Tue, Feb 7, 2017 at 6:48 AM, Ari Koivula notifications@github.com wrote:

Sure, go ahead and ask. What's the problem?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ultravideo/kvazaar/issues/151#issuecomment-277852348, or mute the thread https://github.com/notifications/unsubscribe-auth/AYZPHUDA9XrD-t9d31T2P8L62k7C0tncks5rZ7FagaJpZM4L371- .

fador commented 7 years ago

Hi,

You should be able to compile Kvazaar on the Petalinux

./autogen.sh ./configure make

or if you are cross-compiling in another linux system, use something like (with the cross-compiling environment set up) ./configure --host=arm-linux-gnueabi --prefix=/usr/arm-linux-gnueabi

I don't know the details but SD-card should be mountable on the petalinux. After you compile kvazaar you should be able to just run ./kvazaar -p64 --threads=2 --wpp --preset=ultrafast -i /sd_card_path/input_file.yuv -o /sd_card_path/output.hevc --input-res=1920x1080

The ARM cores on the board are not very fast so don't expect high framerate encoding.

if you are having problems, please tell the details on the errors etc

Best Regards, Marko

alexbukit commented 7 years ago

If I have board ZC702 xilinx, what version of Pentalinux should I use.. thank you On Feb 7, 2017 1:43 PM, "Marko Viitanen" notifications@github.com wrote:

Hi,

You should be able to compile Kvazaar on the Petalinux

./autogen.sh ./configure make

or if you are cross-compiling in another linux system, use something like (with the cross-compiling environment set up) ./configure --host=arm-linux-gnueabi --prefix=/usr/arm-linux-gnueabi

I don't know the details but SD-card should be mountable on the petalinux. After you compile kvazaar you should be able to just run ./kvazaar -p64 --threads=2 --wpp --preset=ultrafast -i /sd_card_path/input_file.yuv -o /sd_card_path/output.hevc --input-res=1920x1080

The ARM cores on the board are not very fast so don't expect high framerate encoding.

if you are having problems, please tell the details on the errors etc

Best Regards, Marko

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ultravideo/kvazaar/issues/151#issuecomment-277915238, or mute the thread https://github.com/notifications/unsubscribe-auth/AYZPHROmTE9Nn3UkUbHbOJU5HFBxCaRKks5raBKcgaJpZM4L371- .

alexbukit commented 7 years ago

Hi. when i am cross compiling with : $./configure --host=arm-linux-gnueabi --prefix=/usr/arm/-linux-gnueabi, and then i type $make, at the end it is show error :

. . . CXXLD libkvazaar.la /usr/bin/ld: .libs/libkvazaar_la-bitstream.o: Relocations in generic ELF (EM: 40) /usr/bin/ld: .libs/libkvazaar_la-bitstream.o: Relocations in generic ELF (EM: 40) /usr/bin/ld: .libs/libkvazaar_la-bitstream.o: Relocations in generic ELF (EM: 40) /usr/bin/ld: .libs/libkvazaar_la-bitstream.o: Relocations in generic ELF (EM: 40) /usr/bin/ld: .libs/libkvazaar_la-bitstream.o: Relocations in generic ELF (EM: 40) .libs/libkvazaar_la-bitstream.o: error adding symbols: File in wrong format collect2: error: ld returned 1 exit status make[2]: [libkvazaar.la] Error 1 make[2]: Leaving directory `/home/b304/Downloads/kvazaar-master/src' make[1]: [all-recursive] Error 1 make[1]: Leaving directory `/home/b304/Downloads/kvazaar-master' make: *** [all] Error 2

On Tue, Feb 7, 2017 at 6:20 PM, Alexander Bukit alex.v.bukit@gmail.com wrote:

If I have board ZC702 xilinx, what version of Pentalinux should I use.. thank you On Feb 7, 2017 1:43 PM, "Marko Viitanen" notifications@github.com wrote:

Hi,

You should be able to compile Kvazaar on the Petalinux

./autogen.sh ./configure make

or if you are cross-compiling in another linux system, use something like (with the cross-compiling environment set up) ./configure --host=arm-linux-gnueabi --prefix=/usr/arm-linux-gnueabi

I don't know the details but SD-card should be mountable on the petalinux. After you compile kvazaar you should be able to just run ./kvazaar -p64 --threads=2 --wpp --preset=ultrafast -i /sd_card_path/input_file.yuv -o /sd_card_path/output.hevc --input-res=1920x1080

The ARM cores on the board are not very fast so don't expect high framerate encoding.

if you are having problems, please tell the details on the errors etc

Best Regards, Marko

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ultravideo/kvazaar/issues/151#issuecomment-277915238, or mute the thread https://github.com/notifications/unsubscribe-auth/AYZPHROmTE9Nn3UkUbHbOJU5HFBxCaRKks5raBKcgaJpZM4L371- .

alexbukit commented 7 years ago

testing

On Thu, Feb 9, 2017 at 3:19 PM, Alexander Bukit alex.v.bukit@gmail.com wrote:

Hi. when i am cross compiling with : $./configure --host=arm-linux-gnueabi --prefix=/usr/arm/-linux-gnueabi, and then i type $make, at the end it is show error :

. . . CXXLD libkvazaar.la /usr/bin/ld: .libs/libkvazaar_la-bitstream.o: Relocations in generic ELF (EM: 40) /usr/bin/ld: .libs/libkvazaar_la-bitstream.o: Relocations in generic ELF (EM: 40) /usr/bin/ld: .libs/libkvazaar_la-bitstream.o: Relocations in generic ELF (EM: 40) /usr/bin/ld: .libs/libkvazaar_la-bitstream.o: Relocations in generic ELF (EM: 40) /usr/bin/ld: .libs/libkvazaar_la-bitstream.o: Relocations in generic ELF (EM: 40) .libs/libkvazaar_la-bitstream.o: error adding symbols: File in wrong format collect2: error: ld returned 1 exit status make[2]: [libkvazaar.la] Error 1 make[2]: Leaving directory `/home/b304/Downloads/kvazaar-master/src' make[1]: [all-recursive] Error 1 make[1]: Leaving directory `/home/b304/Downloads/kvazaar-master' make: *** [all] Error 2

On Tue, Feb 7, 2017 at 6:20 PM, Alexander Bukit alex.v.bukit@gmail.com wrote:

If I have board ZC702 xilinx, what version of Pentalinux should I use.. thank you On Feb 7, 2017 1:43 PM, "Marko Viitanen" notifications@github.com wrote:

Hi,

You should be able to compile Kvazaar on the Petalinux

./autogen.sh ./configure make

or if you are cross-compiling in another linux system, use something like (with the cross-compiling environment set up) ./configure --host=arm-linux-gnueabi --prefix=/usr/arm-linux-gnueabi

I don't know the details but SD-card should be mountable on the petalinux. After you compile kvazaar you should be able to just run ./kvazaar -p64 --threads=2 --wpp --preset=ultrafast -i /sd_card_path/input_file.yuv -o /sd_card_path/output.hevc --input-res=1920x1080

The ARM cores on the board are not very fast so don't expect high framerate encoding.

if you are having problems, please tell the details on the errors etc

Best Regards, Marko

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ultravideo/kvazaar/issues/151#issuecomment-277915238, or mute the thread https://github.com/notifications/unsubscribe-auth/AYZPHROmTE9Nn3UkUbHbOJU5HFBxCaRKks5raBKcgaJpZM4L371- .

alexbukit commented 7 years ago

Until now, i still couldn't use kvazaar in my xilinx zc-702. Now i try it with $petalinux-build, but it is still error : circular, dependent drop. Please help me ... thank you

On Tue, Feb 7, 2017 at 1:43 PM, Marko Viitanen notifications@github.com wrote:

Hi,

You should be able to compile Kvazaar on the Petalinux

./autogen.sh ./configure make

or if you are cross-compiling in another linux system, use something like (with the cross-compiling environment set up) ./configure --host=arm-linux-gnueabi --prefix=/usr/arm-linux-gnueabi

I don't know the details but SD-card should be mountable on the petalinux. After you compile kvazaar you should be able to just run ./kvazaar -p64 --threads=2 --wpp --preset=ultrafast -i /sd_card_path/input_file.yuv -o /sd_card_path/output.hevc --input-res=1920x1080

The ARM cores on the board are not very fast so don't expect high framerate encoding.

if you are having problems, please tell the details on the errors etc

Best Regards, Marko

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ultravideo/kvazaar/issues/151#issuecomment-277915238, or mute the thread https://github.com/notifications/unsubscribe-auth/AYZPHROmTE9Nn3UkUbHbOJU5HFBxCaRKks5raBKcgaJpZM4L371- .

fador commented 7 years ago

Hi,

This is indeed a bit of a mystery, we don't have a way of testing this since we don't have Xilinx boards. You could try the cross-compiling with ./configure --host=arm-xilinx-linux-gnueabi This is found from some sources to be a way for petalinux cross-compiling, but it also might be SDK version dependant. Other sources say you might have to export some variables: export CROSS_COMPILE=arm-xilinx-linux-gnueabi- export PATH:$PATH:/opt/CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin

and then the ./configure should find the correct gcc.

"arm-xilinx-linux-gnueabi" might also have to be changed to "arm-none-linux-gnueabi"

Best Regards, Marko

alexbukit commented 7 years ago

Oke, I am succes until ./configure --host=arm-linux-gnueabi --prefix=/usr/arm-linux-gnueabi, and next how do I compile kvazaar, because there isn,t make file. Thank you.

On Wed, Mar 1, 2017 at 2:06 PM, Marko Viitanen notifications@github.com wrote:

Hi,

This is indeed a bit of a mystery, we don't have a way of testing this since we don't have Xilinx boards. You could try the cross-compiling with ./configure --host=arm-xilinx-linux- gnueabi This is found from some sources to be a way for petalinux cross-compiling, but it also might be SDK version dependant. Other sources say you might have to export some variables: export CROSS_COMPILE=arm-xilinx-linux-gnueabi- export PATH:$PATH:/opt/CodeSourcery/Sourcery_CodeBench_Litefor Xilinx_GNU_Linux/bin

and then the ./configure should find the correct gcc.

"arm-xilinx-linux-gnueabi" might also have to be changed to "arm-none-linux-gnueabi"

Best Regards, Marko

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ultravideo/kvazaar/issues/151#issuecomment-283262308, or mute the thread https://github.com/notifications/unsubscribe-auth/AYZPHURpsJ5Nh_yk1tVQyt1Bq2FSJKzNks5rhRj0gaJpZM4L371- .

fador commented 7 years ago

You need to run ./autogen.sh first to generate the configure script, which will then generate the makefile.

alexbukit commented 7 years ago

Ups I am sorry, i mean a have run make, and the error is

........ CCLD libsse41.la CXXLD libkvazaar.la /usr/bin/ld: .libs/libkvazaar_la-bitstream.o: Relocations in generic ELF (EM: 40) /usr/bin/ld: .libs/libkvazaar_la-bitstream.o: Relocations in generic ELF (EM: 40) /usr/bin/ld: .libs/libkvazaar_la-bitstream.o: Relocations in generic ELF (EM: 40) /usr/bin/ld: .libs/libkvazaar_la-bitstream.o: Relocations in generic ELF (EM: 40) /usr/bin/ld: .libs/libkvazaar_la-bitstream.o: Relocations in generic ELF (EM: 40) .libs/libkvazaar_la-bitstream.o: error adding symbols: File in wrong format collect2: error: ld returned 1 exit status make[2]: [libkvazaar.la] Error 1 make[2]: Leaving directory `/home/b304/Downloads/kvazaar-master/src' make[1]: [all-recursive] Error 1 make[1]: Leaving directory `/home/b304/Downloads/kvazaar-master' make: *** [all] Error 2

and kvazaar file is not there.... thank you

On Wed, Mar 1, 2017 at 2:06 PM, Marko Viitanen notifications@github.com wrote:

Hi,

This is indeed a bit of a mystery, we don't have a way of testing this since we don't have Xilinx boards. You could try the cross-compiling with ./configure --host=arm-xilinx-linux- gnueabi This is found from some sources to be a way for petalinux cross-compiling, but it also might be SDK version dependant. Other sources say you might have to export some variables: export CROSS_COMPILE=arm-xilinx-linux-gnueabi- export PATH:$PATH:/opt/CodeSourcery/Sourcery_CodeBench_Litefor Xilinx_GNU_Linux/bin

and then the ./configure should find the correct gcc.

"arm-xilinx-linux-gnueabi" might also have to be changed to "arm-none-linux-gnueabi"

Best Regards, Marko

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ultravideo/kvazaar/issues/151#issuecomment-283262308, or mute the thread https://github.com/notifications/unsubscribe-auth/AYZPHURpsJ5Nh_yk1tVQyt1Bq2FSJKzNks5rhRj0gaJpZM4L371- .

lizhongwang520 commented 6 years ago

come out a problem dering the compile ./configure: line 4661: syntax error near unexpected token `win32-dll'