<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ffmpeg on Michael’s Domain</title><link>https://jeltsch.org/en/tags/ffmpeg/</link><description>Recent content in Ffmpeg on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/ffmpeg/index.xml" rel="self" type="application/rss+xml"/><item><title>Editing Zoom recordings of teaching sessions with FFmpeg</title><link>https://jeltsch.org/en/editing_zoom_recordings_of_teaching_sessions_with_ffmpeg/</link><pubDate>Wed, 25 Nov 2020 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/editing_zoom_recordings_of_teaching_sessions_with_ffmpeg/</guid><description>&lt;p&gt;Based on student feedback, we have been organizing a 
 &lt;a href="https://studies.helsinki.fi/courses/cur/hy-opt-cur-2021-75b4e723-3796-4ac6-a8fe-0a840afaf2d7" target="_blank" rel="noopener noreferrer nofollow"&gt;new course&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 for the 
 &lt;a href="https://www.helsinki.fi/en/admissions/degree-programmes/translational-medicine-masters-programme" target="_blank" rel="noopener noreferrer nofollow"&gt;TRANSMED MSc program&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 about drug discovery and development. It is what you call in German a &amp;ldquo;Schupperkurs&amp;rdquo;. I never have found a satisfactory translation of this word in English. It means that we just want to raise the students&amp;rsquo; interest in this course. If they like it, they can take any of the many in-depth courses that are offered e.g. at the 
 &lt;a href="https://www.helsinki.fi/en/faculty-of-pharmacy" target="_blank" rel="noopener noreferrer nofollow"&gt;Faculty of Pharmacy&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
, where there will be more teaching in English in the coming years due to the planned International MSc program in Pharmacy.&lt;/p&gt;</description></item><item><title>ffmpeg</title><link>https://jeltsch.org/en/ffmpeg/</link><pubDate>Sun, 26 Jun 2016 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/ffmpeg/</guid><description>&lt;p&gt;Trimming an avi file: &lt;code&gt;ffmpeg -i Die_Sendung_mit_der_Maus_16.06.19_09-30_ard_30_TVOON_DE.mpg.HQ.avi -vcodec copy -acodec copy -ss 00:06:04 -t 00:29:32 output.avi&lt;/code&gt;ss is the start time and t is the duration (not the end time)webm to mp3 conversion:&lt;code&gt;ffmpeg -i La_robe_de_soie.webm -vn -ab 128k -ar 44100 -y &amp;quot;La_robe_de_soie.mp3&amp;quot;&lt;/code&gt;Concatenate two videos:&lt;code&gt;ffmpeg -f concat -safe 0 -i list.txt -c copy /tmp/output.avi&lt;/code&gt;list.txt:&lt;code&gt;file 'video1.avi'file 'video2.avi'&lt;/code&gt;UPDATE:It is nice to be able to manipulate video files on the command line. However, especially for the more advanced functionality, the syntax becomes impossible to remember. Hence the need for a GUI that makes ffmpeg more accessible. The best tool that I have come acress so far is the cross-platform 
 &lt;a href="https://github.com/mifi/lossless-cut" target="_blank" rel="noopener noreferrer nofollow"&gt;LosslessCut&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
. There are also 
 &lt;a href="https://github.com/mifi/lossless-cut#download" target="_blank" rel="noopener noreferrer nofollow"&gt;packages for Mac, Linux or Windows&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
.&lt;/p&gt;</description></item><item><title>One firewall to block them all</title><link>https://jeltsch.org/en/one_firewall_to_block_them_all/</link><pubDate>Tue, 06 Nov 2012 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/one_firewall_to_block_them_all/</guid><description>&lt;p&gt;&lt;strong&gt;Helsinki University&amp;rsquo;s firewall prevents employees from working&lt;/strong&gt;While I was lying in hospital with a broken calf-bone I couldn&amp;rsquo;t get any work done because of the Helsinki University&amp;rsquo;s firewall. Even if the 
 &lt;a href="https://play.google.com/store/apps/details?id=net.openvpn.openvpn&amp;amp;feature=search_result#?t=W251bGwsMSwyLDEsIm5ldC5vcGVudnBuLm9wZW52cG4iXQ.." target="_blank" rel="noopener noreferrer nofollow"&gt;Android OpenVPN client&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 would have allowed me in, I wouldn&amp;rsquo;t have been able to work. The purpose of a 
 &lt;a href="http://en.wikipedia.org/wiki/VPN" target="_blank" rel="noopener noreferrer nofollow"&gt;VPN&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 is to allow remote clients the same access to the LAN resources as those machines, that are physically located in the LAN. Obviously Helsinki University doesn&amp;rsquo;t think so and doesn&amp;rsquo;t give VPN clients equal privileges. In my case it meant that I cannot ssh into my work computer. This makes remote work expensive, because it required my boss to buy a laptop for me just because the firewall between HY-VPN clients and local machines blocks ssh connections. Without this restriction I could do all the work from my 400€ tablet using e.g. 
 &lt;a href="http://www.nomachine.com" target="_blank" rel="noopener noreferrer nofollow"&gt;nomachine&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 Player).&lt;strong&gt;The work-arounds failed also&lt;/strong&gt;If I had managed to login into one of the University&amp;rsquo;s UNIX servers (myntti, kruuna, klaava or ruuvi), I could have logged into my work computer from there. However, my Android ssh client 
 &lt;a href="https://code.google.com/p/connectbot/" target="_blank" rel="noopener noreferrer nofollow"&gt;ConnectBot&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 was not able to ssh into them. I presume this to be the fault of my mobile phone network provider 
 &lt;a href="http://www.tele.fi/" target="_blank" rel="noopener noreferrer nofollow"&gt;Tele Finland&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
