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

[FFmpeg-user] Difference between videos with libx264 and h264_nvenc

2020-02-24 Thread Totte Karlsson
:\Videos\One_2020T120806.avi Is this known behavior? Any reason for the difference in the resulting video? Totte Karlsson - totte.karls...@alleninstitute.org<mailto:totte.karls...@alleninstitute.org> Senior Software Engineer - MPE 2

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-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 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 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 >

[FFmpeg-user] h264 videos are darker

2020-02-06 Thread Totte Karlsson
algorithm working better for this? Best Regards, Totte Karlsson - totte.karls...@alleninstitute.org<mailto:totte.karls...@alleninstitute.org> Senior Software Engineer - MPE 210B-35 ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmp

Re: [FFmpeg-user] Piping example?

2019-10-14 Thread Totte Karlsson
could not get proper replay speed without using the both -r 80. -tk > -Original Message- > From: Totte Karlsson [mailto:tot...@gmail.com] > Sent: Wednesday, October 09, 2019 5:17 PM > To: 'FFmpeg user questions' > Subject: RE: [FFmpeg-user] Piping example? > > Hel

Re: [FFmpeg-user] Piping example?

2019-10-09 Thread Totte Karlsson
example? > > Am Di., 1. Okt. 2019 um 19:53 Uhr schrieb Totte Karlsson : > > > > > > > Did you try the following? > > > > > > $ ffmpeg -f lavfi -i testsrc -f rawvideo - > > > > > > and: > > > > > > $ ffmpeg -f rawvid

Re: [FFmpeg-user] Piping example?

2019-10-01 Thread Totte Karlsson
> Did you try the following? > > $ ffmpeg -f lavfi -i testsrc -f rawvideo - > > and: > > $ ffmpeg -f rawvideo -s 320x240 -pix_fmt rgb24 -i - out.avi > I did not test that but will test later today. My bitmaps are 658 x 492 and are greyscale 8 bits and are acquired at 100fps. I assume the

Re: [FFmpeg-user] Piping example?

2019-10-01 Thread Totte Karlsson
] Piping example? Am Di., 1. Okt. 2019 um 18:41 Uhr schrieb Totte Karlsson : > I'm having an application that generates device dependent bitmaps that > are combined using ffmpeg into an avi file by giving ffmpeg a folder > of them written to file. > > I would like to use a pipe and st

[FFmpeg-user] Piping example?

2019-10-01 Thread Totte Karlsson
Hello, I'm having an application that generates device dependent bitmaps that are combined using ffmpeg into an avi file by giving ffmpeg a folder of them written to file. I would like to use a pipe and stream the frames directly to ffmpeg for avi creation (possibly using compression) but