command=strprintf("encodedv - > \"%s\"\n",filename.c_str());
// Open the pipe to encodedv
- file=popen(command.c_str(),"w");
+ file=popen(command.c_str(),"wb");
if(!file)
{
command=strprintf("ffmpeg -i \"%s\" -an -f image2pipe -vcodec ppm -\n",filename.c_str());
- file=popen(command.c_str(),"r");
+ file=popen(command.c_str(),"rb");
if(!file)
{
command=strprintf("ffmpeg -f image2pipe -vcodec ppm -an -r %f -i pipe: -loop -hq -title \"%s\" -vcodec mpeg1video -y \"%s\"\n",desc.get_frame_rate(),get_canvas()->get_name().c_str(),filename.c_str());
- file=popen(command.c_str(),"w");
+ file=popen(command.c_str(),"wb");
// etl::yield();
command=strprintf("convert \"%s\" -flatten ppm:-\n",filename.c_str());
- file=popen(command.c_str(),"r");
+ file=popen(command.c_str(),"rb");
if(!file)
{
else
command=strprintf("convert -depth 8 -size %dx%d rgb:-[0] -density %dx%d \"%s\"\n",desc.get_w(),desc.get_h(),round_to_int(desc.get_x_res()/39.3700787402),round_to_int(desc.get_y_res()/39.3700787402),filename.c_str());
- file=popen(command.c_str(),"w");
+ file=popen(command.c_str(),"wb");
if(!file)
{