what mp4 file encoding is supported in watching directly inside the browser kinesis video console

0

I'm uploading an MP4 to a kinesis video stream using the example:

gst-launch-1.0 -v  filesrc location="/data/videos/20220217110106-usb-046d_0825_1A0D6A40-video-index0.mp4" ! qtdemux name=demux ! queue ! h264parse !  video/x-h264,stream-format=avc,alignment=au ! kvssink name=sink stream-name="audio-video-file" access-key="YourAccessKeyId" secret-key="YourSecretAccessKey" streaming-type=offline demux. ! queue ! aacparse ! sink.

but i can not play the file in the kinesis video console "Media Playback"

If i live stream from my usb camera like:

gst-launch-1.0 v4l2src io-mode=2 do-timestamp=TRUE device=/dev/video0 ! video/x-raw ! queue ! videoconvert ! video/x-raw ! x264enc bframes=0 key-int-max=10 bitrate=500 ! video/x-h264,stream-format=avc,alignment=au,profile=baseline ! queue ! kvssink name=sink stream-name="audio-video-file" access-key="YourAccessKeyId" secret-key="YourSecretAccessKey"  stream-name="audio-video-file"

it does play... just wondering is the following file supported :

 mediainfo /data/videos/20220217110106-usb-046d_0825_1A0D6A40-video-index0.mp4
General
Complete name                            : /data/videos/20220217110106-usb-046d_0825_1A0D6A40-video-index0.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp42/mp41/isom/iso2)
File size                                : 28.8 MiB
Duration                                 : 59 s 264 ms
Overall bit rate                         : 4 071 kb/s
Encoded date                             : UTC 2022-02-17 11:01:06
Tagged date                              : UTC 2022-02-17 11:02:08

Video
ID                                       : 2
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline@L3.2
Format settings                          : 1 Ref Frames
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Format settings, GOP                     : M=1, N=30
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 59 s 253 ms
Source duration                          : 59 s 201 ms
Bit rate                                 : 3 941 kb/s
Maximum bit rate                         : 6 392 kb/s
Width                                    : 1 280 pixels
Height                                   : 960 pixels
Display aspect ratio                     : 4:3
Frame rate                               : 7.358 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.436
Stream size                              : 27.8 MiB (97%)
Source stream size                       : 27.8 MiB (97%)
Encoded date                             : UTC 2022-02-17 11:01:06
Tagged date                              : UTC 2022-02-17 11:02:08

Audio
ID                                       : 1
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : mp4a-40-2
Duration                                 : 59 s 264 ms
Bit rate mode                            : Constant
Bit rate                                 : 128 kb/s
Channel(s)                               : 1 channel
Channel positions                        : Front: C
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 926 KiB (3%)
Encoded date                             : UTC 2022-02-17 11:01:06
Tagged date                              : UTC 2022-02-17 11:02:08
clogwog
asked 2 years ago609 views
2 Answers
0
Accepted Answer

Thank you, it turned out that the way the mp4 file was saved needed some changes: https://forums.developer.nvidia.com/t/nvv4l2h264enc-output-is-different-from-x264enc/203981

so when i used the gpu version of x264 encoding i needed to add

nvv4l2h264enc maxperf-enable=1 disable-cabac=true idrinterval=60

that made the file visible in the chrome browser (firefox was able to play the kinesis stream without that as well... )

clogwog
answered 2 years ago
0

Hello,

Looking at the video that you are using, I believe this should work with KVS, however to investigate further, can you please try adding the Region in the command[[1]], and also enable debug mode[[2]] while running the command? Please let me the result of the debug command.

Also, please try to open a case with KVS team and share with them your use case as well as the test video so they can try replicate the issue from their side.

References :

[[1]] https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/blob/master/docs/linux.md

[[2]] https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/blob/master/docs/linux.md#how-to-configure-logging-for-producer-sdk-sample-applications

AWS
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions