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

Saving an animation at 4 frames per second on mac creates green animation #1118

Closed
chaosphere2112 opened this issue Mar 5, 2015 · 9 comments
Assignees
Milestone

Comments

@chaosphere2112
Copy link
Contributor

When I save an animation of CLT at 4 FPS on my mac, it outputs a solid green video. I've tried this both from my UI stuff as well as from scripts.

@doutriaux1

@chaosphere2112
Copy link
Contributor Author

We tried this on Ubuntu and it worked perfectly fine, so there's probably something askew in my computer's setup. @doutriaux1, here's the FFMPEG log:

ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
  built on Feb 26 2015 10:47:33 with clang 5.1 (clang-503.0.40)
  configuration: --extra-cxxflags=/Users/fries2/build/build/FFMPEG --enable-shared --enable-zlib --prefix=/Users/fries2/uvcdat/Externals
  libavutil      51. 54.100 / 51. 54.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.100 / 54.  6.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
[image2 @ 0x7f9708806600] max_analyze_duration 5000000 reached at 5000000
Input #0, image2, from '/Users/fries2/.uvcdat/e0e56a3c9fdc7033a9761441552b3aec1a0ccf77/anim_%d.png':
  Duration: 00:00:30.00, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, rgb24, 814x606, 4 fps, 4 tbr, 4 tbn, 4 tbc
[buffer @ 0x7f970840dc60] w:814 h:606 pixfmt:rgb24 tb:1/4 sar:0/1 sws_param:flags=2
[buffersink @ 0x7f970840df60] No opaque field provided
[format @ 0x7f970840e260] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'format'
[scale @ 0x7f970840e600] w:814 h:606 fmt:rgb24 sar:0/1 -> w:814 h:606 fmt:yuv420p sar:0/1 flags:0x4
Output #0, mp4, to '/Users/fries2/Desktop/anim.mp4':
  Metadata:
    encoder         : Lavf54.6.100
    Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 814x606, q=2-31, 1024 kb/s, 4 tbn, 4 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (png -> mpeg4)
Press [q] to stop, [?] for help
frame=  120 fps=0.0 q=14.3 Lsize=    3832kB time=00:00:30.00 bitrate=1046.5kbits/s    
video:3831kB audio:0kB global headers:0kB muxing overhead 0.035101%

@doutriaux1
Copy link
Contributor

@chaosphere2112 can you point me to a script so I can use exact same data on my mac and ubunutu and see if i can reproduce this. Also did you try to preserve the png (option in x.close()) and see what they look like? You could send me these pngs and we can try to run ffmpeg on them on various system

@chaosphere2112
Copy link
Contributor Author

chaosphere2112 commented Mar 5, 2015 via email

@doutriaux1
Copy link
Contributor

x.close(preserve_pngs = True)

@chaosphere2112
Copy link
Contributor Author

chaosphere2112 commented Mar 5, 2015 via email

@doutriaux1
Copy link
Contributor

Interesting... ok will fix that. I worked at one point...

@doutriaux1
Copy link
Contributor

sorry it is:

x.animate.close(preserve_pngs = True)

@chaosphere2112
Copy link
Contributor Author

chaosphere2112 commented Mar 5, 2015 via email

@doutriaux1 doutriaux1 added this to the 2.3 milestone Mar 9, 2015
@doutriaux1 doutriaux1 added the VCS label Mar 9, 2015
@chaosphere2112
Copy link
Contributor Author

I've got most of this sorted out in a branch, but it's not quite working yet. Will finish after Chico trip.

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

No branches or pull requests

2 participants