<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Thank you very much.<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Could you tell how I would be able to link x264 encoder for H264 and not v4l4m2m. To invoke x264 encoder with the source code.<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Thanks in advance,<br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Kind Regards, <br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Adhuran <br>
<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
<span id="OutlookSignature">
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Sent from my Samsung Galaxy S9 - Powered by Three<br>
</div>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
Get <a href="https://aka.ms/ghei36">Outlook for Android</a></div>
</span><br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Richard Hussong <rhussong@westpond.com><br>
<b>Sent:</b> Tuesday, October 8, 2019 6:46:26 PM<br>
<b>To:</b> This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter. <libav-user@ffmpeg.org><br>
<b>Cc:</b> Adhuran, Jayasingam (PG/R - Elec Electronic Eng) <j.adhuran@surrey.ac.uk><br>
<b>Subject:</b> Re: [Libav-user] Request for Help - Error - h264_v4l2m2m @ 0x114ac00] Could not find a valid device</font>
<div> </div>
</div>
<div>
<div dir="ltr">You need a V4L2 video device to use that encoder. If you haven't already done this, run "ls -l /dev/video*", and make sure there is a video device and you have permission to write to it. If that doesn't help, you should raise the logging level
 of libav and see if it tells you what went wrong.
<div><br>
</div>
<div>- Richard</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, Oct 8, 2019 at 1:22 PM Adhuran Adhuran via Libav-user <<a href="mailto:libav-user@ffmpeg.org">libav-user@ffmpeg.org</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Dear All,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I am trying to use ffmpeg source code top encode video streams in linux. I used the code provided in this link
<a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fffmpeg.org%2Fdoxygen%2F3.2%2Fmuxing_8c_source.html&data=02%7C01%7Cj.adhuran%40surrey.ac.uk%7Cfeef03bf3fab4441db5208d74c17790f%7C6b902693107440aa9e21d89446a2ebb5%7C0%7C1%7C637061536017908633&sdata=DXwBLSqQMwhbyFnInOE%2F%2BYZ1TWzhIZhlNX2ZYKtG2rc%3D&reserved=0" originalsrc="https://ffmpeg.org/doxygen/3.2/muxing_8c_source.html" shash="NnIrnBIyrCZ5mnhONJfFy/6c/y3wV89XHKIPtRgXpPh8rnN1gGqj2m+BWIkznWSZuv+sf1ZlLsu1d31jMzyX/JtUNfXqWKiAMHd0yf1pkW3cRw5Qbb/a5tjNR06tJ/HivcMVtsH07cvDIfQdyMFgplyMkcQ271C0eYLKHjGxDcM=" id="gmail-m_-3108037064996574237LPlnk871991" target="_blank">
https://ffmpeg.org/doxygen/3.2/muxing_8c_source.html</a> to encode videos.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I got an error, <span>when the code accessed the function ret = <a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fffmpeg.org%2Fdoxygen%2F3.2%2Fgroup__lavc__core.html%23ga11f785a188d7d9df71621001465b0f1d&data=02%7C01%7Cj.adhuran%40surrey.ac.uk%7Cfeef03bf3fab4441db5208d74c17790f%7C6b902693107440aa9e21d89446a2ebb5%7C0%7C1%7C637061536017918630&sdata=hg0RqdJRa23310y5JSb8LXNAlfmbxtAKkSYSEh4iKVg%3D&reserved=0" originalsrc="https://ffmpeg.org/doxygen/3.2/group__lavc__core.html#ga11f785a188d7d9df71621001465b0f1d" shash="FeTSZ1NvFB504W2KqgrrvMzYPO0u4akxq/WClF7Xvh4dcnz4IvWS0G/lDGC9eJ0WLEz6QzBxKws/tEUBjISgKh4MK8ccnTCtXK7bH6iJMQ3Wk7FTc3jlIex/w2nx3R121GR34h8V2KAypfNrnuh5dvKZCZTGgomyebU5q8qghkQ=" target="_blank">
avcodec_open2</a>(c, codec, &opt);<br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span>[h264_v4l2m2m @ 0x114ac00] Could not find a valid device<br>
</span>
<div>[h264_v4l2m2m @ 0x114ac00] can't configure encoder<br>
</div>
<span></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
May I know, why I get this error and how I could solve this?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Regards,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Adhuran.<br>
</div>
</div>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fffmpeg.org%2Fmailman%2Flistinfo%2Flibav-user&data=02%7C01%7Cj.adhuran%40surrey.ac.uk%7Cfeef03bf3fab4441db5208d74c17790f%7C6b902693107440aa9e21d89446a2ebb5%7C0%7C1%7C637061536017923627&sdata=saYOSH3RwykbXKztNxIS%2BKkXcvMhkMe5pCh5x%2BkmtMU%3D&reserved=0" originalsrc="https://ffmpeg.org/mailman/listinfo/libav-user" shash="Wgq9Cje4JRaj6xOmhQiuZFdwqV22NKzjkkZkwT8awrRDTlaAzFDzED1us0INavnTvSrz6AeDW4xzGF99LXFO8e9Y/bbl6BMlIy4BWJu4DqXrDzYDfi6Oqz0QEwXa8NcHxvwFBxVpnMTPltgDcmtAgdhk4WrU8YPd8xjXRF7AOeI=" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote>
</div>
</div>
</body>
</html>