Re: [FFmpeg-user] h264 videos are darker

2020-02-25 Thread Carl Eugen Hoyos
Am 25.02.2020 um 01:55 schrieb Totte Karlsson : >>> >>> I tried both yuv420p and yuvj420p as suggested, and both results in color >>> flashing distorted videos. >> >> Then please add -pix_fmt gray before "-i". > > That seemed to have fixed the issues! Using both "gray" on input and output

Re: [FFmpeg-user] h264 videos are darker

2020-02-24 Thread Totte Karlsson
> > > > I tried both yuv420p and yuvj420p as suggested, and both results in color > > flashing > distorted videos. > > Then please add -pix_fmt gray before "-i". That seemed to have fixed the issues! Using both "gray" on input and output seem to work nicely. Is there a reason/advantage to

Re: [FFmpeg-user] h264 videos are darker

2020-02-24 Thread Carl Eugen Hoyos
Am Mo., 24. Feb. 2020 um 21:06 Uhr schrieb Totte Karlsson : > > > You can try the following: > > $ ffmpeg -f rawvideo -r 23 -s 658x492 -i pipe -vcodec libx264 -pix_fmt > > yuv420p -crf > > 23 output1... > > $ ffmpeg -f rawvideo -r 23 -s 658x492 -i pipe -vcodec libx264 -pix_fmt > > yuvj420p -crf

Re: [FFmpeg-user] h264 videos are darker

2020-02-24 Thread Totte Karlsson
> You can try the following: > $ ffmpeg -f rawvideo -r 23 -s 658x492 -i pipe -vcodec libx264 -pix_fmt > yuv420p -crf > 23 output1... > $ ffmpeg -f rawvideo -r 23 -s 658x492 -i pipe -vcodec libx264 -pix_fmt > yuvj420p -crf > 23 output2... I tried both yuv420p and yuvj420p as suggested, and both

Re: [FFmpeg-user] h264 videos are darker

2020-02-16 Thread Gyan Doshi
On 17-02-2020 02:52 am, Ted Park wrote: Thanks for the response; I'm a little confused about "output pixel format", as I thought that the -pix_fmt flag is for that. The -pixel_format flag seem to be for the input. So question, what flag are you referring to? Is there another flag to be used

Re: [FFmpeg-user] h264 videos are darker

2020-02-16 Thread Ted Park
> Thanks for the response; I'm a little confused about "output pixel format", > as I thought that the -pix_fmt flag is for that. The -pixel_format flag seem > to be for the input. > So question, what flag are you referring to? Is there another flag to be used > for the 'output pixel format’?

Re: [FFmpeg-user] h264 videos are darker

2020-02-15 Thread Carl Eugen Hoyos
Am Fr., 14. Feb. 2020 um 19:15 Uhr schrieb Totte Karlsson : > ffmpeg.exe -y -vcodec rawvideo -f rawvideo -r 23 -s 658x492 -pix_fmt gray -i > \\.\pipe\DEV_000F315BEBB8 -c:v libx264 -crf 23 x:\videos\Box_1_2020T140206.avi You can try the following: $ ffmpeg -f rawvideo -r 23 -s 658x492 -i pipe

Re: [FFmpeg-user] h264 videos are darker

2020-02-14 Thread Totte Karlsson
> > I tried both of those, but the resulting video is distorted with random > > colors flashing > on the screen. > > Try them as the output pixel format not the input. Thanks for the response; I'm a little confused about "output pixel format", as I thought that the -pix_fmt flag is for that.

Re: [FFmpeg-user] h264 videos are darker

2020-02-13 Thread Ted Park
> I tried both of those, but the resulting video is distorted with random > colors flashing on the screen. Try them as the output pixel format not the input. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org

Re: [FFmpeg-user] h264 videos are darker

2020-02-13 Thread Totte Karlsson
> > ffmpeg.exe -y -vcodec rawvideo -f rawvideo -r 23 -s 658x492 -pix_fmt > > gray -i \\.\pipe\DEV_000F315BEBB8 -c:v libx264 -crf 23 > > x:\videos\Box_1_2020T140206.avi > > What range does the input level have? mpeg or jpeg? Each input frame is a grayscale 8bit pixel buffer with a size of

Re: [FFmpeg-user] h264 videos are darker

2020-02-13 Thread Carl Eugen Hoyos
Am Do., 13. Feb. 2020 um 23:45 Uhr schrieb Totte Karlsson : > ffmpeg.exe -y -vcodec rawvideo -f rawvideo -r 23 -s 658x492 -pix_fmt gray -i > \\.\pipe\DEV_000F315BEBB8 -c:v libx264 -crf 23 x:\videos\Box_1_2020T140206.avi What range does the input level have? mpeg or jpeg? And which application

Re: [FFmpeg-user] h264 videos are darker

2020-02-13 Thread Totte Karlsson
Hello, Regarding h264 videos being dark: > Please test current FFmpeg git head, remove hide_banner from your command line > and provide the command line together with the complete, uncut console output. > > The output option “r 30” is unneeded and to answer your question: The > semantic of >

Re: [FFmpeg-user] h264 videos are darker

2020-02-06 Thread Carl Eugen Hoyos
> Am 06.02.2020 um 20:24 schrieb Totte Karlsson > : > > ffmpeg.exe -y -hide_banner -vcodec rawvideo -f rawvideo -r 30 -s 658x492 > -pix_fmt gray -i \\.\pipe\DEV_000F315BEBB8 -r > 30 -c:v libx264 -preset veryfast -crf 5 x:\\Videos\output.avi Please test current FFmpeg git head, remove

[FFmpeg-user] h264 videos are darker

2020-02-06 Thread Totte Karlsson
Hello, I'm recording streaming videos from a camera, using ffmpeg. The video stream is 8bit 658x492 grey and the frame rate is 30-60 fps. Individual frames are fed to a pipe on which ffmpeg is listening. The pipeline works very reliably. My command looks like this: ffmpeg.exe -y -hide_banner