abdullahbinali3 / mp4parser

Automatically exported from code.google.com/p/mp4parser
0 stars 0 forks source link

Smooth streaming fragmenter incorrect BitRate in Manifest #59

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I encoded a video with ffmpeg with a constant bit rate of 2962Kbps using cmd,
ffmpeg -y -i videoin.wmv -an -c:v libx264 -preset fast -level 3.1 -g 60 
-keyint_min 60 -bf 0 -sc_threshold 0 -r 30 -pass 2 -b:v 2962k -minrate 2962k 
-maxrate 2962k -s 1280x720 Video-2962k.mp4

MediaInfo tells me the video is 2962 Kbps.

When I run
java.exe -jar smooth-streaming-fragmenter-1.0-RC-23.jar -o Output3 
Video-2962k.mp4

The resulting Manifest file has attribute Bitrate="1197348209" for the 
QualityLevel tag.
Smoothstreaming Silverlight player is interpreting this as 1197.34Mbps

I would have expected the Bitrate in the manifest to something more like 
2962000.

This error is also affecting the folder structure outputted by 
smooth-streaming-fragmenter.

Original issue reported on code.google.com by djtemple...@gmail.com on 12 Apr 2013 at 4:25

GoogleCodeExporter commented 8 years ago
change 869 should have fixed that. The calculation of the sample size was 
broken since I work with Buffer.limit(n) for some time instead of creating new 
slices for every sample. Therfore Buffer.remaining() didn't show the actual 
sample size anymore.

Original comment by Sebastian.Annies on 20 Apr 2013 at 10:53

GoogleCodeExporter commented 8 years ago
I can confirm change 869 has fixed the incorrect Bitrate.

Thanks.

Original comment by djtemple...@gmail.com on 23 Apr 2013 at 10:09

GoogleCodeExporter commented 8 years ago
Dear,

How can I change 869 ?

Original comment by than...@hdviet.com on 4 Jul 2013 at 8:36