Closed adamthesax closed 3 years ago
Hello @adamthesax ,
Apologies for the delay in the response. This needs some deep dive and I will get back to you ASAP.
Are you able to run the audio/video test application successfully? Can you run some of the a/v sample GST pipelines included in the docs?
Can you please
export KVS_DEBUG_DUMP_DATA_FILE_DIR
and set it to a path, the Producer SDK will write out the MKV the same as what it will stream out to the back-end service. Then we can inspect that and see if there is an issue there too.
Also in your AAC patch can you please also add logging to print out the sample rate?
Thanks for following up! I added the sample rate to my AAC patch and the sample rate looks to be okay:
gst_kvs_plugin_handle_plugin_event(): Sample Rate: 44100
I also dumped the mkv with KVS_DEBUG_DUMP_DATA_FILE_DIR
and it appears to be exhibiting the same error with ffprobe:
[aac @ 0x7ff88b0bc800] invalid sampling rate index 13
Attached are my updated patch and the media: aac-patch-with-logging.patch.txt aac-audio-issue_0.mkv.zip
@adamthesax ,
Thank you for the logs. I am going to spend some time today/tomorrow to investigate the logs and get back to you. Will reach out if I need anything else.
@adamthesax ,
I still do not see the logs with KVS_DEBUG_DUMP_DATA_FILE_DIR
?
Am I missing something?
Setting KVS_DEBUG_DUMP_DATA_FILE_DIR
generated the above media (aac-audio-issue_0.mkv
). I enabled verbose logging and attached is a logfile
gstreamer.log
@adamthesax ,
Thank you for the logs. Nothing in the logs stands out to me that could cause this issue. Did you test the pipeline with audio/video test src? Is the problem reproducible?
Closing due to inactivity.
Hi! I'm working on pumping video data (H264/AAC) from an upstream source to Kinesis Video Streams via the gstreamer plugin. While the gst pipeline runs and submits data successfully, when I try to generate an HLS playlist I get the following error:
If I grab the fragment via
get-media-for-fragment-list
, the fragment AAC has an invalid sampling rate:To confirm that the GST pipeline isn't the culprit, I replaced
kvsplugin
with anmatroskamux
/filesink
and the file works correctly (seepipeline.mkv
). I also tried conforming the CPD by callingmkvgenGenerateAacCpd
, but ran into the same error (seeaac_cpd.patch
)This is my test gst pipeline:
All my test media and my unsuccessful attempt at a fix is attached: media.zip aac_cpd.patch.txt
Thank you in advanced for helping us get to the bottom of this one.