Failed to extract one frame per second from MP4 file

1.When I run the command, the debug message is as follows
command:gst-launch-1.0 --gst-debug-level=3 filesrc location=/home/work/agent/data/0_1624336546-1624339546.mp4 ! decodebin ! videorate ! video/x-raw,framerate=1/1! nvjpegenc ! multifilesink location="/home/work/agent/data/pic/%d.jpg"

Setting pipeline to PAUSED ...
0:00:00.094085014 19804   0x55b750d520 WARN                 basesrc gstbasesrc.c:3583:gst_base_src_start_complete:<filesrc0> pad not activated yet
Pipeline is PREROLLING ...
0:00:00.108533369 19804   0x7f9807bb70 WARN                 qtdemux qtdemux_types.c:233:qtdemux_type_get: unknown QuickTime node type iods
0:00:00.108630194 19804   0x7f9807bb70 WARN                 qtdemux qtdemux_types.c:233:qtdemux_type_get: unknown QuickTime node type alaw
0:00:00.108706237 19804   0x7f9807bb70 WARN                 qtdemux qtdemux.c:3031:qtdemux_parse_trex:<qtdemux0> failed to find fragment defaults for stream 1
0:00:00.109523961 19804   0x7f9807bb70 WARN                 qtdemux qtdemux.c:3031:qtdemux_parse_trex:<qtdemux0> failed to find fragment defaults for stream 2
Opening in BLOCKING MODE
Opening in BLOCKING MODE
0:00:00.161923057 19804   0x7f94007590 WARN                    v4l2 gstv4l2object.c:4434:gst_v4l2_object_probe_caps:<nvv4l2decoder0:src> Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
0:00:00.161984777 19804   0x7f94007590 WARN                    v4l2 gstv4l2object.c:2375:gst_v4l2_object_add_interlace_mode:0x7f88026bc0 Failed to determine interlace mode
0:00:00.162034778 19804   0x7f94007590 WARN                    v4l2 gstv4l2object.c:2375:gst_v4l2_object_add_interlace_mode:0x7f88026bc0 Failed to determine interlace mode
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
0:00:00.266536766 19804   0x7f94007590 WARN                    v4l2 gstv4l2object.c:4434:gst_v4l2_object_probe_caps:<nvv4l2decoder0:src> Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Unknown error -1
0:00:00.266737291 19804   0x7f94007590 WARN                    v4l2 gstv4l2object.c:2375:gst_v4l2_object_add_interlace_mode:0x7f88026bc0 Failed to determine interlace mode
0:00:00.266879898 19804   0x7f94007590 WARN                    v4l2 gstv4l2object.c:2375:gst_v4l2_object_add_interlace_mode:0x7f88026bc0 Failed to determine interlace mode
0:00:00.271656189 19804   0x7f94007590 WARN           basetransform gstbasetransform.c:1355:gst_base_transform_setcaps:<videorate0> transform could not transform video/x-raw(memory:NVMM), format=(string)NV12, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)bt709, framerate=(fraction)25/1 in anything we support
0:00:00.272467247 19804   0x7f94007590 WARN           basetransform gstbasetransform.c:1355:gst_base_transform_setcaps:<videorate0> transform could not transform video/x-raw(memory:NVMM), format=(string)NV12, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)bt709, framerate=(fraction)25/1 in anything we support
0:00:00.272606781 19804   0x7f94007590 WARN                GST_PADS gstpad.c:4226:gst_pad_peer_query:<decodebin0:src_0> could not send sticky events
0:00:00.273437630 19804   0x7f94007590 WARN            v4l2videodec gstv4l2videodec.c:1673:gst_v4l2_video_dec_decide_allocation:<nvv4l2decoder0> Duration invalid, not setting latency
0:00:00.274423691 19804   0x7f94007590 WARN          v4l2bufferpool gstv4l2bufferpool.c:1065:gst_v4l2_buffer_pool_start:<nvv4l2decoder0:pool:src> Uncertain or not enough buffers, enabling copy threshold
0:00:00.276135808 19804   0x7f94007590 WARN           basetransform gstbasetransform.c:1355:gst_base_transform_setcaps:<capsfilter1> transform could not transform video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, level=(string)4.2, profile=(string)baseline, width=(int)1920, height=(int)1080, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true in anything we support
0:00:00.276222060 19804   0x7f94007590 WARN           basetransform gstbasetransform.c:1415:gst_base_transform_reconfigure:<capsfilter1> warning: not negotiated
0:00:00.276259925 19804   0x7f94007590 WARN           basetransform gstbasetransform.c:1415:gst_base_transform_reconfigure:<capsfilter1> warning: not negotiated
WARNING: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter1: not negotiated
Additional debug info:
gstbasetransform.c(1415): gst_base_transform_reconfigure (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter1:
not negotiated
0:00:00.277122650 19804   0x7f9807bb70 WARN                 qtdemux qtdemux.c:6073:gst_qtdemux_loop:<qtdemux0> error: Internal data stream error.
0:00:00.277161818 19804   0x7f9807bb70 WARN                 qtdemux qtdemux.c:6073:gst_qtdemux_loop:<qtdemux0> error: streaming stopped, reason not-negotiated (-4)
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0: Internal data stream error.
Additional debug info:
qtdemux.c(6073): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

MP4 file information is as follows

ffprobe version 4.4-bf87bdd Copyright (c) 2007-2021 the FFmpeg developers
  built with gcc 7 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)
  configuration: --enable-static --disable-shared --disable-doc --enable-gpl --enable-libx264 --enable-libx265 --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-nonfree
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '0_1624336546-1624339546.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isom
  Duration: 00:50:00.91, start: 0.000000, bitrate: 1046 kb/s
  Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuvj420p(pc, bt709), 1920x1080, 979 kb/s, 25 fps, 25 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      vendor_id       : [0][0][0][0]
  Stream #0:1(und): Audio: pcm_alaw (alaw / 0x77616C61), 8000 Hz, 1 channels, s16, 64 kb/s (default)
    Metadata:
      vendor_id       : [0][0][0][0]

How can it be executed correctly?
Our equipment is JetSon nano,The system is created using jetson-nano-jp46-sd-card-image.zip.
gstreamer version is 1.14.5
I use version 1.18 gst to execute normally on Mac.
please help.

Hi,
Please try

gst-launch-1.0 --gst-debug-level=3 filesrc location=/home/work/agent/data/0_1624336546-1624339546.mp4 ! decodebin ! nvvidconv ! videorate ! video/x-raw,framerate=1/1 ! nvjpegenc ! multifilesink location="/home/work/agent/data/pic/%d.jpg" sync=1

Hi,DaneLLL
Thank you very much. Now it’s working normally.