, because I couldn&amp;rsquo;t log into my own ssh servers either (which I normally can, when my Android is connected via WLAN). Once I can connect via ssh to my work computer, I can establish a 
 &lt;a href="http://www.howtoforge.com/reverse-ssh-tunneling" target="_blank" rel="noopener noreferrer nofollow"&gt;reverse ssh tunnel&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 and use 
 &lt;a href="http://www.x.org/wiki/" target="_blank" rel="noopener noreferrer nofollow"&gt;X Windows&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 or the 
 &lt;a href="http://www.nomachine.com/download-preview.php" target="_blank" rel="noopener noreferrer nofollow"&gt;NoMachine Player&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 to do all the work I usually can when sitting in the laboratory in front of my work computer&lt;strong&gt;Plex and no end of video playback trouble&lt;/strong&gt;However, I couldn&amp;rsquo;t get the OpenVPN configuration right on Android and neither could the helpdesk support to this date. So I was totally bored in the hospital and since we use 
 &lt;a href="http://plexapp.com" target="_blank" rel="noopener noreferrer nofollow"&gt;Plex&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 at home as our media center, I decided to watch some movies. However, Plex is still after four years development in beta and we had our fair share of trouble with media playback. Also this time: I couldn&amp;rsquo;t play back a single movie or a single song using the 
 &lt;a href="https://play.google.com/store/apps/details?id=com.plexapp.android&amp;amp;feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5wbGV4YXBwLmFuZHJvaWQiXQ.." target="_blank" rel="noopener noreferrer nofollow"&gt;Android client&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
. It made the connection to our (Ubuntu 10.04) plexmediaserver without problems, but the only thing that worked was the &amp;ldquo;Photos&amp;rdquo; section. By trial and error, I found out that a part of the problem was, that the videos were in Apple&amp;rsquo;s QuickTime format (they had been encoded on a Mac). So I was looking for a way to batch-convert hundreds of files from .mov into .avi. Certainly this would be faster than filing a bug report and waiting that the Plex guys fix the problem. QuickTime is anyway dead, isn&amp;rsquo;t it? 
 &lt;a href="http://ffmpeg.org/" target="_blank" rel="noopener noreferrer nofollow"&gt;ffmpeg&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 was certainly the way to go, but Google flooded me with hits concerning batch conversion and the problem was finding the one that works. There is unfortunately lots of crap and noise on the web. The following one-liner did work:&lt;code&gt;find . -name '*.mov' -exec sh -c 'ffmpeg -i &amp;quot;$0&amp;quot; -sameq &amp;quot;${0%%.mov}.avi&amp;quot;' {} \;&lt;/code&gt;&lt;/p&gt;</description></item><item><title>youtube to iPod and how to check video files</title><link>https://jeltsch.org/en/youtube_to_ipod_and_how_to_check_video_files/</link><pubDate>Mon, 23 Feb 2009 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/youtube_to_ipod_and_how_to_check_video_files/</guid><description>&lt;p&gt;I was trying to extract the audio file from some 
 &lt;a href="http://www.youtube.com" target="_blank" rel="noopener noreferrer nofollow"&gt;youtube&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 videos in order to play it back from my iPod shuffle. I tried various methods (including the otherwise quite versatile 
 &lt;a href="http://www.videolan.org/vlc" target="_blank" rel="noopener noreferrer nofollow"&gt;VLC Player&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
, but finally settled on the following two step procedure:1. Download the flash video (file ending .flv) file to your local disk. You can use any method to accomplish this task, but as usual 
 &lt;a href="http://www.firefox.com" target="_blank" rel="noopener noreferrer nofollow"&gt;Firefox&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 has the perfect plug-in for this task: 
 &lt;a href="http://www.downloadhelper.net" target="_blank" rel="noopener noreferrer nofollow"&gt;Download helper&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
.2. Extract and convert the audio file with 
 &lt;a href="http://ffmpeg.org" target="_blank" rel="noopener noreferrer nofollow"&gt;ffmpeg&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 using the following command: &lt;code&gt;ffmpeg -i video-infile.flv audio-outfile.mp3&lt;/code&gt; It is also possible to convert the flv file into a mpeg file. You need to do this e.g. if you want to import the video into 
 &lt;a href="http://www.apple.com/itunes" target="_blank" rel="noopener noreferrer nofollow"&gt;iTunes&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
. For some strange reason 
 &lt;a href="http://www.apple.com/quicktime" target="_blank" rel="noopener noreferrer nofollow"&gt;Quicktime&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 can play Flash Videos, but iTunes doesn&amp;rsquo;t allow their playback. The command is almost the same: &lt;code&gt;ffmpeg -i video-infile.flv audio-outfile.mpeg&lt;/code&gt;Another nifty usage of ffmpeg is to check video files for corruption and other problems:&lt;code&gt;ffmpeg -v 5 -i file.avi -f null - 2&amp;gt;error.log&lt;/code&gt;&lt;/p&gt;</description></item></channel></rss>