Re: [FFmpeg-user] encode to RAW video

2022-11-02 Thread Clay

> Clay via ffmpeg-user (12022-11-02):
>> Doesn't this serial ordering of the same command (-c:v ) twice just
>> drive cpu workload up for no actual benefit? 
>>
>> To clarify:  executing -c:v  and then executing -c:v  just
>> causes one output: .   Thus you are forcing the CPU to
>> decode:encode:decode:encode rather than just decode:encode can
>> someone confirm or correct me here?
> No, except for the ridiculously negligible CPU workload necessary to
> process the option itself.
Doesn't -c enable encoding or decoding (as well as the certainly trivial
'copy') of a stream, depending upon the choice and the existing stream's
codec?  Encoding is not a trivial workload :-)  Can you clarify that a
bit more? *I learn more from ffmpeg-user mail than my best efforts using
TheGoogle :-D
> ffmpeg does not have the infrastructure to make multiple decode-encode
> cycles, what you describe is not possible on top of being useless. What
> happens is just that the second -c:v option will override the first one.
>
This is great to know!

What you are saying is:  ffmpeg reads in the entire serial string of
commands/actions and, when duplicate commands/actions are identified,
programmatically uses the last entry. 

Is this the case with all commands?

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-11-02 Thread Nicolas George
Clay via ffmpeg-user (12022-11-02):
> Doesn't this serial ordering of the same command (-c:v ) twice just
> drive cpu workload up for no actual benefit? 
> 
> To clarify:  executing -c:v  and then executing -c:v  just
> causes one output: .   Thus you are forcing the CPU to
> decode:encode:decode:encode rather than just decode:encode can
> someone confirm or correct me here?

No, except for the ridiculously negligible CPU workload necessary to
process the option itself.

ffmpeg does not have the infrastructure to make multiple decode-encode
cycles, what you describe is not possible on top of being useless. What
happens is just that the second -c:v option will override the first one.

Regards,

-- 
  Nicolas George
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-11-02 Thread Clay via ffmpeg-user

> Le 31/10/2022 à 14:23, Naveen.B a écrit :
>> I observed some weird behaviour with fast and medium preset,
>>
>> fast preset:
>> *ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i
>> CapturedImage-%03d.raw
>> -c:v rawvideo -pixel_format yuv420p -f rawvideo -c:v libx264 -preset
>> fast
>> -crf 18 test.raw*
>
> "-c:v rawvideo" then "-c:v libx264" makes no sense
>
> At some point you should be clear if you want a raw or a h264 stream!
>
Doesn't this serial ordering of the same command (-c:v ) twice just
drive cpu workload up for no actual benefit? 

To clarify:  executing -c:v  and then executing -c:v  just
causes one output: .   Thus you are forcing the CPU to
decode:encode:decode:encode rather than just decode:encode can
someone confirm or correct me here?
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-11-02 Thread pehache

Le 01/11/2022 à 00:01, Carl Zwanzig a écrit :


-c:v rawvideo -pixel_format yuv420p 
Use the video codec "rawvideo" with that pixel format for output, except 
AFAICT that there is no video encoder "rawvideo" (that should throw an 
error, which because of the missing command output, we don't see).




I've tested it, and it works (I mean it produces an output, although I 
don't know how to read it afterwards).


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-11-02 Thread pehache


Le 31/10/2022 à 14:23, Naveen.B a écrit :

I observed some weird behaviour with fast and medium preset,

fast preset:
*ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i CapturedImage-%03d.raw
-c:v rawvideo -pixel_format yuv420p -f rawvideo -c:v libx264 -preset fast
-crf 18 test.raw*


"-c:v rawvideo" then "-c:v libx264" makes no sense

At some point you should be clear if you want a raw or a h264 stream!

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-11-01 Thread Carl Zwanzig

(all attributions are missing in Naveen's response, please don't do that)

On 11/1/2022 3:00 AM, Naveen.B wrote:

What do you really want? Why this insistence on "raw" output, either as
an "encoding" or output file?  That's making life difficult and likely 
obscuring other issues.



I am doing some compression analysis, So I need raw output.
Do you need raw _frames_ or _un-containerized_ output_? Big difference. It 
seems like a lot of the issues relate to the lack of understanding of the 
muxer/container.


If you need analyze the _frames_, stick them uncompressed in a mkv or avi 
container/file; there are many libraries, including those in ffmpeg, to 
retrieve them for analysis.


If the container itself affects the analysis, then the analysis is not 
merely examining the frame compression.



On 11/1/2022 4:19 AM, Reindl Harald wrote:
BTW: my response is a example how to write a mail with a useful quoting 
instead seeking the single line of the reply like a needle

Exactly so.

z!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-11-01 Thread Reindl Harald



Am 01.11.22 um 11:00 schrieb Naveen.B:

What do you really want? Why this insistence on "raw" output, either as an
"encoding" or output file?  That's making life difficult and likely
obscuring other issues.



I am doing some compression analysis, So I need raw output


whatever that means...

BTW: my response is a example how to write a mail with a useful quoting 
instead seeking the single line of the reply like a needle

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-11-01 Thread Naveen.B
>
>
> > I observed some weird behaviour with fast and medium preset,
>
> We've observed that you're -still- top-posting, please stop it.
>
>
> (reformatted)
> > fast preset:
> > *ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i
> CapturedImage-%03d.raw
> Specifies the input file(s) and their characteristics.
>
> All that follows is filters and output specs.
>
> > -c:v rawvideo -pixel_format yuv420p
> Use the video codec "rawvideo" with that pixel format for output, except
> AFAICT that there is no video encoder "rawvideo" (that should throw an
> error, which because of the missing command output, we don't see).
>
>
> > -f rawvideo
> Force the output format to rawvideo ("Raw muxers accept a single stream
> matching the designated codec. They do not store timestamps or metadata.
> The
> recognized extension is the same as the muxer name unless indicated
> otherwise.") Don't use this unless there's a _really_ good reason.
>
>
> > -c:v libx264 -preset fast -crf 18
> But now use the x264 codec!!! (into a "raw" file)
>
> > test.raw*
> but call the output file "test.raw" (not "test.mp4" or something like
> that).
>
>
> What do you really want? Why this insistence on "raw" output, either as an
> "encoding" or output file?  That's making life difficult and likely
> obscuring other issues.
>

I am doing some compression analysis, So I need raw output.

>
> > command output:
> (but the the _complete_ output!! Stop making us guess about things and
> you'll get better answers.)
>
> I am pasting the complete output,



> C:\Naveen\projects\DMS\software\ffmpeg_full\ffmpeg\bin>ffmpeg
> -pixel_format gray10le -s 1600x1300 -r 30 -i CapturedImage-%03d.raw -f
> rawvideo -c:v libx264 -pixel_format yuv420p -preset fast -crf 18 test.raw
> ffmpeg version 2022-06-20-git-56419428a8-full_build-www.gyan.dev
> Copyright (c) 2000-2022 the FFmpeg developers
>   built with gcc 11.3.0 (Rev1, Built by MSYS2 project)
>   configuration: --enable-gpl --enable-version3 --enable-static
> --disable-w32threads --disable-autodetect --enable-fontconfig
> --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib
> --enable-lzma --enable-libsnappy --enable-zlib --enable-librist
> --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth
> --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d
> --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e
> --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265
> --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl
> --enable-libopenjpeg --enable-libvpx --enable-mediafoundation
> --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi
> --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg
> --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec
> --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2
> --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo
> --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug
> --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame
> --enable-libshine --enable-libtheora --enable-libtwolame
> --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm
> --enable-libopencore-amrnb --enable-libopus --enable-libspeex
> --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite
> --enable-libmysofa --enable-librubberband --enable-libsoxr
> --enable-chromaprint
>   libavutil  57. 27.100 / 57. 27.100
>   libavcodec 59. 33.100 / 59. 33.100
>   libavformat59. 25.100 / 59. 25.100
>   libavdevice59.  6.100 / 59.  6.100
>   libavfilter 8. 41.100 /  8. 41.100
>   libswscale  6.  6.100 /  6.  6.100
>   libswresample   4.  6.100 /  4.  6.100
>   libpostproc56.  5.100 / 56.  5.100
> Input #0, image2, from 'CapturedImage-%03d.raw':
>   Duration: 00:00:01.20, start: 0.00, bitrate: N/A
>   Stream #0:0: Video: rawvideo (Y1[0][10] / 0xA003159), gray10le,
> 1600x1300, 25 fps, 25 tbr, 25 tbn
> File 'test.raw' already exists. Overwrite? [y/N] y
> Stream mapping:
>   Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
> Press [q] to stop, [?] for help
> [libx264 @ 019dbcff6c80] using cpu capabilities: MMX2 SSE2Fast SSSE3
> SSE4.2 AVX FMA3 BMI2 AVX2
> [libx264 @ 019dbcff6c80] profile High 10, level 4.2, 4:0:0, 10-bit
> Output #0, rawvideo, to 'test.raw':
>   Metadata:
> encoder : Lavf59.25.100
>   Stream #0:0: Video: h264, gray10le(progressive), 1600x1300, q=2-31, 30
> fps, 30 tbn
> Metadata:
>   encoder : Lavc59.33.100 libx264
> Side data:
>   cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
> frame=   30 fps=0.0 q=-1.0 Lsize= 320kB time=00:00:00.93
> bitrate=2807.6kbits/s speed=1.07x
> video:320kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
> muxing overhead: 0.00%
> [libx264 @ 019dbcff6c80] frame I:1 Avg QP:29.03  size: 66284
> [libx264 @ 019dbcff6c80] frame P:8 Avg 

Re: [FFmpeg-user] encode to RAW video

2022-10-31 Thread Clay via ffmpeg-user
Carl Zwanzig wrote on 10/31/22 19:01:
> On 10/31/2022 6:23 AM, Naveen.B wrote:
>> I observed some weird behaviour with fast and medium preset,
>
> We've observed that you're -still- top-posting, please stop it.
>
>
Reminder:  Top Posting:  Replying ABOVE the Quote... :-)
*Don't ask me how I know :-)
> (reformatted)
>> fast preset:
>> *ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i
>> CapturedImage-%03d.raw
> Specifies the input file(s) and their characteristics.
>
> All that follows is filters and output specs.
>
>> -c:v rawvideo -pixel_format yuv420p 
> Use the video codec "rawvideo" with that pixel format for output,
> except AFAICT that there is no video encoder "rawvideo" (that should
> throw an error, which because of the missing command output, we don't
> see).
>
>
>> -f rawvideo 
> Force the output format to rawvideo ("Raw muxers accept a single
> stream matching the designated codec. They do not store timestamps or
> metadata. The recognized extension is the same as the muxer name
> unless indicated otherwise.") Don't use this unless there's a _really_
> good reason.
>
>
>> -c:v libx264 -preset fast -crf 18 
> But now use the x264 codec!!! (into a "raw" file)
>
>> test.raw*
> but call the output file "test.raw" (not "test.mp4" or something like
> that).
>
>
> What do you really want? Why this insistence on "raw" output, either
> as an "encoding" or output file?  That's making life difficult and
> likely obscuring other issues.
>
>
>> command output:
> (but the the _complete_ output!! Stop making us guess about things and
> you'll get better answers.)
>
>
> z!
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-31 Thread Carl Zwanzig

On 10/31/2022 6:23 AM, Naveen.B wrote:

I observed some weird behaviour with fast and medium preset,


We've observed that you're -still- top-posting, please stop it.


(reformatted)

fast preset:
*ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i CapturedImage-%03d.raw

Specifies the input file(s) and their characteristics.

All that follows is filters and output specs.

-c:v rawvideo -pixel_format yuv420p 
Use the video codec "rawvideo" with that pixel format for output, except 
AFAICT that there is no video encoder "rawvideo" (that should throw an 
error, which because of the missing command output, we don't see).



-f rawvideo 
Force the output format to rawvideo ("Raw muxers accept a single stream 
matching the designated codec. They do not store timestamps or metadata. The 
recognized extension is the same as the muxer name unless indicated 
otherwise.") Don't use this unless there's a _really_ good reason.



-c:v libx264 -preset fast -crf 18 

But now use the x264 codec!!! (into a "raw" file)


test.raw*

but call the output file "test.raw" (not "test.mp4" or something like that).


What do you really want? Why this insistence on "raw" output, either as an 
"encoding" or output file?  That's making life difficult and likely 
obscuring other issues.




command output:
(but the the _complete_ output!! Stop making us guess about things and 
you'll get better answers.)



z!

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-31 Thread Naveen.B
I observed some weird behaviour with fast and medium preset,

fast preset:
*ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i CapturedImage-%03d.raw
-c:v rawvideo -pixel_format yuv420p -f rawvideo -c:v libx264 -preset fast
-crf 18 test.raw*

command output:
*frame=   30 fps=0.0 *q=-1.0 Lsize= 320kB time=00:00:00.93
bitrate=2807.6kbits/s speed= 1.1x
video:320kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.00%
In the fast preset while converting to raw, the frames is 30 and fps is 0,
what does this mean?

medium preset:
*ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i CapturedImage-%03d.raw
-c:v rawvideo -pixel_format yuv420p -f rawvideo -c:v libx264 -preset medium
-crf 18 test.raw*

command output:
*frame=   30 fps= 28* q=-1.0 Lsize= 329kB time=00:00:00.93
bitrate=2887.7kbits/s speed=0.863x
video:329kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.00%

Kind Regards,
Naveen B

On Fri, Oct 28, 2022 at 7:41 AM pehache  wrote:

> Le 27/10/2022 à 13:31, Naveen.B a écrit :
>
> >
> > one last question, any idea on how to know/measure how long the ffmpeg
> > takes to encode the file.
>
> The answer depends on too many parameters.
>
> > i.e, basically I want to know how much time it takes to compress with
> > different presets and how much time it takes to encode for an
> uncompressed
> > RAW video.
>
> Almost by definition, an truly uncompressed video is not encoded, it's
> just writing to the output the data that are in memory (well, almost...
> there's still possibly the conversion of the pixel format, from RGB to
> YUV420 for instance, but this is quite fast). What will limit the speed
> is the read/write performances on the disk you are using, and/or the
> time needed to decode the input video.
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-27 Thread pehache

Le 27/10/2022 à 13:31, Naveen.B a écrit :



one last question, any idea on how to know/measure how long the ffmpeg
takes to encode the file.


The answer depends on too many parameters.


i.e, basically I want to know how much time it takes to compress with
different presets and how much time it takes to encode for an uncompressed
RAW video.


Almost by definition, an truly uncompressed video is not encoded, it's 
just writing to the output the data that are in memory (well, almost... 
there's still possibly the conversion of the pixel format, from RGB to 
YUV420 for instance, but this is quite fast). What will limit the speed 
is the read/write performances on the disk you are using, and/or the 
time needed to decode the input video.


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-27 Thread Carl Zwanzig

On 10/27/2022 4:31 AM, Naveen.B wrote:

one last question, any idea on how to know/measure how long the ffmpeg
takes to encode the file.
i.e, basically I want to know how much time it takes to compress with
different presets and how much time it takes to encode for an uncompressed
RAW video.


By timing it yourself, but I'm not sure where "presets" comes in because raw 
frames to raw frames isn't going to take much time.


And we'd still like to know why you need raw output frames and a raw (no 
container) output file; that all seems to be an artificial constraint.


z!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-27 Thread Naveen.B
>
> > I tried by giving the input with -pix_fmt, it's the same error.
> >
> > Yes, I want raw video. I have converted RAW files to .mp4 successfully
> with
> > uncompressed, the size of the .mp4 format video was less comparatively.
> > I have 30 RAW files with each file is around 4Mbps (so, 30 RAW
> > filesx4Mbps=180Mbps for one second), the output of the video file size
> > (.mp4) is coming around 18 Mbps, so I am assuming .mp4 video format is
> > doing some compression and hence I need to try this with RAW video.
> >
> > This is the command I tried for .mp4 file video which is coming 18Mbps as
> > output video file size,
> > *ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i
> CapturedImage-%03d.raw
> > -c:v libx264 -pix_fmt yuv420p -preset fast -profile:v main -level:v 4.0
> > -crf 1 raw_video.mp4*
> >
>
> Try this :
>
> ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i
> CapturedImage-%03d.raw -c:v rawvideo -pix_fmt yuv420p -f rawvideo
> output.raw
>
> Alternatively you can put the raw video stream in a container such as MKV:
>
> ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i
> CapturedImage-%03d.raw -c:v rawvideo -pix_fmt yuv420p output.mkv
>
> In either case I'm not sure it will easy to read the output file with
> classical players.
>
> fantastic, it worked, thanks a lot for your support!

one last question, any idea on how to know/measure how long the ffmpeg
takes to encode the file.
i.e, basically I want to know how much time it takes to compress with
different presets and how much time it takes to encode for an uncompressed
RAW video.

Kind Regards,
Naveen B.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-26 Thread pehache


Le 24/10/2022 à 18:36, Naveen.B a écrit :


I tried by giving the input with -pix_fmt, it's the same error.

Yes, I want raw video. I have converted RAW files to .mp4 successfully with
uncompressed, the size of the .mp4 format video was less comparatively.
I have 30 RAW files with each file is around 4Mbps (so, 30 RAW
filesx4Mbps=180Mbps for one second), the output of the video file size
(.mp4) is coming around 18 Mbps, so I am assuming .mp4 video format is
doing some compression and hence I need to try this with RAW video.

This is the command I tried for .mp4 file video which is coming 18Mbps as
output video file size,
*ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i CapturedImage-%03d.raw
-c:v libx264 -pix_fmt yuv420p -preset fast -profile:v main -level:v 4.0
-crf 1 raw_video.mp4*



Try this :

ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i 
CapturedImage-%03d.raw -c:v rawvideo -pix_fmt yuv420p -f rawvideo output.raw


Alternatively you can put the raw video stream in a container such as MKV:

ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i 
CapturedImage-%03d.raw -c:v rawvideo -pix_fmt yuv420p output.mkv


In either case I'm not sure it will easy to read the output file with 
classical players.


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-26 Thread Paul B Mahol
On 10/25/22, Michael Koch  wrote:
> Am 25.10.2022 um 09:29 schrieb Naveen.B:
>>>
>>> What do you want to do with the RAW video? You know that you can't play
>>> it with most players?
>>>
>>> Yes, I know it cannot be played with most of th players, I need to see
>>> the
>>> size of the RAW video and make some compression on it for our further
>>> analysis.
>>  Could you please help me on the missing parameters to generate the
>> RAW
>> video?
>
> I did some tests and came to the conclusion that it's impossible to
> import a group of numbered raw images.
> It's possible to import a single raw image.
> It's possible to import a group of numbered images (JPG, PNG, TIF...)
> But it's not possible to import a numbered group of raw images.
> (To the experts: Please correct me if I'm wrong).
>
> Anyway it's a bad idea to save the images in raw format. You should use
> PNG images, which have a lossless compression, and 16-bit depth is possible.
> I recommend that you convert your images to PNG, and then things become
> much easier.
>
> Here is a (Windows) batch file with a few examples:
>
> rem  Make 30 PNG images (48-bit per pixel):
> ffmpeg -f lavfi -i testsrc2=s=320x200,format=rgb48 -frames 30 -f image2
> -y image-%%03d.png
>
> rem  Convert these 30 images to a raw video (this conversion is lossless):
> ffmpeg -i image-%%03d.png -s 320x200 -pixel_format rgb48 -f rawvideo
> -c:v rawvideo -y video.raw
>
> rem  The size of the raw video is exactly 320 * 200 * 2 * 3 * 30 =
> 1152 Bytes
>
> rem  Convert the first frame from the raw video to a PNG image (48-bit
> per pixel):
> ffmpeg -video_size 320x200 -pixel_format rgb48 -f rawvideo -i video.raw
> -frames 1 -y image.png
>
> rem  Convert the raw video to a (almost lossless) MP4 video:
> ffmpeg -video_size 320x200 -pixel_format rgb48 -f rawvideo -framerate 30
> -i video.raw -crf 0 -y video.mp4
>
> pause
>
>
> I have a question to the experts. The above example works fine with
> pixel format rgb48, but with pixel formats gray16 or gray10le the MP4
> output looks wrong. I don't yet understand why.
>

Not all muxers support all pixel formats as raw.

> Michael
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-26 Thread Paul B Mahol
On 10/25/22, Michael Koch  wrote:
> Am 25.10.2022 um 09:29 schrieb Naveen.B:
>>>
>>> What do you want to do with the RAW video? You know that you can't play
>>> it with most players?
>>>
>>> Yes, I know it cannot be played with most of th players, I need to see
>>> the
>>> size of the RAW video and make some compression on it for our further
>>> analysis.
>>  Could you please help me on the missing parameters to generate the
>> RAW
>> video?
>
> I did some tests and came to the conclusion that it's impossible to
> import a group of numbered raw images.
> It's possible to import a single raw image.
> It's possible to import a group of numbered images (JPG, PNG, TIF...)
> But it's not possible to import a numbered group of raw images.
> (To the experts: Please correct me if I'm wrong).
>
> Anyway it's a bad idea to save the images in raw format. You should use
> PNG images, which have a lossless compression, and 16-bit depth is possible.
> I recommend that you convert your images to PNG, and then things become
> much easier.
>
> Here is a (Windows) batch file with a few examples:
>
> rem  Make 30 PNG images (48-bit per pixel):
> ffmpeg -f lavfi -i testsrc2=s=320x200,format=rgb48 -frames 30 -f image2
> -y image-%%03d.png
>
> rem  Convert these 30 images to a raw video (this conversion is lossless):
> ffmpeg -i image-%%03d.png -s 320x200 -pixel_format rgb48 -f rawvideo
> -c:v rawvideo -y video.raw
>
> rem  The size of the raw video is exactly 320 * 200 * 2 * 3 * 30 =
> 1152 Bytes
>
> rem  Convert the first frame from the raw video to a PNG image (48-bit
> per pixel):
> ffmpeg -video_size 320x200 -pixel_format rgb48 -f rawvideo -i video.raw
> -frames 1 -y image.png
>
> rem  Convert the raw video to a (almost lossless) MP4 video:
> ffmpeg -video_size 320x200 -pixel_format rgb48 -f rawvideo -framerate 30
> -i video.raw -crf 0 -y video.mp4
>
> pause
>
>
> I have a question to the experts. The above example works fine with
> pixel format rgb48, but with pixel formats gray16 or gray10le the MP4
> output looks wrong. I don't yet understand why.
>

Not all muxers support all pixel formats as raw.

> Michael
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-25 Thread Michael Koch

Am 25.10.2022 um 09:29 schrieb Naveen.B:


What do you want to do with the RAW video? You know that you can't play
it with most players?

Yes, I know it cannot be played with most of th players, I need to see the
size of the RAW video and make some compression on it for our further
analysis.

 Could you please help me on the missing parameters to generate the RAW
video?


I did some tests and came to the conclusion that it's impossible to 
import a group of numbered raw images.

It's possible to import a single raw image.
It's possible to import a group of numbered images (JPG, PNG, TIF...)
But it's not possible to import a numbered group of raw images.
(To the experts: Please correct me if I'm wrong).

Anyway it's a bad idea to save the images in raw format. You should use 
PNG images, which have a lossless compression, and 16-bit depth is possible.
I recommend that you convert your images to PNG, and then things become 
much easier.


Here is a (Windows) batch file with a few examples:

rem  Make 30 PNG images (48-bit per pixel):
ffmpeg -f lavfi -i testsrc2=s=320x200,format=rgb48 -frames 30 -f image2 
-y image-%%03d.png


rem  Convert these 30 images to a raw video (this conversion is lossless):
ffmpeg -i image-%%03d.png -s 320x200 -pixel_format rgb48 -f rawvideo 
-c:v rawvideo -y video.raw


rem  The size of the raw video is exactly 320 * 200 * 2 * 3 * 30 = 
1152 Bytes


rem  Convert the first frame from the raw video to a PNG image (48-bit 
per pixel):
ffmpeg -video_size 320x200 -pixel_format rgb48 -f rawvideo -i video.raw 
-frames 1 -y image.png


rem  Convert the raw video to a (almost lossless) MP4 video:
ffmpeg -video_size 320x200 -pixel_format rgb48 -f rawvideo -framerate 30 
-i video.raw -crf 0 -y video.mp4


pause


I have a question to the experts. The above example works fine with 
pixel format rgb48, but with pixel formats gray16 or gray10le the MP4 
output looks wrong. I don't yet understand why.


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-25 Thread Naveen.B
>
>
> >> Are you sure that there is a file CapturedImage-000.raw ?
> >> You forgot to specify the input pixel format.
> >> Many parameters are missing for the raw output. But the error message is
> >> from the input.
> >>
> >> Do you really want raw video? That's not the easiest format for a
> beginner.
> >> Everything must be specified for the input (file format, pixel format,
> >> size, framerate, and whatever I may have forgotten...) and the same
> >> things must be specified for the output again.
> >>
> >> [image: image.png]
> >> this error pops up when I add the flag -f rawvideo (I have a raw files,
> >> should this be used for raw video?)
> >>
> > I tried by giving the input with -pix_fmt, it's the same error.
> >
> > Yes, I want raw video. I have converted RAW files to .mp4 successfully
> with
> > uncompressed, the size of the .mp4 format video was less comparatively.
> > I have 30 RAW files with each file is around 4Mbps (so, 30 RAW
> > filesx4Mbps=180Mbps for one second), the output of the video file size
> > (.mp4) is coming around 18 Mbps, so I am assuming .mp4 video format is
> > doing some compression and hence I need to try this with RAW video.
>
> What do you want to do with the RAW video? You know that you can't play
> it with most players?
>
> Yes, I know it cannot be played with most of th players, I need to see the
> size of the RAW video and make some compression on it for our further
> analysis.

Could you please help me on the missing parameters to generate the RAW
video?
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-24 Thread Michael Koch

Am 24.10.2022 um 18:36 schrieb Naveen.B:

Are you sure that there is a file CapturedImage-000.raw ?
You forgot to specify the input pixel format.
Many parameters are missing for the raw output. But the error message is
from the input.

Do you really want raw video? That's not the easiest format for a beginner.
Everything must be specified for the input (file format, pixel format,
size, framerate, and whatever I may have forgotten...) and the same
things must be specified for the output again.

[image: image.png]
this error pops up when I add the flag -f rawvideo (I have a raw files,
should this be used for raw video?)


I tried by giving the input with -pix_fmt, it's the same error.

Yes, I want raw video. I have converted RAW files to .mp4 successfully with
uncompressed, the size of the .mp4 format video was less comparatively.
I have 30 RAW files with each file is around 4Mbps (so, 30 RAW
filesx4Mbps=180Mbps for one second), the output of the video file size
(.mp4) is coming around 18 Mbps, so I am assuming .mp4 video format is
doing some compression and hence I need to try this with RAW video.


What do you want to do with the RAW video? You know that you can't play 
it with most players?


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-24 Thread Naveen.B
>
> Are you sure that there is a file CapturedImage-000.raw ?
> You forgot to specify the input pixel format.
> Many parameters are missing for the raw output. But the error message is
> from the input.
>
> Do you really want raw video? That's not the easiest format for a beginner.
> Everything must be specified for the input (file format, pixel format,
> size, framerate, and whatever I may have forgotten...) and the same
> things must be specified for the output again.
>
> [image: image.png]
> this error pops up when I add the flag -f rawvideo (I have a raw files,
> should this be used for raw video?)
>
I tried by giving the input with -pix_fmt, it's the same error.

Yes, I want raw video. I have converted RAW files to .mp4 successfully with
uncompressed, the size of the .mp4 format video was less comparatively.
I have 30 RAW files with each file is around 4Mbps (so, 30 RAW
filesx4Mbps=180Mbps for one second), the output of the video file size
(.mp4) is coming around 18 Mbps, so I am assuming .mp4 video format is
doing some compression and hence I need to try this with RAW video.

This is the command I tried for .mp4 file video which is coming 18Mbps as
output video file size,
*ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i CapturedImage-%03d.raw
-c:v libx264 -pix_fmt yuv420p -preset fast -profile:v main -level:v 4.0
-crf 1 raw_video.mp4*

Please show us the command output of making an mp4 file.
>
> It really sounds as if you haven't studied the documentation very well.
> Likewise, raw video output is generally one of the worst "formats"; if you
> simply want -uncompressed- video, put it into an AVI container.
>
> Please refer to the above reply, I have managed already to get in -mp4
format, I am trying to get the raw video file as output.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-24 Thread Carl Zwanzig

On 10/24/2022 8:50 AM, Naveen.B wrote:

These files are present in the directory, but still its throwing this
error, No such file or directory.


Please show us the command output of making an mp4 file.

It really sounds as if you haven't studied the documentation very well. 
Likewise, raw video output is generally one of the worst "formats"; if you 
simply want -uncompressed- video, put it into an AVI container.


z!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-24 Thread Michael Koch

Am 24.10.2022 um 17:50 schrieb Naveen.B:



Hello Team,

I have managed to convert raw Images files to .mp4 video,
I need to encode to a RAW video instead, could you please let me know

the

command for this?

RAW Image file is,
resolution - 1600x1300
fps-30
bit depth-16bit


Do not specify a video codec, or set -c:v rawhide, set your frame rate /
resolution / bit depth params and use .raw as extension.

I tried as you suggested, I get the below error,

You must specify all relevant parameters for the output file at the
correct place in the command line. After the input file name, and before
the output file name. I think you must also add -f rawvideo
Remove -crf 1, as it makes no sense for a raw file.

C:\Naveen\projects\DMS\software\ffmpeg_full\ffmpeg\bin>ffmpeg -f rawvideo
-s 1600x1300 -r 30 -i CapturedImage-%03d.raw raw_video.raw
ffmpeg version 2022-06-20-git-56419428a8-full_build-www.gyan.dev
Copyright (c) 2000-2022 the FFmpeg developers
   built with gcc 11.3.0 (Rev1, Built by MSYS2 project)
   configuration: --enable-gpl --enable-version3 --enable-static
--disable-w32threads --disable-autodetect --enable-fontconfig
--enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib
--enable-lzma --enable-libsnappy --enable-zlib --enable-librist
--enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth
--enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d
--enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e
--enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl
--enable-libopenjpeg --enable-libvpx --enable-mediafoundation
--enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi
--enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg
--enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec
--enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2
--enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo
--enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug
--enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame
--enable-libshine --enable-libtheora --enable-libtwolame
--enable-libvo-amrwbenc --enable-libilbc --enable-libgsm
--enable-libopencore-amrnb --enable-libopus --enable-libspeex
--enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite
--enable-libmysofa --enable-librubberband --enable-libsoxr
--enable-chromaprint
   libavutil  57. 27.100 / 57. 27.100
   libavcodec 59. 33.100 / 59. 33.100
   libavformat59. 25.100 / 59. 25.100
   libavdevice59.  6.100 / 59.  6.100
   libavfilter 8. 41.100 /  8. 41.100
   libswscale  6.  6.100 /  6.  6.100
   libswresample   4.  6.100 /  4.  6.100
   libpostproc56.  5.100 / 56.  5.100
CapturedImage-%03d.raw: No such file or directory


These files are present in the directory, but still its throwing this
error, No such file or directory.


Are you sure that there is a file CapturedImage-000.raw ?
You forgot to specify the input pixel format.
Many parameters are missing for the raw output. But the error message is 
from the input.


Do you really want raw video? That's not the easiest format for a beginner.
Everything must be specified for the input (file format, pixel format, 
size, framerate, and whatever I may have forgotten...) and the same 
things must be specified for the output again.


Michael

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-24 Thread Reindl Harald




Am 24.10.22 um 17:50 schrieb Naveen.B:

C:\Naveen\projects\DMS\software\ffmpeg_full\ffmpeg\bin>ffmpeg -f rawvideo
-s 1600x1300 -r 30 -i CapturedImage-%03d.raw raw_video.raw
CapturedImage-%03d.raw: No such file or directory


These files are present in the directory, but still its throwing this
error, No such file or directory


avoid special chars in filenames or escape them properly and in general 
use quotes - PEBCAK (problem exists between chair and keyboard)


https://ss64.com/nt/syntax-esc.html

Escaping Percents

The % character has a special meaning for command line parameters 
and FOR parameters.

To treat a percent as a regular character, double it:

%%

Many characters such as \ = ( ) do not need to be escaped when they 
are used within a "quoted string" typically these are characters you 
might find in a filename/path. The percent character is one exception to 
this rule, even though under NTFS % is a valid filename character.

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-24 Thread Naveen.B
>
>
> >>> Hello Team,
> >>>
> >>> I have managed to convert raw Images files to .mp4 video,
> >>> I need to encode to a RAW video instead, could you please let me know
> the
> >>> command for this?
> >>>
> >>> RAW Image file is,
> >>> resolution - 1600x1300
> >>> fps-30
> >>> bit depth-16bit
> >>>
> >> Do not specify a video codec, or set -c:v rawhide, set your frame rate /
> >> resolution / bit depth params and use .raw as extension.
> >>
> >> I tried as you suggested, I get the below error,
>
> You must specify all relevant parameters for the output file at the
> correct place in the command line. After the input file name, and before
> the output file name. I think you must also add -f rawvideo
> Remove -crf 1, as it makes no sense for a raw file.
>
> C:\Naveen\projects\DMS\software\ffmpeg_full\ffmpeg\bin>ffmpeg -f rawvideo
> -s 1600x1300 -r 30 -i CapturedImage-%03d.raw raw_video.raw
> ffmpeg version 2022-06-20-git-56419428a8-full_build-www.gyan.dev
> Copyright (c) 2000-2022 the FFmpeg developers
>   built with gcc 11.3.0 (Rev1, Built by MSYS2 project)
>   configuration: --enable-gpl --enable-version3 --enable-static
> --disable-w32threads --disable-autodetect --enable-fontconfig
> --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib
> --enable-lzma --enable-libsnappy --enable-zlib --enable-librist
> --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth
> --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d
> --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e
> --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265
> --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl
> --enable-libopenjpeg --enable-libvpx --enable-mediafoundation
> --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi
> --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg
> --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec
> --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2
> --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo
> --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug
> --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame
> --enable-libshine --enable-libtheora --enable-libtwolame
> --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm
> --enable-libopencore-amrnb --enable-libopus --enable-libspeex
> --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite
> --enable-libmysofa --enable-librubberband --enable-libsoxr
> --enable-chromaprint
>   libavutil  57. 27.100 / 57. 27.100
>   libavcodec 59. 33.100 / 59. 33.100
>   libavformat59. 25.100 / 59. 25.100
>   libavdevice59.  6.100 / 59.  6.100
>   libavfilter 8. 41.100 /  8. 41.100
>   libswscale  6.  6.100 /  6.  6.100
>   libswresample   4.  6.100 /  4.  6.100
>   libpostproc56.  5.100 / 56.  5.100
> CapturedImage-%03d.raw: No such file or directory
>

These files are present in the directory, but still its throwing this
error, No such file or directory.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-24 Thread Michael Koch

Am 24.10.2022 um 14:29 schrieb Naveen.B:


On 24 Oct 2022, at 12:52, Naveen.B  wrote:

Hello Team,

I have managed to convert raw Images files to .mp4 video,
I need to encode to a RAW video instead, could you please let me know the
command for this?

RAW Image file is,
resolution - 1600x1300
fps-30
bit depth-16bit


Do not specify a video codec, or set -c:v rawhide, set your frame rate /
resolution / bit depth params and use .raw as extension.

I tried as you suggested, I get the below error,


You must specify all relevant parameters for the output file at the 
correct place in the command line. After the input file name, and before 
the output file name. I think you must also add -f rawvideo

Remove -crf 1, as it makes no sense for a raw file.

Michael
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-24 Thread Naveen.B
>
>
> >>> Hello Team,
> >>>
> >>> I have managed to convert raw Images files to .mp4 video,
> >>> I need to encode to a RAW video instead, could you please let me know
> the
> >>> command for this?
> >>>
> >>> RAW Image file is,
> >>> resolution - 1600x1300
> >>> fps-30
> >>> bit depth-16bit
> >>>
> >>
> >> Do not specify a video codec, or set -c:v rawhide, set your frame rate /
> >> resolution / bit depth params and use .raw as extension.
> >>
> >> I tried as you suggested, I get the below error,
> >
> > C:\Naveen\projects\DMS\software\ffmpeg_full\ffmpeg\bin>ffmpeg
> -pixel_format
> > gray10le -s 1600x1300 -r 30 -i CapturedImage-%03d.raw -c:v rawhide -crf 1
> > raw_video.raw
>
> Rawhide?
> WTF?
> Rawvideo does not carry a pix format afaik.
>
> sorry, I am not sure where I am going wrong, could you please suggest the
> right command, I am very new to ffmpeg usgae.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-24 Thread Bouke / edit 'B


> On 24 Oct 2022, at 14:29, Naveen.B  wrote:
> 
>> 
>> 
>> On 24 Oct 2022, at 12:52, Naveen.B  wrote:
>>> 
>>> Hello Team,
>>> 
>>> I have managed to convert raw Images files to .mp4 video,
>>> I need to encode to a RAW video instead, could you please let me know the
>>> command for this?
>>> 
>>> RAW Image file is,
>>> resolution - 1600x1300
>>> fps-30
>>> bit depth-16bit
>>> 
>> 
>> Do not specify a video codec, or set -c:v rawhide, set your frame rate /
>> resolution / bit depth params and use .raw as extension.
>> 
>> I tried as you suggested, I get the below error,
> 
> C:\Naveen\projects\DMS\software\ffmpeg_full\ffmpeg\bin>ffmpeg -pixel_format
> gray10le -s 1600x1300 -r 30 -i CapturedImage-%03d.raw -c:v rawhide -crf 1
> raw_video.raw

Rawhide?
WTF?
Rawvideo does not carry a pix format afaik.


> ffmpeg version 2022-06-20-git-56419428a8-full_build-www.gyan.dev Copyright
> (c) 2000-2022 the FFmpeg developers
>  built with gcc 11.3.0 (Rev1, Built by MSYS2 project)
>  configuration: --enable-gpl --enable-version3 --enable-static
> --disable-w32threads --disable-autodetect --enable-fontconfig
> --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib
> --enable-lzma --enable-libsnappy --enable-zlib --enable-librist
> --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth
> --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d
> --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e
> --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265
> --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl
> --enable-libopenjpeg --enable-libvpx --enable-mediafoundation
> --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi
> --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg
> --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec
> --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2
> --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo
> --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug
> --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame
> --enable-libshine --enable-libtheora --enable-libtwolame
> --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm
> --enable-libopencore-amrnb --enable-libopus --enable-libspeex
> --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite
> --enable-libmysofa --enable-librubberband --enable-libsoxr
> --enable-chromaprint
>  libavutil  57. 27.100 / 57. 27.100
>  libavcodec 59. 33.100 / 59. 33.100
>  libavformat59. 25.100 / 59. 25.100
>  libavdevice59.  6.100 / 59.  6.100
>  libavfilter 8. 41.100 /  8. 41.100
>  libswscale  6.  6.100 /  6.  6.100
>  libswresample   4.  6.100 /  4.  6.100
>  libpostproc56.  5.100 / 56.  5.100
> Input #0, image2, from 'CapturedImage-%03d.raw':
>  Duration: 00:00:01.20, start: 0.00, bitrate: N/A
>  Stream #0:0: Video: rawvideo (Y1[0][10] / 0xA003159), gray10le,
> 1600x1300, 25 fps, 25 tbr, 25 tbn
> [NULL @ 023c862e6740] Unable to find a suitable output format for
> 'raw_video.raw'
> raw_video.raw: Invalid argument
> 
> C:\Naveen\projects\DMS\software\ffmpeg_full\ffmpeg\bin>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-24 Thread Naveen.B
>
>
> On 24 Oct 2022, at 12:52, Naveen.B  wrote:
> >
> > Hello Team,
> >
> > I have managed to convert raw Images files to .mp4 video,
> > I need to encode to a RAW video instead, could you please let me know the
> > command for this?
> >
> > RAW Image file is,
> > resolution - 1600x1300
> > fps-30
> > bit depth-16bit
> >
>
> Do not specify a video codec, or set -c:v rawhide, set your frame rate /
> resolution / bit depth params and use .raw as extension.
>
> I tried as you suggested, I get the below error,

C:\Naveen\projects\DMS\software\ffmpeg_full\ffmpeg\bin>ffmpeg -pixel_format
gray10le -s 1600x1300 -r 30 -i CapturedImage-%03d.raw -c:v rawhide -crf 1
raw_video.raw
ffmpeg version 2022-06-20-git-56419428a8-full_build-www.gyan.dev Copyright
(c) 2000-2022 the FFmpeg developers
  built with gcc 11.3.0 (Rev1, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static
--disable-w32threads --disable-autodetect --enable-fontconfig
--enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib
--enable-lzma --enable-libsnappy --enable-zlib --enable-librist
--enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth
--enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d
--enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e
--enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl
--enable-libopenjpeg --enable-libvpx --enable-mediafoundation
--enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi
--enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg
--enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec
--enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2
--enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo
--enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug
--enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame
--enable-libshine --enable-libtheora --enable-libtwolame
--enable-libvo-amrwbenc --enable-libilbc --enable-libgsm
--enable-libopencore-amrnb --enable-libopus --enable-libspeex
--enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite
--enable-libmysofa --enable-librubberband --enable-libsoxr
--enable-chromaprint
  libavutil  57. 27.100 / 57. 27.100
  libavcodec 59. 33.100 / 59. 33.100
  libavformat59. 25.100 / 59. 25.100
  libavdevice59.  6.100 / 59.  6.100
  libavfilter 8. 41.100 /  8. 41.100
  libswscale  6.  6.100 /  6.  6.100
  libswresample   4.  6.100 /  4.  6.100
  libpostproc56.  5.100 / 56.  5.100
Input #0, image2, from 'CapturedImage-%03d.raw':
  Duration: 00:00:01.20, start: 0.00, bitrate: N/A
  Stream #0:0: Video: rawvideo (Y1[0][10] / 0xA003159), gray10le,
1600x1300, 25 fps, 25 tbr, 25 tbn
[NULL @ 023c862e6740] Unable to find a suitable output format for
'raw_video.raw'
raw_video.raw: Invalid argument

C:\Naveen\projects\DMS\software\ffmpeg_full\ffmpeg\bin>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] encode to RAW video

2022-10-24 Thread Bouke / Videotoolshed



> On 24 Oct 2022, at 12:52, Naveen.B  wrote:
> 
> Hello Team,
> 
> I have managed to convert raw Images files to .mp4 video,
> I need to encode to a RAW video instead, could you please let me know the
> command for this?
> 
> RAW Image file is,
> resolution - 1600x1300
> fps-30
> bit depth-16bit
> 

Do not specify a video codec, or set -c:v rawhide, set your frame rate / 
resolution / bit depth params and use .raw as extension.

Bouke


> Thanks and Regards,
> Naveen B.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] encode to RAW video

2022-10-24 Thread Naveen.B
Hello Team,

I have managed to convert raw Images files to .mp4 video,
I need to encode to a RAW video instead, could you please let me know the
command for this?

RAW Image file is,
resolution - 1600x1300
fps-30
bit depth-16bit

Thanks and Regards,
Naveen B.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".