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