I am trying to convert an mp4 video to pqoi, and I get an error in terminal
orntar@orntar-Surface-Pro:~/Downloads/ProffieOS-master/pqoi$ ./cpqoi wormhole.mp4 "pamscale -xysize 160 128" >wormhole.pqf
Executing: ffprobe -i "$FILE" 2>&1 | sed -n 's@.*Video:.*, \([0-9.]*\) fps,.*@\1@gp'
Executing: ffprobe -i "$FILE" 2>&1 | sed -n 's@.*Video:.*, \([0-9.]*\) fps,.*@\1@gp'
FPS: 0:0
Executing: ffmpeg -i "$FILE" -an -pix_fmt yuv444p -f yuv4mpegpipe - | y4mtopnm -P | pamscale -xysize 160 128
sh: 1: y4mtopnm: not found
pamscale: Error reading first byte of what is expected to be a Netpbm magic number. Most often, this means your input file is empty
ffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --prefix= --prefix=/usr --disable-debug --disable-doc --disable-static --enable-cuda --enable-cuda-sdk --enable-cuvid --enable-libdrm --enable-ffplay --enable-gnutls --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libnpp --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopus --enable-libpulse --enable-sdl2 --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-nonfree --enable-nvenc --enable-omx --enable-openal --enable-opencl --enable-runtime-cpudetect --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-xlib
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'wormhole.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.59.106
Duration: 00:00:13.36, start: 0.000000, bitrate: 2033 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1400x1080 [SAR 1:1 DAR 35:27], 1903 kb/s, 12 fps, 12 tbr, 12288 tbn, 24 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
Output #0, yuv4mpegpipe, to 'pipe:':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.45.100
Stream #0:0(und): Video: wrapped_avframe, yuv444p, 1400x1080 [SAR 1:1 DAR 35:27], q=2-31, 200 kb/s, 12 fps, 12 tbn, 12 tbc (default)
Metadata:
handler_name : VideoHandler
encoder : Lavc58.91.100 wrapped_avframe
av_interleaved_write_frame(): Broken pipe
Error writing trailer of pipe:: Broken pipe
frame= 1 fps=0.0 q=-0.0 Lsize= 4430kB time=00:00:00.08 bitrate=435463.3kbits/s speed=0.626x
video:1kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 846179.500000%
Conversion failed!
Failed to read PAM header.
Can someone help with this?
A single png to pqf worked fine. Maybe it has to do with the input file? It is pretty large resolution (but not really file size) mp4.