Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on video #18

Open
sechanbask opened this issue May 9, 2017 · 16 comments
Open

Error on video #18

sechanbask opened this issue May 9, 2017 · 16 comments

Comments

@sechanbask
Copy link

sechanbask commented May 9, 2017

Hi,

I have tried your work on W7.

It works lovely for photos but I can't use it on video. :

Converting video to images...
Stitching frames...
Processing frame frames\image00001.jpg
Processing input images (nona)
nona failed, panorama not created

"Reencoding video..."
ffmpeg failed, video not created

error.txt
capture cmd

@ultramango
Copy link
Owner

Hi,

This looks like the video you are trying to stitch is not 3840x1920 as this is the only supported size (I could swear I added this into the README file)

Could you check the video size (the file that came straight from the camera)?

@ftoledo
Copy link

ftoledo commented May 14, 2017

Hi all!
I discover same error (on debian stretch) i think that this worked before.
I see with mediainfo that the video is 3840x1920
(i can upload it at some site if you need as sample)

toledones@gollum:~/Imágenes/2017-05-13_marcha_madres$ mediainfo 360_0329.MP4 
General
Complete name                            : 360_0329.MP4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (qt  /isom/hvc1)
File size                                : 150 MiB
Duration                                 : 41 s 931 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 30.1 Mb/s
Encoded date                             : UTC 2017-05-10 22:16:59
Tagged date                              : UTC 2017-05-10 22:16:59

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : [email protected]@Main
Codec ID                                 : hvc1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 41 s 909 ms
Bit rate                                 : 29.9 Mb/s
Width                                    : 3 840 pixels
Height                                   : 1 920 pixels
Display aspect ratio                     : 2.000
Frame rate mode                          : Constant
Frame rate                               : 29.970 (30000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Bits/(Pixel*Frame)                       : 0.135
Stream size                              : 149 MiB (99%)
Language                                 : English
Encoded date                             : UTC 2017-05-10 22:16:59
Tagged date                              : UTC 2017-05-10 22:16:59
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.601

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 41 s 931 ms
Source duration                          : 41 s 899 ms
Bit rate mode                            : Variable
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 spf)
Compression mode                         : Lossy
Source stream size                       : 979 KiB (1%)
Language                                 : English
Encoded date                             : UTC 2017-05-10 22:16:59
Tagged date                              : UTC 2017-05-10 22:16:59
mdhd_Duration                            : 41931

toledones@gollum:~/Imágenes/2017-05-13_marcha_madres$ gear360video.cmd 360_0329.MP4 
DEBUG: output filename: ./360_0329_pano.mp4
Extracting frames from video (this might take a while)...
ffmpeg version 3.2.4-1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 6.3.0 (Debian 6.3.0-6) 20170205
  configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-netcdf
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '360_0329.MP4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: qt  isomhvc1
    creation_time   : 2017-05-10T22:16:59.000000Z
  Duration: 00:00:41.91, start: 0.000000, bitrate: 30119 kb/s
    Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv), 3840x1920, 29912 kb/s, 29.97 fps, 29.97 tbr, 120k tbn, 120k tbc (default)
    Metadata:
      creation_time   : 2017-05-10T22:16:59.000000Z
      handler_name    : VideoHandler
      encoder         : DRIMeV HEVC Encoder
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 191 kb/s (default)
    Metadata:
      creation_time   : 2017-05-10T22:16:59.000000Z
      handler_name    : SoundHandler
[swscaler @ 0x5557c6689940] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to './tmp.kPXu3FRVk1/image%05d.jpg':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: qt  isomhvc1
    encoder         : Lavf57.56.101
    Stream #0:0(eng): Video: mjpeg, yuvj420p(pc), 3840x1920, q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)
    Metadata:
      creation_time   : 2017-05-10T22:16:59.000000Z
      handler_name    : VideoHandler
      encoder         : Lavc57.64.101 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> mjpeg (native))
Press [q] to stop, [?] for help
frame= 1256 fps= 18 q=24.8 Lsize=N/A time=00:00:41.90 bitrate=N/A speed=0.597x    
video:306241kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Stitching frames...
Frame: ./tmp.kPXu3FRVk1/image00001.jpg
Processing input images (nona)
WARN: 22:10:56.319717 (/build/hugin-JCCjou/hugin-2016.2.0+dfsg/src/hugin_base/panodata/Panorama.cpp:2054) readData(): Failed to read from dataInput.
error while parsing panos tool script: gear360video.pto
Error while running nona
Error while running /bin/bash
Removing temporary directories...

@sechanbask
Copy link
Author

sechanbask commented May 14, 2017 via email

@ultramango
Copy link
Owner

I'll try to reproduce this on my side.

For creating the gallery... if nothing fancy the easiest is to use static gallery with links like this:
http://cdn.pannellum.org/2.3/pannellum.htm#panorama=http%3A//example.com/dummy.jpeg
You'd have to somehow automatically change the filenames and in the long run use your own server (not the pannellum one).
If something more fancy then some ready to use gallery + JavaScript/HTML modifications.
I should be able to write a simple script but using Python which is not installed, by default, under Windows.

As for video, this looks promising: http://flimshaw.github.io/Valiant360/

Hopefully I will find time this week to update few things with the project.

I'm happy to see people finding my scripts useful :) .

L.

@ultramango
Copy link
Owner

ultramango commented May 15, 2017

I couldn't reproduce the issue on Linux, I'll try later on my Windows machine.

I just did a commit with a poorman's gallery, see html directory. You just need to place the files there and create filelist.txt (read README.md). Kind of works for me, but don't expect miracles from this quick franken-creation.

Cheers,
L.

@sechanbask
Copy link
Author

sechanbask commented May 16, 2017 via email

@sechanbask
Copy link
Author

sechanbask commented May 17, 2017 via email

@ultramango
Copy link
Owner

ultramango commented May 17, 2017

It's possible to have click&drag with the current solution, in index.html change this:

$('.valiantContainer').Valiant360();

To:

// Edit: corrected from false to true
$('.valiantContainer').Valiant360({clickAndDrag: true});

As described here: https://github.com/flimshaw/Valiant360 (there are other options as well).

The video worked for me when I used Chrome; what browser are you using? I suspect some video incompatibilities.

I just read about VideoLAN 360 deg. support, but I haven't tried it yet.

L.

@sechanbask
Copy link
Author

sechanbask commented May 17, 2017 via email

@ultramango
Copy link
Owner

Hi,

My mistake in the example I gave, you should have this in the code:

$('.valiantContainer').Valiant360({clickAndDrag: true});

You have currently this in your index.html (false and no semicolon):

$('.valiantContainer').Valiant360({clickAndDrag: false})

For the sake of completion put also this in the video section as well (just in case you ever decide to use it).

I think I will have to attach extra file for the fonts because video/photo controls are not visible under Windows (possibly my Linux machine has too much stuff installed).

@sechanbask
Copy link
Author

sechanbask commented May 17, 2017 via email

@ultramango
Copy link
Owner

@ftoledo could you please upload a sample somewhere so I could test it on my machine?

Thanks.

@ftoledo
Copy link

ftoledo commented May 28, 2017

Hi! @ultramango i upload the video here: http://tom.pressenter.com.ar/~ftoledo/tmp/360_0310.MP4
Thanks!

@ultramango
Copy link
Owner

HTTP request sent, awaiting response... 403 Forbidden

@ftoledo
Copy link

ftoledo commented May 30, 2017

Sorry i forgot change the permissions, now fixed, please try again, thanks!

@ultramango
Copy link
Owner

Got it, you can remove/disable the link. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants