Log in

View Full Version : Fixing a broken mpeg


emazur
2nd January 2005, 09:38
I loaded a tv capture mpg that I encoded myself into TMA, but it wouldn't take it, though I'm not sure why since I encoded it the same way I did my other episodes, and it plays back perfectly fine (tested with windows media player and powerdvd). I also tried to demux in TMPEGenc but again it wouldn't take it, and tried a program called mpeg header corrector but again no luck. Neither did PVA instrumento demuxer. Strangely enough, TMPEGenc does not complain if I use that mpeg as a source for reencoding, so that's what I'm doing now. But if there's a better way I'd rather not reencode.

Not sure if this was the best forum for this topic. If not, sorry

emazur
2nd January 2005, 16:57
they tell me that it's an illegal file. I tried bitrate viewer as you suggested and it said illegal stream and didn't give me any info. AVIcodec correctly shows the following info:
Video : 414 MB, 1251 Kbps, 29.970 fps, 352*240 (4:3), = MPEG Video, Supported
Audio : 52 MB, 160 Kbps, 48000 Hz, 2 channels, 0x50 = Mpeg-1 audio Layer 1, Supported

In case anyone's wondering, this mpeg was made by tmpegenc with a picvideo source captured by virtualvcr (same way I always do. the lossless avi no longer exists).

Here is part of the log from pvainstrumento:
Stream info for
C:\pvcrwork\hotman7.mpg

Found 1 video stream.
Found 1 MPEG audio stream.

VIDEO #1
Resolution 352 x 240
Aspect ratio is reserved (= 0xc)
Frame rate 29.97 fps
Nominal bitrate 1150000 bps
First PTS: 13:15:21.858

MPEG AUDIO #1
ALERT> No audio frame found. ("WHAT ??")

***
*** PVAStrumento 2.1.0.7 build 90
*** running at 01-02-2005 16:23
***
Pre-Scanning input. Takes some time.
Stream info for
C:\pvcrwork\hotman7.mpg

Found 1 video stream.
Found 1 MPEG audio stream.

VIDEO #1
Resolution 352 x 240
Aspect ratio is reserved (= 0xc)
Frame rate 29.97 fps
Nominal bitrate 1150000 bps
First PTS: 13:15:21.858

MPEG AUDIO #1
ALERT> No audio frame found. ("WHAT ??")


<<DEMUXING>>
Input: C:\pvcrwork\hotman7.mpg
Options
.. fixing startup delay.
.. fixing stream synch.
.. keeping track of audio offset accumulation.
.. strict checking of audio framing.
.. dropping GOPs longer than 980 KB
.. splitting on change of audio format.
.. splitting on number of audio tracks.
.. creating new GOP timecodes.

Closing starting GOP.
Audio stream 1 has no data, purging.
Aiming for sync at 13:14:41.147
Streamstart seems to be in (reasonable) sync:
Video 1 starts at 13:14:41.147

ALERT> PTS reset in video. Have to re-sync.
Re-syncing.
Closing starting GOP.
Aiming for sync at 13:14:41.147
Streamstart seems to be in (reasonable) sync:
Video 1 starts at 13:14:41.147

ALERT> PTS reset in video. Have to re-sync.
Re-syncing.
Closing starting GOP.
Aiming for sync at 13:14:41.147
Streamstart seems to be in (reasonable) sync:
Video 1 starts at 13:14:41.147

ALERT> PTS reset in video. Have to re-sync.
Re-syncing.
Closing starting GOP.
Aiming for sync at 13:14:41.114
Streamstart seems to be in (reasonable) sync:
Video 1 starts at 13:14:41.114

ALERT> PTS reset in video. Have to re-sync.
Re-syncing.
Closing starting GOP.
Aiming for sync at 13:14:41.147
Streamstart seems to be in (reasonable) sync:
Video 1 starts at 13:14:41.147

ALERT> PTS reset in video. Have to re-sync.
Re-syncing.
Closing starting GOP.
Aiming for sync at 13:14:40.747
Streamstart seems to be in (reasonable) sync:
Video 1 starts at 13:14:40.747

ALERT> Temporal structure wrong in GOP at 13:14:40.747. Dropping.
ALERT> -4 video frames missing at 13:14:40.747.
ALERT> Dropping GOP for sync.
Re-syncing.
Closing starting GOP.
Aiming for sync at 13:14:41.147
Streamstart seems to be in (reasonable) sync:
Video 1 starts at 13:14:41.147

ALERT> PTS reset in video. Have to re-sync.
Re-syncing.
Closing starting GOP.
Aiming for sync at 13:14:41.047
Streamstart seems to be in (reasonable) sync:
Video 1 starts at 13:14:41.047

ALERT> Temporal structure wrong in GOP at 13:14:41.047. Dropping.
ALERT> -14 video frames missing at 13:14:41.047.
ALERT> Dropping GOP for sync.
Re-syncing.
Closing starting GOP.
Aiming for sync at 13:14:41.147
Streamstart seems to be in (reasonable) sync:
Video 1 starts at 13:14:41.147

ALERT> PTS reset in video. Have to re-sync.
Re-syncing.
Closing starting GOP.
Aiming for sync at 13:14:41.014
Streamstart seems to be in (reasonable) sync:
Video 1 starts at 13:14:41.014

[ Found a GOP with more than 15 pics.
This is not DVD compliant, but many players accept it.
See summary for total number at end. ]
ALERT> -14 video frames missing at 13:14:41.014.
ALERT> Dropping GOP for sync.
Re-syncing.
Closing starting GOP.
Aiming for sync at 13:14:41.147
Streamstart seems to be in (reasonable) sync:
Video 1 starts at 13:14:41.147