[GRASS-user] Error in GRASS 7 and r.out.mpeg

Hi

I am trying to use r.out.mpeg, but I get the error below:

,----
| GRASS 7.0.svn (grass):~/.../AlienManagementDrakensberg/sim > r.out.mpeg view1="Rubus
| raster map(s) available in mapset <asmDrak>:
| raster map(s) available in mapset <asmDrak.2015>:
| Reading raster map <Rubus_age>...
| Reading raster map <Rubus_ageClass>...
| Reading raster map <Rubus_ageClassFire>...
| Reading raster map <Rubus_dc>...
| Reading raster map <Rubus_dcFire>...
| Reading raster map <Rubus_disturbances>...
| Reading raster map <Rubus_individuals>...
| Reading raster map <Rubus_seedsPlant>...
| Reading raster map <Rubus_seedsProduced>...
| Reading raster map <Rubus_seedsSoil>...
| Reading raster map <Rubus_suitability>...
| Reading raster map <Rubus_ageClassFire_2015>...
| Reading raster map <Rubus_ageClass_2015>...
| Reading raster map <Rubus_age_2015>...
| Reading raster map <Rubus_dcFire_2015>...
| Reading raster map <Rubus_dc_2015>...
| Reading raster map <Rubus_disturbances_2015>...
| Reading raster map <Rubus_individuals_2015>...
| Reading raster map <Rubus_seedsPlant_2015>...
| Reading raster map <Rubus_seedsProduced_2015>...
| Reading raster map <Rubus_seedsSoil_2015>...
| ERROR: Could not open output file!
| WARNING: mpeg_encode ERROR
`----

I have no idea why this error occurs - any suggestions?

Self compiled from grass-7.0.svn_src_snapshot_2013_03_23

under Ubuntu raring.

Cheers,

RainerHi

I am trying to use r.out.mpeg, but I get the error below:

,----
| GRASS 7.0.svn (grass):~/.../AlienManagementDrakensberg/sim > r.out.mpeg view1="Rubus
| raster map(s) available in mapset <asmDrak>:
| raster map(s) available in mapset <asmDrak.2015>:
| Reading raster map <Rubus_age>...
| Reading raster map <Rubus_ageClass>...
| Reading raster map <Rubus_ageClassFire>...
| Reading raster map <Rubus_dc>...
| Reading raster map <Rubus_dcFire>...
| Reading raster map <Rubus_disturbances>...
| Reading raster map <Rubus_individuals>...
| Reading raster map <Rubus_seedsPlant>...
| Reading raster map <Rubus_seedsProduced>...
| Reading raster map <Rubus_seedsSoil>...
| Reading raster map <Rubus_suitability>...
| Reading raster map <Rubus_ageClassFire_2015>...
| Reading raster map <Rubus_ageClass_2015>...
| Reading raster map <Rubus_age_2015>...
| Reading raster map <Rubus_dcFire_2015>...
| Reading raster map <Rubus_dc_2015>...
| Reading raster map <Rubus_disturbances_2015>...
| Reading raster map <Rubus_individuals_2015>...
| Reading raster map <Rubus_seedsPlant_2015>...
| Reading raster map <Rubus_seedsProduced_2015>...
| Reading raster map <Rubus_seedsSoil_2015>...
| ERROR: Could not open output file!
| WARNING: mpeg_encode ERROR
`----

I have no idea why this error occurs - any suggestions?

Self compiled from grass-7.0.svn_src_snapshot_2013_03_23

under Ubuntu raring.

Cheers,

Rainer
--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax : +33 - (0)9 58 10 27 44

Fax (D): +49 - (0)3 21 21 25 22 44

email: Rainer@krugs.de

Skype: RMkrug

Rainer wrote:

I am trying to use r.out.mpeg, but I get the error below:

that module is quite old and crusty, or rather the MPEG-1
codec is. You might try for e.g. d.out.file and the WebM
encoding example from the wiki for better results.

   http://grasswiki.osgeo.org/wiki/Movies

IMO we should consider to retire the r.out.mpeg module, maybe
replace it with a script to encode directly to WebM &/or a series
of raw frames for another encoder of the users' choice. (something
simpler to maintain than the ffmpeg in nviz anyway, outsource the
encoder programming--we just provide the individual rendered
frames)

,----
| GRASS 7.0.svn (grass):~/.../AlienManagementDrakensberg/sim
> r.out.mpeg view1="Rubus
| raster map(s) available in mapset <asmDrak>:
| raster map(s) available in mapset <asmDrak.2015>:
| Reading raster map <Rubus_age>...

...

| Reading raster map <Rubus_seedsSoil_2015>...
| ERROR: Could not open output file!
| WARNING: mpeg_encode ERROR
`----

I have no idea why this error occurs - any suggestions?

do you have write permissions in the current directory?
is there disk space free?
does the g.tempfile module seem to work?

Self compiled from grass-7.0.svn_src_snapshot_2013_03_23
under Ubuntu raring.

Hamish

Hamish <hamish_b@yahoo.com> writes:

Rainer wrote:

I am trying to use r.out.mpeg, but I get the error below:

that module is quite old and crusty, or rather the MPEG-1
codec is. You might try for e.g. d.out.file and the WebM
encoding example from the wiki for better results.

   http://grasswiki.osgeo.org/wiki/Movies

Thanks - didn't know that page - very useful.

IMO we should consider to retire the r.out.mpeg module, maybe
replace it with a script to encode directly to WebM &/or a series
of raw frames for another encoder of the users' choice. (something
simpler to maintain than the ffmpeg in nviz anyway, outsource the
encoder programming--we just provide the individual rendered
frames)

That would do in most cases, as for direct viewing, imagemagick can be
used on that folder, while one could always provide a collection of
example commands to encode to movie format.

Cheers,

Rainer

,----
| GRASS 7.0.svn (grass):~/.../AlienManagementDrakensberg/sim
> r.out.mpeg view1="Rubus
| raster map(s) available in mapset <asmDrak>:
| raster map(s) available in mapset <asmDrak.2015>:
| Reading raster map <Rubus_age>...

...

| Reading raster map <Rubus_seedsSoil_2015>...
| ERROR: Could not open output file!
| WARNING: mpeg_encode ERROR
`----

I have no idea why this error occurs - any suggestions?

do you have write permissions in the current directory?
is there disk space free?
does the g.tempfile module seem to work?

Self compiled from grass-7.0.svn_src_snapshot_2013_03_23
under Ubuntu raring.

Hamish
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Rainer wrote:

[...] as for direct viewing, imagemagick can be
used on that folder, while one could always provide a
collection of example commands to encode to movie format.

in GRASS 6 see also the d.slide.show module, and the included
xganim program.

And in grass 7 there is a new g.gui.animation tool in-development.
try it out via File -> Animation tool. [today I get a traceback error]

Hamish

Hamish <hamish_b@yahoo.com> writes:

Rainer wrote:

[...] as for direct viewing, imagemagick can be
used on that folder, while one could always provide a
collection of example commands to encode to movie format.

in GRASS 6 see also the d.slide.show module, and the included
xganim program.

And in grass 7 there is a new g.gui.animation tool in-development.
try it out via File -> Animation tool. [today I get a traceback error]

That is really great - as I am using it at the moment for quick
evaluations if my simulations worked, g.gui.animation will be the tool
of my choice.

And I also saw something new: the temporal data type. At the moment I am
archiving the results of my simulations (several raster maps) in
separate mapsets, one per year - but the temporal data type looks
perfect for this.

Thanks a lot,

Rainer

Hamish
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Hi,

On Sat, May 18, 2013 at 7:39 AM, Hamish <hamish_b@yahoo.com> wrote:

Rainer wrote:
> [...] as for direct viewing, imagemagick can be
> used on that folder, while one could always provide a
> collection of example commands to encode to movie format.

in GRASS 6 see also the d.slide.show module, and the included
xganim program.

And in grass 7 there is a new g.gui.animation tool in-development.
try it out via File -> Animation tool. [today I get a traceback error]

Should be fixed in r56320. Sorry, I haven't really tested it on Windows.

Anna

Hamish
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user