Open main menu

Changes

C779

570 bytes added, 11:20, 27 December 2021
cd ~
touch edid.txt
sudo nano edid.txt
Copy the above comment to edit.txt, save&exit;
[[File:Csi-edid-txt.png|none]]
Then use the following command to push it to the device.
v4l2-ctl --set-edid=file=edid.txt --fix-edid-checksums
 
[[File:Csi-edid.png|none]]
 
2. The driver will not automatically switch to the detected resolution. Use the following command to view the current input resolution.
<pre>
v4l2-ctl --query-dv-timings
3. Use the following command to set
v4l2-ctl --set-dv-bt-timings query
</pre>
[[File:Csi-framerate.png|none]]
 
4. Use gstreamer to save video and audio<ref name="note1"/>
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.
'''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 command. In addition, alsasrc device=hw:1 represents the sound card of TC358743, you can use "arecord -l" to query.
 
#The sample command to recode a video with audio.
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.
 
#The sample command to recode a video without audio. (C779 doesn't support audio)
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
 
PS: Please modify it to the actual frame rate of your HDMI signal.
== Video ==