SageTV Community  

Go Back   SageTV Community > General Discussion > General Discussion
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

General Discussion General discussion about SageTV and related companies, products, and technologies.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-06-2010, 04:28 PM
VikingCrown's Avatar
VikingCrown VikingCrown is offline
Sage Aficionado
 
Join Date: Jun 2006
Posts: 269
Merge MPEG's

I am trying to find a small tool that will allow me to merge 2 sage recordings.

My local CW affiliate started airing both parts of some of The Office's double episodes, and I want to make the 1 file. Is there some easy tool to do this? Recordings are made by wither my HDHR or my Hauppauge 2250

~ Brian
Reply With Quote
  #2  
Old 12-06-2010, 04:48 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
VideoReDo will do this for you. It's not free but there is a trial period.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #3  
Old 12-06-2010, 06:47 PM
VikingCrown's Avatar
VikingCrown VikingCrown is offline
Sage Aficionado
 
Join Date: Jun 2006
Posts: 269
sigh, unfortunately i already used up my trials for both versions of VideoReDo, actually that was going to be a follow up post, is there any free way to tweak the .edl files from comskip like you can with videoredo.
Reply With Quote
  #4  
Old 12-06-2010, 07:02 PM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
avidemux might be able to help you join your vids.
Reply With Quote
  #5  
Old 12-06-2010, 10:51 PM
Pirin's Avatar
Pirin Pirin is offline
Sage User
 
Join Date: Sep 2009
Location: Chicago, IL
Posts: 44
Are you using Windows? If so, open a command prompt and change to the directory with both files. Type the following command: "copy /b TheOffice1.mpg+TheOffice2.mpg TheOfficeBoth.mpg"

I know this works for mpgs, but I am not sure about any other file format; i.e. m2ts, etc. Please note, that there are no spaces between the 2 source filenames and the plus sign. Also, I have no idea if you can have a space in the source filenames, so maybe rename them to something without a space first if they contain any spaces.

If you want to know what this command is doing, it is just copying the files, using the binary flag (/b), to a single destination, appending each one in the plus list. So, if you want to join 6 files, you would just put a plus sign between all 6 filenames with no spaces.
Reply With Quote
  #6  
Old 12-07-2010, 11:02 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by Pirin View Post
Are you using Windows? If so, open a command prompt and change to the directory with both files. Type the following command: "copy /b TheOffice1.mpg+TheOffice2.mpg TheOfficeBoth.mpg"
That doesn't mess up the mpg headers? If its still a valid mpeg in the end thats a pretty neat trick
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #7  
Old 12-07-2010, 11:09 AM
Pirin's Avatar
Pirin Pirin is offline
Sage User
 
Join Date: Sep 2009
Location: Chicago, IL
Posts: 44
Quote:
Originally Posted by razrsharpe View Post
That doesn't mess up the mpg headers? If its still a valid mpeg in the end thats a pretty neat trick
Actually, it doesn't touch the headers. So, there will be 2 headers in the file, one at the beginning and one in the middle. However, I have not had a problem playing them in any software package. Of course, this was several years ago, and I wasn't using SageTV at the time. My guess is that it will play just fine, but the total time of the recording may not show up correctly?

I hadn't really thought all that through when I posted; it was just a quick response before I logged off for the night. I'd be curious to see what VikingCrown's experience is if he tries this.
Reply With Quote
  #8  
Old 12-07-2010, 11:24 AM
VikingCrown's Avatar
VikingCrown VikingCrown is offline
Sage Aficionado
 
Join Date: Jun 2006
Posts: 269
I did try Pirin's method and it appears to have worked, but he is correct that the time is displaying incorrectly. I can't comment on the audio sync yet either as I am at work at the moment.

I did a little more testing and I have 3 files to try at home (I will report back tomorrow or later tonight with results)

1. Pirin's CMD line
2. avidemux per wrems
3. DVTool 0.61 (found on afterdawn)

If the files play correctly but display incorrect timelines, is there any way to fix that? Other than the quickstream fix in VideoReDo?
Reply With Quote
  #9  
Old 12-07-2010, 11:37 AM
Pirin's Avatar
Pirin Pirin is offline
Sage User
 
Join Date: Sep 2009
Location: Chicago, IL
Posts: 44
There shouldn't be any audio sync issues in the destination file if there weren't any in the source files.

Unfortunately, I don't know of another quick and dirty method to fix the header. I did a quick search on Google, but the only possibility I saw was MPEG Header Corrector, but it hasn't been updated since 2007 (and I have never used it, so I don't know if it will actually works).

I am interested in your results. I hope one of the options works for you.
Reply With Quote
  #10  
Old 12-07-2010, 12:27 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by Pirin View Post
Unfortunately, I don't know of another quick and dirty method to fix the header.
my guess is videoredo's quick stream fix will fix the headers (not free though )

you might want to give tsmuxer a try too.... it looks likes that will join segments... you probably wont end up with a mpg file in the end though (ts or m2ts though) EDIT: on a try of tsmuxer looks like it can't read mpegs directly. EDIT2: Just kidding... )
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer

Last edited by razrsharpe; 12-07-2010 at 01:08 PM.
Reply With Quote
  #11  
Old 12-08-2010, 09:10 AM
VikingCrown's Avatar
VikingCrown VikingCrown is offline
Sage Aficionado
 
Join Date: Jun 2006
Posts: 269
Test:
Merge 2 files (total size 7.36 GB and 1:04:36 in duration) into 1 mpg file.

Results:

1. Command line: Combining was fairly fast, probably less than 10 min. Whole video was there, however, no audio and the timeline incorrectly display the duration.

2. AVIDemux: Combining was fast here too, about 5-10 min total. Whole video was there, also no audio, incorrect timeline and in addition the file size was smaller than the 2 files combined (6.94 GB).

3. DVTool: Combining was real slow, took about 30 min. Whole video was there, also no audio, incorrect timeline.

I couldn't find any free programs comparable to videoredo's quickstream fix, closest i found was womble (but its only a free trial). So I ended up having to purchase VideoReDo Plus anyway. I ran each of the files above through the quickstream fix, and voilą the Command Line and the DVTool versions had correct audio and correct timelines however the avidemux version failed. The error said something about elementary streams (probably just user error in the combining).

I did note that the file sizes on the combined files after running the quick stream fix were smaller than they before running them through (going from 7.36 GB to 7.20 GB)

I'll probably do 1 more test and see if i can combine them both with VideoReDo now that i have a licensed copy.

~ Brian
Reply With Quote
  #12  
Old 12-08-2010, 09:18 AM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
What if you use DVDFlick? Don't create the menu with it. It would play just fine. I believe the timeline would be for each segment rather than concatenated though... You might want to try. It's a descent program overall. Easy too.
Reply With Quote
  #13  
Old 12-08-2010, 10:53 AM
VikingCrown's Avatar
VikingCrown VikingCrown is offline
Sage Aficionado
 
Join Date: Jun 2006
Posts: 269
Thanks Wrems, i'll give that a shot on the next batch of episodes I want to join. I'll also try the VideoReDo join method and see how that works and I'll report back here.
Reply With Quote
  #14  
Old 12-08-2010, 12:57 PM
dgeezer dgeezer is offline
Sage Aficionado
 
Join Date: Oct 2007
Location: Greensboro, NC
Posts: 293
Now that you own Videoredo, don't forget that you can set comskip to produce vprj files. You may as well save the combined files without any commercials. I used to do this with all the shows that I recorded for my daughter. Of course, saving a gb or two used to mean a lot more than it does now with hdd space being so cheap.
Reply With Quote
  #15  
Old 12-10-2010, 07:52 PM
Spectrum Spectrum is offline
Sage Expert
 
Join Date: Aug 2006
Posts: 720
Too late since you've spent the money on VRD (not that it's not worth it mind you) TMPGenc has a free version that will cut/join mpegs. To use the cutter/joiner just cancel the popup box that comes up by default then click on File->mpeg tools->merge & cut
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Merge Locals From Sat Box & Ant Into 1 Channel? bigo93bronco SageTV EPG Service 1 08-26-2009 11:41 AM
Is it possible to merge recordings in Sage? wayner SageTV Software 2 09-07-2008 09:07 PM
Windows Media Player - Streaming Mpeg's and Sage osarika SageTV Software 0 11-05-2005 11:18 PM
Merge wiz.bin files wmstonetn SageTV Software 3 05-16-2005 11:11 AM
Viewing recorded mpeg's on other computers GrayGh0st Hardware Support 8 08-05-2004 02:51 PM


All times are GMT -6. The time now is 08:32 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.