VideoHelp Forum




+ Reply to Thread
Results 1 to 21 of 21
  1. Hi,

    the idea is to upload mp4 video with logo/text to JWPlayer based website. The logo should be displayed for 5 seconds at the beginning of the videos.

    I have many such videos, therefore, complete reencode is not really an option.


    I'm trying to:
    -Split at 00:00:05.
    -Add logo to 5s video part.
    -Rejoin two parts together.

    The result is that the video is blank for those 5 seconds.

    When adding the logo i tried to copy the encode parameters of the initial video:
    Code:
    cabac=1 / ref=8 / deblock=1:1:1 / analyse=0x3:0x113 / me=umh / subme=6 / psy_rd=0.6:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=16 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=0 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=2pass / bitrate=500 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=0
    I did this by inputing numbers and ticking the relevant boxes with MeGui. I guess that this could be done by using the command line.

    So.. Is there a solution, really? Or the reencode is inevitable...
    Last edited by juodas; 12th Apr 2013 at 06:16.
    Quote Quote  
  2. You can't put a subtitle in those first 5 seconds, or an annotation? Much easier.
    Quote Quote  
  3. Annotation's not an option.

    You can't put subtitles. I tried muxing subtitles with mp4box in various ways but they don't show up.
    I could hardcode them, but that would be same as putting an image with MeGui. But then I would most likely face the same problem as described - the video would be blank.
    Quote Quote  
  4. I meant upload a subtitle or annotation for the video on YouTube.
    Quote Quote  
  5. It's not a youtube actually, but a 5.5 JWPLayer based website. So this doesn't work.
    Quote Quote  
  6. Then someone else will have to help.

    Have you tried creating the logo video using the same settings as the main video and then appending the main video to it using AviDemux?
    Quote Quote  
  7. to sum it up:

    Main/General question:
    Do you want the logo/text just be shown during playback through your JWPLayer based website or should it be really a part of the
    content?

    Solution A:
    If you just want it to be show in JWPLayer you probably 'just' need some javascript code, better ask for this in the official JWPlayer forum.

    Solution B:
    If you want it to be part of the content you have two options:
    a. simply add a subtitle, downside there is that mp4s ttxt format has near to none styling options, there are no 'forced' tracks in the mp4 container, so your text could easily be disabled and not all players support ttxt styling and ttxt subtitles.
    b. embed the logo by reencoding the video while adding you logo/text through a watermark/subtitle/logo filter or create an intro/credits part and add it to the video (downside with this is, that it can easily be removed by cutting the content)

    Cu Selur
    Quote Quote  
  8. Originally Posted by Selur View Post
    Main/General question:
    Do you want the logo/text just be shown during playback through your JWPLayer based website or should it be really a part of the
    content?


    Solution A:
    If you just want it to be show in JWPLayer you probably 'just' need some javascript code, better ask for this in the official JWPlayer forum.
    I don't host the player so that's not an option. It has to be part of content.

    Originally Posted by Selur View Post
    Solution B:
    If you want it to be part of the content you have two options:
    a. simply add a subtitle, downside there is that mp4s ttxt format has near to none styling options, there are no 'forced' tracks in the mp4 container, so your text could easily be disabled and not all players support ttxt styling and ttxt subtitles.
    I get - 'stream not recognized'.


    Originally Posted by Selur View Post
    create an intro/credits part and add it to the video (downside with this is, that it can easily be removed by cutting the content)
    Well, yeah, but wouldn't that end in the same result. The credits part would go black.

    Originally Posted by manono View Post
    Have you tried creating the logo video using the same settings as the main video and then appending the main video to it using AviDemux?
    And Avidemux keeps crashing...


    I wish there was an option 'Keep as source' in MeGui that would help
    When putting the logo I'm inevitably forced to choose the new bitrate which results in a different one when compared to the original video.
    Last edited by juodas; 13th Apr 2013 at 14:31.
    Quote Quote  
  9. Originally Posted by juodas View Post

    I'm trying to:
    -Split at 00:00:05.
    -Add logo to 5s video part.
    -Rejoin two parts together.

    The result is that the video is blank for those 5 seconds.
    So you mean you are re-encoding only the first 5 second part of the video and muxing it with the remaining video?
    Yeah, that should work.

    What you mean the video is blank? Even the original content, along with the added logo is not appearing during the first 5 seconds?
    Quote Quote  
  10. Reencode 5 seconds part and then join it with the initial video with mp4box or megui.

    When joined the '5 seconds' video part is black.

    I think this could cause problems: when putting the logo I'm inevitably forced to choose the new bitrate which results in a slightly different one when compared to the original video.
    Quote Quote  
  11. Originally Posted by juodas View Post

    I think this could cause problems: when putting the logo I'm inevitably forced to choose the new bitrate which results in a slightly different one when compared to the original video.

    unlikely to be the cause

    are you using the same version of x264, same settings? - these things will help improve your chances


    post the mediainfo report (view=>text) of original video , and re-encoded intro
    Quote Quote  


  12. The frame rate is different, but no idea why.

    Encoding settings: (some differences too)

    Original
    cabac=1 / ref=8 / deblock=1:1:1 / analyse=0x3:0x113 / me=umh / subme=6 / psy_rd=0.6:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=16 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=0 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=2pass / bitrate=500 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=0

    After adding logo
    cabac=1 / ref=8 / deblock=1:1:1 / analyse=0x3:0x113 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-4 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=16 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=238 / keyint_min=23 / scenecut=0 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=500 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
    Quote Quote  
  13. Originally Posted by juodas View Post
    When joined the '5 seconds' video part is black.
    Does it mean that before joining, the re-encoded 5 second video plays correctly, without any "black"?

    I think this could cause problems: when putting the logo I'm inevitably forced to choose the new bitrate which results in a slightly different one when compared to the original video.
    You should have some options to choose the required frame rate. Stick to either 23.976 or 25. It is common.

    Also, there is a vast difference in your max bit rates. It might be due to change in overall bit rate.
    I always stick to my rule, to use about 5MB for every minute of a normal good clarity video(For very High Defs, double this size).
    So that would mean, to have bitrate approx. 670 - 700 kbps for a normal video.

    Bitrate Calculation: video bitrate in kilobits= video size in kilobits/ length of video in seconds

    You are using 500kbps, which is why the quality loss is visible.
    Quote Quote  
  14. The differing frame rates is likely the main culprit, as these are supposed to be CFR files

    The other options are less important for appending, but may increase your chances of successful join if you match them. For example the old binary didn't even have AQ (but this shouldn't impact appending). Matching bitrates is probably the least important factor when appending files. If you download an old binary r1088M , and use the same settings you will have the highest chance

    Note also , that the format for the container is slightly different (base media vs jvt) , and the codec ID is different - these "small differences" can actually impair a join
    Quote Quote  
  15. @poisondeathray Actually, we are yet to come to the 'appending' step. The media info for after adding logo is not for the appended video, but for the re-encoded 5 second part. You can see that from the Duration.
    Quote Quote  
  16. Originally Posted by prashanth View Post
    @poisondeathray Actually, we are yet to come to the 'appending' step. The media info for after adding logo is not for the appended video, but for the re-encoded 5 second part. You can see that from the Duration.

    Yes, that's what I asked for .

    Originally Posted by poisondeathray View Post

    post the mediainfo report (view=>text) of original video , and re-encoded intro

    He says the problem occurs when joined . This implies that it plays ok by itself

    Appending is the same thing as "joining"

    Originally Posted by juodas View Post
    Reencode 5 seconds part and then join it with the initial video with mp4box or megui.

    When joined the '5 seconds' video part is black.

    In order analyze the problem , you must examine the re-encoded intro, and go step by step to see where the problem might lie
    Quote Quote  
  17. I could be wrong but, though he said that the 5 second part is black when joined, he didn't mention that the intro was ok when played by itself.
    In case if we are re-encoding the intro with rest of the video, there is a chance for such problems. But here, he is just appending two clips right?
    I don't think appending would cause any problems in the video content per se.
    Quote Quote  
  18. Yes, the video goes black only after joining it to the other part. The 5s video itself plays completely fine.

    In fact:
    when I put the 1) 5s video + 2) original = the 1) is black.
    when I put the 1) original + 2) 5s video = the 1) is black.

    I changed the 5s framerate with MP4Box to 23.976. There was no option to do it with the Megui one-click encoder.

    The join was still unsuccessful.

    I downloaded the r1110 binary as this was the last available for download (>r1088M) and threw it in megui/tools/x264. But when I check for updates it shows that x264 is up to date = r2273
    Last edited by juodas; 16th Apr 2013 at 06:38.
    Quote Quote  
  19. Originally Posted by juodas View Post
    Yes, the video goes black only after joining it to the other part. The 5s video itself plays completely fine.

    In fact:
    when I put the 1) 5s video + 2) original = the 1) is black.
    when I put the 1) original + 2) 5s video = the 1) is black.

    I changed the 5s framerate with MP4Box to 23.976. There was no option to do it with the Megui one-click encoder.

    The join was still unsuccessful.

    I downloaded the r1110 binary as this was the last available for download (>r1088M) and threw it in megui/tools/x264. But when I check for updates it shows that x264 is up to date = r2273

    Changing the framerate in mp4box won't give the same results as doing it in x264.exe

    You also have to check if the framerate is 23.976 exactly, or 24000/1001 . They won't join otherwise . e.g. open in avisynth and use info() . You might have to use --force-cfr and --fps 24000/1001

    You probably can't use megui for this (at least not the current one), as many of the switches have changed over the years (you can't just drop in a binary, when the changes are so different)
    Quote Quote  
  20. Do you only want to have your logo be hardcoded in your video?
    Licenced Jwplayer6 has logo function build in , logo can be shown all the time or it shows only when user hovers mouse over video, same way like controls behave.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!