Video Encoder does not respond when initialized


I have a weird issue with the encoder and converter of the mmapi library.
I have two say it has worked before well. But suddenly I cannot start my program that uses an encoder.

It seems that my program and the samples are stuck before the main in the static initialization phase.
Here is the backtrace in GDB:

Reading symbols from ./video_encode...
(No debugging symbols found in ./video_encode)
(gdb) run
Starting program: /usr/src/jetson_multimedia_api/samples/01_video_encode/video_encode
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/".
Program received signal SIGINT, Interrupt.
0x0000007fb7f8ff88 in __libc_connect (fd=8, addr=..., len=16) at ../sysdeps/unix/sysv/linux/connect.c:26
26      ../sysdeps/unix/sysv/linux/connect.c: No such file or directory.
(gdb) bt
#0  0x0000007fb7f8ff88 in __libc_connect (fd=8, addr=..., len=16) at ../sysdeps/unix/sysv/linux/connect.c:26
#1  0x0000007fb76c00b4 in ?? () from /usr/lib/aarch64-linux-gnu/
#2  0x0000007fb76cd000 in xcb_get_modifier_mapping () from /usr/lib/aarch64-linux-gnu/
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

I have done two things that might have caused the issue,
First I used a phone charger for a while to power the Jetson, but I’m back on the provided transformer.
Second, I installed GCC 11, but now I’m back on GCC 8. As the samples’ makefile shows an error if GCC version is higher than 8. But I built my own program that use mmapi for a while with GCC 11 it worked for a while.

It seems that the encoder’s code cannot reach the physical encoding device. Could it have been broken by my phone’s charger ?

Is there a way to check the state of the encoder from the terminal ?

Thank you for your help.

For comparison please try gstreamer command like

gst-launch-1.0 videotestsrc ! nvvidconv ! nvv4l2h264enc ! fakesink

It it also doesn’t work. Probably the developer kit is broken. May also try decoding to clarify if it is specific to encoding.

Thank you for your reply,

gst-launch did not work as well. As last resort, I flashed the dev. kit with the most recent version 6.3 and it worked again. I have no idea what was the issue. But at least the hardware seems fine.

Edit: Nope it stopped working again after 1 hour.

The latest release is Jetpack 4.6(r32.6.1). Please re-flash it and check again. If the issue is still present, it seems to be an hardware issue.

And you can try 00_video_decode. To check whether video playback works or not, while video encoding is dead.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.