PDA

View Full Version : Quickest movie converter?? need some of your professional opinions:)


vybe232
03-21-2005, 03:27 PM
Hi guys...ive had my ux50 for about 2 months...and i love it..most functional PDA i have ever used. AND i used to use a motorola MPX...i paid so much for it only to sell it a few wks after...as i didnt like it..the battery life was crap, and the device overall was not as good as it was supposed to be...so now i use the UX50 and a bluetooth phone with edge..works great:)

MY QUESTION:

what is the fastest movie conversion software....often times before business trips i like to convert some movies to watch on the plane...right now im using image converter 2 but it seems to take as long as the movie time to convert...are there any apps that can convert faster than the movie playing time...what is my best option to convert over movies quick.

Thanks guys.

By the way this forum is great for ux info.

djboa
03-21-2005, 03:49 PM
newest beta of ffmpeg is a lot faster than that ... so far the tests I have done at 480x320 are at 2x realtime ... ie half an hour to encode a one hour clip ...

command line interface only at the moment ... so it's probably not what you want :)

other option is 3gpp converter, which is optimized for psp, also based on ffmpeg but uses xvid codec instead of the built in mpeg4 ... it might be a bit quicker than IC2, but not by much ...

haven't seen anything else that converts for the UX ... so if you are not a geek, stick to IC2 for the moment ...

JAmerican
03-21-2005, 04:09 PM
Where to download FFmpeg from?

JAmerican

vybe232
03-21-2005, 04:17 PM
thx djboa...unfortunately i am a geek...ill give ffmpeg a try:)

thx

JAmerican
03-21-2005, 04:22 PM
How do you install this thing???

JAmerican

.PoNeH
03-21-2005, 04:48 PM
IC2 doesn't work for me...I keep getting errors. I use IC1.5 which is slower, but is not a problem since I usually have it encoding while I'm asleep.

JAmerican
03-21-2005, 04:51 PM
I get erros as well as Cannot convert movies or something like that. Not sure why. I've uninstalled and reinstalled and still the same.

JAmerican

.PoNeH
03-21-2005, 04:52 PM
Yup...that was my error also. Just use 1.5. It's the same thing, just 30% slower.

djboa
03-21-2005, 05:53 PM
ffmpeg compiled for for windows ... as minimal as I dared make it.

ffmpeg.exe (http://aabtek.com/files/ffmpeg.exe)

2 pass batch file example:
---
ffmpeg -y -i file.avi -s 446x320 -padleft 14 -padright 20 -b 512 -minrate 0 -maxrate 768 -bufsize 1024 -pass 1 -passlogfile xv_log -muxvb 768 -acodec aac -ac 2 -ar 24000 -ab 32 -f psp file.mp4

ffmpeg -y -i file.avi -s 446x320 -padleft 14 -padright 20 -b 512 -minrate 0 -maxrate 768 -bufsize 1024 -pass 2 -passlogfile xv_log -muxvb 768 -acodec aac -ac 2 -ar 24000 -ab 32 -f psp file.mp4
---

leave out the -pass and -passlogfile stuff for 1 pass

padtop and padbottom works as well if your source is widescreen, you have to work out the dimensions to keep aspect, and pad it up to 480x320 ... at least as far as I know, experiment and let me know ...

Marko
03-21-2005, 06:25 PM
What size processor are you guys using? I just converted a 1hr 26 min film on my P4 in about 30 minutes using IC1.5. :) I think it takes longer to drag it to the card than to convert it! ;)

rcxAsh
03-21-2005, 10:54 PM
Just a question, djboa, what are the benefits of doing the conversion in 2 passes? Quality?

edit Oh also, what version/snapshot of ffmpeg are you using? The last time I tried to convert a 480x320 file, it failed to play on my Clie... Just checking quickly... I think I have 0.4.9-pre1... maybe I should get a newer CVS snapshot? Hmm.. but then again... 320x240 is not terrible.

.PoNeH
03-21-2005, 11:22 PM
Yup, quality is the main benefit. Both in video and audio.

JAmerican
03-21-2005, 11:22 PM
Just a question, djboa, what are the benefits of doing the conversion in 2 passes? Quality?

edit Oh also, what version/snapshot of ffmpeg are you using? The last time I tried to convert a 480x320 file, it failed to play on my Clie... Just checking quickly... I think I have 0.4.9-pre1... maybe I should get a newer CVS snapshot? Hmm.. but then again... 320x240 is not terrible.

Not that great at DOS apps. Can someone tell me the commands for converting a video to 480x320 with ffmpeg and it work on my device. Thanks.

JAmerican

rcxAsh
03-22-2005, 12:26 AM
From what I gather, djboa's examples output 480x320 files?

.PoNeH
03-22-2005, 01:12 AM
I don't understand the first thing on it, but I think you're right.

djboa
03-22-2005, 04:19 AM
rcxAsh - when they first added psp support it was hardcoded to 320x240 ... it isn't anymore ... my version is from 031005, just get the latest cvs build.

there seems to be a lot less freezes on the ux (video stops audio continues) compared to my old way of using 3gpp converter.

My biggest gripe is having to manually edit the proportions to make the aspect ratio match the input ... this ought to be automatic ... so I am seriously looking at how to make a simple interface, or editing ffmpeg to suit my needs ...

djboa
03-22-2005, 06:09 AM
ok, the padding is unnecessary, FMP seems to play resolutions like 480x276 ok, so no need to pad the movie up to 480x320 ...

I am still looking into doing an interface of some sorts ...

lmame
03-22-2005, 10:59 AM
You have quite a few links of existing GUI in the psp thread:
http://www.1src.com/forums/showthread.php?t=75447&page=7&pp=15

For example this software:
http://www.pspvideo9.com/forums/viewtopic.php?t=32

djboa
03-22-2005, 01:22 PM
lmame, as far as I can tell all of them are frontends for 3gpp converter ...

- no way to keep aspect, videos are almost allways stretched on the clie - the psp stretches x and y independantly, so dont know how it handles it ...
- no going above psp spec resolution - ie. no 480x320
- profile based, meaning no independent sound and video quality setting

I see some room for improvement ...

lmame
03-22-2005, 02:41 PM
lmame, as far as I can tell all of them are frontends for 3gpp converter ...

- no way to keep aspect, videos are almost allways stretched on the clie - the psp stretches x and y independantly, so dont know how it handles it ...
- no going above psp spec resolution - ie. no 480x320
- profile based, meaning no independent sound and video quality setting

I see some room for improvement ...

Well, if you do better, I'll be the first to have it :D
But you have to know that you can't (correct me if I'm wrong) make 480x320 movies for Clie or Psp...
In fact, I don't like too this profile system, if you do some kind of tweaking software for ffmpeg, I'm ready to beta test it ;)

djboa
03-22-2005, 03:03 PM
480x320 has been done for a long time on the clie, FMP and IC1.5 with registry editing ...

but you are right, so far it doesn't seem possible on the psp ...

I have started programming ... this is my first windows program, so wish me luck :)

lmame
03-22-2005, 03:12 PM
480x320 has been done for a long time on the clie, FMP and IC1.5 with registry editing ...

but you are right, so far it doesn't seem possible on the psp ...

I have started programming ... this is my first windows program, so wish me luck :)
Indeed :p
Good luck, I'm here if you need a beta tester ;)

JAmerican
03-22-2005, 05:31 PM
Me too. What code u using? I'm a novice VB.NET programmer.

JAmerican

djboa
03-22-2005, 05:39 PM
realbasic ... couldn't figure out what I needed to get vb.net going ...

I have lift off, but it needs a bit tidying up yet :)

rcxAsh
03-22-2005, 09:56 PM
Hope all your projects turn out good! I was thinking about cutting my teeth on wxWidgets and C++ with this. Though, I glanced at a quick tutorial, and got pretty lost after that :eek: lol...

I've used Visual Basic for some 5 or 6 years now. I think it's about time I learned something else... especially since I've since gotten into Linux...

Will be interested to see what kind of front-end you come up with, djboa! If I can convince my computer science teacher to let me study wxWidgets, then maybe I can try making a cross platform version... though... I wouldn't bank on it. lol :p But I would love to if I could gain enough knowledge.

djboa
03-23-2005, 03:51 AM
actually realbasic is crossplatform ... win32, linux and mac ... it will need a bit cleaning up, but should be doable ...

djboa
03-23-2005, 07:15 AM
1st beta of cliemp4converter:
ftp link (ftp://1src:1src@aabtek.com/cliemp4converter.zip)

---
extract to same dir
run cliemp4converter
click open, select movie
if you want size-estimate fill in the length in minutes
play with the settings
click go to start encoding ...
wait for ffmpeg to do its thing ...
output file is saved in the same dir as input file, as a mp4 extension
---

let me know if it works for you all :)

lmame
03-23-2005, 07:48 AM
I tried on a MPEG movie, your software automatically choose output dimensions (426x320) and I can not change it...

The MP4 is playable on Quicktime on Windows, but is weird on my VZ90, sound is ok, but video goes nuts... I'll try with another video source...

djboa
03-23-2005, 07:57 AM
you are using FMP to play right? I don't think mediaplayer supports anything but 320x240 ...

djboa
03-23-2005, 08:00 AM
oops, tried it myself ... definately weird ... I'll look into it ...

lmame
03-23-2005, 08:14 AM
oops, tried it myself ... definately weird ... I'll look into it ...
Yep :)

In fact it is due to the "weird" movie dimensions...
I resized the MPEG in 432x288 (1.5 ratio), then your software has created a 480x320 MP4 file (1.5 ratio) and then it works fine :)

But you need to respect good ratio, not just force the dimensions, perhaps say "this would be the better, but won't be played so choose the output dimensions", and perhaps add some black or something automatically, or crop, I don't know if it's possible...

By the way, it is possible to have 1500 kbps for Psp (for example), you should add it, but then there is a special parameter to lure psp and Clie and make it believe that it is encoded in 768 ;)

Anyway, the sound just before the encoding is funny :D

Keep it up ;)

djboa
03-23-2005, 08:27 AM
actually I am respecting the aspect of the source file, thus the weird dimensions for the clie ... I tried a couple of avi files, and have had no problems with these dimensions without padding up to 480x320 ... padding is just wasting bandwidth/bitrate, so I would rather do without.

my theory at the moment is that it happens when you resize upwards in dimensions, I'm experimenting at the moment ... if that is the case I will definately add padding in those cases ... but your last example is also resized up, so I don't know ... trial and error :)

I'll add higher bitrates, shouldn't be a problem

at the moment this is not minded for psp, I havent figured out the stretching and resize combination, and I don't have one to try it on ... clie mp4 for now ...

the sound ... hehe ... found the command to trigger the windows speech engine, just some fun for the beta :)

djboa
03-23-2005, 09:57 AM
new version, same link ... ftp link (ftp://1src:1src@aabtek.com/cliemp4converter.zip)

it still seems to me as if the error comes when resizing upwards, in those cases it is fixed by padding.

- would love to be verified or proven wrong!

you can input any value you like in both dimensions and bitrates, and the tweak to go beyond 768 is automatically applied ... the values in the dropdowns are just the most practical ones ... so finetune bitrates to a specific size or super quality ...

lmame
03-23-2005, 10:40 AM
new version, same link ... ftp link (ftp://1src:1src@aabtek.com/cliemp4converter.zip)

it still seems to me as if the error comes when resizing upwards, in those cases it is fixed by padding.

- would love to be verified or proven wrong!

you can input any value you like in both dimensions and bitrates, and the tweak to go beyond 768 is automatically applied ... the values in the dropdowns are just the most practical ones ... so finetune bitrates to a specific size or super quality ...

I confirm padding is working ;)
I confirm also that the tweak for the video bitrate is working ;)

I'll try some weird resolutions for Psp tonight, but I prefer your tool rather those "too complicate profiles" ones :) Good GUI :D

djboa
03-23-2005, 10:46 AM
thanks, I would like to remove the pad button, and make it automatically pad when necessary ...

so unless you or somebody else can make weird playing files on resize down, I will make padding automatic on resize up and remove the setting ...

lmame
03-23-2005, 12:24 PM
thanks, I would like to remove the pad button, and make it automatically pad when necessary ...

so unless you or somebody else can make weird playing files on resize down, I will make padding automatic on resize up and remove the setting ...

Well...
Perhaps no, or make a "expert" tab or something, because on psp, you can't have 480x320 files... It's a weird resolution, like 480x160 because it seems that on psp you can't exceed 76800 pixels...
So if you pad automatically for 480x320, it will be perfect for Clie, but not for Psp...

Or then perhaps make 2 tabs, one for Psp ratio, another for Clie ratio, and one "expert" version...

Or just one, but with choices like:
Clie / psp 320x240
Psp 416x176
Psp 480x160
Clie 480x320
with auto padding

and just a expert place with: your parameters: ... x ... and auto padding to those settings...

djboa
03-23-2005, 12:47 PM
ok, new version with your psp res added ... still selectable padding ...

be aware that the psp stretches non standard resolutions, and I do not take this into account ... so this can be optimized much better for the psp ... and I guess we're on the way to doing just that arent we :)

lmame
03-23-2005, 12:53 PM
Okey, I tried to encode a "big" Mpeg file (like 1024x944 pixels), and no problem to convert to 480x320 checking the "pad" option ;)

lmame
03-23-2005, 12:56 PM
ok, new version with your psp res added ... still selectable padding ...

be aware that the psp stretches non standard resolutions, and I do not take this into account ... so this can be optimized much better for the psp ... and I guess we're on the way to doing just that arent we :)

Yes ;)

I'll check the psp settings this evening.

djboa
03-23-2005, 01:14 PM
try all kinds of movies without pad and note down which ones are having problems ... if we can find a pattern we can eliminite padding where it isn't needed.

padding uses some bits in the encoding and the quality will therefore be better where there isn't any padding, so I would like to only use padding as a last resort where it is absolutely needed.

everything should work with padding, I'm more interested in what does not work without it ...

anyway all betatesting is very much appreciated!

djboa
03-24-2005, 09:56 AM
ftp link (ftp://1src:1src@aabtek.com/cliemp4converter.zip)
New version:
lmame - I found a psp resolution that is stretched uniformly in both x and y, so it should keep the correct aspect if padding is on ... I have replaced your resolutions since I can't think through how to get correct asspect with them ... could you check that it works all right?

lmame
03-24-2005, 10:23 AM
ftp link (ftp://1src:1src@aabtek.com/cliemp4converter.zip)
New version:
lmame - I found a psp resolution that is stretched uniformly in both x and y, so it should keep the correct aspect if padding is on ... I have replaced your resolutions since I can't think through how to get correct asspect with them ... could you check that it works all right?

I'll try it tonight, for the moment I'm beta testing Microquad on psp ;)

rcxAsh
03-24-2005, 10:44 AM
Wow! Looks cool djboa! Nice and simple. Nice job.

A couple things. Could I take the Linux version for a spin? And second, in future versions, would you consider putting in a sort of batch conversion? This is what I still like about the command line... I can just make a bash/batch script and leave it over night to churn out stuff.

JAmerican
03-24-2005, 06:57 PM
Umm, is there any way to make my videos full screen or any videos full screen on the UX. I'm tired of the black spaces.

Have 320x340 vids.

EDIT: I used your app and changed the Res of my video so it would fit 480x320 but now FMP doesn't show the mp4 in the list.

JAmerican

loki2486
03-24-2005, 11:26 PM
ok, I'm the "not a geek" user

1. Downloaded the file
2. extracted and placed file in desktop destination.
3. ran the "cliemp4converter" and selected a mpeg file
4. input the video size and duration
5. clicked on go

got a message that window cannot find the ffmeg.exe

What am I doing wrong?

Thanks in advance

JAmerican
03-24-2005, 11:30 PM
ok, I'm the "not a geek" user

1. Downloaded the file
2. extracted and placed file in desktop destination.
3. ran the "cliemp4converter" and selected a mpeg file
4. input the video size and duration
5. clicked on go

got a message that window cannot find the ffmeg.exe

What am I doing wrong?

Thanks in advance

You need to extract both ClieMP4Convertor.exe and ffmpeg.exe to desktop or a folder and use the convertor with it in that same folder.

JAmerican

vybe232
03-25-2005, 02:03 AM
thanks for all the replies guys....

how do i know how long the file will take to convert?

.PoNeH
03-25-2005, 02:06 AM
I don't remmeber, but there might be an estimated time left once decoding begins...I don't remember though...otherwise you really can't tell.

vybe232
03-25-2005, 02:08 AM
there is a time value..but its increasing :D....so cant really estimate how long itll take...i wonder if this is quicker than converting with IC2....regardless great work! djboa

vybe232
03-25-2005, 02:24 AM
DJBOA:

is there anyway for you to be able to add a function so i can queue a bunch of movies instead of having to encode 1 at a time...

great wrk again.
thx

djboa
03-25-2005, 03:55 AM
queuing should be very simple to do, just a matter of adding more movies to the bat-file before launching it ... it's the next thing i'm gonna implement.

but first I want to be sure everything works right ...

loki - did extracting both files fix your troubles?

vybe - once ffmpeg starts it shows how far it is in the movie, both in frames and in seconds ... time how long it takes for ffmpeg to convert 60 seconds of movie and multiply by how long the movie is ... multiply by two if 2-pass ... and you have the total time for the conversion ... realbasic doesn't have great integration with windows shell, so I have no way to read ffmpegs output in the program ...

jamerican - not showing up in fmp? - check the final filename, if you convert ".mpeg" files you will have two "." ... delete one of them and it will work in FMP ... rename your .mpeg files to .mpg before converting and you will never see this error again :) - btw black spaces is the specialty of my program - I absolutely hate watching anything with wrong aspect, so it will give you the res that fits your input resolution ... you are free to overrule, just write 480x320 in the dimensions field and press go, and you will get stretched output ...

rcxash - I'm on the way out the door ... I will compile for linux tomorrow ... hope bash/batch scripts are as simple as on windows ... hopefully I just have to omit the "launch /low" part of the scripting.

thanks for the nice words guys ... keep telling me whats wrong, or could be done better :)

btw: if somebody has some special settings for ffmpeg that improves quality other than 2pass, let me know and I will add them ...

JAmerican
03-25-2005, 09:21 AM
It worked... thanks

Result...
http://jamerican.net/1src/MyPlace.png

JAmerican

rcxAsh
03-25-2005, 10:27 AM
queuing should be very simple to do, just a matter of adding more movies to the bat-file before launching it ... it's the next thing i'm gonna implement.

rcxash - I'm on the way out the door ... I will compile for linux tomorrow ... hope bash/batch scripts are as simple as on windows ... hopefully I just have to omit the "launch /low" part of the scripting.
Cool, looking forward to trying it! Oh and btw, batch scripts are the windows bat files (as you already know). Bash scripts... are really just one type of Linux shell script. Shell scripts are like batch files.

Essentially, using shell scripts or batch files, I could easily queue up files for overnight conversion. Since you write that you're using a bat file, then that should be what I was talking about I guess.

JAmerican
03-25-2005, 10:59 AM
Can you add a control for converting vids to MQV.

JAmerican

djboa
03-25-2005, 11:12 AM
no mqv's ... I have no idea how to make that format, and it is not supported by ffmpeg ... this program is just a frontend to ffmpeg which does all the converting ... if mqv's where added to ffmpeg, it would take me 5 minutes to add support for it on my end.

rcxash - I will see if I can get some programming done in the next hours - is there a specific extension to use for bash scripts or some commands that should be neccessary? and btw you will have to add your own compiled ffmpeg, I can't compile it for linux ... I think the latest cvs version should be fine.

rcxAsh
03-25-2005, 11:59 AM
no mqv's ... I have no idea how to make that format, and it is not supported by ffmpeg ... this program is just a frontend to ffmpeg which does all the converting ... if mqv's where added to ffmpeg, it would take me 5 minutes to add support for it on my end.
Yeh, I tried asking about MQV files a while back in the Gentoo forums.. no replies. This is why I got so excited with the 3GP Convertor's ffmpeg modifications and the MP4 format.
rcxash - I will see if I can get some programming done in the next hours - is there a specific extension to use for bash scripts or some commands that should be neccessary? and btw you will have to add your own compiled ffmpeg, I can't compile it for linux ... I think the latest cvs version should be fine.
Um, I've never used RealBasic before, so I'm not sure what you would do... but, for example, if you have a Windows batch file like this:
ffmpeg -i input.avi -f psp -r 14.985 -s 320x240 -b 768 -ar 24000 -ab 32 output.mp4
Then the Linux equivelant is pretty much the same. However, I think it's convention to add a line like this:
#!/bin/bash
ffmpeg -i input.avi -f psp -r 14.985 -s 320x240 -b 768 -ar 24000 -ab 32 output.mp4
This identifies what program should be used to execute the script. Eg, sometimes you could have python or perl I think. However, it seems that if you don't specify anything, at least in bash, it will automatically assume that it is a bash shell script. (I rarely put #!/bin/bash in my scripts, but perhaps it would be a good idea, because not everyone uses bash as their shell)

Also, one thing that I'm not sure about how it would work.. but I'm assuming that in your program, it runs the ffmpeg executable that is in the application's directory? In Linux, most people would probably have the ffmpeg binary installed in a directory that is included in their path environment. Ie, you can run ffmpeg from any directory. Just type ffmpeg and it goes. Not sure how that will affect your code...

If it starts getting too complicated.. then don't worry too much about it. I was just wondering.

Thanks again djboa :)

mikeux50
03-25-2005, 01:01 PM
got a few questions...

do you guys use this to convert a dvd. if so, what do you use to covert the dvd to an mpeg?

also, is there a zip that contains all the codecs i need in order to play these MP4 movies.

what does the Two Pass and Pad options do?


thanks

timbdotus
03-25-2005, 01:36 PM
I've finally gotten movies converting from Mac OS X to my UX-50. There is a nice little application called FFMpegX, it puts an entire GUI around FFMPEG, really great stuff, anyway, they have a PSP Preset, which works great. Just drag ANY source file to the window, VOB, AVI, MOV, anything, select PSP, hit convert, and you're good as gold.

-Timothy

djboa
03-25-2005, 02:09 PM
mikeux50 - no you use something else to rip a dvd into the computer ... either just the vobs into one big vob - should be convertable with this program ... or one of your standard dvd backup tools into divx or whatever ... regarding playing mp4 on the ux ... do a search for FMP by CliePet ... thats what you want. two pass, runs the encoding twice, the second pass the codec knows how to optimize so action parts get more kbits, and the boring bits get less, thus more uniform quality throughout, takes twice as long - and is mostly considered a good thing. Pad adds black bars to the movie up to the target resolution, its safe to add it at all times, but it wastes kbits, so the quality will be a little lower ... I will make the pad feature disappear once I figure out where it isn't needed.

timbdotus - unless you know something I dont, ffmpegx's psp preset is limited to 320x240 at maximum 450kbps, that is what their webpage says ... if that is good enough for you, fine. This is also ffmpeg, so should be able to convert the same as ffmpegx.

djboa
03-25-2005, 03:00 PM
linux version (ftp://1src:1src@aabtek.com/cliemp4converter.lnx) - program only, bring your own ffmpeg :)

rcxash - let me know if anything works, or even if the gui comes up ...

edit - had to put an extension otherwise my ftpserver thought it was a directory and failed the download ... in the future would rar be ok for linux deployment?

timbdotus
03-25-2005, 03:04 PM
Nope, the preset defaults to that, but you can freely change the resolution and bitrate. I was able to encode at 512kbps no problems.

-Timothy

djboa
03-25-2005, 03:26 PM
ok, great then - just read it like that on their webpage ...

regarding PSP ... please try different framerate videos, I keep the framerate from the original, but I think the PSP might have problems with that ...

rcxAsh
03-25-2005, 03:26 PM
Hey cool! It starts up fine! Uses gtk+2 as the toolkit, and looks great:
http://rcxash.ath.cx/~ashley/sshot.djboa.mp4.01.jpg

However. It does not convert.

I forgot to tell you, Linux uses permissions to determine whether or not a file is executable. This includes scripts.

So, when you create the file temp.bat, you need to change the permissions of the file to allow it to be executed.

For the Linux version, you should make your program execute this before it tries to run temp.bat:
chmod u+x temp.bat

Once ffmpeg is called properly, I don't see anything else that should be wrong with it!

Looks great djboa! :)

djboa
03-25-2005, 03:37 PM
wow, looks great on linux ... new linux version same link, added chmod .... gogogo :)

vybe232
03-25-2005, 03:57 PM
is anyone getting a "failed to render file" once the output file is created...wierd i cant play it on my computer...and thus not on the ux...tried to convert an .avi file...twice same error...hmmmmm wonder why.

djboa
03-25-2005, 04:05 PM
I'm guessing you dont have quicktime installed - windows media player don't like mp4's ... and vz codecs on the UX, not enough with FMP ... use da search ...

JAmerican
03-25-2005, 04:06 PM
Wow linux looks cool but too much of a WinHead.

JAmerican

rcxAsh
03-25-2005, 04:11 PM
wow, looks great on linux ... new linux version same link, added chmod .... gogogo :)
Yay, script executes now.

But, ahh, sorry, now a few another things. I guess I didn't take a good enough look at the bat file generated. But you should remove the .exe extension when you call ffmpeg.

Second, it seems that the option buttons you have.. they're not respecting the frames you set up. Eg, I can't select both a target resolution and output audio (stereo vs mono).

Also, when you select a target resoluion, should the Dimensions text box be updated? For me, when I select a resolution, the Dimensions box goes to 0x0.

And one more thing... you put a cd "/home/" into the script. Not sure what it's for. Was just wondering.

I just fixed the script that your program generated (changing the ffmpeg.exe to ffmpeg) and ran it manually. Currently churning away!

Sorry to make you do it again, djboa! But thanks again!
Wow linux looks cool but too much of a WinHead.

JAmerican
Haha :) But I guess.. it's better to use what you like using. Looks don't do very much when you don't like using it as much I guess.

djboa's program just looks nicer on Linux because it uses the gtk2 toolkit to draw everything. Thus, it follows whatever skin I'm using. If I left the default skin on, it would look pretty ugly. ;)

djboa
03-25-2005, 04:25 PM
ok, almost there then ...

- ok, ill remove the .exe ... give me a few minutes ...
- the radiobuttons/framestuff might not be so easy to fix ... it works on windows, but I will have a look in the realbasic forum and see if there is a workaround or something ...
- resolutions - does it update the input dimensions boxes when you load a movie, if it doesn't you will have to update them yourself ... this is a cop-out since ffmpeg probably understands more movie formats than the quicktime embedded in realbasic.
- the cd home is a leftover from the windows bat where it goes to the dir the program was run from, to make sure it can find ffmpeg - i'll remove it from the linux version.

ok, get the new linux version now ... don't mind the qeue management buttons, no functionality yet :) (cd home and .exe is fixed)

timbdotus
03-25-2005, 04:26 PM
Got FFMpeg compiled from CVS on Mac OS X /w XVID, seems to work well, I might make a app that wraps it for insta CLIE conversion, maybe integrate DeCss into it, for full Drop'n'Go DVD support.

-Timothy

djboa
03-25-2005, 04:28 PM
hey timbdotus ... I can compile for mac if you like? ... will probably have to make some small changes like for the linux version ... but if you are interested, lets work it ...

timbdotus
03-25-2005, 04:51 PM
Sure, it's worth a try.

-Timothy

djboa
03-25-2005, 05:07 PM
mac alpha ftp link (ftp://1src:1src@aabtek.com/ClieMp4Converter-mac.zip) - os x only, yell if you need something more backwards compatible, and its zipped, I can rar instead if that is better but im not sure stuffit is available for windows?
I have it set to do exactly the same as the linux version regarding writing batch jobs and launching them ... try it please

JAmerican
03-25-2005, 05:24 PM
Yay, script executes now.

But, ahh, sorry, now a few another things. I guess I didn't take a good enough look at the bat file generated. But you should remove the .exe extension when you call ffmpeg.

Second, it seems that the option buttons you have.. they're not respecting the frames you set up. Eg, I can't select both a target resolution and output audio (stereo vs mono).

Also, when you select a target resoluion, should the Dimensions text box be updated? For me, when I select a resolution, the Dimensions box goes to 0x0.

And one more thing... you put a cd "/home/" into the script. Not sure what it's for. Was just wondering.

I just fixed the script that your program generated (changing the ffmpeg.exe to ffmpeg) and ran it manually. Currently churning away!

Sorry to make you do it again, djboa! But thanks again!

Haha :) But I guess.. it's better to use what you like using. Looks don't do very much when you don't like using it as much I guess.

djboa's program just looks nicer on Linux because it uses the gtk2 toolkit to draw everything. Thus, it follows whatever skin I'm using. If I left the default skin on, it would look pretty ugly. ;)

This is off topic but...

This is what my desktop looks like...

March Desktop (http://jamerican.net/1src/desktop-March.JPG)

...and yea, its Windows XP. :) :D The original themes sucked.

JAmerican

timbdotus
03-25-2005, 10:53 PM
Bounces in the dock, then quits, here's what I get in the system Console:

===== Fri Mar 25 2005 ===== 23:50:56 US/Eastern =====
Mar 25 23:50:59 kyoko crashdump: Unable to determine CPSProcessSerNum pid: 2719 name: ClieMp4Converter
Mar 25 23:50:59 kyoko crashdump: Started writing crash report to: /Users/timb/Library/Logs/CrashReporter/ClieMp4Converter.crash.log
Mar 25 23:50:59 kyoko crashdump: Finished writing crash report to: /Users/timb/Library/Logs/CrashReporter/ClieMp4Converter.crash.log

Then from the crash.log:
**********

Host Name: kyoko.local
Date/Time: 2005-03-25 23:52:40 -0500
OS Version: 10.3.8 (Build 7U16)
Report Version: 2

Command: ClieMp4Converter
Path: /Users/timb/Desktop/ClieMp4Converter.app/Contents/MacOS/ClieMp4Converter
Version: ??? (???)
PID: 2723
Thread: 0

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x58c51552

Thread 0 Crashed:
0 dyld 0x8fe1282c _dyld_func_lookup + 0x54
1 ??? 0x0000b7ec _call_mod_init_funcs + 0x38
2 ??? 0x0000b898 _start + 0x8c
3 ??? 0x0000b794 start + 0x30

PPC Thread State:
srr0: 0x8fe1282c srr1: 0x0000f030 vrsave: 0x00000000
cr: 0x24000028 xer: 0x00000000 lr: 0x0000b7ec ctr: 0x8fe127d8
r0: 0x0000005f r1: 0xbffffdc0 r2: 0x58c51551 r3: 0x58c51552
r4: 0xbffffdf8 r5: 0x8fe127e0 r6: 0x8fe505fc r7: 0x8fe505fc
r8: 0x8fe505fc r9: 0x8fe48a24 r10: 0x00000000 r11: 0x8fe127d8
r12: 0x8fe135ac r13: 0x00000000 r14: 0x00000000 r15: 0x00000000
r16: 0x00000000 r17: 0x00000000 r18: 0x00000000 r19: 0x00000000
r20: 0x00000000 r21: 0x00000000 r22: 0x00000000 r23: 0x00000000
r24: 0x00000000 r25: 0x00000000 r26: 0xbffffe8c r27: 0x0000000c
r28: 0xbffffe90 r29: 0x00000002 r30: 0x00001000 r31: 0x00000000

Binary Images Description:
0x1000 - 0xdfff ??? /Users/timb/Desktop/ClieMp4Converter.app/Contents/MacOS/ClieMp4Converter
0x44a000 - 0x59afff rbframework.dylib /Users/timb/Desktop/ClieMp4Converter.app/Contents/MacOS/rbframework.dylib
0x8fe00000 - 0x8fe4ffff dyld /usr/lib/dyld
0x90000000 - 0x90122fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x90190000 - 0x9023dfff com.apple.CoreFoundation 6.3.6 (299.33) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x90280000 - 0x904f9fff com.apple.CoreServices.CarbonCore 10.3.6 (10.3.5) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90570000 - 0x905dffff com.apple.framework.IOKit 1.3.6 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90610000 - 0x9069afff com.apple.CoreServices.OSServices 3.0.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x90700000 - 0x90700fff com.apple.CoreServices 10.3 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x90720000 - 0x90787fff com.apple.audio.CoreAudio 2.1.2 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x907f0000 - 0x907f9fff com.apple.DiskArbitration 2.0.4 /System/Library/PrivateFrameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x90810000 - 0x90810fff com.apple.ApplicationServices 1.0 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x90910000 - 0x90983fff com.apple.DesktopServices 1.2.2 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x90d00000 - 0x90d1bfff com.apple.SystemConfiguration 1.7.1 (???) /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x90d40000 - 0x90d40fff com.apple.Carbon 10.3 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x910b0000 - 0x91101fff com.apple.bom 1.2.5 (63.2) /System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
0x912a0000 - 0x912bdfff com.apple.audio.SoundManager 3.8 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x912e0000 - 0x912f7fff com.apple.LangAnalysis 1.5.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x91320000 - 0x913dffff ColorSync /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x91460000 - 0x91473fff com.apple.speech.synthesis.framework 3.2 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x914a0000 - 0x91509fff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x91560000 - 0x91619fff com.apple.QD 3.4.65 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x91670000 - 0x916a8fff com.apple.AE 1.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x916e0000 - 0x91773fff com.apple.print.framework.PrintCore 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x917e0000 - 0x917f0fff com.apple.speech.recognition.framework 3.3 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x91810000 - 0x9182afff com.apple.openscripting 1.2.1 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x91850000 - 0x91860fff com.apple.ImageCapture 2.1.5 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x91890000 - 0x9189cfff com.apple.help 1.0.1 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x918c0000 - 0x918cdfff com.apple.CommonPanels 1.2.1 (1.0) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x918f0000 - 0x9193efff com.apple.print.framework.Print 3.3 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x91990000 - 0x9199bfff com.apple.securityhi 1.2 (90) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x919c0000 - 0x91a33fff com.apple.NavigationServices 3.3.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x91ab0000 - 0x91ac4fff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x91ae0000 - 0x91aebfff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x91b10000 - 0x91b2afff libPDFRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libPDFRIP.A.dylib
0x91b50000 - 0x91b5ffff libPSRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libPSRIP.A.dylib
0x91b80000 - 0x91b93fff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x91bb0000 - 0x91d45fff com.apple.QuickTime 6.5.2 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
0x92070000 - 0x92096fff com.apple.FindByContent 1.4 (1.2) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x920c0000 - 0x922a7fff com.apple.security 2.3 (176) /System/Library/Frameworks/Security.framework/Versions/A/Security
0x92430000 - 0x92468fff com.apple.LaunchServices 10.3.5 (98.4) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x92740000 - 0x92777fff com.apple.CFNetwork 1.2.1 (7) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x927d0000 - 0x92b54fff com.apple.HIToolbox 1.3.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x92d30000 - 0x92d80fff com.apple.HIServices 1.4.1 (0.0.1d1) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x935d0000 - 0x938a8fff com.apple.CoreGraphics 1.203.30 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x939a0000 - 0x939b4fff libcups.2.dylib /usr/lib/libcups.2.dylib
0x939d0000 - 0x939d4fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
0x94060000 - 0x94078fff com.apple.WebServices 1.1.1 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x945b0000 - 0x945b9fff libz.1.dylib /usr/lib/libz.1.dylib
0x94610000 - 0x9462afff libresolv.9.dylib /usr/lib/libresolv.9.dylib
0x94650000 - 0x946affff com.apple.SearchKit 1.0.2 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x94b20000 - 0x94badfff com.apple.ink.framework 101.1.3 (55.10) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x968d0000 - 0x969b2fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x96a20000 - 0x96ae2fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
0x96b40000 - 0x96b6efff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib
0x96bf0000 - 0x96c7ffff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x97510000 - 0x97518fff libbsm.dylib /usr/lib/libbsm.dylib

rcxAsh
03-25-2005, 11:31 PM
ok, almost there then ...

- ok, ill remove the .exe ... give me a few minutes ...
- the radiobuttons/framestuff might not be so easy to fix ... it works on windows, but I will have a look in the realbasic forum and see if there is a workaround or something ...
- resolutions - does it update the input dimensions boxes when you load a movie, if it doesn't you will have to update them yourself ... this is a cop-out since ffmpeg probably understands more movie formats than the quicktime embedded in realbasic.
- the cd home is a leftover from the windows bat where it goes to the dir the program was run from, to make sure it can find ffmpeg - i'll remove it from the linux version.

ok, get the new linux version now ... don't mind the qeue management buttons, no functionality yet :) (cd home and .exe is fixed)
Ah, I see. No, it doesn't update the input dimensions when I load the file. Have to enter those manually.

I just tried out the latest version. After entering the dimensions manually, I click convert. I then get an error number 2. Acknowledge it.. and soon, I see ffmpeg starting, printing it's output to the terminal that I launched the program from.

So other than an error that doesn't seem to do/mean anything, it calls ffmpeg a-ok. (Oh, it also doesn't clean up it's temp.bat file, but that's not a big deal for the current level of convenience it offers)

The thing, however, is that if you don't launch the program from a place where you can watch the output, you won't really know what's going on with the conversion. Eg, you won't know when it's done. But other then that, and the radio buttons not respecting the frames, it's working ok!

So maybe, linux users, if you want to add this program to your WM's menu or something... you should probably use a command like this instead:
xterm -e cliemp4converter.lnx
Where xterm is your terminal of choice, and cliemp4converter.lnx is where you have put djboa's binary. This way, you'll see the terminal output.

Nifty indeed. If I ever get an excuse to learn some new programming stuff, maybe I could try to make a more fully featured Linux version (eg, it would load the dimensions of the file properly; I know what program to use for this, just don't know how to call it and read the output). It will be a nifty (and supposively simple) project to cut my teeth on regardless..

Either way, your program will be very useful for when I want to do a quick video conversion! Thanks djboa! The executable is a little large for what it does, but, I can spare 2MB.
This is off topic but...

This is what my desktop looks like...

March Desktop (http://jamerican.net/1src/desktop-March.JPG)

...and yea, its Windows XP. :) :D The original themes sucked.

JAmerican
Hehe, nice ;)

LittleBuddy
03-28-2005, 02:29 PM
I did not read this entire post, but did you look at the first thread in the video section.

vybe232
03-28-2005, 03:01 PM
Littlebuddy:

is there a program you know that does a quick mp4 convert?

palin
03-29-2005, 09:48 PM
djboa,

Thank you for letting me know your wonderful program in Video Forum.
You conquered 76800 limitation! Hooray!

If you allow me to make few little suggestions........

1, High Quality Mode
FFMPEG has -hq mode natively. For me, it seems it does really a good job to
make beautiful movies.
Can you pls add on a option for HQ? I believe it's easy task for you :).

2, Over 768bps encode
I don't know it nessesary or not..... For PSP, it's a must-have, but for Clies,
no use cause too heavy for them. It's up to your target. If you try to stick
with conversions for Clies, it's not necessary.

3, Xvid Encoding
Xvid is really time consuming, but also really wonderful if you can chose
mpeg4 enconding or Xvid encoding.
To be honest, If I encode movies for PSP over 1200bps, I may not be able
to tell you which is which. But under 768bps, quality is very different.
I think you already think about it, aren't you?

4. AVS file acceptable
It sounds a bit geeky, but for me this feature is a must-have for Clies.
Because of their dark display, I always adjust lumination and saturation
by using avs frameserve. It's fast and good in quality.
I found a option for lumination in FFMPEG but couldn't find it for saturaion.
Moreover, you can convert almost all type of format which Direct Show
Filter accepts (like wmv, real media--bit trickey though--, vob, etc.) by
using it.
I made fakeavi by makeavis.exe and gave it to your program, it's refused.

FFmpeg in 3gp converter is not a normal one. It's tuned for Clie/PSP MP4
beautifuly, like avs OK or Xvid encoding etc. That's why it's not only a
front end program:).

Anyway, thanks again for your big effort! I'll keep watching ClieMP4Converter!!!!

djboa
03-30-2005, 12:34 PM
palin - thanks for your suggestions I have answered in the dedicated thread so I can keep all the future feedback in mostly together:
http://www.1src.com/forums/showthread.php?t=83800&page=2