| Project: | Tupi: 2D Magic |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | xtingray |
| Status: | active |
I got an error while I was compiling Tupi on slackware64 (gcc version 4.7.1). I'm stuck around this file -> tffmpegmoviegenerator.cpp
I already updated the deprecated methods but now I got another compilation error, so I would appreciate your help:
tffmpegmoviegenerator.cpp:505:32: error: too few arguments to function 'int avformat_write_header(AVFormatContext*, AVDictionary**)
In file included from tffmpegmoviegenerator.cpp:48:0:
/usr/include/libavformat/avformat.h:1645:5: note: declared here
make[4]: *** [.obj/tffmpegmoviegenerator.o] Error 1
make[4]: Leaving directory `/root/tupi_0.2-git01/src/plugins/export/ffmpegplugin'
make[3]: *** [sub-ffmpegplugin-make_default] Error 2
make[3]: Leaving directory `/root/tupi_0.2-git01/src/plugins/export'
make[2]: *** [sub-export-make_default] Error 2
make[2]: Leaving directory `/root/tupi_0.2-git01/src/plugins'
make[1]: *** [sub-plugins-make_default] Error 2
make[1]: Leaving directory `/root/tupi_0.2-git01/src'
make: *** [sub-src-make_default] Error 2
This is the link where you can find the cpp file with the changes I made:
http://pastebin.com/v0AmaJBK
#1
Hi!
Question: What version of FFmpeg are you using?
About the error: It seems that the method "avformat_write_header()" requires more parameters in that version of FFmpeg. I need to check the API documentation but before that, please answer my question ;)
Thanks for trying Tupi :)
#2
ffmpeg version N-43289-g29d1df6 Copyright (c) 2000-2012 the FFmpeg developers
built on Aug 6 2012 22:52:21 with gcc 4.7.1 (GCC)
#3
Currently I'm downloading Slackware64 (version 14) to reproduce your environment, then I will try to compile Tupi using the file you changed (tffmpegmoviegenerator.cpp). As soon as I write the fix for that bug, I'll let you know :)
#4
I built an experimental package for Slackware 14 (64 bits) available from:
http://www.maefloresta.com/portal/files/tupi-0.2.1.tgz
MD5 hash: 21cf999f922fd5d8ee70c787036baa27
Please, try it and let me know if it works for you.
PS: There are several issues about the x86_64 Slackware libraries, so it will take a while to get a stable installer of Tupi for this Linux distro.
#6
All functions of the program seem to work fine. It only can export in .ogv but that's not really a problem anyway.
Thanks
#7
Got the same error here on Vectorlinux 7.1 (slackware based), in both 32bit and 64bit builds. Your 64bit fix worked here (just had to build quazip to meet dependencies)
I'll keep an eye on this thread for when all the bugs get worked out.
Any hints on how you got it to build. Would like to get this into the 7.1 repositories.
PS, Built fine on older VL 7.0, which uses an older ffmpeg. Great work, love the program. I hope to do another video on it soon.
#8
The work-around I made to create the .tgz file was really coward indeed: I just uninstalled the ffmpeg package and then I compiled the Tupi source code to get the executable. That's it!
Right now, I'm waiting for the ffmpeg (version) upgrade in several Linux distros, to definitely work on this issue.
Thank you for trying Tupi! :)
#9
Thank you so much guys for all your helpful tips and advice. It's now working. I appreciate all your effort of sharing your valuable knowledge. Thank you so much.
buy cheap youtube views