[Rock-dev] Avi export for log files
Fabian Franzen
ffranzen at informatik.uni-bremen.de
Mon Jun 24 13:16:57 CEST 2013
Hmm, i am not sure if this is the optimal solution... When I create a
presentation quickly at 1 o'clock in the morning i normally doesn't want
to look up ffmpeg commands or write a script to connect some exisiting
tasks to do video encoding. ;-)
I took a quick lock at the source code and noticed that rock-export
uses the frame helper to export the images using opencv. OpenCV also
provides a nice way to export and encode multiple pictures as mpg or
h264 video...
Is there interest in a patch for rock-export that adds a way to
directly export camera pictures to an h264 or mpg avi? If there is some
interest, then i will try to add it ;-)
Regards,
Fabian
Am 2013-06-21 08:32, schrieb Steffen Planthaber:
> Hi,
>
> After you got the export of several frames, from rock-export giving
> i.e. --start 0 --end 100, you can use ffmpeg to put them together in
> any format. ffmpeg (mplayer) supports it by using the "image2" format
> as input for ffmpeg:
>
> $> ffmpeg -f image2 image%02d.png out.mpg
>
> puts together all images with a two digit number image01.png,
> image02.png
>
> You'll need leading zeros for a correct order in the video.
> I don't knot the output filename of rock-export, but the "%02d" is
> for two digit numbers, %03d for three.
>
> For bitrates, resolution and stuff see the ffmpeg manual.
>
> Best,
> Steffen
>
> Am 21.06.2013 00:35, schrieb Fabian Franzen:
>
>> Hi,
>>
>> is it possible in rock to convert/export a log file with frames to a
>> movie file format like MPEG or avi? If looked around in rock and today
>> and the only way I found is via the png/jpeg export of rock-export...
>> I have tried that command with my log file but no pictures was
>> created...
>>
>> My idea was to export a camera log of avalon for the open campus day.
>> I finally used some non rock log files for this, but I can't belive
>> that there is no easy way for rock log files....
>>
>> Regards
>> Fabian
>>
>> _______________________________________________
>> Rock-dev mailing list
>> Rock-dev at dfki.de
>> http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev [1]
>
> --
> Steffen Planthaber
> Weltraumrobotik
>
> ###############################################
> #### Neue Anschrift und neue Kontaktdaten! ####
> ###############################################
>
> DFKI Bremen
> Robotics Innovation Center
> Mary-Somerville-Straße 9
> 28359 Bremen, Germany
>
> Phone: +49 (0)421 178 45 - 4125
> Fax: +49 (0)421 218 - 64150
> E-Mail: steffen.planthaber at dfki.de
>
> Weitere Informationen: http://www.dfki.de/robotik [2]
>
> -----------------------------------------------------------------------
> Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
> Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
> Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
> (Vorsitzender) Dr. Walter Olthoff
> Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
> Amtsgericht Kaiserslautern, HRB 2313
> Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
> USt-Id.Nr.: DE 148646973
> Steuernummer: 19/673/0060/3
>
> -----------------------------------------------------------------------
>
>
>
> Links:
> ------
> [1] http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev
> [2] http://www.dfki.de/robotik
>
> _______________________________________________
> Rock-dev mailing list
> Rock-dev at dfki.de
> http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev
More information about the Rock-dev
mailing list