<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Autarchy of the Private Cave &#187; direct stream copy</title> <atom:link href="https://bogdan.org.ua/tags/direct-stream-copy/feed" rel="self" type="application/rss+xml" /><link>https://bogdan.org.ua</link> <description>Tiny bits of bioinformatics, [web-]programming etc</description> <lastBuildDate>Wed, 28 Dec 2022 16:09:04 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>https://wordpress.org/?v=3.8.27</generator> <item><title>How to use ffmpeg if libmp3lame support is not present</title><link>https://bogdan.org.ua/2008/04/12/how-to-use-ffmpeg-if-libmp3lame-support-is-not-present.html</link> <comments>https://bogdan.org.ua/2008/04/12/how-to-use-ffmpeg-if-libmp3lame-support-is-not-present.html#comments</comments> <pubDate>Sat, 12 Apr 2008 20:41:07 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[direct stream copy]]></category> <category><![CDATA[example]]></category> <category><![CDATA[ffmpeg]]></category> <category><![CDATA[libmp3lame]]></category> <category><![CDATA[sample command]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/?p=291</guid> <description><![CDATA[I&#8217;m providing regularly updated compiled linux and freebsd ffmpeg binaries, and also described how to use ffmpeg on shared hostings if not all the required libraries (like libmp3lame) are present. However, the solution recommended might not &#8220;fit all&#8221;, so here is another one &#8211; simpler and even more portable/universal than setting LD_LIBRARY_PATH. The solution is [&#8230;]]]></description> <content:encoded><![CDATA[<p>I&#8217;m providing <a
href="http://bogdan.org.ua/2007/06/28/compiled-linux-ffmpeg-binary-for-gallery2-download.html">regularly updated compiled linux and freebsd ffmpeg binaries</a>, and also <a
href="http://bogdan.org.ua/2008/03/12/instructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html">described how to use ffmpeg on shared hostings if not all the required libraries (like libmp3lame) are present</a>. However, the solution recommended might not &#8220;fit all&#8221;, so here is another one &#8211; simpler and even more portable/universal than setting LD_LIBRARY_PATH.<br
/> <span
id="more-291"></span><br
/> The solution is simple &#8211; I first proposed it in the <a
href="http://drupal.org/node/137203#comment-802272" class="broken_link" rel="nofollow">Getting ffmpeg working with flashvideo on various platforms</a> issue page on <a
href="http://drupal.org/" class="broken_link" rel="nofollow">Drupal.org</a>.</p><p>The idea is: if the original audio stream in the file is already compressed (most of the time it is), then you do not need to recompress it &#8211; and do not need libmp3lame or any other audio codec! To achieve the &#8220;ffmpeg direct stream copy&#8221; functionality, you can add one of the two options:<br
/> <strong>-vcodec copy</strong> will direct-stream-copy video (no re-compression),<br
/> <strong>-acodec copy</strong> will direct-stream-copy audio (no re-compression).</p><p>In other words, ffmpeg option <strong>-acodec copy</strong> should just copy the original audio from input file to output file without alteration, and will not require any audio codecs support.</p><p>Sample command line could be (in the example, a 1-minute fragment of the input file is just copied into the output file):</p><p><strong>ffmpeg -t 00:01:00 -i movie.avi -vcodec copy -acodec copy preview.avi</strong></p><p>This tip is based on the information initially obtained from the ffmpeg-user mailing list archive for June of 2005.</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F04%2F12%2Fhow-to-use-ffmpeg-if-libmp3lame-support-is-not-present.html&amp;linkname=How%20to%20use%20ffmpeg%20if%20libmp3lame%20support%20is%20not%20present" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F04%2F12%2Fhow-to-use-ffmpeg-if-libmp3lame-support-is-not-present.html&amp;linkname=How%20to%20use%20ffmpeg%20if%20libmp3lame%20support%20is%20not%20present" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F04%2F12%2Fhow-to-use-ffmpeg-if-libmp3lame-support-is-not-present.html&amp;linkname=How%20to%20use%20ffmpeg%20if%20libmp3lame%20support%20is%20not%20present" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F04%2F12%2Fhow-to-use-ffmpeg-if-libmp3lame-support-is-not-present.html&amp;linkname=How%20to%20use%20ffmpeg%20if%20libmp3lame%20support%20is%20not%20present" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F04%2F12%2Fhow-to-use-ffmpeg-if-libmp3lame-support-is-not-present.html&amp;linkname=How%20to%20use%20ffmpeg%20if%20libmp3lame%20support%20is%20not%20present" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2008%2F04%2F12%2Fhow-to-use-ffmpeg-if-libmp3lame-support-is-not-present.html&#038;title=How%20to%20use%20ffmpeg%20if%20libmp3lame%20support%20is%20not%20present" data-a2a-url="https://bogdan.org.ua/2008/04/12/how-to-use-ffmpeg-if-libmp3lame-support-is-not-present.html" data-a2a-title="How to use ffmpeg if libmp3lame support is not present"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2008/04/12/how-to-use-ffmpeg-if-libmp3lame-support-is-not-present.html/feed</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>