[GRASS-dev] [GRASS GIS] #3851: r.out.mpeg always fails because the output file name is empty

GRASS GIS trac at osgeo.org
Wed May 22 02:51:37 PDT 2019


#3851: r.out.mpeg always fails because the output file name is empty
----------------------------+-------------------------
 Reporter:  paoloz          |      Owner:  grass-dev@…
     Type:  defect          |     Status:  new
 Priority:  normal          |  Milestone:
Component:  Raster          |    Version:  svn-trunk
 Keywords:  mpeg animation  |        CPU:  Unspecified
 Platform:  Unspecified     |
----------------------------+-------------------------
 Testing r.out.mpeg using North Carolina data set, smaller subset NC
 location (nc_basic_spm_grass7)

 g.region rast=elevation

 r.out.mpeg view1=elevation at PERMANENT,elevation_shade at PERMANENT
 output=./test.mpg

 always fails with

 r.out.mpeg view1=elevation at PERMANENT,elevation_shade at PERMANENT
 output=./test.mpg

 Reading raster map <elevation at PERMANENT>...\\

 Reading raster map <elevation_shade at PERMANENT>...\\

 ERROR:  Could not open output file! \\

 WARNING: mpeg_encode ERROR

 the reason is that the name of the output mpeg fie is not copied in the
 "outfile" variable, which is used to write the name of the output mpeg in
 the configuration file for "ppmtompeg"|"mpeg_encode" encoder. Therefore
 the name of the output mpeg is blank and the encoding always fail with
 "ERROR:  Could not open output file!".

 Tested with GRASS: 7.0.0, 7.4 svn (12/01/2018), 7.6.0, 7.6.1.
 Works in 6.4.6 because the variable is not empty, see lines 442-445 of
 grass-6.4.6/raster/r.out.mpeg/main.c.

 A patch to solve the problem is attached.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3851>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list