<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
Hi Seven<br>
<br>
Thanks very much for your replies! I thought I should be very surprised if I was the first one wanting to do this. It'd be very helpful if you could share your code with x264, or libvlc, to spare me, and possibly others of reinventing the wheels. I'll compile
the code myself of course which should be free of the licensing troubles I guess.<br>
<br>
I'd be very grateful if you could share the code and give some instructions. Thank you very much!<br>
<br>
Yufei<br>
<br>
<br>
<table class="header-part1" width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>
<div class="headerdisplayname" style="display:inline">Subject: </div>
Re: [Freeswitch-users] H264 transcodin</td>
</tr>
<tr>
<td>
<div class="headerdisplayname" style="display:inline">From: </div>
Seven Du <a class="moz-txt-link-rfc2396E" href="mailto:dujinfang@gmail.com"><dujinfang@gmail.com></a></td>
</tr>
<tr>
<td>
<div class="headerdisplayname" style="display:inline">Date: </div>
28/07/12 01:45</td>
</tr>
</tbody>
</table>
<table class="header-part2" width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>
<div class="headerdisplayname" style="display:inline">To: </div>
FreeSWITCH Users Help <a class="moz-txt-link-rfc2396E" href="mailto:freeswitch-users@lists.freeswitch.org">
<freeswitch-users@lists.freeswitch.org></a></td>
</tr>
</tbody>
</table>
<br>
<div class="moz-text-html" lang="x-unicode">
<div>Real-time encoding with statically linked x264 lib works fine for me from QCIF to D1 resolution, 720p is slow and discarding frames on a Xeon Quad core CPU. I haven't look how to use the GPU, or if possible.</div>
<div><br>
</div>
<div>It is working in my lab and I have the same question with Yufei Tao when going to production or deliver to customer. Based on <a href="http://lists.freeswitch.org/pipermail/freeswitch-dev/2010-September/004227.html">http://lists.freeswitch.org/pipermail/freeswitch-dev/2010-September/004227.html</a> , In
my understanding, compile and link and use by my self should be fine and, if I deliver to a customer, it should be fine if I provide the code and help the customer to compile on their own server? I'd like to open source the code to public later, but, I'd like
to know is it a MUST or MAY?</div>
<div><br>
</div>
<div>If you pipe to ffmpeg or x264 command line it's not been treated as combine into a large work, and I'm not sure if realtime transcoding will be smooth.</div>
<div><br>
</div>
<div>7.</div>
<p style="color:#A0A0A8">On Friday, July 27, 2012 at 11:17 PM, Yufei Tao wrote:</p>
<blockquote type="cite" style="border-left-style:solid; border-width:1px; margin-left:0px; padding-left:10px">
<span>
<div>
<div>
<div>Thanks everyone for the responses!</div>
<div><br>
</div>
<div>If I understand it correctly, if I installed ffmpeg on itself separately</div>
<div>from FS, I could write a module for FS, in which I just call the ffmpeg</div>
<div>program by running a command line. This way would it be classified as</div>
<div>"not combine them into a larger work", thus free from license</div>
<div>incompatibility problem?</div>
<div><br>
</div>
<div>Not sure if that'll work for real-time transcoding of x264 though?</div>
<div><br>
</div>
<div>Thanks very much for you opinions!</div>
<div>Yufei</div>
<div><br>
</div>
<div>--</div>
<div>Yufei Tao</div>
<div>Red Embedded</div>
<div><br>
</div>
<div>This E-mail and any attachments hereto are strictly confidential and intended solely for the addressee. If you are not the intended addressee please notify the sender by return and delete the message.</div>
<div><br>
</div>
<div>You must not disclose, forward or copy this E-mail or attachments to any third party without the prior consent of the sender.</div>
<div><br>
</div>
<div>Red Embedded Design, Company Number 06688253 Registered in England: The Waterfront, Salts Mill Rd, Saltaire, BD17 7EZ</div>
<div><br>
</div>
<div>_________________________________________________________________________</div>
<div>Professional FreeSWITCH Consulting Services:</div>
<div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div>
<div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div>
<div><br>
</div>
<div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</div>
<div><a href="http://www.cudatel.com">http://www.cudatel.com</a></div>
<div><br>
</div>
<div>Official FreeSWITCH Sites</div>
<div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div>
<div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div>
<div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div>
<div><br>
</div>
<div>Join Us At ClueCon - Aug 7-9, 2012</div>
<div><br>
</div>
<div>FreeSWITCH-users mailing list</div>
<div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></div>
<div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></div>
<div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></div>
<div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div>
</div>
</div>
</span></blockquote>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"><legend class="mimeAttachmentHeaderName">ForwardedMessage.eml</legend>
</fieldset>
<table class="header-part1" width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>
<div class="headerdisplayname" style="display:inline">Subject: </div>
Re: [Freeswitch-users] H264 transcoding</td>
</tr>
<tr>
<td>
<div class="headerdisplayname" style="display:inline">From: </div>
Seven Du <a class="moz-txt-link-rfc2396E" href="mailto:dujinfang@gmail.com"><dujinfang@gmail.com></a></td>
</tr>
<tr>
<td>
<div class="headerdisplayname" style="display:inline">Date: </div>
28/07/12 02:10</td>
</tr>
</tbody>
</table>
<table class="header-part2" width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>
<div class="headerdisplayname" style="display:inline">To: </div>
FreeSWITCH Users Help <a class="moz-txt-link-rfc2396E" href="mailto:freeswitch-users@lists.freeswitch.org">
<freeswitch-users@lists.freeswitch.org></a></td>
</tr>
</tbody>
</table>
<br>
<div>I patched libvlc and it can now decode any video vlc supported and encode with x264 and send to any sip phone. Specifically I'm trying to use it to play a 1080p stream and resize to CIF or D1 so a video phone will accept(Sending 1080p will cause some phones
to reboot :( ).</div>
<div><br>
</div>
<div>Still need a lot of code to make it working neatly, however, I might can do a demo on ClueCon and @William if you'd like to review the code and merge into tree I'll happy to contribute that later.</div>
<div><br>
</div>
<p style="color:#A0A0A8">On Friday, July 27, 2012 at 2:43 PM, William King wrote:</p>
<blockquote type="cite" style="border-left-style:solid; border-width:1px; margin-left:0px; padding-left:10px">
<span>
<div>
<div>libvlc is LGPL <a href="http://www.videolan.org/press/lgpl.html">http://www.videolan.org/press/lgpl.html</a> and there is now a mod_vlc(though it doesn't yet support video streams). The user can choose to build vlc with only the LGPL components or add
the more 'adverse' modules. In none of the LGPL packages of libvlc is ffmpeg enabled, but there is a module for libvlc for ffmpeg.
<a href="http://wiki.videolan.org/FFmpeg">http://wiki.videolan.org/FFmpeg</a> <br>
<br>
The only pieces now may just be the FS side of things for video.<br>
<pre cols="72">William King
Senior Engineer
Quentus Technologies, INC
1037 NE 65th St Suite 273
Seattle, WA 98115
Main: (877) 211-9337
Office: (206) 388-4772
Cell: (253) 686-5518
<a href="mailto:william.king@quentustech.com">william.king@quentustech.com</a> </pre>
<br>
On 07/26/2012 08:46 PM, Anthony Minessale wrote:
<blockquote type="cite">
<div>
<pre>you would probably need to do something like make a mod for ffmpeg
that protects you from the gpl then allow the user to build that lib
on his own and choose at compile time to install patented or adverse
licensed components. No license rules prohibit an end user from
combining code only distributors.
but even then we need a bunch of code to write.
On Thu, Jul 26, 2012 at 10:41 PM, curriegrad2004
<a href="mailto:curriegrad2004@gmail.com"><curriegrad2004@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<div>
<pre>Ken,
If you think those guys over at x264 will ever change the license from
GPL to LGPL, you're just dreaming the pie in the sky...
In short, don't even think about it ;P
On Thu, Jul 26, 2012 at 8:19 PM, Ken Rice <a href="mailto:krice@freeswitch.org"><krice@freeswitch.org></a> wrote:
</pre>
<blockquote type="cite">
<div>
<pre>we can not and will not use GPL software, the license is not compatible with the GPL and would polute the codebase with additional restrictions that are not wanted or needed. now if someone could get them to change the license or atleast give us a license under better terms such as the LGPL or the MPL then the license issue would be null
Ken
Sent from my iPad
On Jul 26, 2012, at 7:45 PM, Terry Barnum <a href="mailto:terry@digital-outpost.com"><terry@digital-outpost.com></a> wrote:
</pre>
<blockquote type="cite">
<div>
<pre>Use x264? <a href="http://en.wikipedia.org/wiki/X264">http://en.wikipedia.org/wiki/X264</a>
On Jul 26, 2012, at 4:53 PM, Ken Rice wrote:
</pre>
<blockquote type="cite">
<div>
<pre>Is it possible sure... Is ot probably to happen anytime soon? Not until the
patents run out...
On 7/26/12 5:04 PM, "yufei.tao" <a href="mailto:yufei.tao@redembedded.com"><yufei.tao@redembedded.com></a> wrote:
</pre>
<blockquote type="cite">
<div>
<pre>Hi
I am trying to decide if it is feasible to let FS do transcoding between
different H264 formats for live video calls. This is because I've got
SIP clients that both use H264 but with different formats and one (with
a bad H264 decoder) has problems decoding H264 stream from the other.
But each of these two clients communicate fine using H264 with a third
client that uses ffmpeg. I'm thinking of adding a module which uses
ffmpeg, so that it will transcode H264 between different parameters.
I've got a few questions:
1. Is this feasible? I'm not looking at supporting many simultaneous calls.
2. What is involved in transcoding real-time video stream?
3. Anyone's done anything like this before?
I'm new to FS and any suggestions would be very much appreciated!
Yufei
</pre>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</span></blockquote>
--<br>
<b>Yufei Tao</b><br>
<font size="small">Red Embedded <br>
</font>
<h5><font color="gray">
<p>This E-mail and any attachments hereto are strictly confidential and intended solely for the addressee. If you are not the intended addressee please notify the sender by return and delete the message.</p>
<p>You must not disclose, forward or copy this E-mail or attachments to any third party without the prior consent of the sender.</p>
<p>Red Embedded Design, Company Number 06688253 Registered in England: The Waterfront, Salts Mill Rd, Saltaire, BD17 7EZ</p>
</h5>
</font>
</body>
</html>