<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Lossy FFMPEG conversion to .ogv?</title>
		<link>http://www.allegro.cc/forums/view/617268</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 10 Feb 2018 03:52:44 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi people <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>The video I&#39;m talking about can be found here :</p><p><a href="https://www.videezy.com/animals-and-wildlife/1765-tiger-stock-video-turn-down-the-volume">https://www.videezy.com/animals-and-wildlife/1765-tiger-stock-video-turn-down-the-volume</a></p><p>I was putting together a demo for playing video with allegro, and I needed to convert an .mpeg file to .ogv so I could play it with allegro. I first used FreeMake Video Converter (free/bundle ware) to downsize the video. This worked fine, as verified by playing the resulting video file with VLC Media Player (the best media player I&#39;ve found).</p><p>However, the next step in the conversion process is very poor quality. The original video is 30 fps, and so is the output, as told by VLC&#39;s codec information on the video. However, the actual frame rate is more like 5-10 fps, it&#39;s very choppy in the resulting .ogv video created by FFMPEG.</p><p>All I did was :
</p><pre>
ffmpeg -i TigerSounds.mpg TigerSounds.ogv
</pre><p>

But if you compare the two videos the .ogv file is very lossy, both in resolution and in fps.</p><p>Any ideas why this is? I&#39;ve read that ffmpeg tries to do the most lossless conversion possible, and I&#39;ve also read that ffmpeg reads at 24fps. I don&#39;t know which is true. All I know is that the resulting quality of the ogg video file produced is very poor.</p><p>Suggestions? Are there any other free tools that can convert such a wide variety of video formats into .ogv? Without such a drastic loss in quality? The source video was 115 MB and the output was around 5 MB for the .ogv. Obviously something is going on I don&#39;t know about.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Tue, 06 Feb 2018 22:25:57 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You can set the output quality by setting a target bitrate with ffmpeg. Something like <span class="source-code"><span class="k3">-</span>vb <span class="n">20</span>M</span> will be plenty. The original video&#39;s bitrate is 15M, so you could use that as well.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Wed, 07 Feb 2018 09:36:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>There are TONS of settings for ffmpeg--many of which can lead to bad results. I&#39;d look through some examples of MPEG to OGV online.</p><p>for example:
</p><div class="source-code snippet"><div class="inner"><pre><span class="p"># Usage: mp4 to ogv</span>
ffmpeg <span class="k3">-</span>i input.mp4 <span class="k3">-</span>q:v <span class="n">10</span> <span class="k3">-</span>c:v libtheora <span class="k3">-</span>c:a libvorbis output.ogv
</pre></div></div><p>
<a href="https://gist.github.com/nok/8578854">https://gist.github.com/nok/8578854</a></p><p>AS well as:</p><div class="source-code snippet"><div class="inner"><pre>ffmpeg <span class="k3">-</span>i input.mp4 <span class="k3">-</span>acodec libvorbis <span class="k3">-</span>vcodec libtheora <span class="k3">-</span>f ogv output.ogv
</pre></div></div><p>
<a href="https://superuser.com/questions/108237/convert-mp4-to-ogg-video">https://superuser.com/questions/108237/convert-mp4-to-ogg-video</a></p><p>Try both and see if they give better results.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Chris Katko)</author>
		<pubDate>Sat, 10 Feb 2018 03:52:44 +0000</pubDate>
	</item>
</rss>
