.mp4 with longer audio stream than video stream doesn't play back video stream
If I use FFmpeg make an .mp4 which has 5 seconds of video and 10 seconds of audio, then GStreamer plays back fine, but if it has 5 seconds of video and 30 seconds of audio, then it only plays the audio.
To make the video files:
ffmpeg -f lavfi -i color=c=red:s=640x480:d=5 video.ts
ffmpeg -f lavfi -i "sine=frequency=440:duration=10" audio_short.aac
ffmpeg -f lavfi -i "sine=frequency=440:duration=30" audio_long.aac
ffmpeg -i video.ts -i audio_short.aac -c copy combined_short.mp4
ffmpeg -i video.ts -i audio_long.aac -c copy combined_long.mp4
To try to play them back:
gst-launch-1.0 playbin uri=file:///path/to/dir/combined_short.mp4
gst-launch-1.0 playbin uri=file:///path_to_dir/combined_long.mp4
For playback of combined_long.mp4
, a video window is not even displayed.