Gstreamer to convert mkv video file to mp4

Hi
how can I using gstreamer hardware encode / decode function to convert a .mkv (encode H264) file into .mp4 file (encode h264) without audio?
Thanks

CX

Hi,
You can re-mux to mp4 without re-encoding the stream. Please try

$ gst-launch-1.0 filesrc location= jellyfish-5-mbps-hd-h264.mkv ! matroskademux ! h264parse ! qtmux ! filesink location=a.mp4

It works. Thank you very much.