Quantcast FFmpeg: Co-Author Wanted - digitalFAQ.com Forums [Archives]
  #1  
12-14-2003, 12:02 PM
russiansexpat russiansexpat is offline
Free Member
 
Join Date: Nov 2003
Posts: 123
Thanks: 0
Thanked 0 Times in 0 Posts
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.

__________________
are you ready for year 2038?
x+2038-1970 > (2^31+1)/(365.25*24*3600)
/dev/mem < /dev/null
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
12-15-2003, 09:11 AM
rhino rhino is offline
Free Member
 
Join Date: Jan 2003
Location: Back in Ireland (for a while)
Posts: 166
Thanks: 0
Thanked 0 Times in 0 Posts
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,
__________________
rhino
Reply With Quote
  #3  
12-16-2003, 12:50 AM
russiansexpat russiansexpat is offline
Free Member
 
Join Date: Nov 2003
Posts: 123
Thanks: 0
Thanked 0 Times in 0 Posts
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.
__________________
are you ready for year 2038?
x+2038-1970 > (2^31+1)/(365.25*24*3600)
/dev/mem < /dev/null
Reply With Quote
  #4  
12-16-2003, 08:57 AM
rhino rhino is offline
Free Member
 
Join Date: Jan 2003
Location: Back in Ireland (for a while)
Posts: 166
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #5  
12-17-2003, 11:50 AM
rhino rhino is offline
Free Member
 
Join Date: Jan 2003
Location: Back in Ireland (for a while)
Posts: 166
Thanks: 0
Thanked 0 Times in 0 Posts
@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,
__________________
rhino
Reply With Quote
  #6  
12-17-2003, 12:43 PM
russiansexpat russiansexpat is offline
Free Member
 
Join Date: Nov 2003
Posts: 123
Thanks: 0
Thanked 0 Times in 0 Posts
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.
__________________
are you ready for year 2038?
x+2038-1970 > (2^31+1)/(365.25*24*3600)
/dev/mem < /dev/null
Reply With Quote
  #7  
12-17-2003, 01:28 PM
rhino rhino is offline
Free Member
 
Join Date: Jan 2003
Location: Back in Ireland (for a while)
Posts: 166
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #8  
12-18-2003, 01:11 PM
rhino rhino is offline
Free Member
 
Join Date: Jan 2003
Location: Back in Ireland (for a while)
Posts: 166
Thanks: 0
Thanked 0 Times in 0 Posts
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,
__________________
rhino
Reply With Quote
  #9  
12-18-2003, 03:57 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by rhino
You'll pick up TCL/TK very quickly. Its a fun language for prototyping in.
It is
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
http://incrtcl.sourceforge.net/itcl/

-kwag
Reply With Quote
  #10  
12-18-2003, 05:12 PM
russiansexpat russiansexpat is offline
Free Member
 
Join Date: Nov 2003
Posts: 123
Thanks: 0
Thanked 0 Times in 0 Posts
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.
__________________
are you ready for year 2038?
x+2038-1970 > (2^31+1)/(365.25*24*3600)
/dev/mem < /dev/null
Reply With Quote
  #11  
12-18-2003, 06:50 PM
rhino rhino is offline
Free Member
 
Join Date: Jan 2003
Location: Back in Ireland (for a while)
Posts: 166
Thanks: 0
Thanked 0 Times in 0 Posts
@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.
__________________
rhino
Reply With Quote
  #12  
12-18-2003, 08:35 PM
russiansexpat russiansexpat is offline
Free Member
 
Join Date: Nov 2003
Posts: 123
Thanks: 0
Thanked 0 Times in 0 Posts
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.
__________________
are you ready for year 2038?
x+2038-1970 > (2^31+1)/(365.25*24*3600)
/dev/mem < /dev/null
Reply With Quote
  #13  
01-08-2004, 12:41 PM
rhino rhino is offline
Free Member
 
Join Date: Jan 2003
Location: Back in Ireland (for a while)
Posts: 166
Thanks: 0
Thanked 0 Times in 0 Posts
I'm afraid the GUI will be on hold fora while - too many project deadlines at work over the next couple of months

Sorry,
__________________
rhino
Reply With Quote
  #14  
01-10-2004, 02:15 AM
russiansexpat russiansexpat is offline
Free Member
 
Join Date: Nov 2003
Posts: 123
Thanks: 0
Thanked 0 Times in 0 Posts
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/
__________________
are you ready for year 2038?
x+2038-1970 > (2^31+1)/(365.25*24*3600)
/dev/mem < /dev/null
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
FFMPEG: QuEnc 0.51 Invalid Gop in Tmpenc Dvd Author darkeye Video Encoding and Conversion 5 05-10-2004 03:26 PM
That's what I wanted to hear kwag Off-topic Lounge 0 05-03-2004 04:04 PM
Kvcd guides needed/wanted vdk_au Video Encoding and Conversion 1 02-01-2004 12:30 AM
ffmpegX Contest: test movie wanted... japie Video Encoding and Conversion 0 09-02-2003 10:27 AM
I just wanted to be the first to post :) EightBall Off-topic Lounge 3 09-15-2002 08:21 AM

Thread Tools



 
All times are GMT -5. The time now is 01:23 AM  —  vBulletin Jelsoft Enterprises Ltd