View previous topic :: View next topic |
Author |
Message |
hika Apprentice
Joined: 13 Mar 2009 Posts: 234 Location: Utrecht
|
Posted: Fri Dec 27, 2013 10:17 pm Post subject: fixing nuv headers |
|
|
I'm using mythtv and I have a few recordings that seem to have a broken header. I can play and stop them, but I can't jump or go fast fore- or backwards. If
I have the setting enabled to ask what to do at the end, it asks immediately. So it seems that in the header the length is set to zero .
Can anybody advise me on a package to use to fix this? They are in yuv format (with separate video and audio stream). with the video in mpeg 2 or mpeg4.
Hika |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
hika Apprentice
Joined: 13 Mar 2009 Posts: 234 Location: Utrecht
|
Posted: Sat Dec 28, 2013 1:10 am Post subject: |
|
|
Yes I'm playing in MythTV.
If I look straight in the database I don't directly notice anything. Which fields should I check? The only relevant field in recorded should be the filesize. Or which script should I use?
I run mythconverge_backup.pl every night. With optimize_mythdb.pl I had some rights issues when I first started it. I haven't looked at it yet.
Besides if I try to transcode I get an error, which says nothing but that it's an error.
Hika. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
hika Apprentice
Joined: 13 Mar 2009 Posts: 234 Location: Utrecht
|
Posted: Sat Dec 28, 2013 1:18 am Post subject: |
|
|
Oh and when I try to transcode it leaves always a small tmp file that differs in size for each file but is always the same size for the same file. That looks to me like problems with reading the header. I have a card with hardware mpeg2 (hauppauge PVR350) that transcodes afterward (with default settings) to mpeg4 and one without, that goes directly to mpeg4. I haven't checked if they all come from the same source and I don't know if I can see that afterwards.
Hika |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Sat Dec 28, 2013 1:24 am Post subject: |
|
|
PVR-350 is an analog receiver with hardware MPEG-2 encoder as far as I can remember. It should not output nuv files.
Just try and play those files in MPlayer, see if they play back normally. But then again, I'm not sure if MPlayer can play nuv nowadays ... it used to. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
hika Apprentice
Joined: 13 Mar 2009 Posts: 234 Location: Utrecht
|
Posted: Sat Dec 28, 2013 1:38 am Post subject: |
|
|
I can view it in mplayer, but can not fastforward. I can move with the slider. It does give a to long size. Almost 3 and a half hour instead of 1:50. If I move past the 1:50 it stops. So definitively a file problem.
So with which programs could I fix them?
Hika |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Sat Dec 28, 2013 1:55 am Post subject: |
|
|
Sorry to hear it. I have no clue how to fix those files. There simply is no support for them AFAIK.
That said, I think MPlayer just gets it wrong, it's nuv support is obsoleted and not maintained. After your test with MPlayer I believe even stronger it is a database issue. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
hika Apprentice
Joined: 13 Mar 2009 Posts: 234 Location: Utrecht
|
Posted: Sat Dec 28, 2013 2:01 am Post subject: |
|
|
I resolved my problem with optimize_mythdb.pl. But running it doesn't solve the issue.
Hika |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
hika Apprentice
Joined: 13 Mar 2009 Posts: 234 Location: Utrecht
|
Posted: Sat Dec 28, 2013 2:09 am Post subject: |
|
|
Also totem, which works with gstreamer plays it. It says the codec is unknown and the length over 37 houres!?
To me it still looks like info is missing in the header.
Are there not good programs to edit and manipulate mpeg files. That's what's inside the nuv container.
Hika |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
hika Apprentice
Joined: 13 Mar 2009 Posts: 234 Location: Utrecht
|
Posted: Sat Dec 28, 2013 2:15 am Post subject: |
|
|
According to the myth site it is a containerfile with the video and audio part separated. This way keeping then synchronized is easier. As I understood the video part is mpeg4 and the audio mp3.
Hika |
|
Back to top |
|
|
hika Apprentice
Joined: 13 Mar 2009 Posts: 234 Location: Utrecht
|
Posted: Sat Dec 28, 2013 2:28 am Post subject: |
|
|
Oh the mpeg4 inside can also be rtjpeg or mpeg2, but I use mpeg4 for the smaller filesize. Thet's why I transcode the mpeg2 from the pvr350. It halves the size.
If you know good manipulation software, I see if it supports nuv and if I can fix it and I probably will be able to reinsert it in the database. Else I import it as if it was an external DVD. I could use such software also to permanently remove the commercials in some recordings I want to keep.
Hika |
|
Back to top |
|
|
hika Apprentice
Joined: 13 Mar 2009 Posts: 234 Location: Utrecht
|
Posted: Sat Dec 28, 2013 8:13 pm Post subject: |
|
|
I tried several programs
- Arista transcoder, returns an empty file. A bit like transcoding in mythTV
- Cinelerra, doesn't seem to understand the format
- Kino, reads in the file, which takes an hour or so and saves it raw in a file some 30Gb. I can watch it, cut out start, end and the commercials and than export it to mpeg2. This exporting takes about twice the playing length. And it plays.
I then copied it to the original spot, changed the extention and filesize in the database and it works!!! But there should be a faster way?
Hika |
|
Back to top |
|
|
|