Corrupt flv files

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Corrupt flv files

Christian Graf-3
Hi guys,

I am trying to use red5 (v0.9 RC2) for a very simple purpose. I want to stream a video from the users webcam and save it on the servers harddisk.

In principle everything seems to work fine - meaning I can record a file. I publish the file using NetStream.publish and I just close the stream when I want to finish.

But the files seem to be corrupt quite often. The two problems upcoming most often are

1) If I want to replay the file (using standard Flex VideoDisplay component) the audio starts to play but the video stays black. If I press pause and play again the video appears. Could that be a problem with the player?
2) The more serious problem is, that the video jumps. I have e.g. a video with has a total length of 32 seconds. But after second 7 the video jumps to second 28. Looking at the metadata, everything seems to be fine (although I have no deeper knowledge about the exact structure). Meaning there seems to be no jump neither in the keyframes times nor in their file positions. Is this a known problem? Recreating the metadata with yamdi does not solve the problem.

I can post/send the metadata as XML (or the video itself) if someone requests.

Thanks,
Daniel

Reply | Threaded
Open this post in threaded view
|

Re: Corrupt flv files

windock
Have you seen your audio timestamps? If timestamps for audio jump, video may jump also. I currently have the same problem for erlyvideo (streaming server for erlang). Would be cool to see metadata.

2009/11/27 Christian Graf <[hidden email]>
Hi guys,

I am trying to use red5 (v0.9 RC2) for a very simple purpose. I want to stream a video from the users webcam and save it on the servers harddisk.

In principle everything seems to work fine - meaning I can record a file. I publish the file using NetStream.publish and I just close the stream when I want to finish.

But the files seem to be corrupt quite often. The two problems upcoming most often are

1) If I want to replay the file (using standard Flex VideoDisplay component) the audio starts to play but the video stays black. If I press pause and play again the video appears. Could that be a problem with the player?
2) The more serious problem is, that the video jumps. I have e.g. a video with has a total length of 32 seconds. But after second 7 the video jumps to second 28. Looking at the metadata, everything seems to be fine (although I have no deeper knowledge about the exact structure). Meaning there seems to be no jump neither in the keyframes times nor in their file positions. Is this a known problem? Recreating the metadata with yamdi does not solve the problem.

I can post/send the metadata as XML (or the video itself) if someone requests.

Thanks,
Daniel


Reply | Threaded
Open this post in threaded view
|

Re: Corrupt flv files

Christian Graf-3
Hi Andrew,

here is the metadata in xml format generated by yamdi (sorry for the
long post)

<?xml version='1.0' encoding='UTF-8'?>
<fileset>
<flv name="video-1bae669a722ecb67327e53f9fa57260d.flv">
<hasKeyframes>true</hasKeyframes>
<hasVideo>true</hasVideo>
<hasAudio>true</hasAudio>
<hasMetadata>true</hasMetadata>
<hasCuePoints>false</hasCuePoints>
<canSeekToEnd>false</canSeekToEnd>
<audiocodecid>5</audiocodecid>
<audiosamplerate>5500</audiosamplerate>
<audiodatarate>5</audiodatarate>
<audiosamplesize>16</audiosamplesize>
<audiodelay>0.00</audiodelay>
<stereo>false</stereo>
<videocodecid>2</videocodecid>
<framerate>9.93</framerate>
<videodatarate>75</videodatarate>
<height>240</height>
<width>320</width>
<datasize>353591</datasize>
<audiosize>28044</audiosize>
<videosize>322763</videosize>
<filesize>357354</filesize>
<lasttimestamp>32.93</lasttimestamp>
<lastvideoframetimestamp>32.93</lastvideoframetimestamp>
<lastkeyframetimestamp>32.84</lastkeyframetimestamp>
<lastkeyframelocation>356977</lastkeyframelocation>
<keyframes>
<times>
<value id="0">0.05</value>
<value id="1">0.23</value>
<value id="2">0.44</value>
<value id="3">0.64</value>
<value id="4">0.84</value>
<value id="5">1.05</value>
<value id="6">1.28</value>
<value id="7">1.46</value>
<value id="8">1.57</value>
<value id="9">1.76</value>
<value id="10">1.97</value>
<value id="11">2.16</value>
<value id="12">2.37</value>
<value id="13">2.56</value>
<value id="14">2.77</value>
<value id="15">2.95</value>
<value id="16">3.06</value>
<value id="17">3.26</value>
<value id="18">3.44</value>
<value id="19">3.69</value>
<value id="20">3.88</value>
<value id="21">4.08</value>
<value id="22">4.28</value>
<value id="23">4.49</value>
<value id="24">4.57</value>
<value id="25">4.76</value>
<value id="26">4.96</value>
<value id="27">5.17</value>
<value id="28">5.37</value>
<value id="29">5.56</value>
<value id="30">5.76</value>
<value id="31">5.95</value>
<value id="32">6.08</value>
<value id="33">6.29</value>
<value id="34">6.48</value>
<value id="35">6.69</value>
<value id="36">6.88</value>
<value id="37">7.07</value>
<value id="38">7.28</value>
<value id="39">7.49</value>
<value id="40">7.68</value>
<value id="41">7.79</value>
<value id="42">7.97</value>
<value id="43">8.17</value>
<value id="44">8.37</value>
<value id="45">8.61</value>
<value id="46">8.81</value>
<value id="47">9.02</value>
<value id="48">9.11</value>
<value id="49">9.30</value>
<value id="50">9.49</value>
<value id="51">9.69</value>
<value id="52">9.89</value>
<value id="53">10.09</value>
<value id="54">10.29</value>
<value id="55">10.49</value>
<value id="56">10.59</value>
<value id="57">10.79</value>
<value id="58">11.01</value>
<value id="59">11.21</value>
<value id="60">11.41</value>
<value id="61">11.61</value>
<value id="62">11.81</value>
<value id="63">12.01</value>
<value id="64">12.11</value>
<value id="65">12.31</value>
<value id="66">12.51</value>
<value id="67">12.69</value>
<value id="68">12.89</value>
<value id="69">13.09</value>
<value id="70">13.29</value>
<value id="71">13.53</value>
<value id="72">13.63</value>
<value id="73">13.84</value>
<value id="74">14.01</value>
<value id="75">14.21</value>
<value id="76">14.41</value>
<value id="77">14.61</value>
<value id="78">14.81</value>
<value id="79">15.01</value>
<value id="80">15.11</value>
<value id="81">15.31</value>
<value id="82">15.51</value>
<value id="83">15.71</value>
<value id="84">15.93</value>
<value id="85">16.13</value>
<value id="86">16.33</value>
<value id="87">16.53</value>
<value id="88">16.63</value>
<value id="89">16.83</value>
<value id="90">17.03</value>
<value id="91">17.21</value>
<value id="92">17.41</value>
<value id="93">17.61</value>
<value id="94">17.81</value>
<value id="95">18.01</value>
<value id="96">18.11</value>
<value id="97">18.31</value>
<value id="98">18.55</value>
<value id="99">18.73</value>
<value id="100">18.93</value>
<value id="101">19.13</value>
<value id="102">19.33</value>
<value id="103">19.53</value>
<value id="104">19.63</value>
<value id="105">19.83</value>
<value id="106">20.03</value>
<value id="107">20.23</value>
<value id="108">20.43</value>
<value id="109">20.61</value>
<value id="110">20.81</value>
<value id="111">21.05</value>
<value id="112">21.15</value>
<value id="113">21.35</value>
<value id="114">21.55</value>
<value id="115">21.73</value>
<value id="116">21.93</value>
<value id="117">22.13</value>
<value id="118">22.33</value>
<value id="119">22.53</value>
<value id="120">22.63</value>
<value id="121">22.83</value>
<value id="122">23.03</value>
<value id="123">23.23</value>
<value id="124">23.45</value>
<value id="125">23.65</value>
<value id="126">23.85</value>
<value id="127">24.05</value>
<value id="128">24.15</value>
<value id="129">24.35</value>
<value id="130">24.55</value>
<value id="131">24.75</value>
<value id="132">24.95</value>
<value id="133">25.15</value>
<value id="134">25.33</value>
<value id="135">25.62</value>
<value id="136">25.72</value>
<value id="137">25.95</value>
<value id="138">26.16</value>
<value id="139">26.36</value>
<value id="140">26.56</value>
<value id="141">26.75</value>
<value id="142">26.94</value>
<value id="143">27.14</value>
<value id="144">27.34</value>
<value id="145">27.53</value>
<value id="146">27.73</value>
<value id="147">27.93</value>
<value id="148">28.13</value>
<value id="149">28.33</value>
<value id="150">28.55</value>
<value id="151">28.75</value>
<value id="152">28.85</value>
<value id="153">29.05</value>
<value id="154">29.25</value>
<value id="155">29.44</value>
<value id="156">29.65</value>
<value id="157">29.86</value>
<value id="158">30.04</value>
<value id="159">30.24</value>
<value id="160">30.34</value>
<value id="161">30.55</value>
<value id="162">30.74</value>
<value id="163">30.98</value>
<value id="164">31.19</value>
<value id="165">31.37</value>
<value id="166">31.57</value>
<value id="167">31.77</value>
<value id="168">31.84</value>
<value id="169">32.04</value>
<value id="170">32.24</value>
<value id="171">32.43</value>
<value id="172">32.64</value>
<value id="173">32.84</value>
</times>
<filepositions>
<value id="0">3923</value>
<value id="1">5002</value>
<value id="2">5901</value>
<value id="3">6786</value>
<value id="4">8125</value>
<value id="5">10263</value>
<value id="6">12111</value>
<value id="7">13520</value>
<value id="8">18068</value>
<value id="9">19266</value>
<value id="10">20401</value>
<value id="11">21567</value>
<value id="12">22727</value>
<value id="13">23725</value>
<value id="14">25055</value>
<value id="15">26398</value>
<value id="16">31004</value>
<value id="17">32287</value>
<value id="18">33411</value>
<value id="19">34754</value>
<value id="20">35683</value>
<value id="21">36951</value>
<value id="22">38716</value>
<value id="23">39928</value>
<value id="24">44464</value>
<value id="25">45600</value>
<value id="26">46727</value>
<value id="27">47918</value>
<value id="28">49025</value>
<value id="29">50943</value>
<value id="30">54775</value>
<value id="31">58066</value>
<value id="32">62747</value>
<value id="33">65260</value>
<value id="34">67422</value>
<value id="35">69890</value>
<value id="36">72582</value>
<value id="37">75079</value>
<value id="38">77714</value>
<value id="39">80537</value>
<value id="40">85652</value>
<value id="41">87628</value>
<value id="42">89782</value>
<value id="43">91506</value>
<value id="44">93439</value>
<value id="45">95528</value>
<value id="46">97972</value>
<value id="47">99075</value>
<value id="48">103928</value>
<value id="49">106171</value>
<value id="50">109237</value>
<value id="51">110542</value>
<value id="52">112795</value>
<value id="53">114376</value>
<value id="54">115899</value>
<value id="55">117925</value>
<value id="56">123114</value>
<value id="57">124803</value>
<value id="58">126889</value>
<value id="59">128342</value>
<value id="60">130178</value>
<value id="61">131670</value>
<value id="62">132959</value>
<value id="63">135551</value>
<value id="64">140724</value>
<value id="65">142313</value>
<value id="66">144818</value>
<value id="67">145946</value>
<value id="68">147684</value>
<value id="69">150345</value>
<value id="70">152491</value>
<value id="71">154022</value>
<value id="72">159055</value>
<value id="73">161288</value>
<value id="74">164218</value>
<value id="75">166856</value>
<value id="76">167854</value>
<value id="77">169330</value>
<value id="78">171578</value>
<value id="79">174042</value>
<value id="80">179226</value>
<value id="81">180308</value>
<value id="82">182601</value>
<value id="83">184865</value>
<value id="84">186415</value>
<value id="85">187931</value>
<value id="86">190097</value>
<value id="87">192564</value>
<value id="88">197707</value>
<value id="89">198618</value>
<value id="90">200348</value>
<value id="91">202664</value>
<value id="92">204408</value>
<value id="93">205448</value>
<value id="94">207683</value>
<value id="95">209970</value>
<value id="96">215072</value>
<value id="97">216981</value>
<value id="98">218864</value>
<value id="99">220906</value>
<value id="100">222033</value>
<value id="101">223631</value>
<value id="102">225991</value>
<value id="103">227666</value>
<value id="104">232885</value>
<value id="105">234372</value>
<value id="106">236470</value>
<value id="107">237607</value>
<value id="108">239368</value>
<value id="109">242013</value>
<value id="110">243631</value>
<value id="111">245777</value>
<value id="112">250737</value>
<value id="113">252726</value>
<value id="114">254801</value>
<value id="115">256520</value>
<value id="116">258089</value>
<value id="117">259288</value>
<value id="118">260404</value>
<value id="119">262541</value>
<value id="120">266922</value>
<value id="121">268979</value>
<value id="122">270473</value>
<value id="123">271303</value>
<value id="124">272465</value>
<value id="125">274705</value>
<value id="126">275722</value>
<value id="127">276285</value>
<value id="128">280721</value>
<value id="129">282080</value>
<value id="130">283530</value>
<value id="131">284953</value>
<value id="132">286030</value>
<value id="133">286834</value>
<value id="134">287930</value>
<value id="135">289439</value>
<value id="136">293858</value>
<value id="137">295752</value>
<value id="138">298203</value>
<value id="139">300603</value>
<value id="140">302100</value>
<value id="141">303500</value>
<value id="142">304644</value>
<value id="143">306139</value>
<value id="144">311022</value>
<value id="145">313786</value>
<value id="146">314952</value>
<value id="147">315672</value>
<value id="148">316280</value>
<value id="149">317301</value>
<value id="150">318538</value>
<value id="151">319695</value>
<value id="152">324203</value>
<value id="153">324931</value>
<value id="154">325537</value>
<value id="155">325851</value>
<value id="156">326275</value>
<value id="157">327037</value>
<value id="158">329605</value>
<value id="159">331327</value>
<value id="160">335793</value>
<value id="161">337070</value>
<value id="162">338888</value>
<value id="163">340188</value>
<value id="164">341299</value>
<value id="165">343686</value>
<value id="166">346025</value>
<value id="167">348044</value>
<value id="168">352488</value>
<value id="169">353918</value>
<value id="170">355476</value>
<value id="171">355989</value>
<value id="172">356472</value>
<value id="173">356977</value>
</filepositions>
</keyframes>
<duration>32.93</duration>
</flv>
</fileset>



On 27 Nov., 18:55, Андрей Щеглов <[hidden email]> wrote:

> Have you seen your audio timestamps? If timestamps for audio jump, video may
> jump also. I currently have the same problem for erlyvideo (streaming server
> for erlang). Would be cool to see metadata.
>
> 2009/11/27 Christian Graf <[hidden email]>
>
> > Hi guys,
>
> > I am trying to use red5 (v0.9 RC2) for a very simple purpose. I want to
> > stream a video from the users webcam and save it on the servers harddisk.
>
> > In principle everything seems to work fine - meaning I can record a file. I
> > publish the file using NetStream.publish and I just close the stream when I
> > want to finish.
>
> > But the files seem to be corrupt quite often. The two problems upcoming
> > most often are
>
> > 1) If I want to replay the file (using standard Flex VideoDisplay
> > component) the audio starts to play but the video stays black. If I press
> > pause and play again the video appears. Could that be a problem with the
> > player?
> > 2) The more serious problem is, that the video jumps. I have e.g. a video
> > with has a total length of 32 seconds. But after second 7 the video jumps to
> > second 28. Looking at the metadata, everything seems to be fine (although I
> > have no deeper knowledge about the exact structure). Meaning there seems to
> > be no jump neither in the keyframes times nor in their file positions. Is
> > this a known problem? Recreating the metadata with yamdi does not solve the
> > problem.
>
> > I can post/send the metadata as XML (or the video itself) if someone
> > requests.
>
> > Thanks,
> > Daniel