View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 13 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Jun 14, 2006 3:24 pm 
Offline
Joined: Sat Jul 09, 2005 2:04 pm
Posts: 32
I wouldn't be surprised if this has been covered somewhere else but I don't really know the termonology to search for (I've tried and found nothing so far). I apologize in advance.

I pulled out my myth box's power cord during a recording by mistake. I plugged it back in, started it back up and finished the recording. I now have 2 recorded files with about 2 minutes missing in the middle.

Is there a simple way within myth to join part A to part B and have it still look and act like a one normal recorded program?

Thanks.

EDIT: Scroll down to see a recap of how I got it working if interested


Last edited by arzdb on Thu Jun 15, 2006 12:42 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 14, 2006 6:01 pm 
Offline
Joined: Sat Jun 25, 2005 7:39 pm
Posts: 162
This may give you something to go on but don't blame me if something goes wrong. If you find both files in the /myth/tv directory, try running:
Code:
cat file1.mpg file2.mpg > file1and2.mpg

This will make a single file with both videos in it. Then you should be able to edit the DB to reference the new file and delete references to the old files. I'm sure comm flags will be way off. BTW this only works for mpg's that are produced by encoders like the PVR-250's. You cannot concatenate MPEG-4's easily afaik.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 14, 2006 6:40 pm 
Offline
Joined: Sat Jul 09, 2005 2:04 pm
Posts: 32
cat works perfectly thanks. I always forget about it but am always amazed by it. Great idea.

Is there any howto/post that you know of about editing the database for something like this? I assume that I want to edit the recorded table, replace the file, and change filesize the db. Anything else that I might need to look at?

Thanks again.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 14, 2006 7:28 pm 
Offline
Joined: Sat Jun 25, 2005 7:39 pm
Posts: 162
You should be able to just delete one of the captures in the recorded table and change the filename to the newly created file on the other one.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 14, 2006 7:55 pm 
Offline
Joined: Sat Jul 09, 2005 2:04 pm
Posts: 32
Seemed to work, mostly. The problem is that myth thinks that the file is only a certain length so the timeline only goes to "1:18" when it really is more like "1:48". It will keep playing past the 1:18 mark but certain problems arise like video editing and myth crashing if I stop after 1:18 but before the end because it doesn't know what to do.

I assume there has to be some other length value to edit in the mysql tables.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 14, 2006 7:57 pm 
Offline
Joined: Sat Jun 25, 2005 7:39 pm
Posts: 162
In the DB, take a look at the starttime, endtime, filesize (maybe), progstart, and progend columns. Adjust them to fit the program and I don't see why it shouldn't work.

Edit: This is in the recorded table again.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 14, 2006 8:27 pm 
Offline
Joined: Sat Jul 09, 2005 2:04 pm
Posts: 32
I tried looking at those entries earlier and I set them to match other programs of the same type (this is a World Cup game so I have other games that are the exact same length) and it still doesn't work.

Both the starttime/progstart are set to 2006-06-14 08:55:00
Both the endtime/progend are set to 2006-06-14 11:00:00

I've also adjusted the filesize.

I think the problem might be with the video file itself, if that's possible. I opened it up with WMP and the time at the bottom seemed to be off. In WMP at 43:35 on the player's time the the time in the game was at 44:44. In Myth's internal player at 43:35 the time in the game was at 38:27. VLC (windows) also seemed to have a problem with the time.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 14, 2006 9:06 pm 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
Look for info about mythcommflag --rebuild. That may do the job for you. Until you have done that you will probably find that seeking wont work correctly when you get to the second recording.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 15, 2006 12:15 am 
Offline
Joined: Tue Sep 27, 2005 12:32 pm
Posts: 104
Ah, I have been wondering about this myself. Here in Sweden TV4 has the bad habit of interrupting the movies with news. Since the news are present in the guide all movies end up in two parts.

But I have also experienced sometimes that when recording two shows in a row and they are a bit behind the first show will end a couple of minutes into the second...

So an ability to join and split recordings would be nice I think. (Splitting is not strictly necessary, you can always duplicate the file and then use cut-points to cut away the first/second half.)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 15, 2006 12:35 am 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
Unfortunately, the process of stopping one recording and starting another results in a loss of data in between, so I think you will get a discontinuity in the resulting file when it switches from the first recording to the second.

It would be nice if myth could merge adjacent recordings on the same channel into one recording for you so that it only created a single file, and then allow you to split them into two recordings later, without the discontinuity.

This may not work so well for live-tv though.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 15, 2006 6:14 am 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi arzdb,

IF you have a pvr-350 the simple thing would be to rerecord it. Since the 350 is able to play while recording you setup a connection from tv out to line in. Set up a manual record and start it going. Then switch to watch recordings and hit play on first part, when it is finished you play the second part. It would not be real pretty but then again it isn't now.

At least your goal to have the two pieces as one is satisfied :)
Mike


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 15, 2006 7:30 am 
Offline
Joined: Sat Jul 09, 2005 2:04 pm
Posts: 32
Greg,

Now it believes the file is 2:10 in length, which is probably right (90 minute game + 15 minute half time + extra time). The problem is that once I pass the end of the first file, I can't move forward or backward normally. If I want to jump 10 seconds forward then it moves to the start of the file but goes to the end on the bottom timeline. If I don't touch it at all then it will continue to play normally.

Code:
1003    20060614085500  World Cup Soccer                           [mpeg @ 0xb742e278]Parser not found for Codec Id: 94210 !                       0: start_time: 0.036 duration: 228.342
1: start_time: 2721.902 duration: 6108.297
2: start_time: 0.026 duration: 228.316
stream: start_time: 0.289 duration: 98113.034 bitrate=385 kb/s
  4%/ 1157fps2006-06-15 08:54:48.024 RingBuf(/myth/tv/spain-ukraine.mpg): Waited 2 seconds for data to become available...
2006-06-15 08:54:50.042 RingBuf(/myth/tv/spain-ukraine.mpg): Waited 4 seconds for data to become available...                                        7%/  247fpsRebuilt



mjl,

I have a 250 but tv-out on my video card I have s-video out so I might be able to work something out if I can't get it working right now. Good idea.[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 15, 2006 12:42 pm 
Offline
Joined: Sat Jul 09, 2005 2:04 pm
Posts: 32
I got it working perfectly. All I had to do was to transcode it like I usually do to compress these 2 hour games from 4.5 gigs to 1.5-2.0 gigs. Presto, it is just like every other program I have with a glitch in the middle.

Thanks for everyone's help.

Recapping what I did:

1. Used cat to join the two together in /myth/tv
2. Edited the mythconverg database for the time of the recording, name and size of the file
3. mythcommflag --rebuild (optional?)
4. Transcoded to mpeg-4 (normal transcoding might work too, have not tested)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu