<?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>Alt om ingenting og litt i mellom &#187; Video</title>
	<atom:link href="http://hovenko.no/blog/category/teknologi/video-teknologi/feed/" rel="self" type="application/rss+xml" />
	<link>https://hovenko.no/blog</link>
	<description>En blogg av Knut-Olav</description>
	<lastBuildDate>Mon, 10 Mar 2025 19:25:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Surround over HDMI med mpv i Linux</title>
		<link>https://hovenko.no/blog/2021/03/16/surround-over-hdmi-med-mpv-i-linux/</link>
		<comments>https://hovenko.no/blog/2021/03/16/surround-over-hdmi-med-mpv-i-linux/#comments</comments>
		<pubDate>Tue, 16 Mar 2021 22:48:50 +0000</pubDate>
		<dc:creator>Knut-Olav</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://hovenko.no/blog/?p=946</guid>
		<description><![CDATA[Dette er en &#8220;note to self&#8221;, etter å ha søkt litt rundt på Internett etter løsning på hvordan å få surround-lyd over HDMI med mpv, og ikke bare stereo. $ mpv \ --audio-channels=5.1,stereo \ --audio-spdif=ac3,eac3,dts-hd,truehd \ --audio-device=alsa/hdmi:CARD=PCH,DEV=0 \ audiofile.mp4 Fant tipset på https://forum.manjaro.org/t/how-do-i-enable-surround-sound-in-pulseaudio/56394. Oppdatering 27.09.2023 Jeg støtte i dag på et tilfelle med en videofil [...]]]></description>
			<content:encoded><![CDATA[<p>Dette er en &#8220;note to self&#8221;, etter å ha søkt litt rundt på Internett etter løsning på hvordan å få surround-lyd over HDMI med mpv, og ikke bare stereo.</p>
<p><code>
<pre>
$ mpv \
  --audio-channels=5.1,stereo \
  --audio-spdif=ac3,eac3,dts-hd,truehd \
  --audio-device=alsa/hdmi:CARD=PCH,DEV=0 \
  audiofile.mp4
</pre>
<p></code></p>
<p>Fant tipset på <a href="https://forum.manjaro.org/t/how-do-i-enable-surround-sound-in-pulseaudio/56394">https://forum.manjaro.org/t/how-do-i-enable-surround-sound-in-pulseaudio/56394</a>.</p>
<h2>Oppdatering 27.09.2023</h2>
<p>Jeg støtte i dag på et tilfelle med en videofil med 6-kanals lyd, men hvor avspilling med kommandoen ovenfor ikke ga noen lyd over HDMI.</p>
<p>Uttrekk fra ffprobe gir meg:<br />
<code>
<pre>
Input #0, matroska,webm, from ...
  Metadata:
    encoder         : libebml v1.4.2 + libmatroska v1.6.4
[...]
    Stream #0:1(eng): Audio: eac3, 48000 Hz, 6 channels, fltp
    Metadata:
      title           : English
      BPS             : 384000
      DURATION        : 02:49:17
      NUMBER_OF_FRAMES: 317427
      NUMBER_OF_BYTES : 487567872
</pre>
<p></code><br />
mpv-avspilling rapporterte 2-kanals lyd: <code>AO: [alsa] 48000Hz stereo 2ch spdif-ac3</code>.</p>
<h3>MPV AD-parameter (Audio Decoder)</h3>
<p>Jeg fikk surround-lyd med AD-parameteren (Audio Decoder):<br />
<code>--ad=spdif:ac3,spdif:dts,</code></p>
<p>mpv rapporterte <code>AO: [alsa] 48000Hz 5.1 6ch s32</code> og receiveren min viste MULTI-CHANNEL lyd-input.</p>
<h3>MPV AF-parameter (Audio Filters)</h3>
<p>Jeg prøvde også med noen AF-parametere (Audio Filters):<br />
<code>
<pre>
  --af=lavcac3enc
  --af=scaletempo,lavcac3enc=yes:640:3
</pre>
<p></code>, men i begge tilfeller rapporterte mpv om <code>AO: [alsa] 48000Hz stereo 2ch spdif-ac3</code>, selv om receiveren min identifiserte det som Dolby Digital. Også i kombinasjon med <code>--ad</code>-parameteren. Jeg gjorde ingen test på om det faktisk ble ekte surround-lyd fra receiveren.</p>
<h3>Kilder</h3>
<p>Fant tipsene fra:<br />
1) <a href="https://bbs.archlinux.org/viewtopic.php?id=195332">Does anyone has realtime ac3 or dts encoding running? (Archlinux)</a><br />
2) <a href="https://www.reddit.com/r/mpv/comments/12r8ajn/new_to_mpv_trouble_with_eac3_6_channel_audio/">New To MPV. Trouble with EAC3 6 channel audio. (Reddit)</a></p>
]]></content:encoded>
			<wfw:commentRss>https://hovenko.no/blog/2021/03/16/surround-over-hdmi-med-mpv-i-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unstable video capture with DC10+ on Ubuntu 10.10</title>
		<link>https://hovenko.no/blog/2010/11/28/unstable-video-capture-with-dc10-on-ubuntu-10-10/</link>
		<comments>https://hovenko.no/blog/2010/11/28/unstable-video-capture-with-dc10-on-ubuntu-10-10/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 18:07:51 +0000</pubDate>
		<dc:creator>Knut-Olav</dc:creator>
				<category><![CDATA[English-posts]]></category>
		<category><![CDATA[Teknologi]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[jitter]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[videoredigering]]></category>

		<guid isPermaLink="false">http://hovenko.no/blog/?p=523</guid>
		<description><![CDATA[Some weeks ago I wrote about capturing video with an old Pinnacle DC10+ card on Ubuntu 10.10. Since then I have had varying success capturing hours of video from both Hi8 and VHS sources. Often lavrec will exit in the middle of a recording with somewhat unknown error messages such as: # dmesg: DC10plus[0]: jpg_sync [...]]]></description>
			<content:encoded><![CDATA[<p>Some weeks ago I wrote about <a href="http://hovenko.no/blog/2010/11/06/video-capture-the-old-way-on-new-ubuntu-10-10">capturing video with an old Pinnacle DC10+ card on Ubuntu 10.10</a>.</p>
<p>Since then I have had varying success capturing hours of video from both Hi8 and VHS sources. Often lavrec will exit in the middle of a recording with somewhat unknown error messages such as:</p>
<pre><code>
# dmesg:
DC10plus[0]: jpg_sync - timeout: codec isr=0x00

# lavrec:
Error syncing on a buffer: Timer expired
</code></pre>
<p>&#8230; and other nicies.</p>
<p>Often this happened between recordings on the tape, when stopping and starting a recording, where it often occur a lot of noise and jitter. It happened more often when recording from VHS tapes than from HI8 tapes.</p>
<p>I tried different values for the system configuration kernel.sched_time_avg with what looks like random improvements. The default is 1000 on a normal Ubuntu Desktop 10.10. I have tried both 100 and 250, and 250 is what I am currently using. Change it like this:</p>
<pre><code>
$ sudo sysctl kernel.sched_time_avg=250
</code></pre>
<p>I was previously using KDE while recording, but found out that several background processes like Akonadi Server was running and stealing resources. The window manager seemed slow. I guess I have an I/O issue somewhere, but I just don&#8217;t know where. Maybe the SCSI drive or maybe the graphics card which is an old ATI Radeon 8500.</p>
<p>I an now running Openbox with Konsole, as a command line (in an X server) is all I need to both record and watch the result with mplayer afterwards. I feel it goes a little bit smoother.</p>
<p>The most effect, as I figured out, was setting the quality option of lavrec a little lower. Recording with the quality set to 100 might result in unstable recording with lost frames if there is the slightest delay in the system, and eventually lavrec just exits with an error.</p>
<p>I tried setting the quality to 80, just to give it a try, and it was recording much more smoothly with less dropped frames. It looks like lavrec now handles jitter much better.</p>
<p>I am now trying out a quality of 90 which also seems good. A little lost frames now and then, but I guess that occurs mostly between recordings since I am able to record several minutes from a single scene without a single frame drop.</p>
<p>This is the command I use now:</p>
<pre><code>
$ aoss lavrec --mjpeg-buffers 512 --mjpeg-buffer-size 8192 -f q -d 1 -i p -q 90 -s -R l -U "dc10-%02d.mov"
</code></pre>
<p>So, my best tip to avoid lost frames and lavrec crashes is to lower the quality a little.</p>
]]></content:encoded>
			<wfw:commentRss>https://hovenko.no/blog/2010/11/28/unstable-video-capture-with-dc10-on-ubuntu-10-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video capture the old way on new Ubuntu 10.10</title>
		<link>https://hovenko.no/blog/2010/11/06/video-capture-the-old-way-on-new-ubuntu-10-10/</link>
		<comments>https://hovenko.no/blog/2010/11/06/video-capture-the-old-way-on-new-ubuntu-10-10/#comments</comments>
		<pubDate>Sat, 06 Nov 2010 00:24:16 +0000</pubDate>
		<dc:creator>Knut-Olav</dc:creator>
				<category><![CDATA[English-posts]]></category>
		<category><![CDATA[Teknologi]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[alsa]]></category>
		<category><![CDATA[editing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[oss]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[videoredigering]]></category>

		<guid isPermaLink="false">http://hovenko.no/blog/?p=497</guid>
		<description><![CDATA[Like probably many people, I have a lot of old analog video recordings on HI-8 and VHS tape I just have forgotten to keep up to date with technology. I guess it&#8217;s time to start capturing video. Soon&#8230; First, the camcorders charger is broken, and buying a new one is kind of difficult, but luckily, [...]]]></description>
			<content:encoded><![CDATA[<p>Like probably many people, I have a lot of old analog video recordings on HI-8 and VHS tape I just have forgotten to keep up to date with technology. I guess it&#8217;s time to start capturing video. Soon&#8230;</p>
<p>First, the camcorders charger is broken, and buying a new one is kind of difficult, but luckily, I got to borrow one from some friends.<br />
Second, I managed to find the last working VHS player I got. A little dusty.<br />
Third, since Mini-DV is kind of legacy as well, I decided to copy those on to my computer as well, if I ever manage to find the camcorder. Got the charger, remote and the casing, but no camcorder. Oh well&#8230;</p>
<p>Find the best composite or S-Video cables you can dig up, because this job you only want to do once. I got my overly priced Monster composite cables, ready to start. Soon…</p>
<p>Ok, so I&#8217;ve got an analog video capture card that I, in the old days, used with Windows 98 and pulled my hair out to get working on Windows 2000. The <a href="http://linuxtv.org/wiki/index.php/Pinnacle/Miro_DC10+">card is a Zoran based Pinnacle/Miro DC10+</a>. That&#8217;s history. Sort of. I still got the video capture card.</p>
<p>What I also got is <a href="http://www.ubuntu.com/">the latest Ubuntu Linux</a> 10.10, also known as Ubuntu Maverick, which comes with the somewhat great ALSA audio support. I say somewhat because this version of Ubuntu <a href="https://bugs.launchpad.net/ubuntu/+source/oss-compat/+bug/659024">lacks the legacy OSS compability driver</a> in the Linux kernel. In other words it makes it harder to record or play audio from older kinds of programs, such as lavrec.</p>
<p><a href="http://mjpeg.sourceforge.net/">lavrec is the video and audio capture application from the MJPEG video tools</a> package. It is the tool recommended for capturing video from the DC10+ card on Linux, but it lacks ALSA support. However, you can get a OSS wrapper program named aoss from the Ubuntu alsa-oss package which provides OSS is most cases for those old applications.</p>
<p>This is how I do video and audio recording, from the command line, enter something like this:</p>
<pre><code>
$ aoss lavrec -f a -i p -q 100 -s -R l -U dc10-out.avi
</code></pre>
<p>Make sure that the correct recording input line is selected for <strong>CAPTURE</strong> in <tt>alsamixer -V capture</tt> such as <strong>Line</strong> or <strong>Mic</strong>. I recommend you capture a 10 second test and check the sound.</p>
]]></content:encoded>
			<wfw:commentRss>https://hovenko.no/blog/2010/11/06/video-capture-the-old-way-on-new-ubuntu-10-10/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
