digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   FFMPEG: Co-author wanted (http://www.digitalfaq.com/archives/encode/7187-ffmpeg-author-wanted.html)

russiansexpat 12-14-2003 12:02 PM

co-author wanted
 
I've got not bad results here: http://www.kvcd.net/forum/viewtopic.php?t=7771
Can anybody do some wrapper for this script, thanks.

http://www.digitalfaq.com/archives/error.gif

rhino 12-15-2003 09:11 AM

what do you want to the wrapper script to do?

I would consider using getopts() instead of using if statements/shifts for parsing the command line in your script. I believe this is built into bash. Much more flexiible.

cheers,

russiansexpat 12-16-2003 12:50 AM

Basically, to rid off editable section of the script.
Parameters should be specified in command line
(dialog scripts maybe more user-friendly but it is not a way to go - script can be callled from other code or wrapper.
Of course, tcl/tk wrapper nice to have, but it is beyond my current capabilities).
Next versions of the script might do:
cropdetect and auto-scaling, this can be done with mencoder/ffmpeg;
view aspect recognition;
frame rate conversion PAL/NTSC.
The source can be alalysed by tools like ffmpeg, tcprobe, tcscan.

rhino 12-16-2003 08:57 AM

You'll pick up TCL/TK very quickly. Its a fun language for prototyping in.

If i get time this week i'll write a parameter parsing script and a TCL interface. I'll not be able to test its mencoder, ffmpeg, etc. as I don't have linux installed on a machine but i'm sure you can fix the bugs:)

Cheers,

rhino 12-17-2003 11:50 AM

@russiansexpat:

It will take me a few weeks (will be travelling over Christmas) but I'm going to take your script break it out into separate scripts, put a wrapper around it and put a TCL/TK gui on it as well.

I'll try and make it as configurable as possible but also making it easy to use and maintain. I just need to explore the apps and see what all the different options/combinations can be. I'll base it on your last script posted,

Cheers,

russiansexpat 12-17-2003 12:43 PM

Rhino,

I am going to do some minor changes in -lavcopts string.
Depends on video source, the script sometimes failed to produce valid stream, becase of video bitrate control and therefore video/audio out of sync.
I am doing testing right now.

If you have questions about those quirky flags of mencoder, give me a whistle, I've done some research on mencoder specials.

rhino 12-17-2003 01:28 PM

Changes like that will not be a problem. Those kind of things will either be set in a config file or be changeable in the gui/command line. I'm guessing the style of the script will not change dramtically:)

The changes I am proposing is spliting out the video, audio and cdrdao stuff into 3 separate scripts which are controlled by the wrapper script/gui.

This will make it easy to follow the scripts and to make changes. the wrapper script/gui will then allow you to do the 3 stages separately or a one click does all feature. Also there will be a batch option as well (in the future sometime).

cheers,

rhino 12-18-2003 01:11 PM

Do you have some docs on libavcodec? I want to get a list of all the options and their parameters so that these can be selected and also so that i can figure out the parameters to be passed from the wrapper to the script.

I would say another 2 or 3 days and i should have 0.1 of the gui ready. Basically just doing nothing but showing all the configurations of everything. I'll post a couple of screen shots later. Looks aren't everything but we can sort that out next year:)

From this i can figure out all the parameters for the underling script(s).

I'm also thinking of doing a few presets for vcd, svcd, kvcd, dvd so that you can load them in and all the appropriate options will be selected. So keep note of good combinations you have come across.

Cheers,

kwag 12-18-2003 03:57 PM

Quote:

Originally Posted by rhino
You'll pick up TCL/TK very quickly. Its a fun language for prototyping in.

It is :D
I've always wanted to learn more about it, but never had enough time :(
Maybe if you want to take your GUI to a higher level or larger applications, look into [incr tcl], which is basically Object Oriented Tcl/Tk and will scale better :idea: :)
http://incrtcl.sourceforge.net/itcl/

-kwag

russiansexpat 12-18-2003 05:12 PM

Rhino,

Take a look on this frontend: http://www.hup.hu/old/dmencoder/index_eng.html

libavcodec is a codecs family (codecs from ffmpeg, xvid and others) and numerous command line options.
They have not been documented. I've read man page, postings on inet and tried some options.

I can explain options in my script and most options from man page, but even man page does not contain all options hidden in a source.

I guess most of unix people use utilities from mjpegtools and transcode for making vcd, xvcd, svcd but these encoders are slow and have less options than mencoder.
ffmpeg is slightly faster than mencoder (which is encapsulated ffmpeg code in libavcodec) but documentation is poor, it has less options and ffmpeg development is effectively halted.

rhino 12-18-2003 06:50 PM

@kwag:

I'll take a look at it. I'm using the tix extension as this provides tabbed notebooks which is handy for this kinda thing.

@russiansexpert:

Cheers for the pointers. I'll take a look at the sources and see what's what. could be the quicker way of finding these things out.

The nice thing about tcl is you can easily extend it to add things in quickly.

russiansexpat 12-18-2003 08:35 PM

We need both video bitrate and constant quality defined modes.
(Video bitrate defined mode is in my earlier versions of the script, see the top of script thread.)
Constant quality gives better compression but I am fighting with problem of bitrate control in this mode.

rhino 01-08-2004 12:41 PM

I'm afraid the GUI will be on hold fora while - too many project deadlines at work over the next couple of months

Sorry,

russiansexpat 01-10-2004 02:15 AM

No problemo.
I'll try to encapsulate the script settings in one of these:
http://gmencoder.sourceforge.net/
http://fixounet.free.fr/avidemux/
http://acidrip.thirtythreeandathird.net/


All times are GMT -5. The time now is 09:40 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.