VideoHelp Forum
+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 50

Thread: Progressive MP4

Thread
  1. Member Kivlov's Avatar
    Join Date: Feb 2014
    Location: France
    Search Comp PM
    Hello world

    to begin, sorry for my poor english, I hope you will understand me

    so, I bought an Imagevue gallery to share private medias with my family. Imagevue can display pictures and videos (FLV and MP4), this is why I chose it.

    I have a Nokia N8 for some years, and I took some videos with it. those are MP4 native, with h.264 and AAC LC. all of them works perfectly with VLC, and I uploaded some of them on youtube without any problem.

    but last weekend, I uploaded one N8 video on my FTP where the new Imagevue gallery is. I tried to play the video before upload the others... the player loaded the whole file before playing it. for a very small video, it's not a problem, but for 100 or 200Mo videos, it's not acceptable.

    so I found some forums where people talked about this : the header must be moved at the beginning of the file. so I did it, with MP4 FastStart, to test. but the result was strange... the video display a frozen image, then load a little and play at the same time, but always frozen... for begin next to the end, a shorter video.

    so I tried tons of software, YAMB for example, or MP4 Box with some GUI, etc... I tried several options that I didn't know but seem to be fine, without any good results.

    I don't have any idea anymore, and I'm not a specialist... that's why I'm here !

    to show you how it works, I uploaded a test gallery with 6 videos : 1 original test from my Nokia N8 (test_original.mp4) and 5 remuxed files, named with what I did on it (for example, test_faststart.mp4 is the one I tried with MP4 Fast Start).

    here is the test gallery : http://www.oxydium.com/test/

    the original video can be download here : http://www.oxydium.com/test/test_original.mp4 (if someone wants to try ^^).

    if you have an idea, I hear you !
    Thank you,
    Kivlov.
    pwet.
    Quote Quote  
  2. The term you are looking for is progressive streaming,

    mp4box is muxing mp4 with this feature set default, I do this all the time, but I use command line. But mp4box is just a muxer, not encoder.

    For example if you get mp4 video from Avidemux it is not ready for progressive streaming, you'd have to run it through Data Go Round utility mp4faststart (I manualy set correct hyperlink here, because yours leads just to mp4box download)

    anyway that Data Go Round neat little program works also, so not sure where is the problem.
    Quote Quote  
  3. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    But kivlov has already used mp4faststart .

    Yep, the mp4faststart/hint files freezes a bit at start. Compared to the original that must load entire but then plays ok.


    Have you tried reconvert one mp4 with for example handbrake. Does same problem occur? Just to test.
    Quote Quote  
  4. Member Kivlov's Avatar
    Join Date: Feb 2014
    Location: France
    Search Comp PM
    Originally Posted by Baldrick View Post
    but then plays ok.
    not really, when it freezes at the beginning, the video total time is cut : total time - freeze time = video time cut, I lost about 5 or 6s at the first play (15% of the total time in my example !), depend of the freeze time :/

    Originally Posted by Baldrick View Post
    Have you tried reconvert one mp4 with for example handbrake. Does same problem occur? Just to test.
    I tried to reconvert with SUPER, but there were no difference (stream copy). I didn't try handbrake, I will this evening...

    and if someone could try my test video on his own server with his own player, to see if there is a difference...

    thank you
    Kivlov.
    pwet.
    Quote Quote  
  5. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    "Stream copy" just copies the video. Reconvert the clip instead. Just to see how it works on your server.

    I can test the file on my server....if I get some free time over.
    Quote Quote  
  6. Member Kivlov's Avatar
    Join Date: Feb 2014
    Location: France
    Search Comp PM
    I didn't do it, to preserve the quality (and I don't see why it could be different). but I will try.
    pwet.
    Quote Quote  
  7. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    http://www.oxydium.com/test/test_original.mp4 plays better directly in chrome and firefox. Without any flash player but just with the browser/html5 player.
    Quote Quote  
  8. Member Kivlov's Avatar
    Join Date: Feb 2014
    Location: France
    Search Comp PM
    Originally Posted by Baldrick View Post
    http://www.oxydium.com/test/test_original.mp4 plays better directly in chrome and firefox. Without any flash player but just with the browser/html5 player.
    yes, I know that. I tried a standalone HTML5 player, and it works fine. but I have the same problem with jw player and jplayer (standalone), and the Imagevue player is the only solution I should use for security reasons.

    an Imagevue demo gallery has some MP4 videos which work perfectly : http://imagevuex.com/demo/x2/#/various/video/.

    I downloaded one of them, pixels.mp4, and uploaded it on my test gallery. It works perfectly too ! you can try it, it's the first one in my folder. that's why I say that the Imagevue player should work with my videos. but I don't understand what is different between this video and mine...
    pwet.
    Quote Quote  
  9. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    Yep. It works fine.

    Something is wrong with the nokia video. And you seem to have tried all remuxers(no video reconversion).
    Quote Quote  
  10. Member Kivlov's Avatar
    Join Date: Feb 2014
    Location: France
    Search Comp PM
    yes, and my question is : what is wrong ?
    pwet.
    Quote Quote  
  11. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    The video is wrong.

    .

    Adding the mediainfo report

    Code:
    General
    Complete name                            : E:\Downloads\test_original.mp4
    Format                                   : MPEG-4
    Format profile                           : Base Media / Version 2
    Codec ID                                 : mp42
    File size                                : 51.0 MiB
    Duration                                 : 40s 626ms
    Overall bit rate mode                    : Constant
    Overall bit rate                         : 10.5 Mbps
    Encoded date                             : UTC 2014-02-10 19:06:46
    Tagged date                              : UTC 2014-02-10 19:06:46
    
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : Baseline@L3.1
    Format settings, CABAC                   : No
    Format settings, ReFrames                : 1 frame
    Format settings, GOP                     : M=1, N=30
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 40s 626ms
    Bit rate mode                            : Constant
    Bit rate                                 : 10.4 Mbps
    Nominal bit rate                         : 14.0 Mbps
    Width                                    : 1 280 pixels
    Height                                   : 720 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Variable
    Frame rate                               : 30.000 fps
    Minimum frame rate                       : 29.970 fps
    Maximum frame rate                       : 30.030 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.375
    Stream size                              : 50.2 MiB (98%)
    Encoded date                             : UTC 2014-02-10 19:06:46
    Tagged date                              : UTC 2014-02-10 19:06:46
    
    Audio
    ID                                       : 2
    Format                                   : AAC
    Format/Info                              : Advanced Audio Codec
    Format profile                           : LC
    Codec ID                                 : 40
    Duration                                 : 40s 384ms
    Bit rate mode                            : Constant
    Bit rate                                 : 160 Kbps
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 48.0 KHz
    Compression mode                         : Lossy
    Stream size                              : 789 KiB (2%)
    Encoded date                             : UTC 2014-02-10 19:06:46
    Tagged date                              : UTC 2014-02-10 19:06:46
    Quote Quote  
  12. Member Kivlov's Avatar
    Join Date: Feb 2014
    Location: France
    Search Comp PM
    mmm... yes. and my new question is : what is wrong in the Nokia N8 video which disturb a progressive play ?
    pwet.
    Quote Quote  
  13. Remuxing nokia-n8.mp4 back to remuxed.mp4 might help, as it seems like issue is related with mov atoms or web-optimization.
    Quote Quote  
  14. Member Kivlov's Avatar
    Join Date: Feb 2014
    Location: France
    Search Comp PM
    already did it, with YAMB. didn't work.
    pwet.
    Quote Quote  
  15. might be YAMB issue, try using latest version of GPAC.
    Quote Quote  
  16. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    Try latest mp4box build. http://gpac.wp.mines-telecom.fr/downloads/gpac-nightly-builds/

    From the command prompt type
    Code:
    mp4box -hint video.mp4
    Quote Quote  
  17. Member Kivlov's Avatar
    Join Date: Feb 2014
    Location: France
    Search Comp PM
    ok, I'll try this evening, after work. I don't really see what could be different, but I'll try
    pwet.
    Quote Quote  
  18. Baldrick,

    OP Kivlov is already hinted, I mean he got the hint already.
    Quote Quote  
  19. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    But not latest mp4box build.

    Maybe also set the frame rate to exactly 30fps. But I'm not any mp4box command line expert....so I leave that to enim.
    Quote Quote  
  20. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    okey. I made some tests with latest mp4box.

    One with just -hint
    One with extracting streams then remuxing with 30fps and hint
    Attached Files
    Quote Quote  
  21. Member Kivlov's Avatar
    Join Date: Feb 2014
    Location: France
    Search Comp PM
    thank you Baldrick, I'll test those files... as soon as my web hoster will be back online
    pwet.
    Quote Quote  
  22. Member Kivlov's Avatar
    Join Date: Feb 2014
    Location: France
    Search Comp PM
    the both videos are online, I uploaded them. but the problem is the same, as you can see
    pwet.
    Quote Quote  
  23. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    I give up then. .

    Get a bettera camera.
    Quote Quote  
  24. Member Kivlov's Avatar
    Join Date: Feb 2014
    Location: France
    Search Comp PM
    I have another camera since christmas. but I can't film the past with it

    I'm sure there is a solution... but I don't know it
    pwet.
    Quote Quote  
  25. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    Get a time machine.

    Or just try and reconvert. It might be worth it even if you lose some quality.
    Last edited by Baldrick; 11th Feb 2014 at 07:54.
    Quote Quote  
  26. Member Kivlov's Avatar
    Join Date: Feb 2014
    Location: France
    Search Comp PM
    yes, I'll try this when I'll come back home. I hope it will solve the problem !

    I'll try Handbrake, with basic options.
    pwet.
    Quote Quote  
  27. Or just try and reconvert. It might be worth it even if you lose some quality.
    Baldrick already said that. If nothing works, Try re-encoding.

    As OP mentioned Handbrake, I was trying to figure out appropriate profile or settings by reading wiki/manual,
    here : https://trac.handbrake.fr/wiki/BuiltInPresets

    Following setting is mentioned for Android Tablet which should also work for you,

    ./HandBrakeCLI -i DVD -o ~/Movies/movie.mp4 -e x264 -q 22.0 -r 30 --pfr -a 1 -E faac -B 128 -6 dpl2 -R Auto -D 0.0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 -f mp4 -X 1280 -Y 720 --loose-anamorphic --modulus 2 --x264-preset medium --h264-profile main --h264-level 3.1

    I am still wondering, How does Hanbrake sets proper aspect ratio? May be it has some some internal mechanism.

    I had a DVR which used to record in mpeg-2 format in such a way that players start freezing and no other software can import it straight without re-encoding,
    Quote Quote  
  28. I tested that remuxed file by Baldrick and it works with jwplayer, ....., that video has just insane bitrate for streaming standards, 10Mbits and great deal even 15Mbit, so it takes a while until it fills buffer , that depends on your download speed and whatever that server of yours is capable to stream, and only then it starts to stream.
    That buffering could go on for a couple of seconds maybe even ten seconds or so, then it becomes a classic, a cat and mouse streaming game, playback catches limit whatever was downloaded and it starts to buffer for a while, until there is enough in buffer it starts to play again.

    In any case using jwplayer, video started to play before the whole video was downloaded.
    Quote Quote  
  29. Member Kivlov's Avatar
    Join Date: Feb 2014
    Location: France
    Search Comp PM
    so, I tried Handbrake with my video, with the profile enim said. here is the media info :

    Code:
    General
    Complete name                            : C:\Users\Kivlov\Videos\test_handbrake.mp4
    Format                                   : MPEG-4
    Format profile                           : Base Media / Version 2
    Codec ID                                 : mp42
    File size                                : 11.8 MiB
    Duration                                 : 40s 633ms
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 2 443 Kbps
    Encoded date                             : UTC 2014-02-11 18:32:59
    Tagged date                              : UTC 2014-02-11 18:34:51
    Writing application                      : HandBrake 0.9.9 2013052900
    
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : Main@L3.1
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 4 frames
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 40s 633ms
    Bit rate                                 : 2 311 Kbps
    Width                                    : 1 280 pixels
    Height                                   : 720 pixels
    Display aspect ratio                     : 16:9
    Original display aspect ratio            : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 30.000 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.084
    Stream size                              : 11.2 MiB (95%)
    Writing library                          : x264 core 130 r2273 b3065e6
    Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=300 / keyint_min=30 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=22.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=14000 / vbv_bufsize=14000 / crf_max=0.0 / nal_hrd=none / ip_ratio=1.40 / aq=1:1.00
    Encoded date                             : UTC 2014-02-11 18:32:59
    Tagged date                              : UTC 2014-02-11 18:34:50
    Color primaries                          : BT.709
    Transfer characteristics                 : BT.709
    Matrix coefficients                      : BT.709
    
    Audio
    ID                                       : 2
    Format                                   : AAC
    Format/Info                              : Advanced Audio Codec
    Format profile                           : LC
    Codec ID                                 : 40
    Duration                                 : 40s 405ms
    Bit rate mode                            : Variable
    Bit rate                                 : 128 Kbps
    Maximum bit rate                         : 150 Kbps
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 48.0 KHz
    Compression mode                         : Lossy
    Stream size                              : 631 KiB (5%)
    Encoded date                             : UTC 2014-02-11 18:32:59
    Tagged date                              : UTC 2014-02-11 18:34:50
    aaand, no. play faster, but always a little freeze which cut a little the video at the first play. I tried some other profils and other options, but nothing better than this profile.
    pwet.
    Quote Quote  
  30. Member Kivlov's Avatar
    Join Date: Feb 2014
    Location: France
    Search Comp PM
    @_Al_ : what is the streaming standards bitrate ? it could be the solution to my problem. cause the videos which works fine have less than 1Mbps bitrate. that's why the last test, with handbrake (named test_handbrake.mp4) works faster than the others ?
    pwet.
    Quote Quote  



Similar Threads