Log in

View Full Version : Free Smart Cutter for AVCHD and MPEG2 in PS/TS(M2TS)


guodongzhe
15th July 2009, 08:03
It is a FREE tool. It supports frame accurate cutting. Especially, It only re-encodes gop on the in and out point, leaving middle part untouched. So it can cut movie fast while reserving video quality.

Setup:
Download, Decompress the .rar, Run. No installation, It is a portable version.

[links deleted due to GPL violations]

Usage:
Press 'Open', select a .ts .m2ts .mpg .vob file
use long slider to seek
use short slider to find frame accuratly
use '<|'or '|>'to single step forward or back.
set in point by 'New Start Point'
set out point by 'New End Point'
Press Red Circle Button, show cut dialog
Press 'Convert', it will be running

Fame also gives a sample HD m2ts (avchd) clip, with time code on each frame, it is useful for a frame accurate test.

http://www.fame-ring.com/tc1440x1080p_H264.m2ts

Further Notice:
You can send any question to my mail box.

morediscovery@yahoo.com

I may not reply quickly, but I'd like to improve this, may be it could be more useful.

This is a beta version, so do not blame the bugs.

Bugs are innocent, God made them, through my hands.
:)

Guest
15th July 2009, 14:05
What are you using to encode AVC video?

I opened your test file, set a new start point and converted. Result: the application crashed.

guodongzhe
15th July 2009, 14:27
I have no decoder nor encoder in here. I use encoder from fame, they gave me encoding functions for mpeg2 and avc(264). Actually I am not satisfied with that encoder, it lacks many detailed parameter settings I knew from other encoders. Since I only need one gop encoding, it is okay.

Here is the tech procedure:
I only wrote functions of packet stream manipulation.
User seek and set points in the fame user interface, then the ui tell me in and out point.

I parse the stream, found first gop, decide start point of re-encode. Call fame decoder to start and pause at in point, call fame encoder to generate a new gop, called pre-part gop. I call the original movie after first gop as middle-part.

Then I link pre-part to middle-part.

Same work to last gop. That's it.

May be I could find other decoder and encoder, then I can wrote the application all by my self. But that will cost time. And, I will have to build the user interface by my self, I am not very good at that.

Ventolin
15th July 2009, 14:32
This would not allow me to edit h.264 .ts (BBCHD) without re-encoding.

I would not call this a "smart" editor.

Regards,

Vent

guodongzhe
15th July 2009, 14:37
could you please tell me the time code of the start point? It is right on the picture. thank you.

Guest
15th July 2009, 14:41
I have no decoder nor encoder in here. I use encoder from fame, they gave me encoding functions for mpeg2 and avc(264). Is it included in the executable you delivered for the cutter or does it need to be installed separately?

What is your connection to fame?

Time code used was 1;14. I set only a new start point and then convert.

Guest
15th July 2009, 14:44
This would not allow me to edit h.264 .ts (BBCHD) without re-encoding.

I would not call this a "smart" editor.
Why do you say that? If it does what he says it is smart in that only the GOPs at the start and end cuts are re-encoded.

guodongzhe
15th July 2009, 14:59
They told me that no more installtion needed. So the decoder and encoder should be in the .exe file.

I used to be working on some projects of mpeg2 codec. Years ago I wrote similar applications on mpeg2, which only re-encode first and last gop, but middle-part untouched.

Now it looks 264 is very popular, but I have no much experiece on it. I learned the 264 standard, especially from your idea of random access(thank you)! I wrote this cut routines as a .obj(static link), but I have no time for a user interface or decoder or encoder.

Fame has a movie browser, I use that for my tv playback station project, I need not to purchase it, becuase I never encode any thing in that browser. It looks they have decoder and encoder for both 264 and mpeg2, and a quick cutting user inter face, just what I need.

I discussed this with them, they gave some decoder and encoder functions call protype, they promised to build this as a free version.

Guest
15th July 2009, 15:05
They told me that no more installtion needed. So the decoder and encoder should be in the .exe file. So you did not make the exe file?

I wrote this cut routines as a .obj(static link), but I have no time for a user interface or decoder or encoder.

...

I discussed this with them, they gave some decoder and encoder functions call protype, they promised to build this as a free version. So fame built this? I can't understand what functionality is in the obj you say you created if it lacks gui, decoding, and encoding. What is left?

Are you unable to debug issues because you didn't create the full application?

Again, what is your connection to fame?

guodongzhe
15th July 2009, 15:06
"Time code used was 1;14. I set only a new start point and then convert. "

