Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-13 Thread Carlos Eduardo G. Carvalho (Cartola)
Very nice feedback! Tks!


Carlos E G Carvalho (Cartola)
http://cartola.org/360
http://www.panoforum.com.br/

2016-07-12 20:01 GMT-03:00 Robert Giordano :

> First, thanks to everyone for their suggestions and tips!! I'm going to
> describe my procedure and test results in detail for the benefit of people
> reading this post in the future.
>
> Here's my current setup:
>
> *Computer: *
> Macbook PRO 2.3 GHz i7
> OS X 10.9.5
>
> *Test Video:*
> clip0076.mov
> - 1080p 59.94fps
> - movie is approx. 1 min 52 sec, 6,711 total frames
> - file size is 419.9 MB
>
>
> I'm using Hugin 2014.0.0 installed in /Applications/Hugin
>
> I created a file named "hugin" in my paths.d folder with these paths:
> /Applications/Hugin/Hugin.app/Contents/MacOS
> /Applications/Hugin/Hugin.app/Contents/Resources
>
> /Applications/Hugin/Hugin.app/Contents/Resources/HuginStitchProject.app/Contents/MacOS
>
> This lets me run nona from the command line without having to type the
> full path
>
> I installed FFmpeg using Homebrew:
> https://trac.ffmpeg.org/wiki/CompilationGuide/MacOSX
>
>
>
> *TEST RESULTS:*
>
> 1. Use FFmpeg to split the movie into a folder of numbered images:
>
>
> METHOD 1 - lossless PNG
>
> ffmpeg -i clip0076.mov frame-%05d.png
>
> - 21 minutes to create 6,711 PNG files totaling 29.81 GB (70X the original
> file size!)
>
>
> METHOD 2 - high quality JPG
>
> ffmpeg -i GOPR0076clip.mov -qscale:v 2 frame-%05d.jpg
>
> - LESS THAN 2 minutes to create 6,711 JPG files totaling 3.88 GB (more
> reasonable)
>
>
> 2. Use Hugin to convert all of the images to Equirectangular Panini:
>
> Here's the bash script (slightly modified from Carlos Cartola's
> suggestion):
>
> # loop on the frames
> for number in $(seq 1 $total); do
>   n=$(printf %05d $number)
>   echo $n
>   nona -o out-$n /Users/design215/Video/_hugin/test.0001.pto frame-$n.jpg
> done
>
>
> test.0001.pto is a Hugin .pto file that I edited. I'm using this single
> .pto file to modify all of my images because the loop feeds each filename
> to the .pto file.
>
> - 1 HOUR, 4 minutes to create 6,711 corrected JPG images
> - Images are all 2250x1362. I prefer to crop in Premiere, not Hugin
>
>
> 3. Use FFmpeg to combine the corrected images back into a movie:
>
> ffmpeg -framerate 59.94 -i out-%05d.jpg -pix_fmt yuv420p -c:v libx264 -crf
> 16 output.mp4
>
> - 8 minutes to create output.mp4
> - These settings give me the original framerate, and high quality output
>
> output.mp4:
> - 2250x1362p 59.94fps
> - file size is 703.6 MB
> - quality looks good!
>
>
>
>
> *CONCLUSION:*The total time to do the conversion with my 2 minute clip =
> 1 hour, 33 minutes using PNG images, or 1 hour, 14 minutes using JPG images.
>
> Hugin gives me complete control over the projection and I can do exactly
> what I want.
>
> The downsides to method are:
> - My test clip was less than 2 minutes. Imagine the space you need for a
> 10 minute clip.
> - The images are re-compressed multiple times. Even if you start with PNG
> images, they are compressed once by Hugin, and again by FFmpeg when merging
> the images back to video. I know I could have Hugin output PNGs but then I
> would need at least 60 GB just to process 2 minutes of footage!
>
> Don't get me wrong, the final video quality is VERY GOOD!
>
> But, I can do almost the same thing in Photoshop CS6 with fewer steps and
> no folders with thousands of files.
>
> The downsides to using Photoshop are:
> - It takes just over 2 hours to process the same 2 minute clip.
> - I have much less control than I have with Hugin. I can get close but not
> exactly what I want.
>
> My feeling is- There HAS to be a better, more efficient way to do this.
>
>
>
> --
> A list of frequently asked questions is available at:
> http://wiki.panotools.org/Hugin_FAQ
> ---
> You received this message because you are subscribed to the Google Groups
> "hugin and other free panoramic software" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to hugin-ptx+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/hugin-ptx/c3de8513-ca76-470d-8e8b-05832106043d%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/CALW1f7jgAYyCuowKW03k7_rw9vju6gy4nURf%2Bh%3Ddrqeg2j-yGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-13 Thread bugbear

