Login
Username:

Password:

remember me

Lost Password?

Register now!

Contact us here.
  Main Menu
   Home
Forums
News
Images
Headlines
Classifieds
Articles
Too Hot to handle
Recent Topics
  Donations
58%
  Content
  Statement of Intent
  Terms Of Service
  IRC Channel
  Poll Manual
  Radio Amigans
  Staff Members
  Article HowTo
  Links
 In cooperation with:
   OS4Depot.net
   OpenAmiga
   OS4Welt
 Other sites:
   AmigaOS4
   IntuitionBase
   UtilityBase
   Amiga Flame
   Amigaspirit
   AmiKit
   Aminet
   AmiBay
   AmigaBounty
   AmigaWorld
   Exec
  Who's Online
17 user(s) are online (11 user(s) are browsing Forums)

Members: 2
Guests: 15

Swoop, gregthecanuck, more...
  Recent OS4 Files
OS4Depot.net
8 Sep pm04:59
 pdfmaker.lha
 utility/script

7 Sep am08:20
 3dstars_nl.lha
 utility/scientific

7 Sep am12:34
 simplesub.lha
 video/misc

  Search

Advanced Search
  Themes

(1 themes)

Browsing this Thread:   1 Anonymous Users


Bottom  Previous Topic  Next Topic  

« 1 (2)

Rigo  [image]
Re: FFmpeg 0.6
Supreme Council

Posts: 870
Posted on: 2010/7/5 11:20:06
@MickJT

Quote:

afxgroup wrote:


#ifdef __AMIGAOS4__
    strcpy(proto_str, "file");
    up = first_protocol;
    while (up != NULL) {
        if (!strcmp(proto_str, up->name))
            return url_open_protocol (puc, up, filename, flags);
        up = up->next;
    }
#endif



The above strcpy call should be replaced with:

strlcpy(proto_str, "file", sizeof(proto_str) );

Using the strcpy() function assumes the destination storage is large enough to take the 4 characters being copied. In this case it is, but it's far safer to check first. If someone changes the size of the proto_str buffer, there is no check when coping to it that it is large enough, and you'll possibly get a DSI if the buffer overruns.

As I said, in this case it won't be a problem, but you should always use length-checking functions to copy strings around (unless you are only copying the pointer to it, of course).

Simon


Offline
_________________
Comments made in any post are personal opinion, and are in no-way representative of any commercial entity unless specifically stated as such.
----
http://codebench.co.uk
Transfer the post to other applications Transfer Top


MickJT  [image]
Re: FFmpeg 0.6
Just popping in

Posts: 198
Posted on: 2010/7/5 11:45:20
@afxgroup

Please test altivec versions if you can.

Edit: Ahh i've forgot to link with libunix. Not important now. Will do later.


Offline
Transfer the post to other applications Transfer Top


ktadd  [image]
Re: FFmpeg 0.6
Just popping in

From:
California, Unitied States
Posts: 223
Posted on: 2010/7/5 15:17:57
Quote:

MickJT wrote:
@ktadd
What do you mean "currently released"? The latest ffmpeg doesn't have support for AMR wideband encoding anymore; Not since they changed to opencore-amr.

I meant the current ffmpeg release on OS4depot supports encoding amr_wb. It doesn't use opencore-amr. It uses libamr-wb.


Offline
Transfer the post to other applications Transfer Top


ktadd  [image]
Re: FFmpeg 0.6
Just popping in

From:
California, Unitied States
Posts: 223
Posted on: 2010/7/5 16:35:31
Quote:

MickJT wrote:
Need testers.

Pretty much everything enabled. ffplay may crash on exit. x264 encoding will require you to use one of the existing preset files. Use -vpre, don't include .ffpreset extension or path name.

I've been playing with x264 (no-altivec) using several different filters and I can't get good results. The resulting videos break up and look horrible. Anyone have any better luck?


Offline
Transfer the post to other applications Transfer Top


MickJT  [image]
Re: FFmpeg 0.6
Just popping in

Posts: 198
Posted on: 2010/7/6 1:19:48
@ktadd

Bit too slow on here for me to really test it out. Give me 12 hours and i'll encode something overnight. Was/Is there any way to encode to H.264 video on the current ffmpeg_ppc on OS4Depot?

What's your command line?

ffmpeg -i input.mp4 -vcodec libx264 -vpre libx264-default-b 2000k -acodec libfaac -ac 2 output.mp4

Edit: Trying something small now. Will play back on PS3 and PC to check results.

Edit2: You're right, it's horrible. As if the bitrate is too low. I don't know if I can do anything about it, but i'll try. I'm aware that ffmpeg 0.6 and libx264 r100 don't like each either. libx264 complains that ffmpeg has broken default settings, making you use one of the presets (is that what you meant by filters?). I could test a windows build, but i'm guessing they've probably fixed up any issues like these already.


Edited by MickJT on 2010/7/6 2:06:12

Offline
Transfer the post to other applications Transfer Top


ktadd  [image]
Re: FFmpeg 0.6
Just popping in

From:
California, Unitied States
Posts: 223
Posted on: 2010/7/6 2:18:54
Quote:

MickJT wrote:
@ktadd
Bit too slow on here for me to really test it out. Give me 12 hours and i'll encode something overnight.

Use the "-t N" command, where N is the duration of the video to code in seconds. This will allow you to test things by only encoding the first N seconds of the video. (ie. -t 20) for the first 20 seconds.

Quote:
Was/Is there any way to encode to H.264 video on the current ffmpeg_ppc on OS4Depot?

Yes. "-vcodec mpeg4" encodes in mpeg4 part 2. This works fine for ipods and such. It also works for your build as well. In your build "-vcodec libxvid" also encodes in mpeg4 part2 and seems to work fine. libx264 encodes in mpeg4 part 10.


Quote:
What's your command line?

I'm using ffmpegGUI and leaving the video codec field set to default, which doesn't issue the -vcodec command, and putting "-vcodec libx264 -vpre libx264-default" in the Additional Option, Output string gadget. The resulting command line is as follows:

ffmpeg" -i "Data:movies/jws.mpeg" -vcodec libx264 -vpre libx264-default -t 12 "Ram:Outfile.mp4"

This uses the default bitrate of 200k which is low but the original video is right around that anyway. Other video codecs work fine with this video.

If you would like I can send you the modified version of ffmpegGUI that you could use for testing. Just PM me with an email address to send it to if you decided you would like to use it.


Offline
Transfer the post to other applications Transfer Top


MickJT  [image]
Re: FFmpeg 0.6
Just popping in

Posts: 198
Posted on: 2010/7/6 2:46:41
@ktadd

Quote:
Yes.


You mean no. MPEG-4 part 2 is not H.264. So there's no H.264 encoding on the one on OS4Depot?

I tried the actual x264 executable (my own, revision 100) to encode a raw h.264 stream (.y4m as input), and it's crappy too. So i'm sure it's not ffmpeg's fault now. I did comment out a piece of code relating to PTHREADs and thread priorities. I'm now disabling pthreads in x264 to see what happens.

Will report back soon!


Offline
Transfer the post to other applications Transfer Top


ktadd  [image]
Re: FFmpeg 0.6
Just popping in

From:
California, Unitied States
Posts: 223
Posted on: 2010/7/6 2:54:41
Quote:

MickJT wrote:
@ktadd
Quote:
Yes.

You mean no. MPEG-4 part 2 is not H.264. So there's no H.264 encoding on the one on OS4Depot?

Ah yes, your correct. I meant no H.264 on the one from OS4Depot. Sorry.

The point I was trying to make is that most devices, like the ipod and PSP which will play back h.264 will also play back videos that are mpeg4. Of course h.264 has better compresson to quality ratio so it would be a nice addition to get working.


Offline
Transfer the post to other applications Transfer Top


MickJT  [image]
Re: FFmpeg 0.6
Just popping in

Posts: 198
Posted on: 2010/7/6 3:13:34
@ktadd

Well, it's got nothing to do with any changed code. After disabling pthreads, there's no changes at all to the source.

Trying the build of x264 on OS4Depot now (not compatible with ffmpeg 0.6, but I can test some encoding). I didn't encode enough of the file to get a good look the first time round. I'll leave it for a while.

Results: x264 (Fredrik's port), bad quality. x264 (my port) even worse quality. Though there's been several changes between the revisions though. I think mine and Fredrik's ports are both bad. Perhaps the altivec code makes all the difference? His port detects and applies the altivec instructions automatically, while mine has it either on or off. So perhaps he never noticed any problems.


Edited by MickJT on 2010/7/6 3:53:05

Offline
Transfer the post to other applications Transfer Top


MickJT  [image]
Re: FFmpeg 0.6
Just popping in

Posts: 198
Posted on: 2010/7/6 7:02:34
I'm compiling libx264 that is 1 library for generic PPC and altivec CPUs, and i'll do the same to ffmpeg. In the end there'll be a static and shared ffmpeg, that will use altivec instructions if you have them. At least that's the plan.


Offline
Transfer the post to other applications Transfer Top


TiredOfLife  [image]
Re: FFmpeg 0.6
Not too shy to talk

Posts: 465
Posted on: 2010/7/22 12:05:32
@ktadd

Did you ever get round to releasing a version of FFmpegGUI that is compatible with FFmpeg 0.6?

Cheers


Offline
Transfer the post to other applications Transfer Top


ktadd  [image]
Re: FFmpeg 0.6
Just popping in

From:
California, Unitied States
Posts: 223
Posted on: 2010/7/28 19:19:05
Quote:

TiredOfLife wrote:
@ktadd

Did you ever get round to releasing a version of FFmpegGUI that is compatible with FFmpeg 0.6?

Cheers

I'll release it this weekend.


Offline
Transfer the post to other applications Transfer Top


acefnq  [image]
Re: FFmpeg 0.6
Quite a regular

Posts: 558
Posted on: 2010/7/29 8:10:38
@ktadd
FFMPEG-GUI release ......MAGGICC! -:)

ace


Offline
Transfer the post to other applications Transfer Top


Tuxedo  [image]
Re: FFmpeg 0.6
Just popping in

Posts: 158
Posted on: 2010/7/29 18:50:47
@ktadd

I use FFMPEG-GUI rather often!

That's a GREAT NEWS!


Offline
_________________
Simone"Tuxedo"Monsignori, Perugia, ITALY.
Transfer the post to other applications Transfer Top


TiredOfLife  [image]
Re: FFmpeg 0.6
Not too shy to talk

Posts: 465
Posted on: 2010/7/29 20:45:50
@ktadd

Thanks mate.


Offline
Transfer the post to other applications Transfer Top



Top  Previous Topic  Next Topic  
« 1 (2)

You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Home
Graphics by Martin "Mason" Merz & Ken "klesterjr" Lester © 2006-2007
Theme by Henning Nielsen Lund & Björn Hagström

Contact the website owners