Merging audio and video files into one [C++] [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
My C++ application is using openframeworks to record video from webcam in .mov format, and a 3rd party application to record application sound to a separate .wav file.
In the end of the execution I need to merge both video and audio files into one. Is there any library or API that does this?
Would appreciate some help, thanks!

Similar to question here, the following are quoted from there:
Once you get a separate audio and video file, you can combine them using a technique called muxing. There are many many ways to do this. I use VirtualDub for most of my muxing needs, although it is windows only (not sure if that's a problem). I know ffmpeg is also capable of muxing (via the command line interface), I can't recall what the command is. There's also mplayer and a multitude of other programs out there to do this.
Edit: Two ways to use ffmpeg:
Use C/C++ API: check out the following great ffmpeg tutorials
https://github.com/chelyaev/ffmpeg-tutorial.
https://github.com/phamquy/FFmpeg-tutorial-samples
Use system calls:
check out here for script source code (commands) on how to merge audio and video files.

Related

Is there any c++ library to encode flv video? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there any c++ video library to convert videos to flv video?
I searched on google I found flvdev.com but it's not open source (it needs purchasing).
I also tried libavcodec, but flv codec doesn't work.
(Now I'm fetching frames from a video monitor, then use libavcodec to encode them to mpg and finally call "ffmpeg" command to convert them to flv)
You can try ffmpeg. It seems it supports the flv format:
https://github.com/FFmpeg/FFmpeg
http://www.ffmpeg.org/download.html
Here are some examples of how to use the compiled program, but being open source, you can integrate it into your work:
How can I achieve the best overall FLV quality with FFMPEG?
http://www.thornock.us/wordpress/archives/172

convert hus and pes file to any types of images [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am trying to convert a massive number of hus and pes files (embroidery files). I was able to do it using ImageMagick in centos but I encountered memory allocation errors and also it only works for pes files. Is there a script that can handle this for both file types?
I tryed in imageMagick with a lot of versions and a lot of files but I wasn't able to do it.
there are a couple of windows software that can do this, but it takes to much time to do it file by file.
Thanks to jpw I found a solution. Embroidermodder confers a conversion to svg that I can convert to png using convert. I had to build it from source but it worked very well.

Report generator for C++/Qt (Windows) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have a program un C++/Qt written for Windows, which prints some graphs in pdf format and some other data in HTML.
I need to print all together into a single PDF, a single-file report.
I have looked for some libraries similar to Crystal reports, but I just find paid ones and I need a free open-source solution. I finally found RTK reports but it looks to run only with UNIX.
Any library or different solution for my needs?
You might want to check out what Qt has built into it in versions 4.7 & 4.8. From Qt 4.8: Printing with Qt, there is this little tidbit "Qt's printing system also enables PostScript and PDF files to be generated...." The QPrinter class supports several different Output Formats, including PDF.
Disclaimer: I haven't played with this part of Qt, so YMMV.

A library to convert svg to images? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am looking for a library written either in C or C++ which can convert the svg to image formats.
I came across inkscape which converts svg to images. but to use this I must run inkscape as a process and this not the solution I am after.
I need the library to run on both Windows and Linux as well.
I am after a C or C++ library. If it was with Java I would have used Apache's Batik rasterizer.
The canonical library to render SVG is librsvg. You may want to check that out.
For image libray, you can use ImageMagick, which is quite popular and it support many types of image.
I would recommend leadtools, as they support many vector formats and many programming languages and it can be easily convert vector format to the most known raster format.
As far as I know they support Windows, not sure about Linux.
You can tell by visiting their website.

v4l2 very simple example [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm looking for a simple example for camera access in Linux using V4L2.
Where I can find it? As simple, as possible.
Thanks,
Try the uvccapture code here -> http://staticwave.ca/source/uvccapture/
It is very small yet very concrete example which makes use of all the V4l2 concepts (open,set format, allocate memory, Request Buffer, Dqbuffer and Query-buffer - all intems of ioclts).
uvcgrab() function is the one to look for which makes use of Dqbuffer and Query-buffer.
ioctl (vd->fd, VIDIOC_DQBUF, &vd->buf);
ioctl (vd->fd, VIDIOC_QBUF, &vd->buf)
While Studying it you can keep looking for the ioctl definition in this link which will ease your understanding.
In the API specification, there is an example, also downloadable as a C file
I would advice also trying out v4l-utils.
http://linuxtv.org/downloads/v4l-utils/
It has some easy to use API calls to v4l devices and there is a qt based example in the source to build a custom interface for video devices.