Open main menu

Changes

C779

894 bytes added, 10:14, 1 July 2021
no edit summary
3. Use the following command to set
v4l2-ctl --set-dv-bt-timings query
4. Use gstreamer to save video and soundaudio(C779 DOESN'T support audio)
gst-launch-1.0 v4l2src io-mode=5 ! video/x-raw, format=UYVY, framerate=25/1 ! v4l2h264enc output-io-mode=4 ! video/x-h264,profile=high ! h264parse ! queue ! matroskamux name=mux ! filesink location=foo.mkv alsasrc device=hw:1 ! audio/x-raw,rate=48000,channels=2 ! audioconvert ! avenc_aac bitrate=48000 ! aacparse ! queue ! mux.
If the video and audio are well connected, you can get a playable video foo.kmv after running the above command. If the input video source has sound, you will be able to hear the corresponding sound. Note that the version of the gst command tested here is below 1.8. If your gstreamer is version 1.8 or above, you can try the following test statement. In addition, alsasrc device=hw:1 represents the sound card of TC358743, you can use "arecord -l" to query.
 
gst-launch-1.0 -vvv v4l2src ! "video/x-raw,framerate=30/1,format=UYVY" ! v4l2h264enc extra-controls="controls,h264_profile=4,h264_level=13,video_bitrate=256000;" ! "video/x-h264,profile=high, level=(string)4.2" ! h264parse ! queue ! matroskamux name=mux ! filesink location=foo.mkv alsasrc device=hw:1 ! audio/x-raw,rate=48000,channels=2 ! audioconvert ! avenc_aac bitrate=48000 ! aacparse ! queue ! mux.
== Video ==
https://youtu.be/L5qbZPrpPp0