<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Using_ffmpeg_with_petalink_%2F_Cuno</id>
	<title>Using ffmpeg with petalink / Cuno - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Using_ffmpeg_with_petalink_%2F_Cuno"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Using_ffmpeg_with_petalink_/_Cuno&amp;action=history"/>
	<updated>2026-05-04T17:27:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Using_ffmpeg_with_petalink_/_Cuno&amp;diff=32584&amp;oldid=prev</id>
		<title>David: Created page with &quot;Testing FFMPEG   == Standard Use == &lt;pre&gt; ffmpeg -i ./file_example_WAV_2MG.wav ./file_example_MP3_2MG.mp3 &lt;/pre&gt;  == First attempt with Petalink == &lt;pre&gt; [root@deploy-ext ~]#...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Using_ffmpeg_with_petalink_/_Cuno&amp;diff=32584&amp;oldid=prev"/>
		<updated>2021-05-07T22:10:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Testing FFMPEG   == Standard Use == &amp;lt;pre&amp;gt; ffmpeg -i ./file_example_WAV_2MG.wav ./file_example_MP3_2MG.mp3 &amp;lt;/pre&amp;gt;  == First attempt with Petalink == &amp;lt;pre&amp;gt; [root@deploy-ext ~]#...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Testing FFMPEG &lt;br /&gt;
&lt;br /&gt;
== Standard Use ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i ./file_example_WAV_2MG.wav ./file_example_MP3_2MG.mp3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== First attempt with Petalink ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@deploy-ext ~]# LD_PRELOAD=/usr/lib/petalink.so bash&lt;br /&gt;
[root@deploy-ext ~]# ls s3://bucket1/&lt;br /&gt;
file_example_WAV_2MG.mp3  file_example_WAV_2MG.wav  file_output2.mp3  hosts&lt;br /&gt;
[root@deploy-ext ~]# ffmpeg -i s3://bucket1/file_example_WAV_2MG.wav ./output-dp.mp3&lt;br /&gt;
ffmpeg version 4.2.4 Copyright (c) 2000-2020 the FFmpeg developers&lt;br /&gt;
  built with gcc 8 (GCC)&lt;br /&gt;
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags=&amp;#039;-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection&amp;#039; --extra-ldflags=&amp;#039;-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld &amp;#039; --extra-cflags=&amp;#039; &amp;#039; --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librsvg --enable-libsrt --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-vapoursynth --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg --enable-libzvbi --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect&lt;br /&gt;
  libavutil      56. 31.100 / 56. 31.100&lt;br /&gt;
  libavcodec     58. 54.100 / 58. 54.100&lt;br /&gt;
  libavformat    58. 29.100 / 58. 29.100&lt;br /&gt;
  libavdevice    58.  8.100 / 58.  8.100&lt;br /&gt;
  libavfilter     7. 57.100 /  7. 57.100&lt;br /&gt;
  libavresample   4.  0.  0 /  4.  0.  0&lt;br /&gt;
  libswscale      5.  5.100 /  5.  5.100&lt;br /&gt;
  libswresample   3.  5.100 /  3.  5.100&lt;br /&gt;
  libpostproc    55.  5.100 / 55.  5.100&lt;br /&gt;
s3://bucket1/file_example_WAV_2MG.wav: Protocol not found&lt;br /&gt;
Did you mean file:s3://bucket1/file_example_WAV_2MG.wav?&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Works with /pgcloud/s3 ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@deploy-ext ~]# ffmpeg -i /pgcloud/s3/bucket1/file_example_WAV_2MG.wav ./output-dp.mp3&lt;br /&gt;
ffmpeg version 4.2.4 Copyright (c) 2000-2020 the FFmpeg developers&lt;br /&gt;
  built with gcc 8 (GCC)&lt;br /&gt;
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags=&amp;#039;-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection&amp;#039; --extra-ldflags=&amp;#039;-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld &amp;#039; --extra-cflags=&amp;#039; &amp;#039; --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librsvg --enable-libsrt --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-vapoursynth --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg --enable-libzvbi --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect&lt;br /&gt;
  libavutil      56. 31.100 / 56. 31.100&lt;br /&gt;
  libavcodec     58. 54.100 / 58. 54.100&lt;br /&gt;
  libavformat    58. 29.100 / 58. 29.100&lt;br /&gt;
  libavdevice    58.  8.100 / 58.  8.100&lt;br /&gt;
  libavfilter     7. 57.100 /  7. 57.100&lt;br /&gt;
  libavresample   4.  0.  0 /  4.  0.  0&lt;br /&gt;
  libswscale      5.  5.100 /  5.  5.100&lt;br /&gt;
  libswresample   3.  5.100 /  3.  5.100&lt;br /&gt;
  libpostproc    55.  5.100 / 55.  5.100&lt;br /&gt;
