USB Camera ffplay real-time and save to file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

USB Camera ffplay real-time and save to file

Hans Carlson-2
I have a cheap USB pipe inspection camera and I want to see the output
(via ffplay) real-time, but also record (via ffmpeg).  I seem to be able
to do both separately, but can't get them both to work at the same time
using the tee muxer.  Well, it does work, but the ffplay output isn't
real-time, there's maybe 1/2 to 1 second delay between the time I move the
camera and when I see the results in the ffplay window.

Is there any way to use ffplay and ffmpeg at the same time such that the
ffplay output is real-time and the video is recorded?

I don't care what output format to use for the saved file other than I
want to save as much detail as possible.  I can post process it later if
necessary.  This is why I'm using "copy".  I also don't care which output
file type to use, so if there's something better than matroska that's
fine.  Likewise for the input format for ffplay, I'm only using "nut"
because I found an example that used "nut" and it seems to work.

I've included the full output for the "tee" version (below), but can
provide output for the separate ffmpeg and ffplay commands if necessary.

Here's some details on the camera:

   $ v4l2-ctl --list-devices
   SheKar Camera: SheKar Camera (usb-0000:00:1a.0-1.2.4):
  /dev/video3
  /dev/video4

   Integrated Camera: Integrated C (usb-0000:00:1a.0-1.6):
  /dev/video0
  /dev/video1

   $ ffmpeg -hide_banner -f v4l2 -list_formats all -i /dev/video3
   [video4linux2,v4l2 @ 0x3ef6c80] Compressed:       mjpeg :          Motion-JPEG : 1280x720 640x480 1600x1200 1600x900 1024x768 800x600 320x240
   [video4linux2,v4l2 @ 0x3ef6c80] Raw       :     yuyv422 :           YUYV 4:2:2 : 1280x720 640x480 1600x1200 1600x900 1024x768 800x600 320x240
   /dev/video3: Immediate exit requested

If I use ffplay by itself, I can see the camera just fine and the video
response is very fast.  In other words, if I move the camera, the ffplay
video image responds real-time (or very, very close to real-time).

   $ ffplay -f v4l2 -input_format mjpeg -framerate 30 -video_size 1280x720 -i /dev/video3

If I use ffmpeg by itself, I can record the video, but obviously I can't
see the video real-time.

   $ ffmpeg -f v4l2 -input_format mjpeg -framerate 30 -video_size 1280x720 -i /dev/video3 -map 0 -c:v copy output.mkv

When I combine ffmpeg and ffplay using the "tee" muxer, it works, but the
ffplay output is delayed by 1/2 to 1 second.

   $ ffmpeg -f v4l2 -input_format mjpeg -framerate 30 -video_size 1280x720 -i /dev/video3 -map 0 -c:v copy -f tee "output.mkv|[f=nut]pipe:" | ffplay pipe:
   ffplay version N-99076-gb0203fa72b Copyright (c) 2003-2020 the FFmpeg developers
     built with gcc 9 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-static --disable-shared --disable-debug --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-openssl --enable-libbluray --enable-libcdio --enable-libtesseract
     libavutil      56. 58.100 / 56. 58.100
     libavcodec     58.105.100 / 58.105.100
     libavformat    58. 54.100 / 58. 54.100
     libavdevice    58. 11.101 / 58. 11.101
   ffmpeg version N-99076-gb0203fa72b  libavfilter     7. 87.100 /  7. 87.100
    Copyright (c) 2000-2020 the FFmpeg developers
     libswscale      5.  8.100 /  5.  8.100
     built with gcc 9 (GCC)
     libswresample   3.  8.100 /  3.  8.100
     configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-static --disable-shared --disable-debug --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-openssl --enable-libbluray --enable-libcdio --enable-libtesseract
     libpostproc    55.  8.100 / 55.  8.100
     libavutil      56. 58.100 / 56. 58.100
     libavcodec     58.105.100 / 58.105.100
     libavformat    58. 54.100 / 58. 54.100
     libavdevice    58. 11.101 / 58. 11.101
     libavfilter     7. 87.100 /  7. 87.100
     libswscale      5.  8.100 /  5.  8.100
     libswresample   3.  8.100 /  3.  8.100
     libpostproc    55.  8.100 / 55.  8.100
   [mjpeg @ 0x2c77800] unable to decode APP fields: Invalid data found when processing input
   Input #0, video4linux2,v4l2, from '/dev/video3':
     Duration: N/A, start: 1887217.220789, bitrate: N/A
       Stream #0:0: Video: mjpeg (Baseline), yuvj422p(pc, bt470bg/unknown/unknown), 1280x720, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
   Output #0, tee, to 'output.mkv|[f=nut]pipe:': 0KB sq=    0B f=0/0
     Metadata:
       encoder         : Lavf58.54.100
       Stream #0:0: Video: mjpeg (Baseline), yuvj422p(pc, bt470bg/unknown/unknown), 1280x720, q=2-31, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
   Stream mapping:
     Stream #0:0 -> #0:0 (copy)
   Press [q] to stop, [?] for help
   [mjpeg @ 0x7fdf24003bc0] unable to decode APP fields: Invalid data found when processing input
   Input #0, nut, from 'pipe:':aq=    0KB vq=    0KB sq=    0B f=0/0   ed=1.11x
     Metadata:
       encoder         : Lavf58.54.100
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: mjpeg (Baseline) (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 1280x720, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
   [mjpeg @ 0x7fdf24005840] unable to decode APP fields: Invalid data found when processing input
   [swscaler @ 0x7fdf1c1f4cc0] deprecated pixel format used, make sure you did set range correctly
   [mjpeg @ 0x7fdf24005840] unable to decode APP fields: Invalid data found when processing input
       Last message repeated 2 times
   [mjpeg @ 0x7fdf24005840] unable to decode APP fields: Invalid data found when processing input
     ... (repeats several times/sec)
   [mjpeg @ 0x7fdf24005840] unable to decode APP fields: Invalid data found when processing input
   frame=  229 fps= 25 q=-1.0 Lsize=N/A time=00:00:09.32 bitrate=N/A speed=1.01x
   video:25291kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
   Exiting normally, received signal 2.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: USB Camera ffplay real-time and save to file

Carl Eugen Hoyos-2


> Am 09.09.2020 um 23:07 schrieb Hans Carlson <[hidden email]>:
>
> I have a cheap USB pipe inspection camera and I want to see the output (via ffplay) real-time, but also record (via ffmpeg)

Use ffmpeg instead of ffplay to show the stream, this should avoid the lagging you saw.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: USB Camera ffplay real-time and save to file

Simon
On Fri, Sep 11, 2020 at 1:18 AM Carl Eugen Hoyos <[hidden email]> wrote:

>
>
> > Am 09.09.2020 um 23:07 schrieb Hans Carlson <[hidden email]>:
> >
> > I have a cheap USB pipe inspection camera and I want to see the output
> (via ffplay) real-time, but also record (via ffmpeg)
>
> Use ffmpeg instead of ffplay to show the stream, this should avoid the
> lagging you saw.
>

Carl, could you add a hint as to what option achieves this? I had no clue
this was possible, despite--so I thought--spending lots of time looking
through docs. This would be very useful. Thanks.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: USB Camera ffplay real-time and save to file

Moritz Barsnick
On Fri, Sep 11, 2020 at 05:43:09 -0600, Simon Roberts wrote:

> On Fri, Sep 11, 2020 at 1:18 AM Carl Eugen Hoyos <[hidden email]> wrote:
> > > Am 09.09.2020 um 23:07 schrieb Hans Carlson <[hidden email]>:
> > > I have a cheap USB pipe inspection camera and I want to see the output
> > (via ffplay) real-time, but also record (via ffmpeg)
> >
> > Use ffmpeg instead of ffplay to show the stream, this should avoid the
> > lagging you saw.
>
> Carl, could you add a hint as to what option achieves this? I had no clue
> this was possible, despite--so I thought--spending lots of time looking
> through docs.

ffmpeg has several display output muxers/devices. The most common one
(saying it works well, and that on many platforms) is "sdl" a.k.a.
"sdl". Have ffmpeg create two outputs:

$ ffmpeg -i INPUT -c whatever OUTPUTFILE -c copy -f sdl :0

(You may need to drop the copy codec if sdl cannot handle your input or
it isn't raw, and/or at least adjust the pixel format to one which sdl
handles - but it will report that in an error message, I believe.)

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: USB Camera ffplay real-time and save to file

Simon
On Fri, Sep 11, 2020 at 7:13 AM Moritz Barsnick <[hidden email]> wrote:

> On Fri, Sep 11, 2020 at 05:43:09 -0600, Simon Roberts wrote:
> [...]
> > > Use ffmpeg instead of ffplay to show the stream,

[...]

>
> ffmpeg has several display output muxers/devices. The most common one
> (saying it works well, and that on many platforms) is "sdl" a.k.a.
> "sdl". Have ffmpeg create two outputs:
>
> $ ffmpeg -i INPUT -c whatever OUTPUTFILE -c copy -f sdl :0
>
> (You may need to drop the copy codec if sdl cannot handle your input or
> it isn't raw, and/or at least adjust the pixel format to one which sdl
> handles - but it will report that in an error message, I believe.)
>
>
Thank you Moritz, I guess I can forgive myself for utterly failing to spot
that in view of the not particularly mnemonic name :) Regardless, this will
be very helpful for me, much appreciated.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: USB Camera ffplay real-time and save to file

Hans Carlson-2
In reply to this post by Moritz Barsnick
On Fri, 11 Sep 2020, Moritz Barsnick wrote:

> ffmpeg has several display output muxers/devices. The most common one
> (saying it works well, and that on many platforms) is "sdl" a.k.a.
> "sdl". Have ffmpeg create two outputs:
>
> $ ffmpeg -i INPUT -c whatever OUTPUTFILE -c copy -f sdl :0
>
> (You may need to drop the copy codec if sdl cannot handle your input or
> it isn't raw, and/or at least adjust the pixel format to one which sdl
> handles - but it will report that in an error message, I believe.)

Thanks Moritz, I didn't know about this...  but, I can't seem to get it to
work.  I believe the codec and/or pixel format (as you suspected) may be
to blame.

Any suggestions for a codec and/or pixel format that:

   1) is compatible with the camera mjpeg input (yuvj422p ?)

   2) does NOT change the framerate from 30 fps to 10 fps

If I try this:

   $ ffmpeg -f v4l2 -input_format mjpeg -framerate 30 -video_size 1280x720 -i /dev/video2 -map 0:0 -c:v copy -f sdl :0

I get:

   [sdl,sdl2 @ 0x3ef9980] Only supports one rawvideo stream

So I try this:

   $ ffmpeg -f v4l2 -input_format mjpeg -framerate 30 -video_size 1280x720 -i /dev/video2 -map 0:0 -c:v rawvideo -f sdl :0

Then I get this:

   [sdl,sdl2 @ 0x3a5f980] Unsupported pixel format 'yuvj422p'.

So then I try this.
NOTE: I'm just guessing with yuv422p... I really have no idea what pixel
format to use:

   $ ffmpeg -f v4l2 -input_format mjpeg -framerate 30 -video_size 1280x720 -i /dev/video2 -map 0:0 -c:v rawvideo -pixel_format yuv422p -f sdl :0

But get the same error:

   [sdl,sdl2 @ 0x3a5f980] Unsupported pixel format 'yuvj422p'.

So, I try it as an input option:

   $ ffmpeg -f v4l2 -input_format mjpeg -pixel_format yuv422p -framerate 30 -video_size 1280x720 -i /dev/video2 -map 0:0 -c:v rawvideo -f sdl :0
   (see complete output below)

This doesn't work, but it seems like it tries to work.  I briefly see what
I assume is a window flash on the monitor, then it disappears and I get
this error:

   av_interleaved_write_frame(): Operation not permitted

One other problem with this particular command is this notice:

   [video4linux2,v4l2 @ 0x3b9ff80] The driver changed the time per frame from 1/30 to 1/10

Which I definitely do NOT want.

If I go back to ffplay and use "-pixel_format yuv422p" as an input option:

   $ ffplay -f v4l2 -input_format mjpeg -pixel_format yuv422p -framerate 30 -video_size 1280x720 -i /dev/video2

it does work (ie, I see a video window with camera output), BUT I get the
same notice about the framerate:

   [video4linux2,v4l2 @ 0x7efd78000bc0] The driver changed the time per frame from 1/30 to 1/10


Complete output for command that "tries to work".  Happy to provide
complete output for any other commands:

   $ ffmpeg -f v4l2 -input_format mjpeg -pixel_format yuv422p -framerate 30 -video_size 1280x720 -i /dev/video2 -map 0:0 -c:v rawvideo -f sdl :0
ffmpeg version N-99076-gb0203fa72b Copyright (c) 2000-2020 the FFmpeg developers
   built with gcc 9 (GCC)
   configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-static --disable-shared --disable-debug --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-openssl --enable-libbluray --enable-libcdio --enable-libtesseract
   libavutil      56. 58.100 / 56. 58.100
   libavcodec     58.105.100 / 58.105.100
   libavformat    58. 54.100 / 58. 54.100
   libavdevice    58. 11.101 / 58. 11.101
   libavfilter     7. 87.100 /  7. 87.100
   libswscale      5.  8.100 /  5.  8.100
   libswresample   3.  8.100 /  3.  8.100
   libpostproc    55.  8.100 / 55.  8.100
[video4linux2,v4l2 @ 0x3b9ff80] The driver changed the time per frame from 1/30 to 1/10
Input #0, video4linux2,v4l2, from '/dev/video2':
   Duration: N/A, start: 2054789.182838, bitrate: 147456 kb/s
     Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1280x720, 147456 kb/s, 10 fps, 10 tbr, 1000k tbn, 1000k tbc
Stream mapping:
   Stream #0:0 -> #0:0 (rawvideo (native) -> rawvideo (native))
Press [q] to stop, [?] for help
Output #0, sdl,sdl2, to ':0':
   Metadata:
     encoder         : Lavf58.54.100
     Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1280x720, q=2-31, 147456 kb/s, 10 fps, 10 tbn, 10 tbc
     Metadata:
       encoder         : Lavc58.105.100 rawvideo
av_interleaved_write_frame(): Operation not permitted
frame=    1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.10 bitrate=N/A speed=0.364x
video:1800kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!


_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: USB Camera ffplay real-time and save to file

Carl Eugen Hoyos-2


> Am 11.09.2020 um 21:30 schrieb Hans Carlson <[hidden email]>:
>
> $ ffmpeg -f v4l2 -input_format mjpeg -framerate 30 -video_size 1280x720 -i /dev/video2 -map 0:0 -c:v rawvideo -pixel_format yuv422p -f sdl :0

The output option is called -pix_fmt

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: USB Camera ffplay real-time and save to file

Hans Carlson-2
On Fri, 11 Sep 2020, Carl Eugen Hoyos wrote:

>> Am 11.09.2020 um 21:30 schrieb Hans Carlson <[hidden email]>:
>>
>> $ ffmpeg -f v4l2 -input_format mjpeg -framerate 30 -video_size 1280x720 -i /dev/video2 -map 0:0 -c:v rawvideo -pixel_format yuv422p -f sdl :0
>
> The output option is called -pix_fmt

Thanks, that helped.  This command seems to work...

   $ ffmpeg -f v4l2 -input_format mjpeg -framerate 30 -video_size 1280x720 -i /dev/video2 -map 0:0 -c:v rawvideo -pix_fmt yuv420p -f sdl "Inspection Camera"
   (full output below)

but there's a couple warning messages and I'm curious if there's any way
to avoid them:

   [swscaler @ 0x2b5bb00] deprecated pixel format used, make sure you did set range correctly

I'm assuming this is referring to the input pixel format (yuvj422p).  I have no idea how to do "set range correctly".

   [mjpeg @ 0x2b2e580] unable to decode APP fields: Invalid data found when processing input

This one is rather annoying simply because repeats several times/sec.


   $ ffmpeg -f v4l2 -input_format mjpeg -framerate 30 -video_size 1280x720 -i /dev/video2 -map 0:0 -c:v rawvideo -pix_fmt yuv420p -f sdl "Inspection Camera"
ffmpeg version N-99076-gb0203fa72b Copyright (c) 2000-2020 the FFmpeg developers
   built with gcc 9 (GCC)
   configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-static --disable-shared --disable-debug --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-openssl --enable-libbluray --enable-libcdio --enable-libtesseract
   libavutil      56. 58.100 / 56. 58.100
   libavcodec     58.105.100 / 58.105.100
   libavformat    58. 54.100 / 58. 54.100
   libavdevice    58. 11.101 / 58. 11.101
   libavfilter     7. 87.100 /  7. 87.100
   libswscale      5.  8.100 /  5.  8.100
   libswresample   3.  8.100 /  3.  8.100
   libpostproc    55.  8.100 / 55.  8.100
[mjpeg @ 0x2b2c840] unable to decode APP fields: Invalid data found when processing input
Input #0, video4linux2,v4l2, from '/dev/video2':
   Duration: N/A, start: 2073662.898794, bitrate: N/A
     Stream #0:0: Video: mjpeg (Baseline), yuvj422p(pc, bt470bg/unknown/unknown), 1280x720, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
Stream mapping:
   Stream #0:0 -> #0:0 (mjpeg (native) -> rawvideo (native))
Press [q] to stop, [?] for help
[mjpeg @ 0x2b2e580] unable to decode APP fields: Invalid data found when processing input
[swscaler @ 0x2b5bb00] deprecated pixel format used, make sure you did set range correctly
Output #0, sdl,sdl2, to 'Inspection Camera':
   Metadata:
     encoder         : Lavf58.54.100
     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720, q=2-31, 331776 kb/s, 30 fps, 30 tbn, 30 tbc
     Metadata:
       encoder         : Lavc58.105.100 rawvideo
[mjpeg @ 0x2b2e580] unable to decode APP fields: Invalid data found when processing input
     Last message repeated 11 times
[mjpeg @ 0x2b2e580] unable to decode APP fields: Invalid data found when processing input
     Last message repeated 11 times
[mjpeg @ 0x2b2e580] unable to decode APP fields: Invalid data found when processing input
     Last message repeated 12 times
[mjpeg @ 0x2b2e580] unable to decode APP fields: Invalid data found when processing input
     Last message repeated 11 times
[mjpeg @ 0x2b2e580] unable to decode APP fields: Invalid data found when processing input
     Last message repeated 1 times
frame=   52 fps= 25 q=-0.0 Lsize=N/A time=00:00:02.16 bitrate=N/A speed=1.02x
video:70200kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Exiting normally, received signal 2.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: USB Camera ffplay real-time and save to file

Carl Eugen Hoyos-2


> Am 12.09.2020 um 02:25 schrieb Hans Carlson <[hidden email]>:
>
> but there's a couple warning messages and I'm curious if there's any way to avoid them:
>
>  [swscaler @ 0x2b5bb00] deprecated pixel format used, make sure you did set range correctly
>
> I'm assuming this is referring to the input pixel format (yuvj422p).  I have no idea how to do "set range correctly".

You cannot.

>  [mjpeg @ 0x2b2e580] unable to decode APP fields: Invalid data found when processing input
>
> This one is rather annoying simply because repeats several times/sec.

Please provide the sample produced with the following command line:
$ ffmpeg -f v4l2 -input_format mjpeg -framerate 30 -video_size 1280x720 -i /dev/video2 -c copy -f rawvideo -t 5 invalidapp.mjpg

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: USB Camera ffplay real-time and save to file

Hans Carlson-2
On Sat, 12 Sep 2020, Carl Eugen Hoyos wrote:

> Please provide the sample produced with the following command line:
> $ ffmpeg -f v4l2 -input_format mjpeg -framerate 30 -video_size 1280x720 -i /dev/video2 -c copy -f rawvideo -t 5 invalidapp.mjpg

I have a 9Mb sample, but the upload.ffmpeg.org FTP server isn't
responding.  Is that a temporary issue or is it no longer available?

If upload.ffmpeg.org is no longer available, do you have a preferred
method for providing samples?

Also, it might be wise to update the "Submitting Sample Media" section of
this page:

   https://ffmpeg.org/bugreports.html
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: USB Camera ffplay real-time and save to file

Hans Carlson-2
On Sat, 12 Sep 2020, Hans Carlson wrote:

> On Sat, 12 Sep 2020, Carl Eugen Hoyos wrote:
>
>> Please provide the sample produced with the following command line:
>> $ ffmpeg -f v4l2 -input_format mjpeg -framerate 30 -video_size 1280x720 -i
>> /dev/video2 -c copy -f rawvideo -t 5 invalidapp.mjpg
>
> I have a 9Mb sample, but the upload.ffmpeg.org FTP server isn't responding.
> Is that a temporary issue or is it no longer available?
>
> If upload.ffmpeg.org is no longer available, do you have a preferred method
> for providing samples?

I made 2 files available via Dropbox:

   https://www.dropbox.com/sh/sulbqadupr68ao1/AADu0NoZovJ6HBWf6TK4xRt_a?dl=0

     invalid.mjpg - 9Mb sample file
     invalid.mjpg.txt - description

Please let me know if this is not what you wanted or you have problems
accessing it.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: USB Camera ffplay real-time and save to file

Carl Eugen Hoyos-2
In reply to this post by Hans Carlson-2
Am Sa., 12. Sept. 2020 um 02:25 Uhr schrieb Hans Carlson <[hidden email]>:

>   [mjpeg @ 0x2b2e580] unable to decode APP fields: Invalid data found when processing input

The tag looks like this:
ff e1 00  04 00 00

We (FFmpeg) believe that this is too short for a valid APPx tag.

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

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