#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@PERMANENT,elevation_shade@PERMANENT output=./test.mpg always fails with r.out.mpeg view1=elevation@PERMANENT,elevation_shade@PERMANENT output=./test.mpg Reading raster map <elevation@PERMANENT>...\\ Reading raster map <elevation_shade@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>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev