digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   FFMPEG: built-in libavcodec/libavformat CODECS (http://www.digitalfaq.com/archives/encode/9106-ffmpeg-built-libavcodec.html)

kwag 04-16-2004 10:43 AM

Quote:

Originally Posted by digitall.doc
Karl...

... it was 3 loooong days ago.
And I see lots of blue faces waiting :lol: :lol: :lol:

Well, they'll probably now turn purple, because they'll have to wait longer :mrgreen:
I'm too busy with other things, and yesterday I was updating DIKumciser.
So your best bet is to go with vmesquita's "Mencoder ME", as it's far ahead of my program :)
Who knows, if Mencoder ME gets to a point that it's very useable, is there really a need for another GUI :?:
After all, they all use the same internal libraries, so there won't be really any quality advantage from one over the other.
Anyway, I still have some ideas that I woould like to test, but the way I see it, it's going to take some time.

Don't you guys have enough toys to play with already :?: :twisted: :lol: :lol:

-kwag

black prince 04-16-2004 03:13 PM

@Kwag,

Kwag wrote:
Quote:

Don't you guys have enough toys to play with already

-kwag
No!! :roll: :mrgreen:

This is fun improving KVCD processes and even thought most
of it I still don't understand, the parts that I do are real learning
experiences. MEncoderME is getting there and with your inputs
it's going to be ready for the Newbe masses. I'd like to see
an intergrated bitrate calculator (very useful) like CalcuMatic.
I just wondering whether an avs MA script should be incorporated
or not. An "Optimal Conf" sticky would be nice just as in forum KVCD.
And last, and probably the easiest thing to do is System Shut Down
incorporated in GUI. I am happy vmesquita and you are working
on this and excited with the results so far. :D

-BP

digitall.doc 04-16-2004 03:56 PM

Quote:

Originally Posted by kwag
So your best bet is to go with vmesquita's "Mencoder ME", as it's far ahead of my program :)
Who knows, if Mencoder ME gets to a point that it's very useable, is there really a need for another GUI :?:

I know you're all very busy. I even feel guilty to ask for things I cannot help with. I just can test :roll:
But I didn't think you were talking about a GUI, but a different approach, integrating libavcodec libraries, and maybe (even you didn't say a thing like this) avisynth support.
Well, I'll just sit down and wait, while I keep testing very nice vmesquita GUI

Latexxx 04-18-2004 10:48 AM

Which IDE are you using?

kwag 04-18-2004 11:56 AM

Quote:

Originally Posted by Latexxx
Which IDE are you using?

Something that blows away every current C compiler in existence :mrgreen:
The power of assembly (machine) language, with the syntax of BASIC.

http://www.digitalfaq.com/archives/error.gif
http://www.digitalfaq.com/archives/error.gif
http://www.digitalfaq.com/archives/error.gif
http://www.purebasic.com/screenshots.php3 ;)
http://www.purebasic.com/index.php3

Now you all know my little secret :lol:

Moral of the story:
Use the right tool for the right job.
Never use a bulldozer (C) to trim your lawn, and never use a pair of scissors (VB) to cut large trees :rotf:


Note: This environment is not for newbies :!:
You must have some programming experience to work with it.
If you want something easier to work with, go look at Delphi or Visual Basic or some other RAD tools.
This system is still relatively new, and every new version breaks some compatibility with previous sources.
However, if you want the full Win32 API and assembly power, controlled by an easy "BASIC" like syntax, then you'll be pleased with this.
And you can target your applications with a simple compile to Windows, Linux and AmigaOS :)

BTW, I still use the bulldozer (C), but *ONLY* when needed ;)

-kwag

Latexxx 04-18-2004 02:23 PM

Well, I wouldn't go back to any form of Basic even if somebody tried to force me to do so. 8) Lets say that I've used Basic and I've used Object Pascal (Delphi) and if it would be up to me I would use either. Java and C# are the languages. Unfortunately they both do require bloated virtual machine which kill my Pentium III 500 MHz.

- I don't like basic anymore because I know other programming languages (I was a Qbasic junkie).
- The code doesn't look very elegant and isn't very easy to understand because of its structure.
- Braces are easier to perceive.

eg

C#:
Code:

namespace Microsoft.Samples.WinForms.Cs.SimpleHelloWorld {
    using System;
    using System.Windows.Forms;

    public class SimpleHelloWorld : Form {

        [STAThread]
        public static int Main(string[] args) {
            Application.Run(new SimpleHelloWorld());
            return 0;
        }

        public SimpleHelloWorld() {
            this.Text = "Hello World";
        }
    }
}

VB.net:
Code:

Imports System
Imports System.ComponentModel
Imports System.Drawing
Imports System.Windows.Forms

Namespace Microsoft.Samples.WinForms.VB.SimpleHelloWorld

    Public Class SimpleHelloWorld
        Inherits System.Windows.Forms.Form

        'Run the application
        <STAThread()> Shared Sub Main()
            System.Windows.Forms.Application.Run(New SimpleHelloWorld())
        End Sub

        Public Sub New()
            MyBase.New()
            Me.Text = "Hello World"
        End Sub
    End Class

End Namespace

End Sub/Namespace: just stupid

But its your choiche, not mine. Get your program ready![/list]

Prodater64 04-18-2004 03:10 PM

Quote:

Originally Posted by kwag
Something that blows away every current C compiler in existence :mrgreen:
The power of assembly (machine) language, with the syntax of BASIC.

Do you know what kind of limitations has the demo version?

kwag 04-18-2004 03:15 PM

Now we're off topic, but here it goes :lol:
(Please reply or comment on the programming languages threads, for further discussions )

Quote:

Originally Posted by Latexxx
C#:
Code:

namespace Microsoft.Samples.WinForms.Cs.SimpleHelloWorld {
    using System;
    using System.Windows.Forms;

    public class SimpleHelloWorld : Form {

        [STAThread]
        public static int Main(string[] args) {
            Application.Run(new SimpleHelloWorld());
            return 0;
        }

        public SimpleHelloWorld() {
            this.Text = "Hello World";
        }
    }
}

VB.net:
Code:

Imports System
Imports System.ComponentModel
Imports System.Drawing
Imports System.Windows.Forms

Namespace Microsoft.Samples.WinForms.VB.SimpleHelloWorld

    Public Class SimpleHelloWorld
        Inherits System.Windows.Forms.Form

        'Run the application
        <STAThread()> Shared Sub Main()
            System.Windows.Forms.Application.Run(New SimpleHelloWorld())
        End Sub

        Public Sub New()
            MyBase.New()
            Me.Text = "Hello World"
        End Sub
    End Class

End Namespace

End Sub/Namespace: just stupid

But its your choiche, not mine. Get your program ready![/list]

Yep. It's my choice, and that's exactly why I chose PureBasic for most of the programming I do now.
Unless I have to do a device driver, then I'll do it in C ( which is what C was designed to do. Low level stuff)
Sadly, the industry chose C/C++ for high level applications, which is probably the biggest mistake :!:

If anyone looks closely, those samples only print "Hello World".
Well, this is what I call elegant :!: What follows is the complete source for a complete small web browser
Code:

; ------------------------------------------------------------
;
;  PureBasic - MiniBrowser
;
;    (c) 2002 - Fantaisie Software
;
; ------------------------------------------------------------
;
; This program requiers the Microsoft freely distribuable
; ATL.dll shared library.
;

Procedure ResizeWebWindow()
  ResizeGadget(10, -1, -1, WindowWidth(), WindowHeight()-52)
  ResizeGadget(4, -1, -1, WindowWidth()-185, -1)
  ResizeGadget(5, WindowWidth()-25, -1, -1, -1)
  ResizeGadget(6, -1, -1, WindowWidth(), -1)
EndProcedure


Procedure SizeCallback(WindowID, Message, wParam, lParam)

  ReturnValue = #PB_ProcessPureBasicEvents
 
  If Message = #WM_SIZE
    UpdateStatusBar(0)
    ResizeWebWindow()
    ReturnValue = 1
  EndIf
 
  ProcedureReturn  ReturnValue
EndProcedure


If OpenWindow(0, 100, 100, 500, 300, #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget, "PureBasic MiniBrowser v1.0")

  CreateStatusBar(0, WindowID())
    StatusBarText(0, 0, "Welcome to the world's smallest Browser ! :)", 0)
     
  CreateGadgetList(WindowID())
    ButtonGadget(1,  0, 0, 50, 25, "Back")
    ButtonGadget(2,  50, 0, 50, 25, "Next")
    ButtonGadget(3, 100, 0, 50, 25, "Stop")
 
    StringGadget(4, 155, 5, 0, 20, "http://www.purebasic.com")
   
    ButtonGadget(5, 0, 0, 25, 25, "Go")
   
    Frame3DGadget(6, 0, 30, 0, 2, "", 2) ; Nice little separator
 
    If WebGadget(10, 0, 31, 0, 0, "http://www.purebasic.com") = 0 : MessageRequester("Error", "ATL.dll not found", 0) : End : EndIf
 
  AddKeyboardShortcut(0, #PB_Shortcut_Return, 0)
 
  ResizeWebWindow()
 
  SetWindowCallback(@SizeCallback())
 
  Repeat
    Event = WaitWindowEvent()
   
    Select Event
      Case #PB_Event_Gadget
     
        Select EventGadgetID()
          Case 1
            SetGadgetState(10, #PB_Web_Back)
         
          Case 2
            SetGadgetState(10, #PB_Web_Forward)
         
          Case 3
            SetGadgetState(10, #PB_Web_Stop)
         
          Case 5
            SetGadgetText(10, GetGadgetText(4))
           
        EndSelect     
     
      Case #PB_Event_Menu ; We only have one shortcut
        SetGadgetText(10, GetGadgetText(4))
     
    EndSelect
     
  Until Event = #PB_Event_CloseWindow
 
EndIf

That's what I call elegant ;)
BTW, here's the compiled WebBrowser.exe, weighting at only ~18KB :lol:
http://www.kvcd.net/WebBrowser.exe

Also, here's a link to some of the commercial applications that have been written in PB.
These are VERY expensive applications, so PB is not a toy ( as many see it :!: )
http://www.reelmedia.org/c3/
And look at the prices 8O http://www.reelmedia.org/c3/03.html

So I really think once (not even twice) before coding anything in C/C++ these days :cool:

-kwag

kwag 04-18-2004 05:36 PM

Quote:

Originally Posted by Prodater64
Do you know what kind of limitations has the demo version?

I sent you a PM.

-kwag

kwag 04-18-2004 05:37 PM

Quote:

Originally Posted by Prodater64
Do you know what kind of limitations has the demo version?

I sent you a PM with descriptions.

-kwag

digitall.doc 04-18-2004 06:45 PM

kwag,
I'm also interested in the info. I'd give it a shot.

kwag 04-18-2004 06:49 PM

Quote:

Originally Posted by digitall.doc
kwag,
I'm also interested in the info. I'd give it a shot.

It's all here: http://www.purebasic.com/
And the forums are here: http://purebasic.myforums.net/index.php
There's where you'll really appreciate the power of this stuff. Just search around and see the things that have (are) being developed with it :!:

-kwag

incredible 04-19-2004 05:17 AM

I think their ressources site does got an error as it isnt avaiable or cant be shown (Not on Windows neither on Mac)
http://www.reelmediaproductions.com/pb/

kwag 04-19-2004 08:21 AM

Quote:

Originally Posted by incredible
I think their ressources site does got an error as it isnt avaiable or cant be shown (Not on Windows neither on Mac)
http://www.reelmediaproductions.com/pb/

That link works fine from here :!:

-kwag

incredible 04-19-2004 09:16 AM

The Browser tells me "sending request...." and nothing happens.
All other pages-loadings are working fine :?

kwag 04-19-2004 09:29 AM

Go here: www.webwarper.net and try it from there.

-kwag

Jellygoose 05-07-2004 07:29 AM

:oops: I'm choking kwag!
how's the app?

Abond 05-07-2004 07:35 AM

I have also wondered when will be the next day for kwag to say "What the hell..." :D

kwag 05-07-2004 11:22 AM

Well, after seeing vmesquita's MencodeME, I said: "What the hell, why would I do this, if MencodeME is already working, and why the hell would I re-invent the wheel" ;)

-kwag


All times are GMT -5. The time now is 08:15 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.