Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 12-13-2012, 09:37 AM
MartianMambo MartianMambo is offline
Junior Member
 
Join Date: Dec 2012
Posts: 3
MartianMambo is on a distinguished road
Default

AdobeHDS - converted videos stopping midway


I'm looking to migrate some videos recorded with Wowza to Flash Media Server. The videos were captured with the Wowza DVR application and as a result were split into m4fa/m4fv atoms. I've used KSV's AdobeHDS script to recompose these files into a single FLV. At first when trying to stream these via the Flash Media Server VOD app, there was no reported duration. I checked the FLV metadata and there was no duration tag, so I used yamdi to inject the duration metadata.

Now when streamed via FMS VOD, the videos play as expected with the correct duration shown, and I can seek to any point in the video. However, playback will randomly stop midway through. Any ideas why this is happening or what I might look at?
Reply With Quote
  #2  
Old 12-13-2012, 10:48 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: AdobeHDS - converted videos stopping midway


Does video play correctly with standalone players (vlc, mplayer, ffplay etc.)? does it crap out at same point always? and for metadata see https://github.com/K-S-V/Scripts/issues/5.
Reply With Quote
  #3  
Old 12-17-2012, 10:14 AM
MartianMambo MartianMambo is offline
Junior Member
 
Join Date: Dec 2012
Posts: 3
MartianMambo is on a distinguished road
Default

Re: AdobeHDS - converted videos stopping midway


Thanks for the quick reply. The video plays just fine in VLC. The method of failure is using Flash Media Server VOD app to do RTMP streaming using Strobe player. The videos don't always fail in the same point. If I seek past a place where it seems to fail, it will fail at another point.

Strangely, using Adobe's FLVCheck tool shows the following:
12-12-17 07:44:33 Error: -108 Invalid video codec. test_md_fixed.flv

VLC shows the video codec as:
H264 - MPEG-4 AVC (part 10) (avc1)

This seems to be the same codec as other videos with no issues.

As for the metadata, because these videos were created using Wowza's DVR app, maybe they are marked as "live" and therefore the script is not adding the metadata? Strobe media player has no way of calculating duration without the metadata. In any case, using yamdi to inject is no big deal.
Reply With Quote
  #4  
Old 12-17-2012, 04:08 PM
MartianMambo MartianMambo is offline
Junior Member
 
Join Date: Dec 2012
Posts: 3
MartianMambo is on a distinguished road
Default

Re: AdobeHDS - converted videos stopping midway


According to Flash Media Server documentation, it's not supported to have an .flv container with H.264 encoded video. I tried using ffmpeg to rebox the a/v streams in an mp4 container and the video seems to play back just fine. However, the audio and video are out of sync and I can't seem to get them lined up.

I don't suppose it would be trivial to modify the AdobeHDS script to output to an mp4 container?
Reply With Quote
  #5  
Old 12-21-2012, 08:47 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: AdobeHDS - converted videos stopping midway


Quote:
Originally Posted by MartianMambo View Post
I don't suppose it would be trivial to modify the AdobeHDS script to output to an mp4 container?
No, it's not trivial. it will require coding a full mp4 muxer to achieve that. why don't you create some batch script to remux the flv file with ffmpeg after processing by AdobeHDS script.
Reply With Quote
Reply Post New Thread
Tags: , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 11:16 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons