Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fixing nuv headers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Fri Dec 27, 2013 10:17 pm    Post subject: fixing nuv headers Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Dec 28, 2013 12:56 am    Post subject: Reply with quote

Are you playing back these files in MythTV? If yes, it's more likely database error, have you tried running repair scripts?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Sat Dec 28, 2013 1:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Dec 28, 2013 1:17 am    Post subject: Reply with quote

optimize_mythdb.pl should fix it, although there used to be a script to find orphans and if I remember correctly (not sure about that) it also fixed size issues. I run optimize_mythdb.pl nightly as a cronjob.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Sat Dec 28, 2013 1:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Dec 28, 2013 1:24 am    Post subject: Reply with quote

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
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Sat Dec 28, 2013 1:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Dec 28, 2013 1:55 am    Post subject: Reply with quote

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
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Sat Dec 28, 2013 2:01 am    Post subject: Reply with quote

I resolved my problem with optimize_mythdb.pl. But running it doesn't solve the issue.

Hika
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Dec 28, 2013 2:09 am    Post subject: Reply with quote

I tried to re-insert some dropped nuv files to the database and wasn't very successful.

I suggest you ask your question in mythtv-users mailing list.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Sat Dec 28, 2013 2:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Dec 28, 2013 2:11 am    Post subject: Reply with quote

I never had any MPEG files inside nuv, all nuv files I had was from a framegrabber card, RTjpeg.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Sat Dec 28, 2013 2:15 am    Post subject: Reply with quote

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
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Sat Dec 28, 2013 2:28 am    Post subject: Reply with quote

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
View user's profile Send private message
hika
Apprentice
Apprentice


Joined: 13 Mar 2009
Posts: 234
Location: Utrecht

PostPosted: Sat Dec 28, 2013 8:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum