i'm trying - no success @ - convert green pixels of background transparent ones , output result clip ffmpeg. n.b. not want lay clip on anything; i'm not having problem that. want clip transparent background openshot video editor (the chromakey filter of doesn't work satisfyingly).
what have tried (amongst 1 zillion other things on last 15 hrs.)
ffmpeg.exe -i in.mov -vf chromakey=0x008001:0.115:0.0 -c:v qtrle out.mov
but pixels not transparent. seemingly, nothing happens. reckon filter ok, because works fine in complex chain (overlaying background image).
the output of ffprompt -show_stream -show_format of out.mov follows:
[stream] index=0 codec_name=qtrle codec_long_name=quicktime animation (rle) video profile=unknown codec_type=video codec_time_base=1/30 codec_tag_string=rle codec_tag=0x20656c72 width=1920 height=1080 coded_width=1920 coded_height=1080 has_b_frames=0 sample_aspect_ratio=1:1 display_aspect_ratio=16:9 pix_fmt=bgra level=-99 color_range=n/a color_space=unknown color_transfer=unknown color_primaries=unknown chroma_location=unspecified field_order=progressive timecode=n/a refs=1 id=n/a r_frame_rate=30/1 avg_frame_rate=30/1 time_base=1/15360 start_pts=0 start_time=0.000000 duration_ts=54789 duration=3.566992 bit_rate=822383192 max_bit_rate=n/a bits_per_raw_sample=n/a nb_frames=107 nb_read_frames=n/a nb_read_packets=n/a disposition:default=1 disposition:dub=0 disposition:original=0 disposition:comment=0 disposition:lyrics=0 disposition:karaoke=0 disposition:forced=0 disposition:hearing_impaired=0 disposition:visual_impaired=0 disposition:clean_effects=0 disposition:attached_pic=0 disposition:timed_thumbnails=0 tag:language=eng tag:handler_name=datahandler tag:encoder=lavc57.64.101 qtrle [/stream] [stream] index=1 codec_name=aac codec_long_name=aac (advanced audio coding) profile=lc codec_type=audio codec_time_base=1/44100 codec_tag_string=mp4a codec_tag=0x6134706d sample_fmt=fltp sample_rate=44100 channels=2 channel_layout=stereo bits_per_sample=0 id=n/a r_frame_rate=0/0 avg_frame_rate=0/0 time_base=1/44100 start_pts=926 start_time=0.020998 duration_ts=157481 duration=3.570998 bit_rate=132103 max_bit_rate=132103 bits_per_raw_sample=n/a nb_frames=153 nb_read_frames=n/a nb_read_packets=n/a disposition:default=1 disposition:dub=0 disposition:original=0 disposition:comment=0 disposition:lyrics=0 disposition:karaoke=0 disposition:forced=0 disposition:hearing_impaired=0 disposition:visual_impaired=0 disposition:clean_effects=0 disposition:attached_pic=0 disposition:timed_thumbnails=0 tag:language=eng tag:handler_name=datahandler [/stream] [format] filename=out.mov nb_streams=2 nb_programs=0 format_name=mov,mp4,m4a,3gp,3g2,mj2 format_long_name=quicktime / mov start_time=0.000000 duration=3.567000 size=366708874 bit_rate=822447712 probe_score=100 tag:major_brand=qt tag:minor_version=512 tag:compatible_brands=qt tag:encoder=lavf57.56.101 [/format]
i have "sample" clip shows behaviour want, following stream , information:
[stream] index=0 codec_name=qtrle codec_long_name=quicktime animation (rle) video profile=unknown codec_type=video codec_time_base=1/24 codec_tag_string=rle codec_tag=0x20656c72 width=1920 height=1080 coded_width=1920 coded_height=1080 has_b_frames=0 sample_aspect_ratio=0:1 display_aspect_ratio=0:1 pix_fmt=bgra level=-99 color_range=n/a color_space=unknown color_transfer=unknown color_primaries=unknown chroma_location=unspecified field_order=progressive timecode=n/a refs=1 id=n/a r_frame_rate=24/1 avg_frame_rate=24/1 time_base=1/12288 start_pts=0 start_time=0.000000 duration_ts=74760 duration=6.083984 bit_rate=49226848 max_bit_rate=n/a bits_per_raw_sample=n/a nb_frames=146 nb_read_frames=n/a nb_read_packets=n/a disposition:default=1 disposition:dub=0 disposition:original=0 disposition:comment=0 disposition:lyrics=0 disposition:karaoke=0 disposition:forced=0 disposition:hearing_impaired=0 disposition:visual_impaired=0 disposition:clean_effects=0 disposition:attached_pic=0 disposition:timed_thumbnails=0 tag:language=eng tag:handler_name=datahandler tag:encoder=lavc57.24.102 qtrle [/stream] [stream] index=1 codec_name=aac codec_long_name=aac (advanced audio coding) profile=lc codec_type=audio codec_time_base=1/48000 codec_tag_string=mp4a codec_tag=0x6134706d sample_fmt=fltp sample_rate=48000 channels=2 channel_layout=stereo bits_per_sample=0 id=n/a r_frame_rate=0/0 avg_frame_rate=0/0 time_base=1/48000 start_pts=0 start_time=0.000000 duration_ts=293856 duration=6.122000 bit_rate=53537 max_bit_rate=128000 bits_per_raw_sample=n/a nb_frames=288 nb_read_frames=n/a nb_read_packets=n/a disposition:default=1 disposition:dub=0 disposition:original=0 disposition:comment=0 disposition:lyrics=0 disposition:karaoke=0 disposition:forced=0 disposition:hearing_impaired=0 disposition:visual_impaired=0 disposition:clean_effects=0 disposition:attached_pic=0 disposition:timed_thumbnails=0 tag:language=eng tag:handler_name=datahandler [/stream] [format] filename=templateok.mov nb_streams=2 nb_programs=0 format_name=mov,mp4,m4a,3gp,3g2,mj2 format_long_name=quicktime / mov start_time=0.000000 duration=6.144000 size=37478506 bit_rate=48800138 probe_score=100 tag:major_brand=qt tag:minor_version=512 tag:compatible_brands=qt tag:encoder=lavf57.25.100 [/format]
and not able spot relevant difference.
the input, output , working template can found here.
(the security issue might see when clicking link comes server certificate being self-signed. can accept temporal exception. btw: ridiculous file size of output file next nut crack. compression.)
a video player not show transparency, you've discovered.
transparency not exist in video. each pixel has have some color. transparency implemented adding component, called alpha. value of alpha channel @ position determines how application handling file blends colored pixel @ position colored pixels of layer(s) beneath (themselves weighted their alpha). if there no layers beneath, case in video player, no blending occurs , stored color shown. if alpha pixel 0
color nullified , layer beneath shows through, , hence 'transparency'.
long story short: check transparency in app can composite, video editor or vfx app.
During this website, you will see this shape, i highly recommend you learn this review. convert $29.99
ReplyDelete