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:
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.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
So.. Is there a solution, really? Or the reencode is inevitable...
+ Reply to Thread
Results 1 to 21 of 21
-
Last edited by juodas; 12th Apr 2013 at 06:16.
-
You can't put a subtitle in those first 5 seconds, or an annotation? Much easier.
-
-
It's not a youtube actually, but a 5.5 JWPLayer based website. So this doesn't work.
-
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 -
I don't host the player so that's not an option. It has to be part of content.
I get - 'stream not recognized'.
Well, yeah, but wouldn't that end in the same result. The credits part would go black.
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.
-
-
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. -
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 -
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.
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. -
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 -
@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 .
He says the problem occurs when joined . This implies that it plays ok by itself
Appending is the same thing as "joining"
In order analyze the problem , you must examine the re-encoded intro, and go step by step to see where the problem might lie -
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. -
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 = r2273Last edited by juodas; 16th Apr 2013 at 06:38.
-
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) -
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.
Similar Threads
-
Adding Logo and Displaying text in bottom of Video
By RohanSingh in forum EditingReplies: 8Last Post: 31st Jan 2013, 14:55 -
Text Logo Sub Help
By kenryuakuma in forum SubtitleReplies: 26Last Post: 16th Oct 2010, 19:31 -
Read text create audio and convert text to synced subtitles in mp4
By Philip Lean in forum SubtitleReplies: 1Last Post: 25th Feb 2010, 08:54 -
Adding a text logo to a video file without re-saving it to another file?
By coxanhvn in forum EditingReplies: 4Last Post: 19th Dec 2008, 15:03 -
Adding text over original text
By stixster in forum EditingReplies: 3Last Post: 17th Jun 2008, 05:14