Robert Giordano wrote:

First, thanks to everyone for their suggestions and tips!! I'm going to 
describe my procedure and test results in detail for the benefit of people 
reading this post in the future.


Excellent write up. Thank you. May the Karma be returned.

  BugBear

--
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/5785F46C.1080807%40papermule.co.uk.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-12 Thread David W. Jones

On 07/12/2016 01:01 PM, Robert Giordano wrote:

First, thanks to everyone for their suggestions and tips!! I'm going to
describe my procedure and test results in detail for the benefit of
people reading this post in the future.

Here's my current setup:

_*Computer: *_
Macbook PRO 2.3 GHz i7
OS X 10.9.5


How much memory and disk space?


_*Test Video:*_
clip0076.mov
- 1080p 59.94fps
- movie is approx. 1 min 52 sec, 6,711 total frames
- file size is 419.9 MB


I'm using Hugin 2014.0.0 installed in /Applications/Hugin

I created a file named "hugin" in my paths.d folder with these paths:
/Applications/Hugin/Hugin.app/Contents/MacOS
/Applications/Hugin/Hugin.app/Contents/Resources
/Applications/Hugin/Hugin.app/Contents/Resources/HuginStitchProject.app/Contents/MacOS

This lets me run nona from the command line without having to type the
full path

I installed FFmpeg using Homebrew:
https://trac.ffmpeg.org/wiki/CompilationGuide/MacOSX



_*TEST RESULTS:*_

1. Use FFmpeg to split the movie into a folder of numbered images:


METHOD 1 - lossless PNG

ffmpeg -i clip0076.mov frame-%05d.png

- 21 minutes to create 6,711 PNG files totaling 29.81 GB (70X the
original file size!)


METHOD 2 - high quality JPG

ffmpeg -i GOPR0076clip.mov -qscale:v 2 frame-%05d.jpg

- LESS THAN 2 minutes to create 6,711 JPG files totaling 3.88 GB (more
reasonable)


2. Use Hugin to convert all of the images to Equirectangular Panini:

Here's the bash script (slightly modified from Carlos Cartola's suggestion):

# loop on the frames
for number in $(seq 1 $total); do
  n=$(printf %05d $number)
  echo $n
  nona -o out-$n /Users/design215/Video/_hugin/test.0001.pto frame-$n.jpg
done


test.0001.pto is a Hugin .pto file that I edited. I'm using this single
.pto file to modify all of my images because the loop feeds each
filename to the .pto file.

- 1 HOUR, 4 minutes to create 6,711 corrected JPG images
- Images are all 2250x1362. I prefer to crop in Premiere, not Hugin


3. Use FFmpeg to combine the corrected images back into a movie:

ffmpeg -framerate 59.94 -i out-%05d.jpg -pix_fmt yuv420p -c:v libx264
-crf 16 output.mp4

- 8 minutes to create output.mp4
- These settings give me the original framerate, and high quality output

output.mp4:
- 2250x1362p 59.94fps
- file size is 703.6 MB
- quality looks good!


_*CONCLUSION:

*_The total time to do the conversion with my 2 minute clip = 1 hour, 33
minutes using PNG images, or 1 hour, 14 minutes using JPG images.

Hugin gives me complete control over the projection and I can do exactly
what I want.

The downsides to method are:
- My test clip was less than 2 minutes. Imagine the space you need for a
10 minute clip.
- The images are re-compressed multiple times. Even if you start with
PNG images, they are compressed once by Hugin, and again by FFmpeg when
merging the images back to video. I know I could have Hugin output PNGs
but then I would need at least 60 GB just to process 2 minutes of footage!

Don't get me wrong, the final video quality is VERY GOOD!

But, I can do almost the same thing in Photoshop CS6 with fewer steps
and no folders with thousands of files.


Only cuz PS is doing essentially the same thing in memory.


The downsides to using Photoshop are:
- It takes just over 2 hours to process the same 2 minute clip.
- I have much less control than I have with Hugin. I can get close but
not exactly what I want.

My feeling is- There HAS to be a better, more efficient way to do this.


Thanks for the info, interesting steps and process. Not being a fan of 
Adobe products in general but being a fan of quality, I'd prefer the PNG 
> Hugin > PNG > ffmpeg.


Only 60GB for 2 minutes? Hate to tell you this, but video takes a lot of 
space. My budget laptop here has a 750GB hard drive. Most laptops now 
come with 1TB. So 60GB doesn't seem like much. Backups of my current 
home folder (I run Linux) are about 60GB ... without any videos or MP3s 
in it. But maybe I'm just weird.


--
David W. Jones
gnomeno...@gmail.com
wandering the landscape of god
http://dancingtreefrog.com

--
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/5fb33390-e4cf-d74c-95b1-b6c3bbffc9b5%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-12 Thread Carlos Eduardo G. Carvalho (Cartola)
2016-07-11 21:57 GMT-03:00 Robert Giordano :

> I'm REALLY surprised I couldn't find a plugin for Premiere that does this.


There is a "defish" effect on Kdenlive, but I really don't know if it can
do what you need. You can test Kdenlive runnint linux on a pendrive if you
can't install it on your Mac.


Carlos E G Carvalho (Cartola)
http://cartola.org/360
http://www.panoforum.com.br/

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/CALW1f7iFCf5mGYEfXC%3D0vGk7axQahnoAfdz3NBrFJYRUhaY9qQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-11 Thread Carlos Eduardo G. Carvalho (Cartola)
2016-07-11 16:15 GMT-03:00 Robert Giordano :

> Carlos, that is excellent!!
>
> Since I'm passing each filename to nona in the loop, can I just use a
> single test.pto instead of test.$number.pto ??
>
> Thanks again!!
>

*Surely! You got it!*



>
> On Monday, July 11, 2016 at 7:44:17 AM UTC-4, Cartola wrote:
>>
>> There are many documentation on the Internet on how to make a bash
>> script. Here is one example
>> .
>>
>> I guess here you will need basically a loop:
>>
>> ---
>> #!/bin/bash
>>
>> for number in $(seq -w 1 18000); do
>>   /Applications/hugin.2014.0.0/Hugin.app/Contents/MacOS/nona -o output
>> test.$number.pto test.$number.png
>> done
>> ---
>>
>> And if you install ffmpeg you can automate all the job
>>
>> ---
>> #!/bin/bash
>>
>> # split the video in frames using 5 digits
>> ffmpeg -i yourVideo.mp4 -qscale:v 2 frame-%05d.jpg
>>
>> # count the frames
>> total=$(ls frame-*.jpg | wc -l)
>>
>> # loop on the frames
>> for number in $(seq -w 1 $total); do
>>   /Applications/hugin.2014.0.0/Hugin.app/Contents/MacOS/nona -o output
>> test.$number.pto frame-$number.jpg
>> done
>>
>> ffmpeg -i output%05d.jpg final_output.mp4
>> ---
>>
>> Bests,
>>
>



Carlos E G Carvalho (Cartola)
http://cartola.org/360
http://www.panoforum.com.br/

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/CALW1f7h2v3GSB-np6Jk6%3DzzGdgtFkqb3UoaLNa2mb2ZqHsNrYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-11 Thread Robert Giordano
Carlos, that is excellent!!

Since I'm passing each filename to nona in the loop, can I just use a 
single test.pto instead of test.$number.pto ??

Thanks again!!

On Monday, July 11, 2016 at 7:44:17 AM UTC-4, Cartola wrote:
>
> There are many documentation on the Internet on how to make a bash script. 
> Here 
> is one example .
>
> I guess here you will need basically a loop:
>
> ---
> #!/bin/bash
>
> for number in $(seq -w 1 18000); do
>   /Applications/hugin.2014.0.0/Hugin.app/Contents/MacOS/nona -o output 
> test.$number.pto test.$number.png
> done
> ---
>
> And if you install ffmpeg you can automate all the job
>
> ---
> #!/bin/bash
>
> # split the video in frames using 5 digits
> ffmpeg -i yourVideo.mp4 -qscale:v 2 frame-%05d.jpg
>
> # count the frames
> total=$(ls frame-*.jpg | wc -l)
>
> # loop on the frames
> for number in $(seq -w 1 $total); do
>   /Applications/hugin.2014.0.0/Hugin.app/Contents/MacOS/nona -o output 
> test.$number.pto frame-$number.jpg
> done
>
> ffmpeg -i output%05d.jpg final_output.mp4
> ---
>
> Bests,
>
>
>
> Carlos E G Carvalho (Cartola)
> http://cartola.org/360
> http://www.panoforum.com.br/
>
>
>

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/251a7660-5a54-42d5-ba52-9489b9878721%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-11 Thread Carlos Eduardo G. Carvalho (Cartola)
There are many documentation on the Internet on how to make a bash script. Here
is one example .

I guess here you will need basically a loop:

---
#!/bin/bash

for number in $(seq -w 1 18000); do
  /Applications/hugin.2014.0.0/Hugin.app/Contents/MacOS/nona -o output
test.$number.pto test.$number.png
done
---

And if you install ffmpeg you can automate all the job

---
#!/bin/bash

# split the video in frames using 5 digits
ffmpeg -i yourVideo.mp4 -qscale:v 2 frame-%05d.jpg

# count the frames
total=$(ls frame-*.jpg | wc -l)

# loop on the frames
for number in $(seq -w 1 $total); do
  /Applications/hugin.2014.0.0/Hugin.app/Contents/MacOS/nona -o output
test.$number.pto frame-$number.jpg
done

ffmpeg -i output%05d.jpg final_output.mp4
---

Bests,



Carlos E G Carvalho (Cartola)
http://cartola.org/360
http://www.panoforum.com.br/

2016-07-11 7:49 GMT-03:00 Robert Giordano :

> Unfortunately, there is no "doc" directory in my installation (maybe
> because I'm on a Mac?)
>
>>
>> There should be a nona.txt file inside the "doc" directory of your Hugin
>> installation which explains the options in a .pto file.
>>
>> --
> A list of frequently asked questions is available at:
> http://wiki.panotools.org/Hugin_FAQ
> ---
> You received this message because you are subscribed to the Google Groups
> "hugin and other free panoramic software" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to hugin-ptx+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/hugin-ptx/34596474-8e65-4659-be02-9d0ea0cf964d%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/CALW1f7i38idxPLm%2BKE-LbS-dLXy4Ti7QJuFe8hSG%2BpvLYspjaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-11 Thread Robert Giordano
Unfortunately, there is no "doc" directory in my installation (maybe 
because I'm on a Mac?)

>
> There should be a nona.txt file inside the "doc" directory of your Hugin 
> installation which explains the options in a .pto file. 
>
>

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/34596474-8e65-4659-be02-9d0ea0cf964d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-11 Thread Robert Giordano
Thanks!! That works!! I was playing with the "Write PTStitcher Script" 
option in the Hugin File menu and now I have this:
 

# PTStitcher script, written by hugin

p f16 w2250 h1362 v111  n"JPEG q94"
m g1 i0 f0 m2 p0.00784314

# output image lines
o w1920 h1080 f2 Tpp0 Tpy0 TrX0 TrY0 TrZ0 a0 b0 c0 d0 e0 g0 p0 r0 t0 
v102.88718987 y0  n""


I changed to the JPEG option and added q. Now I just have to figure out how 
to make a batch script.

Thanks everyone, this has been very interesting so far!!

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/7f4e0d42-e5a6-4490-b845-6dd3e4bcae76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-11 Thread Markku Kolkka
11.7.2016, 12:35, Robert Giordano kirjoitti:
> /Applications/hugin.2014.0.0/Hugin.app/Contents/MacOS/nona -o output 
> test..pto test..png
> 
> and it produced output.tif
> 
> I'll have to figure out why it created a .tif instead of a .jpg

Your .pto file has the line:

p f16 w2250 h1288 v111  E0 R0 n"TIFF_m c:LZW r:CROP"

The n option controls the output file format, use n"JPEG_m" for JPEG
output. The c: and r: options aren't available with JPEG and the
compression factor may be defined by adding a q: option.

There should be a nona.txt file inside the "doc" directory of your Hugin
installation which explains the options in a .pto file.

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/4f06f861-9c0b-4318-0051-be19f4feb29c%40iki.fi.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-11 Thread Robert Giordano
Sorry about that!!

On Monday, July 11, 2016 at 5:37:13 AM UTC-4, Tduell wrote:
>
> On Mon, 11 Jul 2016 18:52:04 +1000, Robert Giordano  >   
> wrote: 
>
> > Okay, here's my .pto file: 
> > 
>
> ...and a 4.6MB file and a 6.4MB in your next post. 
> This is not good etiquette. 
> If you need to provide large files please do it via Dropbox or similar so 
>   
> that only those that need to access the files can do so. 
>
> Cheers, 
> -- 
> Regards, 
> Terry Duell 
>

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/0e4989b2-bf88-46fa-8e13-06cd71b979b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-11 Thread Robert Giordano
Sorry about that

On Mon, Jul 11, 2016 at 5:37 AM, Terry Duell  wrote:

> On Mon, 11 Jul 2016 18:52:04 +1000, Robert Giordano 
> wrote:
>
> Okay, here's my .pto file:
>>
>>
> ...and a 4.6MB file and a 6.4MB in your next post.
> This is not good etiquette.
> If you need to provide large files please do it via Dropbox or similar so
> that only those that need to access the files can do so.
>
> Cheers,
> --
> Regards,
> Terry Duell
>
> --
> A list of frequently asked questions is available at:
> http://wiki.panotools.org/Hugin_FAQ
> ---You received this message because you are subscribed to a topic in the
> Google Groups "hugin and other free panoramic software" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/hugin-ptx/m3Ow9lIEh_A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> hugin-ptx+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/hugin-ptx/op.ykfjn6u4rs0ygh%40localhost.
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Design215 Inc.
Commercial Photography, Advertising and Media
www.Design215.com

Robert Giordano, President
+1 954 461 7340 mobile
+1 954 630 3695 office
+1 954 566 6155 fax

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/CAHSzGQsGsuvyQsR_DF3fdYs%2B7dpB8b0GTvXwPz_vean_cnD%3D%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-11 Thread Terry Duell
On Mon, 11 Jul 2016 18:52:04 +1000, Robert Giordano   
wrote:



Okay, here's my .pto file:



...and a 4.6MB file and a 6.4MB in your next post.
This is not good etiquette.
If you need to provide large files please do it via Dropbox or similar so  
that only those that need to access the files can do so.


Cheers,
--
Regards,
Terry Duell

--
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/op.ykfjn6u4rs0ygh%40localhost.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-11 Thread Robert Giordano
Okay this worked:

/Applications/hugin.2014.0.0/Hugin.app/Contents/MacOS/nona -o output 
test..pto test..png

and it produced output.tif

I'll have to figure out why it created a .tif instead of a .jpg



-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/a80b1b86-5147-4fb2-8596-45c0eaf235d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-11 Thread Bruno Postle


On 11 July 2016 01:14:30 BST, Robert Giordano wrote:
>
>Thanks for the reply! Yes, I use Premiere CS6 and I can export the
>video to folder of pictures. But if I have a 5 minute video (some are even
>longer) that's 18,000 images!
>
>I can create a single .pto file but surely there must be a better way
>than having to make 18,000 .pto files??

You can do all this with a single PTO template. No need to rewrite the filename 
inside because nona allows you to specify the input filename on the command 
line:

  nona -o output1234 template.pto input1234.jpg

-- 
Bruno

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/FEEFF370-B724-4096-9ECE-8439FC4AB153%40postle.net.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-11 Thread Robert Giordano
Thanks again Sean,

The methods you suggest are logical. That's pretty much how I attack
problems anyway. I was hoping there was a direct command to transform the
projection of an image. That would be a lot simpler (and probably faster as
far as CPU cycles go) than using the entire Hugin program.

I will try making a .pto and inspect it. It might give me some clues.

I also want to mention that I found a way to do what I want in Photoshop
CS6 but its also a bit inefficient. I could not find a way to do the
equirectangular panini directly in PS so I used several filters to achieve
a similar result. Since the images are all the same size and shape (they're
all video frames) my sequence of adjustments can be repeated across all of
them.
- I open the video file in PS and make it a "smart layer"
- I apply my sequence of filters to it (they are not applied immediately)
- I select "render video" and choose my video output options
- Then I wait just over 2 hours for PS to process 2 minutes of footage
(7200 frames) but then I have a complete .mov file.

So, the drawbacks of using PS are
1) its close but not exactly what I want, while Hugin does exactly what I
want in a single step, and
2) it takes forever and I have a fairly fast Mac.

I haven't timed how long it will take to export a video to 7200 separate
images from Premiere but that will play a factor.

I've also wondered how hard it is to make a plugin for Premiere. With all
of the thousands of things you can do in Premiere (or After Effects) I was
surprised I couldn't find a plugin that would let me change the projection
of a video. Maybe there is but I wasn't able to find it after 2 solid days
of searching.

I'll post what I find as I experiment with the .pto file in case it can
help others in the future.

Robert

On Sun, Jul 10, 2016 at 10:37 PM, Sean Greenslade 
wrote:

> On Sun, Jul 10, 2016 at 09:29:41PM -0400, Robert Giordano wrote:
> > Thanks Sean and Zoilo
> >
> > I'm doing video editing on several Mac computers, OSX 10.9.5. I won't be
> > able to install PHP on them so I'm guessing I will need a bash script?
>
> PHP is not typically used for this sort of thing, so don't worry about
> it.
>
> Unfortunately, I'm not very familiar with OSX. I do believe it has bash,
> so pretty much any bash tutorial should help you. I like this one:
>
> http://tldp.org/LDP/abs/html/
>
> > I'm not an expert at command line scripting. Is there a place where I can
> > read about command line options for Hugin? For example, is there a direct
> > command to change the projection of an image, given the lens and HFOV
> > parameters? Or do I have to create a .pto file just for this single
> > operation?
>
> My best advice here is to make a project with Hugin that does what you
> want, then save the .pto file and inspect it. Then either turn that file
> into a template or model your pto generation code after it.
>
> > I could probably look up how to get a list of files in a folder but then
> I
> > might need some help after that.
>
> Best way to tackle something like this is to draw out the overview of
> what you want to happen. e.g.:
>
> loop over files:
> generate pto with current file name
> run nona / hugin_executor / whatever
> move file to destination folder
> delete pto file
>
> Once you have that, then start implementing a bit at a time. Breaking
> the problem up makes exploring unfamiliar territory easier.
>
> --Sean
>
> --
> A list of frequently asked questions is available at:
> http://wiki.panotools.org/Hugin_FAQ
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "hugin and other free panoramic software" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/hugin-ptx/m3Ow9lIEh_A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> hugin-ptx+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/hugin-ptx/20160711023721.GA16247%40coach.home
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Design215 Inc.
Commercial Photography, Advertising and Media
www.Design215.com

Robert Giordano, President
+1 954 461 7340 mobile
+1 954 630 3695 office
+1 954 566 6155 fax

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/CAHSzGQunwROxbmnHx64vNL5XzPTzwOC0Gemzn5j7ka0UCwYsug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-10 Thread Sean Greenslade
On Sun, Jul 10, 2016 at 09:29:41PM -0400, Robert Giordano wrote:
> Thanks Sean and Zoilo
> 
> I'm doing video editing on several Mac computers, OSX 10.9.5. I won't be
> able to install PHP on them so I'm guessing I will need a bash script?

PHP is not typically used for this sort of thing, so don't worry about
it.

Unfortunately, I'm not very familiar with OSX. I do believe it has bash,
so pretty much any bash tutorial should help you. I like this one:

http://tldp.org/LDP/abs/html/

> I'm not an expert at command line scripting. Is there a place where I can
> read about command line options for Hugin? For example, is there a direct
> command to change the projection of an image, given the lens and HFOV
> parameters? Or do I have to create a .pto file just for this single
> operation?

My best advice here is to make a project with Hugin that does what you
want, then save the .pto file and inspect it. Then either turn that file
into a template or model your pto generation code after it.

> I could probably look up how to get a list of files in a folder but then I
> might need some help after that.

Best way to tackle something like this is to draw out the overview of
what you want to happen. e.g.:

loop over files:
generate pto with current file name
run nona / hugin_executor / whatever
move file to destination folder
delete pto file

Once you have that, then start implementing a bit at a time. Breaking
the problem up makes exploring unfamiliar territory easier.

--Sean

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/20160711023721.GA16247%40coach.home.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-10 Thread Terry Duell

Hello Robert,

On Mon, 11 Jul 2016 11:29:41 +1000, Robert Giordano   
wrote:



I'm not an expert at command line scripting. Is there a place where I can
read about command line options for Hugin? For example, is there a direct
command to change the projection of an image, given the lens and HFOV
parameters? Or do I have to create a .pto file just for this single
operation?



Have a look at pano_modify, it might help...but it does its work on a .pto  
file.



Cheers,
--
Regards,
Terry Duell

--
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/op.ykexgst8rs0ygh%40localhost.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-10 Thread Robert Giordano
Thanks Sean and Zoilo

I'm doing video editing on several Mac computers, OSX 10.9.5. I won't be
able to install PHP on them so I'm guessing I will need a bash script?

I'm not an expert at command line scripting. Is there a place where I can
read about command line options for Hugin? For example, is there a direct
command to change the projection of an image, given the lens and HFOV
parameters? Or do I have to create a .pto file just for this single
operation?

I could probably look up how to get a list of files in a folder but then I
might need some help after that.

thanks,

Robert

On Sun, Jul 10, 2016 at 9:13 PM, Sean Greenslade 
wrote:

> On Sun, Jul 10, 2016 at 05:14:30PM -0700, Robert Giordano wrote:
> > Hi Zoilo,
> >
> > Thanks for the reply! Yes, I use Premiere CS6 and I can export the video
> to
> > folder of pictures. But if I have a 5 minute video (some are even longer)
> > that's 18,000 images!
> >
> > I can create a single .pto file but surely there must be a better way
> than
> > having to make 18,000 .pto files??
> >
> > What about making a dynamic .pto file using PHP or something? When I make
> > thumbnails on a website, I use PHP to make a list of all the images in a
> > folder, then create a thumbnail for each image in the list. Does your
> > script create 18,000 .pto files because Hugin needs all of them?
> >
> > thanks,
> >
> > Robert
>
> Sure, you can generate a .pto file using any scripting language, even
> PHP (though I would imagine python or even bash might be a bit simpler).
>
> Basically, you need a script that loops over every frame file, generates
> the pto, processes it, and saves the output file with the proper name.
> If you get clever with the script, it could scan a directory and process
> all files in it. That way, you just explode the video into a directory,
> then fire off the script.
>
> --Sean
>
> --
> A list of frequently asked questions is available at:
> http://wiki.panotools.org/Hugin_FAQ
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "hugin and other free panoramic software" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/hugin-ptx/m3Ow9lIEh_A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> hugin-ptx+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/hugin-ptx/20160711011311.GA15129%40coach.home
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Design215 Inc.
Commercial Photography, Advertising and Media
www.Design215.com

Robert Giordano, President
+1 954 461 7340 mobile
+1 954 630 3695 office
+1 954 566 6155 fax

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/CAHSzGQvuBya3yaTVSFb_GR01hz-zchUoyx_NCL9sbnXr0kub_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Re: Can Hugin change the projection of a video?

2016-07-10 Thread Sean Greenslade
On Sun, Jul 10, 2016 at 05:14:30PM -0700, Robert Giordano wrote:
> Hi Zoilo,
> 
> Thanks for the reply! Yes, I use Premiere CS6 and I can export the video to 
> folder of pictures. But if I have a 5 minute video (some are even longer) 
> that's 18,000 images!
> 
> I can create a single .pto file but surely there must be a better way than 
> having to make 18,000 .pto files??
> 
> What about making a dynamic .pto file using PHP or something? When I make 
> thumbnails on a website, I use PHP to make a list of all the images in a 
> folder, then create a thumbnail for each image in the list. Does your 
> script create 18,000 .pto files because Hugin needs all of them?
> 
> thanks,
> 
> Robert

Sure, you can generate a .pto file using any scripting language, even
PHP (though I would imagine python or even bash might be a bit simpler).

Basically, you need a script that loops over every frame file, generates
the pto, processes it, and saves the output file with the proper name.
If you get clever with the script, it could scan a directory and process
all files in it. That way, you just explode the video into a directory,
then fire off the script.

--Sean

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/20160711011311.GA15129%40coach.home.
For more options, visit https://groups.google.com/d/optout.