Green strip when encoding video to h265

I am using the following pipeline

filesrc location="/video.mp4" ! 
qtdemux name=demux demux. ! queue name=q_video ! h265parse !
nvv4l2decoder enable-max-performance=true ! 
videorate drop-only=true max-rate=30 ! 
nvvidconv flip-method=3 ! 
video/x-raw(memory:NVMM),width=(int)720,height=(int)1280,format=(string)P010_10LE,colorimetry=(string)bt2020,transfer-function=(string)smpte2084,range=(string)full,pixel-aspect-ratio=1/1 !
nvv4l2h265enc idrinterval=30 iframeinterval=30 preset-level=3 profile=1 insert-vui=true insert-sps-pps=true insert-aud=true control-rate=0 EnableTwopassCBR=true bitrate=3041280 peak-bitrate=6082560 maxperf-enable=true !
h265parse ! video/x-h265 !
hlssink2 playlist-location="/app/video.m3u8" playlist-length=0 location="/app/segment_%05d.ts" target-duration=15 max-files=1000 send-keyframe-requests=true name=sink demux. !
queue name=q_audio ! avdec_aac ! audioresample ! audioconvert ! voaacenc ! aacparse ! queue ! sink.audio

Here is the ffprobe from the generated file:

ffprobe -v error -show_streams segment.ts
[STREAM]
index=0
codec_name=hevc
codec_long_name=H.265 / HEVC (High Efficiency Video Coding)
profile=Main
codec_type=video
codec_tag_string=[36][0][0][0]
codec_tag=0x0024
width=720
height=1280
coded_width=736
coded_height=1280
closed_captions=0
film_grain=0
has_b_frames=0
sample_aspect_ratio=N/A
display_aspect_ratio=N/A
pix_fmt=yuv420p
level=93
color_range=tv
color_space=gbr
color_transfer=reserved
color_primaries=reserved
chroma_location=left
field_order=unknown
refs=1
view_ids_available=
view_pos_available=
ts_id=1
ts_packetsize=188
id=0x41
r_frame_rate=30/1
avg_frame_rate=30/1
time_base=1/90000
start_pts=324000000
start_time=3600.000000
duration_ts=875968
duration=9.732978
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
extradata_size=92
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:non_diegetic=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
DISPOSITION:multilayer=0
[/STREAM]
[STREAM]
index=1
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_tag_string=[15][0][0][0]
codec_tag=0x000f
sample_fmt=fltp
sample_rate=48000
channels=2
channel_layout=stereo
bits_per_sample=0
initial_padding=0
ts_id=1
ts_packetsize=188
id=0x42
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=324001116
start_time=3600.012400
duration_ts=871953
duration=9.688367
bit_rate=130635
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:non_diegetic=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
DISPOSITION:multilayer=0
TAG:language=en
[/STREAM]

The video is encoded successfully, but in ExoPlayer (Android) I see a green bar on the right side of the video. I’m guessing it might be something with the coded width / height, but I don’t know how to fix it.

Hi,
For Xavier NX, the latest release is Jetpack 5.1.4. Do you use this version and observe the issue?

And please try the command and see if you observe the issue:

$ gst-launch-1.0 videotestsrc num-buffers=300 is-live=1 ! nvvidconv !  "video/x-raw(memory:NVMM),width=(int)720,height=(int)1280,format=(string)P010_10LE,colorimetry=(string)bt2020,transfer-function=(string)smpte2084,range=(string)full,pixel-aspect-ratio=1/1" ! nvv4l2h265enc  ! h265parse ! matroskamux ! filesink location=a.mkv

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