NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 662 663 664 665 666 … 1231 Next »
what tool to split >3 hr recordings?

 
  • 0 Vote(s) - 0 Average
what tool to split >3 hr recordings?
HtV
Offline

Posting Freak

Posts: 3,470
Threads: 46
Joined: Dec 2005
#11
2006-12-02, 02:03 PM
MPEG2Cut does a good job (for free) I think.
http://www.geocities.com/rocketjet4/
With a few mouseclicks you can select and save a part of a show.
AMD Athlon 64 3000, HDD: 80, 120, 200 GB, Hauppauge 350 + 150, MVP, Asus 6000L Laptop client, Asus X50sl client,
Fritz!box 7140 modem/router, GBPVR 1.3.7.
duncan
Offline

Junior Member

Posts: 19
Threads: 1
Joined: Nov 2006
#12
2006-12-03, 01:34 AM
Avidemux2 - the swiss army knife of editing. Comes with a zero dollar price tag as well.
We`re the Eagles - West Coast Eagles. 2006 Premiers Smile
tunanugget
Offline

Senior Member

Posts: 262
Threads: 99
Joined: Nov 2006
#13
2006-12-03, 01:48 AM
HtV Wrote:MPEG2Cut does a good job (for free) I think.
http://www.geocities.com/rocketjet4/
With a few mouseclicks you can select and save a part of a show.

mpg2cut2 is pretty easy to use and quick too. however, it mentioned on site that u may need to run it through projectx to make it dvd-compliant. i tried projectx but confusing...seems like it can't output mpg file. also, i don't know what to do w/ the resultant clip in projectx. or, are outputs form mpg2cut2 already compliant?
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#14
2006-12-03, 02:17 AM
now you'll not get exactly the same total with 2 files as there has to now be 2 mpeg headers when there was only one before...tho they should be close...

did you check the playing of files? do they show the right times inside?
did you try the mencoder version? i remember it lets you use megs for boundary.

mine played perfectly with ffmpeg...yes it makes them smaller, but most mpegs have padding inside from the original encoder, so it ignores that...dvd compliant as it's what i use to make the dvd's in Showburner...Smile

to make it overlap a little....easy with mencoder...just subtract 1 from size for second parameter..
i noticed a little prob with your mencoder batch...you don't need to specify the ending size,it will go from start point to the end of movie...just specify the split point on first line, then the start point on second...
==================
"c:\program files\mplayer\mencoder" -ovc copy -oac copy -of mpeg -endpos 4500mb -mpegopts format=dvd:tsaf -o "movie_part1.mpg" "movie.mpg"

==================
split-2ndhalf.bat

"c:\program files\mplayer\mencoder" -ovc copy -oac copy -of mpeg -ss 4499mb -mpegopts format=dvd:tsaf -o "movie_part2.mpg" "movie.mpg"

==================
that should output dvd compliant files...[tho your dvd author program should do that for you also..]
let me know how that goes...
ffmpeg can do as well, but i beleive only with timecodes..[harder to add/subtract time in dos]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#15
2006-12-03, 02:44 AM (This post was last modified: 2006-12-03, 02:57 AM by pBS.)
hmmm,well that wasn't exactly as nice as i wanted it...
cuts weren't at same place in video...
ok...after a few trials i found that the second cut has to be -sb to cut on byte boundary...[-ss only does time]

so here tis...[with a tiny bit of overlap-1 meg.not sure how many secs that will be]

Code:
mencoder -ovc copy -oac copy -of mpeg -endpos 4490mb -mpegopts format=dvd:tsaf -o "%~dpn1-1%~x1" "%~1"

mencoder -ovc copy -oac copy -of mpeg -sb 4489000000 -mpegopts format=dvd:tsaf -o "%~dpn1-2%~x1" "%~1"

much faster than ffmpeg [well it seems] and edits looks good...Smile
that will take input file.mpg and split into file-1.mpg and file-2.mpg
[i added the format stuff to ensure dvd compat.]

just run it with filename as only parameter...Big Grin

[original will NOT be deleted]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
tunanugget
Offline

Senior Member

Posts: 262
Threads: 99
Joined: Nov 2006
#16
2006-12-03, 03:54 AM (This post was last modified: 2006-12-03, 04:15 AM by tunanugget.)
pBS Wrote:hmmm,well that wasn't exactly as nice as i wanted it...
cuts weren't at same place in video...
ok...after a few trials i found that the second cut has to be -sb to cut on byte boundary...[-ss only does time]

so here tis...[with a tiny bit of overlap-1 meg.not sure how many secs that will be]

Code:
mencoder -ovc copy -oac copy -of mpeg -endpos 4490mb -mpegopts format=dvd:tsaf -o "%~dpn1-1%~x1" "%~1"

mencoder -ovc copy -oac copy -of mpeg -sb 4489000000 -mpegopts format=dvd:tsaf -o "%~dpn1-2%~x1" "%~1"

much faster than ffmpeg [well it seems] and edits looks good...Smile
that will take input file.mpg and split into file-1.mpg and file-2.mpg
[i added the format stuff to ensure dvd compat.]

just run it with filename as only parameter...Big Grin

[original will NOT be deleted]

sweet! i copied both lines of code into a text file and saved it as a batch file.

===============================
mencoder -ovc copy -oac copy -of mpeg -endpos 10mb -mpegopts format=dvd:tsaf -o "%~dpn1-1%~x1" "%~1"

mencoder -ovc copy -oac copy -of mpeg -sb 300000000 -mpegopts format=dvd:tsaf -o "%~dpn1-2%~x1" "%~1"
==============================

i copied mencoder.exe to my gbpvr directory. went to d:\gbpvr\ in command prompt.

typed: test.bat movie.mpg.

tried it on a 308 mb file:

yielded one thats 10.0 mb from first line of code and then a 19.6 mb file from second line.

what's official size of a dvd-r or dvd+r? I think you need 4480 mb for the split. nonetheless, great simple code to split a dvd. thanks.


edit: http://club.cdfreaks.com/showthread.php?t=89768 says 4264mb has dvdshrink size and 4282mb as official size.

byte converter: http://webdeveloper.earthweb.com/reposit...verter.htm

based on sample encoded at 2500kpbs, 10 mb was 30s. So 1 mb = 3s. For normal dvd, people record around 7500kbps, so 1mb = 1s.

edited code to make it 4464 mb clip and 4462 mb start of part2 for 2mb overlap for 1-2s for normal 720x480 and up to 6s for half d1. gives u some space for changing disks.

Code:
mencoder -ovc copy -oac copy -of mpeg -endpos 4464mb -mpegopts format=dvd:tsaf -o "%~dpn1-1%~x1" "%~1"

mencoder -ovc copy -oac copy -of mpeg -sb 4678746112 -mpegopts format=dvd:tsaf -o "%~dpn1-2%~x1" "%~1"
tunanugget
Offline

Senior Member

Posts: 262
Threads: 99
Joined: Nov 2006
#17
2006-12-03, 04:25 AM (This post was last modified: 2006-12-03, 04:34 AM by tunanugget.)
based on pbs's code, for those who want simple drag and drop, create a batch file (i.e. dvdrsplitter.bat); edit to the location of your gbpvr directory (or wherever u have mencoder or the movie files), and just drag movie onto batch file and it'll automatically create the breakpoints. pretty slick.

in this sample, it assumes that c:\gbpvr\ has mencoder.exe as well as ur mpg files.


Code:
c:
cd gbpvr

mencoder -ovc copy -oac copy -of mpeg -endpos 4464mb -mpegopts format=dvd:tsaf -o "%~dpn1-1%~x1" "%~1"

mencoder -ovc copy -oac copy -of mpeg -sb 4678746112 -mpegopts format=dvd:tsaf -o "%~dpn1-2%~x1" "%~1"

edit: i tried the code on 308mb file...and it cut the file down to 253 mb....weird. winamp had some problems playing it.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#18
2006-12-03, 04:49 AM
yep...that's the padding that's being taken out...i notice that on all my re-muxed files...nothing missing inside, but it leaves out some unneeded bits..Smile
[plus i think it just does a better job at re-muxing with less overhead]

one note, those figures you used are very approximate...no way to be exact on mpeg files, so many differences in overhead, corrected missing frames, padding, etc. that no way to be exact....usually trial and error is your best bet..
i got about 10 seconds from that 1 meg overlap...depends on the file...[3500k]

oh, i forgot to mention, put -forceidx in there to make sure it doesn't use old timestamps...[eg. second file starts at cutpoint's timestamp, this will make start always 00:00:00] i believe that's why winamp was having probs...
[it saw the first timestamp wasn't 00:00:00]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  Live TV and recordings do not match greg in kansas 8 7,178 2013-02-22, 06:35 PM
Last Post: sub
  Can't view recordings on pc jerry430 8 6,800 2013-01-21, 07:27 PM
Last Post: jerry430
  Live TV not showing anything although recordings are OK. Pls advise. seymoria 8 4,807 2012-08-07, 05:07 PM
Last Post: ACTCMS
  CSI Miami Recordings Always In Spanish ga_mueller 6 4,639 2012-06-12, 12:41 AM
Last Post: mikeh49
  Recordings missing after switching hard drive tegat 8 5,033 2011-12-21, 03:00 AM
Last Post: tegat
  Recordings and live TV fail with TS mux dvasco 4 2,722 2011-06-22, 05:47 PM
Last Post: dvasco
  Stream errors in recordings with GBPVR seymoria 11 4,605 2011-06-19, 06:44 PM
Last Post: seymoria
  Lost all my recordings pduncan67 2 2,017 2011-02-27, 03:12 PM
Last Post: pduncan67
  Zero byte recordings chuck_2330 0 1,430 2011-02-09, 01:25 PM
Last Post: chuck_2330
  Black screen when playing back recordings gonzo90017 1 1,683 2011-01-19, 06:12 PM
Last Post: gonzo90017

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode