View Full Version : MPEG-2 editor chopping mpeg files problem
Jatinder Kumar
13th May 2011, 12:57
Hi All,
I am writing MPEG-editor to chop a mpeg file for some in and out points and create a new file.
For this I am copying each byte from in and out points to destination file and just updating the timestamps GOP ,PTS/DTS , SCR with GOP and SCR starts from 0 and Pts/Dts have some offset to SCR.
But when I am playing file in VLC it is not playing smoothly. In Media Player it plays well.
Is there anything that I am missing ?? How to chop mpeg file at certain in-out points.
Thanks in advance.
Jatinder Kumar
Jatinder Kumar
16th May 2011, 11:00
Any idea ??????
Losko
16th May 2011, 16:09
Hi All,
I am writing MPEG-editor to chop a mpeg file for some in and out points and create a new file.
For this I am copying each byte from in and out points to destination file
It is unclear to me what you mean with "in and out points to destination file".
Will this tool merge two files into one?
Perhaps you mean a couple of start/end points?
But when I am playing file in VLC it is not playing smoothly. In Media Player it plays well.
Which Media Player plays it well?
Did you give a try to mpeg2dec? and mplayer?
They are both good players (CLI tools) and are most likely to give you many infos about wrong/corrupted/invalid frames.
Jatinder Kumar
17th May 2011, 06:44
Thanks Losko for your reply.
Yes , I mean a couple of start/end points in source files to create the destination file.
Windows Media Player , Real Player plays this file well.
In vlc there are jerks in the file.
As I have told that I am updating timestamps GOP , SCR ,PTS and DTS , Is there any more update required to run the file in VLC player ???
Thanks
Losko
17th May 2011, 09:57
Yes , I mean a couple of start/end points in source files to create the destination file.
Windows Media Player , Real Player plays this file well.
So I assume you are running windows.
Will your tool be a graphical one? or a command line one? Will it be cross platform? Will it be a commercial/free/open software?
Anyway, avidemux does this already (even on mpeg streams) on any supported platform, give it a try.
Jatinder Kumar
17th May 2011, 13:05
Hi Losko,
Thanks for your reply.
This tool is command line. The issue is solved
Thanks
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.