[wav @ 0x559976e7bf40] Discarding ID3 tags because more suitable tags were found.&lt;br /&gt;
Guessed Channel Layout for Input Stream #0.0 : stereo&lt;br /&gt;
Input #0, wav, from &amp;#039;/pgcloud/s3/bucket1/file_example_WAV_2MG.wav&amp;#039;:&lt;br /&gt;
  Metadata:&lt;br /&gt;
    title           : Impact Moderato&lt;br /&gt;
    album           : YouTube Audio Library&lt;br /&gt;
    artist          : Kevin MacLeod&lt;br /&gt;
    genre           : Cinematic&lt;br /&gt;
  Duration: 00:00:33.53, bitrate: 512 kb/s&lt;br /&gt;
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, stereo, s16, 512 kb/s&lt;br /&gt;
Stream mapping:&lt;br /&gt;
  Stream #0:0 -&amp;gt; #0:0 (pcm_s16le (native) -&amp;gt; mp3 (libmp3lame))&lt;br /&gt;
Press [q] to stop, [?] for help&lt;br /&gt;
Output #0, mp3, to &amp;#039;./output-dp.mp3&amp;#039;:&lt;br /&gt;
  Metadata:&lt;br /&gt;
    TIT2            : Impact Moderato&lt;br /&gt;
    TALB            : YouTube Audio Library&lt;br /&gt;
    TPE1            : Kevin MacLeod&lt;br /&gt;
    TCON            : Cinematic&lt;br /&gt;
    TSSE            : Lavf58.29.100&lt;br /&gt;
    Stream #0:0: Audio: mp3 (libmp3lame), 16000 Hz, stereo, s16p&lt;br /&gt;
    Metadata:&lt;br /&gt;
      encoder         : Lavc58.54.100 libmp3lame&lt;br /&gt;
size=     197kB time=00:00:33.55 bitrate=  48.2kbits/s speed=11.6x    &lt;br /&gt;
video:0kB audio:197kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.164069%&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Set PetaLinkMode uricompat ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@deploy-ext ~]# export PetaLinkMode=&amp;#039;uricompat=ffmpeg&amp;#039;&lt;br /&gt;
[root@deploy-ext ~]# ffmpeg -i s3://bucket1/file_example_WAV_2MG.wav ./output-dp.mp3&lt;br /&gt;
ffmpeg version 4.2.4 Copyright (c) 2000-2020 the FFmpeg developers&lt;br /&gt;
  built with gcc 8 (GCC)&lt;br /&gt;
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags=&amp;#039;-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection&amp;#039; --extra-ldflags=&amp;#039;-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld &amp;#039; --extra-cflags=&amp;#039; &amp;#039; --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-libjack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librsvg --enable-libsrt --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-vapoursynth --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg --enable-libzvbi --enable-avfilter --enable-avresample --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect&lt;br /&gt;
  libavutil      56. 31.100 / 56. 31.100&lt;br /&gt;
  libavcodec     58. 54.100 / 58. 54.100&lt;br /&gt;
  libavformat    58. 29.100 / 58. 29.100&lt;br /&gt;
  libavdevice    58.  8.100 / 58.  8.100&lt;br /&gt;
  libavfilter     7. 57.100 /  7. 57.100&lt;br /&gt;
  libavresample   4.  0.  0 /  4.  0.  0&lt;br /&gt;
  libswscale      5.  5.100 /  5.  5.100&lt;br /&gt;
  libswresample   3.  5.100 /  3.  5.100&lt;br /&gt;
  libpostproc    55.  5.100 / 55.  5.100&lt;br /&gt;
[wav @ 0x5614e297a000] Discarding ID3 tags because more suitable tags were found.&lt;br /&gt;
Guessed Channel Layout for Input Stream #0.0 : stereo&lt;br /&gt;
Input #0, wav, from &amp;#039;/s3:/bucket1/file_example_WAV_2MG.wav&amp;#039;:&lt;br /&gt;
  Metadata:&lt;br /&gt;
    title           : Impact Moderato&lt;br /&gt;
    album           : YouTube Audio Library&lt;br /&gt;
    artist          : Kevin MacLeod&lt;br /&gt;
    genre           : Cinematic&lt;br /&gt;
  Duration: 00:00:33.53, bitrate: 512 kb/s&lt;br /&gt;
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, stereo, s16, 512 kb/s&lt;br /&gt;
File &amp;#039;./output-dp.mp3&amp;#039; already exists. Overwrite ? [y/N] y&lt;br /&gt;
Stream mapping:&lt;br /&gt;
  Stream #0:0 -&amp;gt; #0:0 (pcm_s16le (native) -&amp;gt; mp3 (libmp3lame))&lt;br /&gt;
Press [q] to stop, [?] for help&lt;br /&gt;
Output #0, mp3, to &amp;#039;./output-dp.mp3&amp;#039;:&lt;br /&gt;
  Metadata:&lt;br /&gt;
    TIT2            : Impact Moderato&lt;br /&gt;
    TALB            : YouTube Audio Library&lt;br /&gt;
    TPE1            : Kevin MacLeod&lt;br /&gt;
    TCON            : Cinematic&lt;br /&gt;
    TSSE            : Lavf58.29.100&lt;br /&gt;
    Stream #0:0: Audio: mp3 (libmp3lame), 16000 Hz, stereo, s16p&lt;br /&gt;
    Metadata:&lt;br /&gt;
      encoder         : Lavc58.54.100 libmp3lame&lt;br /&gt;
size=     197kB time=00:00:33.55 bitrate=  48.2kbits/s speed=11.8x    &lt;br /&gt;
video:0kB audio:197kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.164069%&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>David</name></author>
	</entry>
</feed>