Is you project have source any where?Only on my PC, nowhere else - Nobody asked for it yet. %)
I wan to take a look at itWhich part are You interested in ? :)
It seems interestingHope so - Up to now, I didn't find anything like this for Lazarus;
Wow, finally somebody interested in FFmpeg-DLLs.Because I don't find this until now!
Nobody asked for it yet.I'm ask if you want to share sure.
Which part are You interested in ?All of it especially custom video play system.ffmpeg is so powerful and I'm sure we can done grate things with it.
Hope so - Up to know, I didn't find anything like this for Lazarus;Yes,its been a month I am searching for ways to make a custom video player and there isn't any good source.
everybody "only" uses the FFmpeg-EXEs.
if you want to share ... All of it ... to make a custom video playerWell, up to now my code is very "brainstormy", full with personal notes, quite early to publish.
isn't any good sourceUsually what's the problem ? Which parts do not work in general ? What is missing ?
we can done grate things with it.Sounds great -> Tell me more - who's "we" ? :)
By the chance are you author of ovoplayer?No - I only wanted to encourage Fred vS to extend the features of his (great) UOS. About a year ago,
with no internet and WinXpGot internet at my workingplaces; that's sufficient for my needs, for I'am not a developer, only a hobbyist.
I look at units you said,I should say they are quite hard for meHope, You didn't expect, that a bad ass developer's code would be easier to read. :)
My problem is playing files in a row with minimum delay ... want to testIn the past, I wrote several player (Fmod3 -> Fmod4 (= FmodEx) -> MPlayer -> VLC -> Portaudio), always with
"The secret is to give them what they need, not what they want.":D
@aradeonas
Wow, finally somebody interested in FFmpeg-DLLs. :)
amazing. mark.
please keep going.
please keep going.I will, whenever I got time, time, time for it. :)
@AllWish I could help you,I just can encourage you :D
I appreciate any assistance.
Wish I could help you,I just can encourage you :DAnd test!
Sadly it fails with most of my test filesI had the same Problem with some Files. :'(
and show a access violationI fixed this -> Now You should have less 'AccessViolations' and more Infos in the ConsoleWindow, why it failed.
but flickerI have no Flickering at all on my PC.
Thanks for testing. :)Thanks for making it,Im trying to thanks with testing.
Not to forget:
The present DemoApp still uses the FFmpeg-Headers, and -DLLs, I "borrowed" from 'Ultrastar v1.1' - those are from 2010 !
-> Newer Files may fail, simply because the Audio- and/or VideoCodec is not supported yet.
Yea! it works!:D
Now it open ... and many avi files! ... Freezing ... Noise> Please, put some of those Videos, that do not open into my DropBox.
Now it's stable,No error!:D :D :D
some time it have lag while playing specially for big files.This Version of FFPlay4Laz is not synchronized yet.
but lag in the audio and video,so we have pause timesThis Version is not synchronized, nor threaded yet.
How the App and Files open->run->close; should be (very) fast and without failure (Error, Freeze, Crash).No its better that before and behave good for files that I checked.
How is the ImageQuality, and -Speed in OpenGL-ModeBad,its like a slow motion ;) but its going better,two or three version ago its been better in speed.
Please let me change screen size so I can see output better.see below, but
I like the console versionMe, too - Finally my Intention is:
but GUI version is not good in compare of console version,it has lag and audio problemOf course not. This is, because the GUI-Version still has NO real AV-Synchronization; it only got "some Kind of Sync",
Me, too - Finally my Intention is:I like it!
To have a cute, little AV-Player, that opens and seeks really FAST, faster than MPlayer or VLC,
with real good Sound (-> Portaudio), and the ability to reproduce anything (-> av4all).
Then I will help you for a very cute UIThank You - I'll check that. :)
@Brian_ch
The Day for updating the FFmpeg-Version is coming nearer.
Meanwhile I've downloaded newer FFmpeg-Wrappers from the Link You gave to me: ;)
https://sourceforge.net/p/ultrastardx/svn/HEAD/tree/trunk/src/lib/ (https://sourceforge.net/p/ultrastardx/svn/HEAD/tree/trunk/src/lib/)
-> Question:
What do You think, with which Wrappers better to go on, e.g. for Future-CopyrightStuff:
With those from 'UltraStar', or with those from 'FFVCL':
http://www.delphiffmpeg.com/headers/ (http://www.delphiffmpeg.com/headers/)
will crash in the middle of playbackThis is a known Issue, and will be fixed later; for the Moment I do Outputs and the Seek.
Waiting for nextHere it is :D -> Check my Dropbox, added:
really sorry for the very very long delay...Where I live, everything is very, very delayed; this is no Problem at all for me, because:
so don't blame me if...For sure, not. 8)
I never used the delphiffmpeg headers you linkedThe FFVCL-Wrapper, I only used once, when I did a Variation of the 'filtering_video'-Example from FFVCL,
that I don't know about other projects that use the usdx headersMe neither; therefore I started to write my own AV-Player.
The Usdx headers are being tested in Linux, Windows and Mac OSX...and are more up-to-dateSo we already got two important criterias. ;)
using the whole dayBetter not to tell, how many "whole days" I already spent on it.
Could you just give me a demo of playing video with sound.The Demos are in my DropBox
I don’t want waste too much time on it.This was exactly my first Impression, when I saw Your Code. ;D
Actually I think ffmpeg is really hard to study.But finally, this is the basic Idea of this Thread.
BTW you program have a very bad sound synchronism...For sure, You only tried the GUI-Version. As already mentioned several Times in this Thread:
Which sound library did you use?SDL + Portaudio.
Very hood metis.This I don't understand :( - Should be something good.
also resizing the windows cause problem.The SDL-VideoScreen is NOT resizeable yet; what Problem do You mean ?
As you mentioned it has problem with seek + Waiting for nextHere it is = Released 27.11.15 - 15.16, Changes:
This I don't understand :( - Should be something good.Yes,Good :D
you should make a share link and send themOh, sorry, sorry, sorry, especially to mercury. %)
I checked it and I cant feel any changesDifferences in Sound, like SDL/Portaudio, ASIO/not ASIO, fine Clicks, etc. may be only audible with
it still has suddenly close problem= Known Issue - I'm on it. The current File ran max. 2,5h on my PC with MPG.
= Known Issue - I'm on it. The current File ran max. 2,5h on my PC with MPG.It just randomly crash in small or large files and Im sure you will solve it soon.
My Impression is, that it plays Movies longer than MusicClips (don't ask me why). %)
The Seek as well seems to work better with Movies than with MusicClips.
I got Files, where the Seek works perfectly, whilst it fails totally with others. %)
Thanks for Your Mail. I really appreciate, that You try to help an Internet-Dinosaur, like me.My pleasure to help :D
when you push key down and keep itPutting a 'SDL_EnableKeyRepeat()' would be the easiest Way to achieve this, but
I hope in this year we make a good Player.First Step done: FFmpeg-AudioResampler added -> 'avcodec_decode_audio4()' works ! :D
Still problem in forwading and moving in videoPlease, describe this "problem" more detailed.
changes you amde for audio make it very goodThese Changes have to be done, when using 'avcodec_decode_audio4()'.
Waiting for next oneComing soon. :)
Please, describe this "problem" more detailed.It doesnt support fast forward so I can keep key down and it goes fast, it actually write logs and reach to the end of the file and keep saying its the end of the file ;)
It doesnt support fast forward so I can keep key down and it goes fastI see, You really insist on the KeyRepeat-Feature. Though it is not projected at the Moment, I'll implement it for You - or maybe, Frank does...
I have been working at implementing MP4/AAC for uos for my own Delphi converted to LazarusInitially, I intended to do the same, but then I decided to do something different.
I also have projects (Delphi Win32) that use ffmpeg.exeFor PascalCode to Transcode & Play via FFmpeg-EXEs, see e.g. 'WinFF':
If it would be possible to assist/build on your efforts + Let me know if I can help...Any Assistance is appreciated -> Take the Code, I published in the Attachment of my Thread, Dec. 21, 2015.
I see, You really insist on the KeyRepeat-Feature. Though it is not projected at the Moment, I'll implement it for You - or maybe, Frank does...
'FFPlay4Laz' works quite fineYes but we need this features to even work with it in real situtaions. Playing video is the master part but not all it need.
1. It, however, required the use of your version 1 dll's
2. I took a look at your source...I always enjoy studying/learning from others
3. the ability to pass THandle of window to thread, & video being displayed
4. I could start the above modifications, albeit after my work with Uos
Waiting for the next one
made changes after a whileActually, I implemented the entire Code to read out Stream-Metadata, -Data, and -Chapters via FFmpeg-DLLs.
fast forward while we keep key down...just keep jumping on 30s intervel'FastSeek' and 'RepeatedSeek' are already executed as long as the corresponding Key is pressed.
much more occurrences...Can we have a progressIf I get You right, You want to know, wether 'FastSeek' can be speeded up ?
are these project do the same job?Depends on, what You want it for - They both play a MediaFile, but:
An AV-Player (don't need Subtitles), that opens/closes, pauses/resumes, and
seeks really FAST, and all of this with high AV-Synchronism, and outstanding SoundQuality.
will you continue to have a real good video player?Of course! I use it each Day, mainly to listen to MusicClips. ::)
So I like your version more...Me, too (of course). :D
Why don't You try out the current Win32-Version with Wine or Virtualbox till then ?wine 3.20
Would be interesting for me to know, whether it works this Way, too. :)
3. One never knows, who's the next Gitxxx-Owner.
1. This Way, I share it with the Lazarus-Community
2. Leading others to the Lazarus-Pages
Where can I send my application papers to ? :D
What Do You think? Isn't this a good Occasion to start a new Topic, like
"Where should I publish & share my Codes & Projects ? (which Host to choose)"
to discuss the Pros & Cons of those Sites ?
For Example, what's Your Opinion about this ?
...
honesty rules my lifeMaybe, I know too much lawyers. %)
safer than my only laptop that risk to die soonGet a ThinkPad. Used ones are not expensive, at all.
> Get a ThinkPad. Used ones are not expensive, at all.
> safer than my only laptop that risk to die soon
You see that the "total honesty" is not easy to reach.I think, I should start that Topic about Code-Hosts. :D
You should post the Reason for Your initial Problems, and how You fixed it.Uses AMD Video Card :D :D :D
I tried FFmpeg and had a lot of problems.You are not alone with this.
with a negative X coordinate...it's just imposible.Negative X/Y-Coordinates result in an Error, which is shown in the CLI's Output.
Then I used the VLC player, ...IMHO 'VLC' is too slow for Playing and too complicated for Recording with Sound.
Despite reinstalling ..., codecs and the VLC player itself, ...If You use 'FFmpeg' directly, no further Installations are needed -> much easier.
...ask if it is appropriate reading when I want to create a video/audio capture app...No, see my last Post:
...capture a video playing inside a FireFox or Chrome window...Capture/Streaming Videos from a WebSite does not depend on Your WebBrowser.
This works fine except for a minor issue ... It turns out that if I use ffmpeg...I'm really pleased, that I could help You with Your VideoEditor-App, but
@BosseBBefore posting I tried to find where I had discussed this earlier but failed....QuoteThis works fine except for a minor issue ... It turns out that if I use ffmpeg...I'm really pleased, that I could help You with Your VideoEditor-App, but
I still don't know, why You keep on Putting Your Questions at the wrong Place. %)
This Thread is - and always will be - about Streaming/Playing with FFmpeg-Libraries and Lazarus.
@BosseBI must be missing something here (maybe not related to my project):
This Thread is - and always will be - about Streaming/Playing with FFmpeg-Libraries and Lazarus.
Composing FFmpeg-CommandLines is totally different from Writing Code for FFmpeg-Libraries.
I thought that ffmpeg is a command line toolThe FFmpeg-Project consists of several CommandLine-Tools and Libraries, see here (https://ffmpeg.org/documentation.html).
so the "library" would then become the command line interface, right?The FFmpeg-CommandLine-Tools and -Libraries are built and compiled from the FFmpeg-SourceFiles.
if there is some package that includes libraries that could ease the use of ffmpegFor FreePascal: AFAIK no; for DelphiPascal, see the FFVCL-Site (http://www.delphiffmpeg.com).
QuoteI thought that ffmpeg is a command line toolThe FFmpeg-Project consists of several CommandLine-Tools and Libraries, see here (https://ffmpeg.org/documentation.html).1om]FFVCL-Site[/url].
I'd like a copy of your code'RunFFmpeg', which uses the FFmpeg-CLIs is here (https://forum.lazarus.freepascal.org/index.php/topic,43411.0.html) (totally open-source).
sounds great:)
command-line tools are basically front-ends for the underlying libsIn Case of 'FFmpeg', the static CommandLine-Tools are stand-alone Programs; no more Files needed to run them.
so when you install the command tools the linraries are also installed as dependencies.On Windows, there's no FFmpeg-Installation needed (on MacOS or LINUX, don't know - never tried it out).
Previously I have incorporated a video player in my application with PaslibVLC, but I was looking at alternatives.Same with me:
What exactly is FFPlay4Laz? + I'm trying to understand your FFPlay4Laz project.FFPlay4Laz is a portable Audio/Video-RenderingEngine, that does not depend on any other MediaPlayer-BackEnd, like
I have tried to compile you minimalist version by gathering all necessary files ...To compile it, You need the Delphi/FPC-Headers for FFmpeg (http://www.delphiffmpeg.com/headers) and for SDL (https://github.com/ev1313/Pascal-SDL-2-Headers). To run the compiled Executable, You need their Libraries (see above (https://forum.lazarus.freepascal.org/index.php/topic,26666.msg464784.html#msg464784)).
I'm trying to find a working example with required files included in your posts, ...Can't post it here, because of the 500KB-Limitation for Attachments in this Forum, and especially because of LicenceRestrictions with FFmpeg (http://www.ffmpeg.org/legal.html).
Could you build a videoplayer with it that is controlled from a GUI? As I understand you are currently working on a version that is embedded in a GUI?Yes, via the FFPlay4Laz-Library.
...No, the same than before, easier for the users, better visibility, easier for patch, ...
Or is there any other Reason ?
..., easier for the users, better visibility, easier for patch, ...Sorry, but I still don't see any Advantage for small Projects, like mine:
I will try again next year...Always Looking forward to a Chat with You. :)