Inputs Needed for making a Media Player [closed] - c++

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to develop a music player using Qt, QML & CPP.
I'm new to this kind of development (related to multimedia).
I want some insights from you on how other Music Players work.
My first hurdle is how should I maintain the Library Info.? -- All the Metadata of each file, their locations etc.
I thought of having a Database. As I'm using Qt, It provides SQLite internally. So, I'm opting for creating a Database which contains all the metadata of each music file (.mp3)
Will this be feasible if we have lot of mp3 files. Say, 40K files. So, it comes to almost 40K records in a DB table. Then will this SQLite works well ? Are there any alternatives for maintaining the media library?
Hope I'm clear, I can elaborate if specified.
Thanks in Advance,
inblueswithu

Then will this SQLite works well ? Are there any alternatives for
maintaining the media library?
In short, yes, SQLite will work.
There are various media players like this this out there using SQLite for embedded systems, and they work fine for this requirement. The limits are documented on the official website.
If you plan to have a QtQML application, I would suggest using the QtSql module for handling the database, and QtMultimedia for the audio part. I would also recommend QtQuick controls for the UI part.
Here you can find the module documentations for those:
QtSql: https://qt-project.org/doc/qt-5.1/qtsql/qtsql-index.html
QtMultimedia: http://qt-project.org/doc/qt-5.1/qtmultimedia/qtmultimedia-index.html
QtQuick Controls: http://qt-project.org/doc/qt-5.1/qtquickcontrols/qtquickcontrols-index.html

Yes, SQLite can support 40k rows in a table. You can see http://www.sqlite.org/limits.html for more info about its limits.

Related

Django and Bootstrap relationship [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm working on a development road map for a django project. My choosen IDE is pycharm pro and mock up tool is bootstrap studio. One of my criteria is a calendar and I have discovered that none of the existing public projects will meet my needs so I will have to create one from scratch (no problem). My typical approach would have been that the UI and the django project would be done in near parallel periodically merging and diverging the two. However, given the ability of the two software tools, I'm starting to think that that a better approach may be to do the UI first in BSS, next import the templates into the django project and finally perform the django dev to meet the needs of the UI.
The specific calendar functionality is not the issue here, this is a methodology question. While I know that there is a subjective answer to this question (which is not the "answer" I'm looking for here), there also has to be an objective answer as to why this would not work, or be the incorrect approach.
Doing the UI first is fine if you already know exactly what you want it to do and can specify that. Doing the Django first lets you play around with a working rough version and get a better feel for what works best before fine tuning the look and feel. Like you suggest, working on them both together will let each inform the other.

Implement video editor [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to implement a "simple" video editor and since I'm new to the topic, I'm not sure how to start.
The editor should have the following features / components
A timeline for multiple recordings
A video player that plays the edited video in real-time (it should render all added effects and assets)
Assets that can be placed on the timeline such as text elements, arrows and so on
I'd like to start with the video player and then build the other components around it.
Which frameworks would you recommend?
For the player, I'm not sure if DirectShow is the right choice or MediaFoundation would be better. Are there other libraries to consider? FFmpeg?
My recommendation given your interests is to start with Blender
http://www.blender.org
It's written in a combination of C, C++, and Python, has a substantial user community, and has the advantage of open source code so you can see how a real large project looks.
You might end up just contributing to it, or you might lift bits of it to bootstrap your own project, etc. But if you don't know about, it's worthwhile to look at if only to help you refine what you want to work on.

How to compile C++ code for Roku? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have an android streaming client application which uses Java and cpp code. I want to port my application to Roku. I understand that Roku recommends only BrightScript for apps development.
1) According to this link (C/C++ development in Roku), gaming application can be written in cpp using marmalade and compiled for Roku.
2) But this link (How feasible is Roku app development with Marmalade?) clearly says marmalade can not be used for streaming application.
3) My questions are
(A) Is it possible to compile cpp for for roku?
(B) Where can I find the toolchain for building?
(C) If UI is developed using BrightScript, how can I call cpp functions from it?
You can't. Not independently from Roku Inc anyway - you will need a very close collaboration from them, which means you should be able to persuade their business development/partners department you are worth time and money. In other words, your company better be a household name.
You cannot "find" the C toolchain, it may only be bestowed to you by the Co on individual basis, after approval and under NDA.
If you don't have special relationship (project/contract) with Roku Inc, for non-games you can only develop in BrightScript. It's a mandate, not recommendation.
Specifically for your case, best option seems to be to use the already existing streaming formats/components the Roku API already provides. BrightScript is a script language, not fast enough to write a codec.
You have to use brightscript for Roku Streaming applications.

