Onboard Camera Video Format Issue

Hi,

I tried to use nvgstcapture in interactive mode to capture some videos but I am unable to play the video back. This is the log from SMPlayer for a .mp4 file I took:

/usr/bin/mpv --no-config --no-quiet --terminal --no-msg-color --input-file=/dev/stdin --no-fs --hwdec=no --sub-auto=fuzzy --vo=xv, --no-input-default-bindings --input-x11-keyboard=no --no-input-cursor --cursor-autohide=no --no-keepaspect --wid=62914577 --monitorpixelaspect=1 --osd-scale=1 --sub-ass --embeddedfonts --ass-line-spacing=0 --sub-scale=1 --sub-text-font=Arial --sub-text-color=#ffffff --sub-text-shadow-color=#000000 --sub-text-border-color=#000000 --sub-text-border-size=2.5 --sub-text-shadow-offset=5 --sub-codepage=utf8:ISO-8859-1 --sub-pos=100 --volume=55 --cache=2048 --osd-level=0 --screenshot-directory=/home/nvidia/Pictures/smplayer_screenshots --screenshot-template=cap_%F_%p_%02n --screenshot-format=jpg --af-add=scaletempo --af-add=equalizer=0:0:0:0:0:0:0:0:0:0 --softvol=yes --softvol-max=110 --ytdl=no --term-playing-msg=MPV_VERSION=${=mpv-version:}
INFO_VIDEO_WIDTH=${=width}
INFO_VIDEO_HEIGHT=${=height}
INFO_VIDEO_ASPECT=${=video-aspect}
INFO_VIDEO_FPS=${=fps}
INFO_VIDEO_FORMAT=${=video-format}
INFO_VIDEO_CODEC=${=video-codec}
INFO_AUDIO_FORMAT=${=audio-codec-name:${=audio-format}}
INFO_AUDIO_CODEC=${=audio-codec}
INFO_AUDIO_RATE=${=audio-params/samplerate:${=audio-samplerate}}
INFO_AUDIO_NCH=${=audio-params/channel-count:${=audio-channels}}
INFO_LENGTH=${=duration:${=length}}
INFO_DEMUXER=${=demuxer}
INFO_TITLES=${=disc-titles}
INFO_CHAPTERS=${=chapters}
INFO_TRACKS_COUNT=${=track-list/count}
METADATA_TITLE=${metadata/by-key/title:}
METADATA_ARTIST=${metadata/by-key/artist:}
METADATA_ALBUM=${metadata/by-key/album:}
METADATA_GENRE=${metadata/by-key/genre:}
METADATA_DATE=${metadata/by-key/date:}
METADATA_TRACK=${metadata/by-key/track:}
METADATA_COPYRIGHT=${metadata/by-key/copyright:}
INFO_MEDIA_TITLE=${=media-title:}
 --term-status-msg=STATUS: ${=time-pos} / ${=duration:${=length:0}} P: ${=pause} B: ${=paused-for-cache} I: ${=core-idle} /home/nvidia/nvcamtest_14095_s00_00000.mp4

Playing: /home/nvidia/nvcamtest_14095_s00_00000.mp4
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: moov atom not found
[lavf] avformat_open_input() failed
[ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: moov atom not found
[lavf] avformat_open_input() failed
Failed to recognize file format.
Exiting... (Errors when loading file)

My guess is that the issue is due to me not downloading the Multimedia API Package from JetPack. I didn’t do that because I needed OpenCV 3.4.1 but JetPack installs 3.3.1. Putting down no action for OpenCV automatically changes Multimedia API package and the VisionWorks Pack to “no action.” If this is the issue, is there any way for me to download the Multimedia API package (and I suppose VisionWorks too) and keep my OpenCV 3.4.1? I figure having two different version of OpenCV might cause problems

Hi,
You can get it from download center:
https://developer.nvidia.com/embedded/dlc/multimedia-api-r2821

Can you try to play the file in gst-launch-1.0

gst-launch-1.0 filesrc location=/home/nvidia/nvcamtest_14095_s00_00000.mp4 ! qtdemux ! h264parse ! omxh264dec ! nvoverlaysink

Hi,

I tried that download link. I went to the argus directory and ran the commands as provided by the README.txt to build. I took another sample and ran the command you gave. It gave
WARNING: erroneous pipeline: no element “h264parse”

Please install gstreamer1.0-plugins-bad.

This was the output:

~$ gst-launch-1.0 filesrc location=/home/nvidia/nvcamtest_24496_s00_00000.mp4 ! qtdemux ! h264parse ! omxh264dec ! nvoverlaysink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: This file contains no playable streams.
Additional debug info:
qtdemux.c(653): gst_qtdemux_post_no_playable_stream_error (): /GstPipeline:pipeline0/GstQTDemux:qtdemux0:
no known streams found
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

Hi,
We have SQA tests for nvgstcapture-1.0 and it shall not generate invalid video files. Please share us your steps of generating the video file and we will try to reproduce it on r28.2.1.