I retested this point, it runs okay on my computer.
I am using Vista Home Basic, how about you?

Guest
15th July 2009, 15:07
Xp sp3.

guodongzhe
15th July 2009, 15:14
So you did not make the exe file?

So fame built this?

Are you unable to debug issues because you didn't create the full application?

Again, what is your connection to fame?

No connection.

Yes, I did not built the application. I only sent out my .obj to them, along with a header file about how to call the functions in .obj. I use a Winhex to decide frame number as in point, looks stupid, aha? Actually, I also use elecard analyser.

I can debug with my command line test suite. Using start point (pts time code) as input.

Guest
15th July 2009, 15:23
It all sounds very fishy. Still, if it can be made to work it will be very much appreciated by the community. Looking forward to the results of your debugging efforts.

guodongzhe
15th July 2009, 15:37
It all sounds very fishy. Still, if it can be made to work it will be very much appreciated by the community. Looking forward to the results of your debugging efforts.

Perhaps I should release another version with my own decoder and encoder, in my old ugly user interface.

1;14 on xp sp2 runs okay too. may be I should find a xp sp3.

it's late night in my city, see ya.

Thank you for the sei recovery point I frame article.

My old app on mpeg2 was stable. So I think this new one should be working any way.

Still, mercy the bugs God made.

Guest
15th July 2009, 15:46
I'm sure you will get other test results here.

Maybe there is something needed from the other fame products?

Ventolin
15th July 2009, 15:47
Why do you say that? If it does what he says it is smart in that only the GOPs at the start and end cuts are re-encoded.

It re-encoded the whole edit. To me that does not make it a smart editor - "it did not do what it said on the tin".

My 3 second cut did not play back either.

I didn't test mpeg2, just h.264.

Regards,

Vent

Ventolin
15th July 2009, 15:54
Looks like the H.264 encoder used was x264 but I could be mistaken, I just took a quick look in a hex editor.

Not sure about the GPL status of that.

Regards,

Vent

guodongzhe
15th July 2009, 16:00
I'm sure you will get other test results here.

Maybe there is something needed from the other fame products?

Ya. I do believe the result on your computer. In my projects, It is common situation for a new release. So it is why debugging work so important.

I should debug deeper and deeper. Only problem is time.

guodongzhe
15th July 2009, 16:05
It re-encoded the whole edit. To me that does not make it a smart editor - "it did not do what it said on the tin".

My 3 second cut did not play back either.

I didn't test mpeg2, just h.264.

Regards,

Vent

Perhaps you could do me a favor, and check the result in Winhex, Only first gop was replaced, others untouched.

Furthermore, this version can only seek slow but accurately, its playback functioin are removed. Some important features like quick seek, playback, edit are all removed. This free version is specified for PS/TS cut only.

Thanks a lot for you concern.

Ventolin
15th July 2009, 16:27
No need to check in winhex, the output was mpeg2 not h264.

If I force x264 it re-encodes with the bitrate specified.

No need to use winhex, when I can use TSPE :P

Maybe there is a possiblity for an open source editor as the fame encoder already seems to be using x264 (though I do not see any mention of this or source on their website). Perhaps you can just use x264 directly.

Regards,

Vent

guodongzhe
15th July 2009, 16:34
No need to check in winhex, the output was mpeg2 not h264.

If I force x264 it re-encodes with the bitrate specified.

No need to use winhex, when I can use TSPE :P

Maybe there is a possiblity for an open source editor as the fame encoder already seems to be using x264 (though I do not see any mention of this or source on their website). Perhaps you can just use x264 directly.

Regards,

Vent

Seems I know the problem you are talking about. After you click the button with red circle(record), a dialog will show up. Please ensure 'SMART CUT PS/TS' option is selected. The program will determine format of source movie(mpeg2 or avc264), and choose encoder automatically. User need not set those parameters. Simply click 'Convert' button.

Thank you. Hope I did some help.

Guest
15th July 2009, 16:47
@guodongzhe

Please clarify status of use of x264.exe and GPL issues. If you do not answer this adequately, the entire thread will be deleted.

guodongzhe
15th July 2009, 16:53
@guodongzhe

Please clarify status of use of x264.exe and GPL issues. If you do not answer this adequately, the entire thread will be deleted.

I do not use that. If you have found it in the .exe, feel free to delete it. It is okay.

Guest
15th July 2009, 16:55
Your exe (and I assume the other products) contains GPL'ed code and so your links are deleted.

EDIT: The AVC decoder you include is copyrighted and belongs to CoreAVC. So you are ripping off a lot of folks here.

I have removed your similar post and links in another thread.