Building a website on Top of Django-CMS or Mezzanine [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
Is it possible to built my "Learning Management System (LMS)", on TOP of Content Management Systems like Mezzanine or Django-CMS ?
I'm building a product for a private school, and I found that the patterns are so close to a CMS, except for having my own models (Course, Subjects, etc.)...
There should be some learning curve to get the best result of a CMS, of course.
what do you recommend ??
Mezzanine has its own implementation of a page tree rather than using mptt, and it's quite solid. It's also designed for you to add your own Django models to the tree. From what you've said (which granted isn't much) it sounds quite suitable. Have a read over the relevant docs section here: http://mezzanine.jupo.org/docs/
I've not used mezzanine, but doing something like this would certainly be possible on top of django_cms.
It's quite straightforward to write custom plugins for a CMS, so you could build new widgets (assessments, polls etc) which can be dropped into cms-based pages. The menu's can also be extended , with new menus build based on objects in your models (e.g. courses, modules)... one gotcha with this is that the menus get cached, so the app either needs to be restarted to rebuild menus or you would have to add a hook to rebuild them manually. There are pretty good docs on this here:
http://docs.django-cms.org/en/2.1.3/extending_cms/custom_plugins.html
and on building custom apps, which can be hooked up to CMS urls:
http://docs.django-cms.org/en/2.1.3/extending_cms/app_integration.html
Overall, I quite like django_cms, although the breakage with successive versions (and also versions of MPTT on which it depends) has been quite a pain. It looks like they are trying to clean up this sort of thing in forthcoming releases though, and contrib.staticfiles is now supported which is nice.

Using Google Chromium's Views Project as an Application Framework in C++ [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I have had contact with Google Chromium Code and that’s terrific for building applications with. The problem now lies that no-one has tried to use it outside Google Chromium Project. What I have in mind is to develop an open source project which may be used for this purpose. The fundamental goals would be:
Guarantee Linux-Windows support for the same code.
Take advantage of all resources available like thread control, stats, unit test…
Make it clearer how to use Skia for graphic effects and customizations.
Present a useful application doing the most of this.
Integrate C++ and JavaScript code using V8
Use Webkit for rendering html content
There’s a chance of it get off the paper. What do YOU think?
Claudio M. Souza Junior
Developer.
see https://github.com/lianliuwei/chromium_base
I create it for the same reason like you.
chromium is great project. It's code could be useful to using in other project. but It need time to extract it. I see one project to extract the ui part, but it change too many for noreason for example it change the .cc to .cpp. my project extract the base, ui, view part for the origin project, rm the ICU (it's so big) and gurl(you can add it quick) keep the gyp, gclient, grit-i18n, gtest, gmock... change the code little. and keep the extract history. I add a new type of messageloop for using it in the MFC(for company project :( ) now it can only work on Windows but it's no so hard to make it work on linux.(google do it all)
for use the browser in you project you can see the http://code.google.com/p/chromium/ for help.
It's great this project help you a litte. I at first think it's a no one care project.
I'm assuming you have looked at the extensively documented and developed QtWebkit and know why you don't want to use that?
I'm sure it will be easier to use V8 in a QtWebkit application than to somehow tear out Chromium's "View project".
Qt has the bonus that as long as you operate within the framework, everything will work on a lot of different platforms (more than Chomium now supports I think).