ffmpeg -v quiet -f data -i file.txt -map 0:0 -c text -f data - dd if=./file.txt
Can you also format your drive with ffmpeg? I'm looking for a more versatile dd replacement.. ffmpeg -f data -i /dev/zero -map 0:0 -c copy -f data - > /dev/sda
is roughly equivalent to to dd status=progress if=/dev/zero of=/dev/sdaThis is probably 80% of my experience with ffmpeg, to be honest, but the other 20% is invaluable enough anyway.
(ps: and no, it's not Rick Astley/Never Gonna Give You Up)
ffmpeg -v quiet -f data -i file.txt -map 0:0 -c copy -f data -
does.[1] “Encoder 'text' specified, but only '-codec copy' supported for data streams”
$ ffmpeg -v quiet -codecs | egrep -i 'gif|ascii'
D.V.L. ansi ASCII/ANSI art
DEV..S gif CompuServe GIF (Graphics Interchange Format)
(“D” and “E” in the first field indicate support for decoding and encoding)