【以下的问题经过翻译处理】 我正在使用例子将MP4上传到Kinesis视频流:
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.
但我不能在Kinesis视频控制台中“媒体播放”中播放该文件。
如果我从我的USB摄像头直播流:
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"
它可以播放...只是好奇以下文件是否支持:
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