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-13-2004 05:40 PM

FFMPEG: built-in libavcodec/libavformat CODECS
 
Well, not yet :lol:
But I started to play with some ideas today :cool: ;)

http://www.digitalfaq.com/archives/i...2004/04/23.jpg

Highlights: With built-in libavcodec/libavformat CODECS (Not a front end GUI!)

But
don't hold your breath :!:

-kwag

rds_correia 04-13-2004 05:57 PM

:twisted:
I'm not (holding my breath) but I'd like to make one thing clear.
What do you mean by "Not a front end GUI!" ?
You mean that's a new frankencoder project?
Based on libavcodec?
Why didn't you thought about that before :D
Cheers

vmesquita 04-13-2004 06:03 PM

Hey Karl, that's a great! :D I am curious! 8)

kwag 04-13-2004 06:04 PM

Quote:

Originally Posted by rds_correia
:twisted:
I'm not (holding my breath) but I'd like to make one thing clear.
What do you mean by "Not a front end GUI!" ?

Because the libraries would be compiled/linked in, so the program will actualy be making API calls, directly controlling the process.
QuEnc does something similar.
Not sending command line arguments to mencoder.exe :)
Quote:

You mean that's a new frankencoder project?
Probably better :D
Quote:

Based on libavcodec?
Yep :!:
Quote:

Why didn't you thought about that before :D
Cheers
I did, but things were not stable at the time, and ffmpeg and CODECs were crap at the time :lol:

-kwag

kwag 04-13-2004 06:06 PM

Quote:

Originally Posted by vmesquita
I am curious! 8)

I'm curious if it's going to work at all :lol:
At least the interface works, but that's just a toy right now :hihi:

-kwag

Icarus3000 04-13-2004 09:37 PM

I know you said not to, but I may have to hold my breath for such a wonderful toy!

dongxu 04-13-2004 10:14 PM

I wish I could do something but I am not a programmer. Such a tool would be fantastic!

All the best from me.

black prince 04-13-2004 11:47 PM

@Kwag,

I believe the time has come :) With a stable encoder, as MEncoder,
and with Notch-Matrix, avs MA script, and KVCD Templates, this
would be interesting. If the encoder you use has better file size
prediction than Tmpgenc, I say YIPEEEEE!! :D It's about time
the best of KVCD's achievements were put into one fabulous
program 8)

-BP

muaddib 04-14-2004 12:26 AM

Quote:

Originally Posted by black prince
I say YIPEEEEE!! :D It's about time
the best of KVCD's achievements were put into one fabulous program 8)

And I second that!!!
:ole:

kwag 04-14-2004 12:51 AM

Quote:

Originally Posted by black prince
It's about time
the best of KVCD's achievements were put into one fabulous
program 8)

Well, the best of KVCD (the "Notch" matrix plus some other things) are already being applied in commercial applications, specially low bitrate video streaming and surveillance, but I'm not allowed to disclose any information (yet!) :) ( For all the KVCD detractors out there on the "other" site, who said that KVCD was nothing more than a XVCD, I'll have news for them :) )
We already proved that on extremely low bitrate applications ( ~80Kbps) KVCD MPEG-1 is just as good as MPEG-4, without the CPU requirements of MPEG-4, and not to mention that MPEG-1 decoders are just about everywhere! Not so for MPEG-4 ;)
And we also know what we can do with KVCD stuff applied to MPEG-2 (KDVD), but on that end, there's still not much commercial activity. It's just a matter of a little more time ;)

-kwag

Krassi 04-14-2004 01:05 AM

Re: Today, I said: What the hell ......
 
Quote:

Originally Posted by kwag
But
don't hold your breath :!:

I'm already red :oops: :hihi:
Looks promising. I haven't had the time lately to follow the mencoder threads so this would be a time saving tool for me. Please let me/us know if i/we can help somehow.

Krassi

incredible 04-14-2004 04:33 AM

:arrow: :arrow: :arrow: :arrow: NICE!

digitall.doc 04-14-2004 05:06 AM

kwag,
it would be great :!:
If you really begin to cook this... we could open a thread with suggestions or ideas to incorporate in this program... (even you can finish with some thillions of ideas :lol: )
Well, not today if you want, but tomorrow I'll begin to hold the breath :wink:

Hydeus 04-14-2004 03:50 PM

FINALY :!:
I didn't think that you ever will do THIS but it seams that time is bigest tresure of all :twisted: :mrgreen:

I'll check this after I feed the dog and right before I feed the cat :lol: Joking :P Great tool (I gues :roll: ) :wink:

audioslave 04-14-2004 05:56 PM

WOW 8O :D !
This sounds great kwag! And congratulations on the surveillance thing! So, when do we get to see this beast of a program? I'm starting to turn :arrow: :confused: . From lack of oxygen! :wink:

kwag 04-14-2004 06:01 PM

Quote:

Originally Posted by audioslave
So, when do we get to see this beast of a program?

I don't know yet ;)
Quote:

I'm starting to turn :arrow: :confused: . From lack of oxygen! :wink:
:mrgreen:

-kwag

totonho03 04-14-2004 10:28 PM

Hello Kwag:

It sounds that this is what I was waiting for.........I can not afford to hold my breath for long periods of time, but with some CPR resusitation techniques, particularly with god looking female nurses, I may be able to wait............. as a matter of fact, using this resusitation method, I can wait for a looonng time. :D

Best regards to you

Totonho03

jorel 04-14-2004 11:35 PM

can i now :?: 8O

maurus 04-15-2004 03:11 AM

Thanks for your work. Nice and great!.
:lol:

-Maurus

digitall.doc 04-16-2004 10:30 AM

Karl...

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

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:21 AM  —  vBulletin © Jelsoft Enterprises Ltd

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