Your Digital Media Has Never Looked So Good

 
iansouth1
Topic Author
Posts: 6
Joined: Thu Oct 27, 2005 5:53 am

Possible bug - ATSC - Airstar HD5000 output (MPEG-TS/PS)

Thu Oct 27, 2005 3:37 pm

While attempting to view some captured 1080i HD off-air programs captured by my WinXP MediaCenter PC with the AirStar HD5000 HD capture card installed I noticed that the Digital Dolby simulated to 5.1 audio leds were alternating. At other times - I've had a really bad voice sync between video/audio.

Platforms: Roku HD1000
Network: Hawkings Technologies 16port 10/100/1000 switch
Gateway 831 PC running mediacenter
G5 tower running MacOSX 10.4.2 (this one is networked at 1000 full)

I would be glad to offer the Roku lab a test capture.... :)

Ian
 
pxegeek
Posts: 94
Joined: Mon Jan 24, 2005 9:23 pm

Thu Oct 27, 2005 8:33 pm

 
iansouth1
Topic Author
Posts: 6
Joined: Thu Oct 27, 2005 5:53 am

Fri Oct 28, 2005 10:50 am

I did.
 
dgburns
Posts: 807
Joined: Mon Jun 27, 2005 9:37 am

Fri Oct 28, 2005 11:22 am

Umm...try running the file through mpeg2repair?
HD-1500 RevB #1 (media room)
Mitsubishi WD-62528 62" LCD RPTV
Kenwood VR-407 receiver w/PSB Alpha's
PS/3 60GB (now 250GB) w/750GB Seagate ext
M1000 (upstairs)
HD-1000 RevB #2 (bedroom)
Visco 32" LCD
AR 2.1 audio system
PS/2
 
iansouth1
Topic Author
Posts: 6
Joined: Thu Oct 27, 2005 5:53 am

Fri Oct 28, 2005 2:33 pm

dgburns wrote:
Umm...try running the file through mpeg2repair?


Tried - no dice. the app mpeg2repair cannot understand the files. I think they are MPEG2/PS and not TS.
 
dgburns
Posts: 807
Joined: Mon Jun 27, 2005 9:37 am

Fri Oct 28, 2005 7:49 pm

iansouth1 wrote:
I think they are MPEG2/PS and not TS.


It would be interesting to know (and may assist others reading help you troubleshoot) EXACTLY what format these captures are in. If it's some sort of hybrid, or almost Transport Stream, or almost Program Stream, but not fully compliant with the standards, that might be a big part of the problem.
HD-1500 RevB #1 (media room)

Mitsubishi WD-62528 62" LCD RPTV

Kenwood VR-407 receiver w/PSB Alpha's

PS/3 60GB (now 250GB) w/750GB Seagate ext

M1000 (upstairs)

HD-1000 RevB #2 (bedroom)

Visco 32" LCD

AR 2.1 audio system

PS/2
 
iansouth1
Topic Author
Posts: 6
Joined: Thu Oct 27, 2005 5:53 am

Sat Oct 29, 2005 10:11 am

dgburns wrote:
iansouth1 wrote:
I think they are MPEG2/PS and not TS.


It would be interesting to know (and may assist others reading help you troubleshoot) EXACTLY what format these captures are in. If it's some sort of hybrid, or almost Transport Stream, or almost Program Stream, but not fully compliant with the standards, that might be a big part of the problem.


Agreed, I will attempt to nail this down. A quick look via ffmpegx indicates:

Video: mpeg-2, 1920x1080, 16356kbps, 29.97 fps
Audio: ac3, 48000Hz, 384kbps

I believe this is a programs stream as ffmpegx cannot deal with transport streams (from memory). The capture applcation is setup to record the files as MPEG2/PS.

I should also mention the stats of my Roku box:

SW: 2.0.35
Extra swap added via SD card: 512M

More info: I am attempting to try and make some avi based files for playback via VLC on MacOSX. I do have the QuickTime MPEG2 extensions loaded and can playback all the video via QuickTime minus the audio (ac3). So, perhaps if I move the audio to mp(3 or 2) I might have more luck getting a "correct" stream. Interesting how the DBviewer app for Windows can deal w/these program streams and not anything else. Getting DirectShow is an option which I assume may produce more problems than solve (but I could be wrong here - as I am not as familiar w/DS vrs Quicktime).....

Ian

Ok, I appologize for the re-edits - bujt I feel I must make an effort to report all my findings to the community. My first attempt to re-encode one of my captured file which is in 720p with ac3 audio to 720p mp3 succedded in producing flawless video playback on my G5 MacOSX boxen (1.8Ghz) without audio (since I stupidly selected audio stream 1 instead of 0 via ffmpegX). Attempting to re-encode w/audio stream 0. But video playback was promising in terms of verifying I have a good source file....

Crap, just noticed:
Encoding started on Sat Oct 29 14:31:21 EDT 2005
MEncoder dev-CVS-050123-19:55-3.3 (C) 2000-2005 MPlayer Team
Mac OSX static build for ffmpegX
AltiVec found
CPU: PowerPC
success: format: 0 data: 0x0 - 0x63ef56b1
MPEG-PS file format detected.
Too many video packets in the buffer: (528 in 8400353 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
MPEG: No audio stream found -> no sound.
VIDEO: MPEG2 1280x720 (aspect 3) 59.940 fps 11373.6 kbps (1421.7 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:1280x720 fps:59.94 ftime:=0.0167
Opening video filter: [expand osd=1]
The selected video_out device is incompatible with this codec.
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [scale w=1280 h=720]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1280 x 720 (preferred csp: Mpeg PES)
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
Forcing output fourcc to 58564944 [XVID]
Writing AVI header...
=====================
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
VDec: vo config request - 1280 x 720 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: using unscaled Planar YV12 -> Planar YV12 special converter
videocodec: libavcodec (1280x720 fourcc=58564944 [XVID])


BUT!!!! Euraka!!!! (somewhat):

The MacOSX Application "MPEG Streamclip" completely understands the program stream and can flawlessly playback the file with video/audio in sync..... $.02 MPEG Streamclip version 1.3.1. So, I have a valid program stream file with valid video and audio streams.... MPEG Streamclip see the file as:

Stream: 10-23 12-27-12_WTTG-DT-1.mpg
Type: MPEG program stream

Duration: 0:19:39
Data Size: 1.56 GB
Bit Rate: 11.37 Mbps

Video Tracks:
224 MPEG-2, 1280 × 720, 16:9, 59.94 fps, 11.37 Mbps, progressive

Audio Tracks:
128 AC3 3/2, 48 kHz, 448 kbps

Stream Files:
10-23 12-27-12_WTTG-DT-1.mpg (1.56 GB)



--------

Pardon my exitement!! Holy Sh*t!!!! MPEG Streamclip produced a program stream file that plays flawlessly in VLC on MacOSX. Here are the perticulars:

Stream: 10-23 12-27-12_WTTG-DT-1.mpeg
Type: MPEG program stream

Duration: 0:19:39
Data Size: 1.56 GB
Bit Rate: 11.33 Mbps

Video Tracks:
224 MPEG-2, 1280 × 720, 16:9, 59.94 fps, 8.20 Mbps, progressive

Audio Tracks:
192 MP2 stereo, 48 kHz, 384 kbps

Stream Files:
10-23 12-27-12_WTTG-DT-1.mpeg (1.56 GB)


i will test on the roku in a moment....

Ok, At least I have audio now. But horrible sync on the roku. 1-2 seconds off. Does the roku possibly need to have it's code optomized? Obviously AC3 is an issue. NFS seems broken in 2.0.35 - I can't list the contents of a NFS mount although I can mkdir, touch and cd - otherwise I would start testing mounting protocols as a potiential issue.... $.02

Any additioanl tests i should run for the community? Let me know and I will see if I can provide results...



Ian
 
iansouth1
Topic Author
Posts: 6
Joined: Thu Oct 27, 2005 5:53 am

Sat Oct 29, 2005 1:57 pm

iansouth1 wrote:
dgburns wrote:
iansouth1 wrote:
I think they are MPEG2/PS and not TS.


It would be interesting to know (and may assist others reading help you troubleshoot) EXACTLY what format these captures are in. If it's some sort of hybrid, or almost Transport Stream, or almost Program Stream, but not fully compliant with the standards, that might be a big part of the problem.


Agreed, I will attempt to nail this down. A quick look via ffmpegx indicates:

Video: mpeg-2, 1920x1080, 16356kbps, 29.97 fps
Audio: ac3, 48000Hz, 384kbps

I believe this is a programs stream as ffmpegx cannot deal with transport streams (from memory). The capture applcation is setup to record the files as MPEG2/PS.

I should also mention the stats of my Roku box:

SW: 2.0.35
Extra swap added via SD card: 512M

More info: I am attempting to try and make some avi based files for playback via VLC on MacOSX. I do have the QuickTime MPEG2 extensions loaded and can playback all the video via QuickTime minus the audio (ac3). So, perhaps if I move the audio to mp(3 or 2) I might have more luck getting a "correct" stream. Interesting how the DBviewer app for Windows can deal w/these program streams and not anything else. Getting DirectShow is an option which I assume may produce more problems than solve (but I could be wrong here - as I am not as familiar w/DS vrs Quicktime).....

Ian

Ok, I appologize for the re-edits - bujt I feel I must make an effort to report all my findings to the community. My first attempt to re-encode one of my captured file which is in 720p with ac3 audio to 720p mp3 succedded in producing flawless video playback on my G5 MacOSX boxen (1.8Ghz) without audio (since I stupidly selected audio stream 1 instead of 0 via ffmpegX). Attempting to re-encode w/audio stream 0. But video playback was promising in terms of verifying I have a good source file....

Crap, just noticed:
Encoding started on Sat Oct 29 14:31:21 EDT 2005
MEncoder dev-CVS-050123-19:55-3.3 (C) 2000-2005 MPlayer Team
Mac OSX static build for ffmpegX
AltiVec found
CPU: PowerPC
success: format: 0 data: 0x0 - 0x63ef56b1
MPEG-PS file format detected.
Too many video packets in the buffer: (528 in 8400353 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
MPEG: No audio stream found -> no sound.
VIDEO: MPEG2 1280x720 (aspect 3) 59.940 fps 11373.6 kbps (1421.7 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:1280x720 fps:59.94 ftime:=0.0167
Opening video filter: [expand osd=1]
The selected video_out device is incompatible with this codec.
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [scale w=1280 h=720]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1280 x 720 (preferred csp: Mpeg PES)
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
Forcing output fourcc to 58564944 [XVID]
Writing AVI header...
=====================
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
VDec: vo config request - 1280 x 720 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: using unscaled Planar YV12 -> Planar YV12 special converter
videocodec: libavcodec (1280x720 fourcc=58564944 [XVID])


BUT!!!! Euraka!!!! (somewhat):

The MacOSX Application "MPEG Streamclip" completely understands the program stream and can flawlessly playback the file with video/audio in sync..... $.02 MPEG Streamclip version 1.3.1. So, I have a valid program stream file with valid video and audio streams.... MPEG Streamclip see the file as:

Stream: 10-23 12-27-12_WTTG-DT-1.mpg
Type: MPEG program stream

Duration: 0:19:39
Data Size: 1.56 GB
Bit Rate: 11.37 Mbps

Video Tracks:
224 MPEG-2, 1280 × 720, 16:9, 59.94 fps, 11.37 Mbps, progressive

Audio Tracks:
128 AC3 3/2, 48 kHz, 448 kbps

Stream Files:
10-23 12-27-12_WTTG-DT-1.mpg (1.56 GB)



--------

Pardon my exitement!! Holy Sh*t!!!! MPEG Streamclip produced a program stream file that plays flawlessly in VLC on MacOSX. Here are the perticulars:

Stream: 10-23 12-27-12_WTTG-DT-1.mpeg
Type: MPEG program stream

Duration: 0:19:39
Data Size: 1.56 GB
Bit Rate: 11.33 Mbps

Video Tracks:
224 MPEG-2, 1280 × 720, 16:9, 59.94 fps, 8.20 Mbps, progressive

Audio Tracks:
192 MP2 stereo, 48 kHz, 384 kbps

Stream Files:
10-23 12-27-12_WTTG-DT-1.mpeg (1.56 GB)


i will test on the roku in a moment....

Ok, At least I have audio now. But horrible sync on the roku. 1-2 seconds off. Does the roku possibly need to have it's code optomized? Obviously AC3 is an issue. NFS seems broken in 2.0.35 - I can't list the contents of a NFS mount although I can mkdir, touch and cd - otherwise I would start testing mounting protocols as a potiential issue.... $.02

Any additioanl tests i should run for the community? Let me know and I will see if I can provide results...



Ian




OK!!!! Sucess!!!

1) The Roku seems (unless proven otherwise) cannot deal with AC3.

2) The HD stream MUST be TS aka transport stream.

Sync was maintained and video was viewed with good results as a converted mpeg2/ac3 -> mpeg2/mp2 (suround) -> mpeg2/mp2 PS to TS stream. Ideally, I would love not to have to convert at all... Is there work chez Roku for:

a) Better program stream support.
b) ac3 -> something compatable (aka mp2) support?

Ian
 
User avatar
TheEndless
** Valued Community Member **
Posts: 9231
Joined: Mon Oct 04, 2004 10:15 am
Location: US
Contact:

Sat Oct 29, 2005 2:28 pm

iansouth1 wrote:
OK!!!! Sucess!!!

1) The Roku seems (unless proven otherwise) cannot deal with AC3.

2) The HD stream MUST be TS aka transport stream.

Sync was maintained and video was viewed with good results as a converted mpeg2/ac3 -> mpeg2/mp2 (suround) -> mpeg2/mp2 PS to TS stream. Ideally, I would love not to have to convert at all... Is there work chez Roku for:

a) Better program stream support.
b) ac3 -> something compatable (aka mp2) support?

Ian

I don't think it's the Roku that's causing the problem. I've played HD program streams with AC3 on my Roku without the problems you're having. It's more likely something along the lines of a key frame issue that's causing the drifting audio. If I recall correctly, transport streams have more error correction information in their headers, so they're much less likely to lose sync. Are you able to set your capture application to record as MPEG2/TS instead of MPEG3/PS? You may have better results that way...

Just a thought,
TheEndless
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
 
turbo
Posts: 8
Joined: Sun Mar 27, 2005 2:53 pm

Sat Oct 29, 2005 8:30 pm

Hey Ian,

I know this doesn't help with the capture card you've got now, but I'm using an El-Gato EyeTV 500 on an OSX 10.3.9 machine here (old G4) and playback is flawless on the roku.

It was critical for me to be able to simply play back the files as recorded, without having to convert files and such to get things working, and this solution did it.

- Mike
 
iansouth1
Topic Author
Posts: 6
Joined: Thu Oct 27, 2005 5:53 am

Sample clips....

Wed Nov 02, 2005 4:34 pm

sample video clips made via Airstar HD5000 and DVBviewerTE and DVBviewer 3.2.4 available:

http://69.170.36.250:8081/mpeg-samples

Stupid netgear wont redirect port 80 inside....
Last edited by iansouth1 on Fri Nov 04, 2005 3:38 pm, edited 2 times in total.
 
dgburns
Posts: 807
Joined: Mon Jun 27, 2005 9:37 am

Thu Nov 03, 2005 4:37 pm

iansouth1 wrote:
a) Better program stream support.
b) ac3 -> something compatable (aka mp2) support?

Ian


I think we'd all agree with a.

As for b, I play MPEG2TS files with ac3 (2.0 and 5.1) all the time, no problem.

I'm not sure what is causing your problem, and understand how frustrating it can be, but I concur with Endless you should try to get your card/software to capture directly to Transport Stream.
HD-1500 RevB #1 (media room)

Mitsubishi WD-62528 62" LCD RPTV

Kenwood VR-407 receiver w/PSB Alpha's

PS/3 60GB (now 250GB) w/750GB Seagate ext

M1000 (upstairs)

HD-1000 RevB #2 (bedroom)

Visco 32" LCD

AR 2.1 audio system

PS/2
 
HookedOnTV
Posts: 161
Joined: Thu Aug 19, 2004 7:25 am
Contact:

Tue Nov 15, 2005 3:18 pm

Try using TSReader with your card for captures.
- Travis

Who is online

Users browsing this forum: No registered users and 3 guests