home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
WebService and Mobile Access
Popular Plugins
iPiMP
iPiMP 5.1.0 is released
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="j1nx" data-source="post: 681034" data-attributes="member: 13808"><p><strong>VLC:</strong> Figured out all settings needed to create an iPhone compatible mp4 file. Streamed it with the livehttp module of VLC, still stuttering while playback on my ipod. Again opening the fragments manually with an other PC based player does not show this stuttering. I guess VLC is not yet mature enough to handle all the way it should.</p><p></p><p>Anyway, if someone would want to have a look, this is what I came up with;</p><p>[code]</p><p>--sout=#transcode{vcodec=h264,vb=256,width=320,height=240,fps=25,deinterlace,acodec=mp4a,ab=96,channels=2,samplerate=44100,audio-sync,venc=x264{aud,profile=baseline,level=30,keyint=30,bframes=0,ref=1,crf=24,deblock=0:0,qpmin=10,qpmax=51,partitions=fast,me=hex,merange=4,subme=2,trellis=0,nocabac}</p><p>[/code]</p><p></p><p></p><p><strong>archive_segment_length:</strong> I think this is not working at the moment (bug), tried different seconds, but the ismv file is not rolled to the next.</p><p></p><p></p><p><strong>dvr_window_length:</strong> This is the amount of second the playing should start in the past compared to where the encoding takes place. 15 means, you will start playing 15 before the frame it is actually encoding at the moment.</p><p></p><p></p><p><strong>Smooth Streaming, segments length:</strong> I now understand how smoothstreaming handles the segment lengths. The video will be splitted at the keyframes.</p><p>[code]</p><p>g=100</p><p>keyint_min=50</p><p>sc_threshold=0</p><p>[/code]</p><p>So what does this do? </p><p><strong>g=100</strong>, this means we want a key frame every 100 frames. Considering PAL fps of 25 this means about every 4 seconds.</p><p><strong>sc_threshold=0</strong>, This means we want zero tolerance if it comes to where to put this key frame. It is normally not wise to insert a key frame in the middle of a scene. Increasing this number allows a margin, putting the key frame at a scene cut, instead of in the middle of a scene.</p><p><strong>keyint_min=50</strong>, If we allow a margin in the key frame placement, this number means. the minimal distance between two key frames. Pal fps of 25 means at least every 2 seconds.</p><p></p><p>As Smooth Streaming also uses this key frames as segment lengths, this means every segment is at least keyint_min/fps seconds, up to q(g+sc_threshold)/fps. If you have only one quality stream, you can increase the sc_threshold back to the default of 40. Later if more quality streams are provided, this has to be zero because you want all the different quality segments to be exactly the same.</p><p></p><p></p><p>I also now understand most, if not all of the quality parameters of ffmpeg and why cbr is not really cbr and which values you can tweak to have more consistent bit rates. I will update my first post at my other thread later, explaining all ffmpeg and smooth streaming settings and give maybe 3 pre-settings (fast, medium, slow). Just need some time to write it down properly.</p><p></p><p></p><p>Two comments so far from my side; Apple advises to use ~10 second fragments, so it might be better to use;</p><p>[code]</p><p>g=250</p><p>keyint_min=250</p><p>sc_threshold=40</p><p>[/code]</p><p></p><p>Secondly Apple advises to use up to 44100 for the audio,so maybe it is better to lower the 48000 to 44100. </p><p></p><p>Will do some additional testing later. Keep you informed.</p></blockquote><p></p>
[QUOTE="j1nx, post: 681034, member: 13808"] [b]VLC:[/b] Figured out all settings needed to create an iPhone compatible mp4 file. Streamed it with the livehttp module of VLC, still stuttering while playback on my ipod. Again opening the fragments manually with an other PC based player does not show this stuttering. I guess VLC is not yet mature enough to handle all the way it should. Anyway, if someone would want to have a look, this is what I came up with; [code] --sout=#transcode{vcodec=h264,vb=256,width=320,height=240,fps=25,deinterlace,acodec=mp4a,ab=96,channels=2,samplerate=44100,audio-sync,venc=x264{aud,profile=baseline,level=30,keyint=30,bframes=0,ref=1,crf=24,deblock=0:0,qpmin=10,qpmax=51,partitions=fast,me=hex,merange=4,subme=2,trellis=0,nocabac} [/code] [b]archive_segment_length:[/b] I think this is not working at the moment (bug), tried different seconds, but the ismv file is not rolled to the next. [b]dvr_window_length:[/b] This is the amount of second the playing should start in the past compared to where the encoding takes place. 15 means, you will start playing 15 before the frame it is actually encoding at the moment. [b]Smooth Streaming, segments length:[/b] I now understand how smoothstreaming handles the segment lengths. The video will be splitted at the keyframes. [code] g=100 keyint_min=50 sc_threshold=0 [/code] So what does this do? [b]g=100[/b], this means we want a key frame every 100 frames. Considering PAL fps of 25 this means about every 4 seconds. [b]sc_threshold=0[/b], This means we want zero tolerance if it comes to where to put this key frame. It is normally not wise to insert a key frame in the middle of a scene. Increasing this number allows a margin, putting the key frame at a scene cut, instead of in the middle of a scene. [b]keyint_min=50[/b], If we allow a margin in the key frame placement, this number means. the minimal distance between two key frames. Pal fps of 25 means at least every 2 seconds. As Smooth Streaming also uses this key frames as segment lengths, this means every segment is at least keyint_min/fps seconds, up to q(g+sc_threshold)/fps. If you have only one quality stream, you can increase the sc_threshold back to the default of 40. Later if more quality streams are provided, this has to be zero because you want all the different quality segments to be exactly the same. I also now understand most, if not all of the quality parameters of ffmpeg and why cbr is not really cbr and which values you can tweak to have more consistent bit rates. I will update my first post at my other thread later, explaining all ffmpeg and smooth streaming settings and give maybe 3 pre-settings (fast, medium, slow). Just need some time to write it down properly. Two comments so far from my side; Apple advises to use ~10 second fragments, so it might be better to use; [code] g=250 keyint_min=250 sc_threshold=40 [/code] Secondly Apple advises to use up to 44100 for the audio,so maybe it is better to lower the 48000 to 44100. Will do some additional testing later. Keep you informed. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
WebService and Mobile Access
Popular Plugins
iPiMP
iPiMP 5.1.0 is released
Contact us
RSS
Top
Bottom