Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't extract correct watermarks from encoded video #1

Open
ShanQincheng opened this issue Oct 16, 2022 · 3 comments
Open

Can't extract correct watermarks from encoded video #1

ShanQincheng opened this issue Oct 16, 2022 · 3 comments

Comments

@ShanQincheng
Copy link

I use CLI which presented in here to extract watermarks(img or sequence) from encoded video, but I can't get correct watermarks.

Extracted image frames all in black colour with no meaning, and extracted sequence is in odd format like 33#33.

Commands I used for sequence:
encoding:
bvw embed -a seq -wm 2012 -i input.mp4 -o output.mp4 -k 123 456 789 -j 2

decoding:
bvw extract -a seq -i input.mp4 -o OUTPUT_FILE -k 123 456 789

@elv-lqy
Copy link
Contributor

elv-lqy commented Oct 18, 2022

I can't reproduce your errors and here is the outputs of the above commands on my side: https://ibb.co/b6L6sLn.

Can you try the sample video inside examples folder and also provide the configuration of your videos (resolution etc.)?

@ShanQincheng
Copy link
Author

Sorry for the late reply, I had been too busy for the past week.

I did what was written in my first post again, the only thing changed is the video was replaced to the sample video under the examples folder, and then everything works fine now.

The video I used before download from here, I tried different versions among 1MB, 2MB and 5MB, all of them are not working.

1MB Video info shows below by ffprobe

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'big_buck_bunny_720p_1mb.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 1970-01-01T00:00:00.000000Z
encoder : Lavf53.24.2
Duration: 00:00:05.31, start: 0.000000, bitrate: 1589 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1205 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
creation_time : 1970-01-01T00:00:00.000000Z
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 384 kb/s (default)
Metadata:
creation_time : 1970-01-01T00:00:00.000000Z
handler_name : SoundHandler
vendor_id : [0][0][0][0]

@brandnew2017
Copy link

It seems that there is something wrong when embedding watermarking information.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants