[FFmpeg-user] When capturing rawvideo from camera (avfoundation), ffmpeg adds extra 32 bytes for each frame.

Peter Gusev gpeetonn at gmail.com
Wed Sep 19 19:24:46 EEST 2018


The issue hasn't changed. Please see the full output below:

$ ffmpeg -f avfoundation -pixel_format 0rgb -framerate 25 -video_size
640x480 -i "0" -map 0:v -c copy -f rawvideo -vframes 1 /tmp/frame.0rgb
ffmpeg version 4.0.2 Copyright © 2000-2018 the FFmpeg developers
  built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.0.2 --enable-shared
--enable-pthreads --enable-version3 --enable-hardcoded-tables
--enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl
--enable-ffplay --enable-libfontconfig --enable-libfreetype
--enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl
--enable-videotoolbox --disable-lzma
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
Input #0, avfoundation, from '0':
  Duration: N/A, start: 455.952067, bitrate: N/A
    Stream #0:0: Video: rawvideo ([0]RGB / 0x42475200), 0rgb, 640x480, 25
fps, 25 tbr, 1000k tbn, 1000k tbc
File '/tmp/frame.0rgb' already exists. Overwrite ? [y/N] y
Output #0, rawvideo, to '/tmp/frame.0rgb':
  Metadata:
    encoder         : Lavf58.12.100
    Stream #0:0: Video: rawvideo ([0]RGB / 0x42475200), 0rgb, 640x480,
q=2-31, 25 fps, 25 tbr, 1000k tbn, 1000k tbc
Stream mapping:
  Stream #0:0 -> #0:0 ©
Press [q] to stop, [?] for help
frame=    1 fps=0.0 q=-1.0 Lsize=    1200kB time=00:00:00.00
bitrate=9830656000.0kbits/s speed=0.00128x
video:1200kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.000000%

On Wed, 19 Sep 2018 at 12:06, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> 2018-09-19 15:33 GMT+02:00, Peter Gusev <gpeetonn at gmail.com>:
> > Hi!
> >
> > As a part of figuring out the problem I have with ffplay
> > <
> https://stackoverflow.com/questions/52390694/video-moves-sideways-when-captured-raw-from-camera-and-piped-into-ffplay/52399554#52399554
> >,
> > I noticed, that ffmpeg adds 32 bytes to raw 0rgb frames when capturing
> from
> > a camera (macOS 10.12):
> >
> > $ ffmpeg -f avfoundation -pixel_format 0rgb -framerate 25 -video_size
> > 640x480 -i "0" -map 0:v -c copy -f rawvideo -vframes 1 /tmp/frame.0rgb
> > $ wc -c /tmp/frame.0rgb
> >  1228832 /tmp/frame.0rgb
>
> Please provide both the complete, uncut console output and one
> output frame.
> And please confirm if the issue has changed over the last days.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



-- 
Peter Gusev <https://www.linkedin.com/in/peter-gusev-8135441a/>
*gpeetonn at gmail.com <gpeetonn at gmail.com>*


*+1 213 587-27-48*


*Research Scholar @ REMAP UCLA <http://www.remap.ucla.edu/home/about>Video
streaming/ICN networks/Creative Coding/Interactive Media*
*dj peetonn <https://soundcloud.com/peter-gusev>*


More information about the ffmpeg-user mailing list