remap filter gives only black and white output

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

remap filter gives only black and white output

Shaji stellaton
Hello,

I am using the latest ffmpeg version. I am facing the same issue as discussed in the thread:
 
https://ffmpeg.org/pipermail/ffmpeg-user/2017-November/037971.html

That is remapping produce black and white output. If I use the workaround of using the format conversion then the processing slows down very drastically.

One more thing to add is if I use yuv444p then the output is encoded coloured.

Command producing black and white:

Fps: 29

ffmpeg -y -stream_loop -1 -i silence.mp3 -r 30 -i rtmp://172.104.245.86/live/test  -i sample2160_x.pgm -i sample2160_y.pgm -lavfi "remap" -vcodec h264_nvenc -pix_fmt yuv420p -b:v 10000k -f flv rtmp:xxxx

Command producing colored output:

Fps: 20

ffmpeg -y -stream_loop -1 -i silence.mp3 -r 30 -i rtmp://172.104.245.86/live/test -i sample2160_x.pgm -i sample2160_y.pgm -lavfi "remap" -vcodec h264_nvenc -pix_fmt yuv444p -b:v 10000k -f flv rtmp:xxxx

Fps: 12

ffmpeg -y -stream_loop -1 -i silence.mp3 -r 30 -i rtmp://172.104.245.86/live/test  -i sample2160_x.pgm -i sample2160_y.pgm -lavfi " format=pix_fmts=rgb24,remap" -vcodec h264_nvenc -pix_fmt yuv420p -b:v 10000k -f flv rtmp:xxxxx

Another interesting observation is that if I use ffmpeg version 3.3.2 then below mentioned command gives
20 fps with colored output

ffmpeg -y -stream_loop -1 -i silence.mp3 -r 30 -i rtmp://172.104.245.86/live/test  -i sample2160_x.pgm -i sample2160_y.pgm -lavfi "remap" -vcodec h264_nvenc -pix_fmt yuv420p -b:v 10000k -f flv rtmp:xxxx
 

Can you please tell me if this bug can be rectified as we want to achieve colored 29fps with this setup.

Thank you.

Best regards,
Shaji Baig

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: remap filter gives only black and white output

Paul B Mahol
On 8/24/18, Shaji <[hidden email]> wrote:

> Hello,
>
> I am using the latest ffmpeg version. I am facing the same issue as
> discussed in the thread:
>
> https://ffmpeg.org/pipermail/ffmpeg-user/2017-November/037971.html
>
> That is remapping produce black and white output. If I use the workaround of
> using the format conversion then the processing slows down very drastically.
>
> One more thing to add is if I use yuv444p then the output is encoded
> coloured.
>
> Command producing black and white:
>
> Fps: 29
>
> ffmpeg -y -stream_loop -1 -i silence.mp3 -r 30 -i
> rtmp://172.104.245.86/live/test  -i sample2160_x.pgm -i sample2160_y.pgm
> -lavfi "remap" -vcodec h264_nvenc -pix_fmt yuv420p -b:v 10000k -f flv
> rtmp:xxxx
>
> Command producing colored output:
>
> Fps: 20
>
> ffmpeg -y -stream_loop -1 -i silence.mp3 -r 30 -i
> rtmp://172.104.245.86/live/test -i sample2160_x.pgm -i sample2160_y.pgm
> -lavfi "remap" -vcodec h264_nvenc -pix_fmt yuv444p -b:v 10000k -f flv
> rtmp:xxxx
>
> Fps: 12
>
> ffmpeg -y -stream_loop -1 -i silence.mp3 -r 30 -i
> rtmp://172.104.245.86/live/test  -i sample2160_x.pgm -i sample2160_y.pgm
> -lavfi " format=pix_fmts=rgb24,remap" -vcodec h264_nvenc -pix_fmt yuv420p
> -b:v 10000k -f flv rtmp:xxxxx
>
> Another interesting observation is that if I use ffmpeg version 3.3.2 then
> below mentioned command gives
> 20 fps with colored output
>
> ffmpeg -y -stream_loop -1 -i silence.mp3 -r 30 -i
> rtmp://172.104.245.86/live/test  -i sample2160_x.pgm -i sample2160_y.pgm
> -lavfi "remap" -vcodec h264_nvenc -pix_fmt yuv420p -b:v 10000k -f flv
> rtmp:xxxx
>
>
> Can you please tell me if this bug can be rectified as we want to achieve
> colored 29fps with this setup.

Nope, as non-colored uses less data for processing.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: remap filter gives only black and white output

Shaji stellaton
Hello

So, I believe I will have to revert to version 3.3.2

Can we force the filter to speed up? I observe that the remap filter is just using one core to 100% and all the other cores are free. I tried 'threads 16' and 'filter_complex_threads 16' Options but it did not make any difference.

Thank you.

Best regards,
Shaji Baig

Sent from my iPhone

> On 24 Aug 2018, at 16:48, Paul B Mahol <[hidden email]> wrote:
>
>> On 8/24/18, Shaji <[hidden email]> wrote:
>> Hello,
>>
>> I am using the latest ffmpeg version. I am facing the same issue as
>> discussed in the thread:
>>
>> https://ffmpeg.org/pipermail/ffmpeg-user/2017-November/037971.html
>>
>> That is remapping produce black and white output. If I use the workaround of
>> using the format conversion then the processing slows down very drastically.
>>
>> One more thing to add is if I use yuv444p then the output is encoded
>> coloured.
>>
>> Command producing black and white:
>>
>> Fps: 29
>>
>> ffmpeg -y -stream_loop -1 -i silence.mp3 -r 30 -i
>> rtmp://172.104.245.86/live/test  -i sample2160_x.pgm -i sample2160_y.pgm
>> -lavfi "remap" -vcodec h264_nvenc -pix_fmt yuv420p -b:v 10000k -f flv
>> rtmp:xxxx
>>
>> Command producing colored output:
>>
>> Fps: 20
>>
>> ffmpeg -y -stream_loop -1 -i silence.mp3 -r 30 -i
>> rtmp://172.104.245.86/live/test -i sample2160_x.pgm -i sample2160_y.pgm
>> -lavfi "remap" -vcodec h264_nvenc -pix_fmt yuv444p -b:v 10000k -f flv
>> rtmp:xxxx
>>
>> Fps: 12
>>
>> ffmpeg -y -stream_loop -1 -i silence.mp3 -r 30 -i
>> rtmp://172.104.245.86/live/test  -i sample2160_x.pgm -i sample2160_y.pgm
>> -lavfi " format=pix_fmts=rgb24,remap" -vcodec h264_nvenc -pix_fmt yuv420p
>> -b:v 10000k -f flv rtmp:xxxxx
>>
>> Another interesting observation is that if I use ffmpeg version 3.3.2 then
>> below mentioned command gives
>> 20 fps with colored output
>>
>> ffmpeg -y -stream_loop -1 -i silence.mp3 -r 30 -i
>> rtmp://172.104.245.86/live/test  -i sample2160_x.pgm -i sample2160_y.pgm
>> -lavfi "remap" -vcodec h264_nvenc -pix_fmt yuv420p -b:v 10000k -f flv
>> rtmp:xxxx
>>
>>
>> Can you please tell me if this bug can be rectified as we want to achieve
>> colored 29fps with this setup.
>
> Nope, as non-colored uses less data for processing.
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: remap filter gives only black and white output

Carl Eugen Hoyos-2
2018-08-24 17:26 GMT+02:00, Shaji stellaton <[hidden email]>:

> So, I believe I will have to revert to version 3.3.2

Please provide at least command line and complete, uncut console
output for current FFmpeg git head and 3.3.2 if you want to report
a speed regression.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: remap filter gives only black and white output

Shaji stellaton
Hello,

I want to report a functionality regression.

In version 3.3.2 remap filter gives out colored output for yuv420p but in katest version ut gives out black and white for yuv420p.

The command used in both versions is:

ffmpeg -y -stream_loop -1 -i silence.mp3 -r 30 -i rtmp://172.104.245.86/live/test  -i sample2160_x.pgm -i sample2160_y.pgm -lavfi "remap" -vcodec h264_nvenc -pix_fmt yuv420p -b:v 10000k -f flv rtmp:xxxx

Thank you.

Best regards,
Shaji Baig

Sent from my iPhone

> On 24 Aug 2018, at 17:38, Carl Eugen Hoyos <[hidden email]> wrote:
>
> 2018-08-24 17:26 GMT+02:00, Shaji stellaton <[hidden email]>:
>
>> So, I believe I will have to revert to version 3.3.2
>
> Please provide at least command line and complete, uncut console
> output for current FFmpeg git head and 3.3.2 if you want to report
> a speed regression.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: remap filter gives only black and white output

Paul B Mahol
On 8/24/18, Shaji stellaton <[hidden email]> wrote:

> Hello,
>
> I want to report a functionality regression.
>
> In version 3.3.2 remap filter gives out colored output for yuv420p but in
> katest version ut gives out black and white for yuv420p.
>
> The command used in both versions is:
>
> ffmpeg -y -stream_loop -1 -i silence.mp3 -r 30 -i
> rtmp://172.104.245.86/live/test  -i sample2160_x.pgm -i sample2160_y.pgm
> -lavfi "remap" -vcodec h264_nvenc -pix_fmt yuv420p -b:v 10000k -f flv
> rtmp:xxxx
>
> Thank you.

Use -lavfi remap,format=yuv444p

I added slice threading support, so feel free to test latest master, because
filter should be much faster now.

>
> Best regards,
> Shaji Baig
>
> Sent from my iPhone
>
>> On 24 Aug 2018, at 17:38, Carl Eugen Hoyos <[hidden email]> wrote:
>>
>> 2018-08-24 17:26 GMT+02:00, Shaji stellaton <[hidden email]>:
>>
>>> So, I believe I will have to revert to version 3.3.2
>>
>> Please provide at least command line and complete, uncut console
>> output for current FFmpeg git head and 3.3.2 if you want to report
>> a speed regression.
>>
>> Carl Eugen
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".