Channel newbie, two seemingly trivial issues to overcome

I've been working on a channel that (at least for the moment, must access some FLV streams).  Setup of my media object looks like this:

 

def MediaObjectsForURL(url):

    return [MediaObject(container = 'flv',

                    audio_channels = 2,

                    video_codec = VideoCodec.H264,

                    audio_codec = AudioCodec.AAC,

                    optimized_for_streaming = True,

                    parts = [PartObject(key=Callback(PlayVideo, url=url))]

                    )]

 

PlayView is just a Redirect(url) and some logging.

 

So, my problems are as follows:

 

1. I can browse my channel, navigate, drill down to a video, and press play.  This works!  The issue is that the video shows the first frame, then is paused.  I must unpause to resume playback.  The system has no problem keeping up, so I'm assuming its not a buffering issue (and I've just let it sit there for minutes before giving up).

 

2. Assuming #1 can be resolved, really the channel will do what I want, and works fine on PHT.  That said, it doesn't work (except for browsing and selecting) on the web or iOS.  I'm trying (very hard) to understand if/how PMS should be transcoding the video automatically. 

 

I'm just hoping for a bit of direction.  I've ripped things apart, tried tons of variations based on other channels, and haven't managed to find any magic yet.

 

Thanks much,

John

Are you sure that the audio and video codec information you’re providing are correct? Most of the FLV files I’ve worked with don’t use H264. My usual quick check is to open the video URL using VLC then open the information window to see what codecs are being used.

If the media object metadata is incorrect, clients will be unable to make proper decisions about whether to request a transcode.

Here's what mediainfo gives me, I don't think I'm setting anything wrong?  :(

Size: 382.0 MB

Format: FLV format

Stream count: 2

Duration: 00:27:49

Bit rate: 1919 kb/s

Meta info:

    encoder: Lavf55.19.104

    gilesize: 0

 

Stream 0

Type: video

Codec: h264

Codec profile: Constrained Baseline

Width: 720

Height: 404

Sample aspect ratio: 1:1

Display aspect ratio: 180:101

Pixel format: yuv420p

Frame rate: nan fps

Bit rate: 2000 kb/s

 

Stream 1

Type: audio

Codec: aac

Bit rate: 192 kb/s

Sample rate: 44100 Hz

Sample format: s16

Channel: 2

I agree. Looks like you’ve got the right details. Can you paste the code for your PlayVideo function?

I agree. Looks like you've got the right details. Can you paste the code for your PlayVideo function?

I'm sorry, I completely missed this response.  I've removed PlayVideo altogether and have managed to find a combination of settings for MediaObject that makes it appear to work everywhere I want.

Except for one teensy thing.  In PHT, I select the video, press play... wait... a few frames (a fraction of a second) appear and the video pauses.  As soon as I unpause it - it's fine. No buffering... just works.  I can't find anything that would be causing this pause.  The duration is being set properly... not sure what else to do.  It just immediately pauses - otherwise everything else seems to be working.

Thanks much,

John