Hello, I am new here and with ffmpeg and i hope i do ask here right. I try to stream a Camera in my local network, but it does not work with that command how to debug this error? or what could be the reason for this error? greetings the device is an RPI3B *ffmpeg -input_format yuyv422 -f video4linux2 -s 1280x720 -r 10 -i
/dev/video0 -c:v h264_omx -r 10 -b:v 2M -an -f rtsp rtsp://localhost:80/live/stream*
ffmpeg version git-2020-02-22-c116dd8 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 8 (Raspbian 8.3.0-6+rpi1) configuration: --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libmp3lame --enable-mmal --enable-indev=alsa --enable-outdev=alsa libavutil 56. 41.100 / 56. 41.100 libavcodec 58. 72.100 / 58. 72.100 libavformat 58. 39.100 / 58. 39.100 libavdevice 58. 9.103 / 58. 9.103 libavfilter 7. 76.100 / 7. 76.100 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 1135.559187, 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) -> h264 (h264_omx)) Press [q] to stop, [?] for help [
*h264_omx @ 0x2217e10] Using OMX.broadcom.video_encodeCould not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing inputError initializing output stream 0:0 --Conversion failed!*
* v4l2-ctl --list-devices*
bcm2835-codec-decode (platform:bcm2835-codec): /dev/video10 /dev/video11 /dev/video12
Microsoft® LifeCam HD-3000: Mi (usb-3f980000.usb-1.5): /dev/video0 /dev/video1
pi@garage-rpi:~ $ *v4l2-ctl -d /dev/video0 --list-formats-ext* ioctl: VIDIOC_ENUM_FMT Type: Video Capture
[0]: 'YUYV' (YUYV 4:2:2) Size: Discrete 640x480 Interval: Discrete 0.033s (30.000 fps) Interval: Discrete 0.050s (20.000 fps) Interval: Discrete 0.067s (15.000 fps) Interval: Discrete 0.100s (10.000 fps) Interval: Discrete 0.133s (7.500 fps) Size: Discrete 1280x720 Interval: Discrete 0.100s (10.000 fps) Interval: Discrete 0.133s (7.500 fps)
Size: Discrete 960x544
Interval: Discrete 0.067s (15.000 fps) Interval: Discrete 0.100s (10.000 fps) Interval: Discrete 0.133s (7.500 fps)
-- Freundliche Grüsse *Gerhard Dorner*
Am Do., 27. Feb. 2020 um 12:09 Uhr schrieb Gerhard Dorner <gdorner.gd@gmail.com>:
ffmpeg -input_format yuyv422 -f video4linux2 -s 1280x720 -r 10 -i /dev/video0 -c:v h264_omx -r 10 -b:v 2M -an -f rtsp rtsp://localhost:80/live/stream
Is the issue you see only reproducible with device input and network output or is it also reproducible with filter (or file) input and file output? Carl Eugen
only the stream does not work with input file:
ffmpeg -i small.mp4 -c:v h264_omx -r 10 -b:v 2M -an -f rtsp rtsp://localhost:80/live/stream ffmpeg version git-2020-02-22-c116dd8 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 8 (Raspbian 8.3.0-6+rpi1) configuration: --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libmp3lame --enable-mmal --enable-indev=alsa --enable-outdev=alsa libavutil 56. 41.100 / 56. 41.100 libavcodec 58. 72.100 / 58. 72.100 libavformat 58. 39.100 / 58. 39.100 libavdevice 58. 9.103 / 58. 9.103 libavfilter 7. 76.100 / 7. 76.100 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'small.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isomavc1 creation_time : 2010-03-20T21:29:11.000000Z encoder : HandBrake 0.9.4 2009112300 Duration: 00:00:05.57, start: 0.000000, bitrate: 551 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 560x320, 465 kb/s, 30 fps, 30 tbr, 90k tbn, 60 tbc (default) Metadata: creation_time : 2010-03-20T21:29:11.000000Z encoder : JVT/AVC Coding Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 83 kb/s (default) Metadata: creation_time : 2010-03-20T21:29:11.000000Z Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_omx)) Press [q] to stop, [?] for help [h264_omx @ 0x1e7d710] Using OMX.broadcom.video_encode Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input Error initializing output stream 0:0 -- Conversion failed!
with in and out file:
ffmpeg -i small.mp4 -c:v h264_omx -r 10 -b:v 2M -an test.mp4 ffmpeg version git-2020-02-22-c116dd8 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 8 (Raspbian 8.3.0-6+rpi1) configuration: --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libmp3lame --enable-mmal --enable-indev=alsa --enable-outdev=alsa libavutil 56. 41.100 / 56. 41.100 libavcodec 58. 72.100 / 58. 72.100 libavformat 58. 39.100 / 58. 39.100 libavdevice 58. 9.103 / 58. 9.103 libavfilter 7. 76.100 / 7. 76.100 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'small.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isomavc1 creation_time : 2010-03-20T21:29:11.000000Z encoder : HandBrake 0.9.4 2009112300 Duration: 00:00:05.57, start: 0.000000, bitrate: 551 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 560x320, 465 kb/s, 30 fps, 30 tbr, 90k tbn, 60 tbc (default) Metadata: creation_time : 2010-03-20T21:29:11.000000Z encoder : JVT/AVC Coding Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 83 kb/s (default) Metadata: creation_time : 2010-03-20T21:29:11.000000Z Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_omx)) Press [q] to stop, [?] for help [h264_omx @ 0x397daf0] Using OMX.broadcom.video_encode Output #0, mp4, to 'test.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isomavc1 encoder : Lavf58.39.100 Stream #0:0(und): Video: h264 (h264_omx) (avc1 / 0x31637661), yuv420p, 560x320, q=2-31, 2000 kb/s, 10 fps, 10240 tbn, 10 tbc (default) Metadata: creation_time : 2010-03-20T21:29:11.000000Z encoder : Lavc58.72.100 h264_omx frame= 57 fps=0.0 q=-0.0 Lsize= 284kB time=00:00:05.60 bitrate= 415.8kbits/s dup=0 drop=109 speed= 7.3x video:283kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.363408% pi@garage-rpi:~/Videos $
camera in file out:
pi@garage-rpi:~/Videos $ ffmpeg -input_format yuyv422 -f video4linux2 -s 1280x720 -r 10 -i /dev/video0 -c:v h264_omx -r 10 -b:v 2M -an test.mp4 ffmpeg version git-2020-02-22-c116dd8 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 8 (Raspbian 8.3.0-6+rpi1) configuration: --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libmp3lame --enable-mmal --enable-indev=alsa --enable-outdev=alsa libavutil 56. 41.100 / 56. 41.100 libavcodec 58. 72.100 / 58. 72.100 libavformat 58. 39.100 / 58. 39.100 libavdevice 58. 9.103 / 58. 9.103 libavfilter 7. 76.100 / 7. 76.100 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 7448.439089, bitrate: 147456 kb/s Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1280x720, 147456 kb/s, 10 fps, 10 tbr, 1000k tbn, 1000k tbc File 'test.mp4' already exists. Overwrite? [y/N] y Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_omx)) Press [q] to stop, [?] for help [h264_omx @ 0x2e367b0] Using OMX.broadcom.video_encode Output #0, mp4, to 'test.mp4': Metadata: encoder : Lavf58.39.100 Stream #0:0: Video: h264 (h264_omx) (avc1 / 0x31637661), yuv420p, 1280x720, q=2-31, 2000 kb/s, 10 fps, 10240 tbn, 10 tbc Metadata: encoder : Lavc58.72.100 h264_omx frame= 142 fps= 13 q=-0.0 Lsize= 3477kB time=00:00:14.10 bitrate=2019.9kbits/s speed=1.26x video:3475kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.040662%
Am Do., 27. Feb. 2020 um 12:59 Uhr schrieb Carl Eugen Hoyos < ceffmpeg@gmail.com>:
Am Do., 27. Feb. 2020 um 12:09 Uhr schrieb Gerhard Dorner <gdorner.gd@gmail.com>:
ffmpeg -input_format yuyv422 -f video4linux2 -s 1280x720 -r 10 -i /dev/video0 -c:v h264_omx -r 10 -b:v 2M -an -f rtsp rtsp://localhost:80/live/stream
Is the issue you see only reproducible with device input and network output or is it also reproducible with filter (or file) input and file output?
Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
-- Freundliche Grüsse *Gerhard Dorner*
the streamingserver was not running now it is ok thanks allot Am Do., 27. Feb. 2020 um 13:27 Uhr schrieb Gerhard Dorner < gdorner.gd@gmail.com>:
only the stream does not work
with input file:
ffmpeg -i small.mp4 -c:v h264_omx -r 10 -b:v 2M -an -f rtsp rtsp://localhost:80/live/stream ffmpeg version git-2020-02-22-c116dd8 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 8 (Raspbian 8.3.0-6+rpi1) configuration: --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libmp3lame --enable-mmal --enable-indev=alsa --enable-outdev=alsa libavutil 56. 41.100 / 56. 41.100 libavcodec 58. 72.100 / 58. 72.100 libavformat 58. 39.100 / 58. 39.100 libavdevice 58. 9.103 / 58. 9.103 libavfilter 7. 76.100 / 7. 76.100 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'small.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isomavc1 creation_time : 2010-03-20T21:29:11.000000Z encoder : HandBrake 0.9.4 2009112300 Duration: 00:00:05.57, start: 0.000000, bitrate: 551 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 560x320, 465 kb/s, 30 fps, 30 tbr, 90k tbn, 60 tbc (default) Metadata: creation_time : 2010-03-20T21:29:11.000000Z encoder : JVT/AVC Coding Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 83 kb/s (default) Metadata: creation_time : 2010-03-20T21:29:11.000000Z Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_omx)) Press [q] to stop, [?] for help [h264_omx @ 0x1e7d710] Using OMX.broadcom.video_encode Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input Error initializing output stream 0:0 -- Conversion failed!
with in and out file:
ffmpeg -i small.mp4 -c:v h264_omx -r 10 -b:v 2M -an test.mp4 ffmpeg version git-2020-02-22-c116dd8 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 8 (Raspbian 8.3.0-6+rpi1) configuration: --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libmp3lame --enable-mmal --enable-indev=alsa --enable-outdev=alsa libavutil 56. 41.100 / 56. 41.100 libavcodec 58. 72.100 / 58. 72.100 libavformat 58. 39.100 / 58. 39.100 libavdevice 58. 9.103 / 58. 9.103 libavfilter 7. 76.100 / 7. 76.100 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'small.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isomavc1 creation_time : 2010-03-20T21:29:11.000000Z encoder : HandBrake 0.9.4 2009112300 Duration: 00:00:05.57, start: 0.000000, bitrate: 551 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 560x320, 465 kb/s, 30 fps, 30 tbr, 90k tbn, 60 tbc (default) Metadata: creation_time : 2010-03-20T21:29:11.000000Z encoder : JVT/AVC Coding Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 83 kb/s (default) Metadata: creation_time : 2010-03-20T21:29:11.000000Z Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_omx)) Press [q] to stop, [?] for help [h264_omx @ 0x397daf0] Using OMX.broadcom.video_encode Output #0, mp4, to 'test.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isomavc1 encoder : Lavf58.39.100 Stream #0:0(und): Video: h264 (h264_omx) (avc1 / 0x31637661), yuv420p, 560x320, q=2-31, 2000 kb/s, 10 fps, 10240 tbn, 10 tbc (default) Metadata: creation_time : 2010-03-20T21:29:11.000000Z encoder : Lavc58.72.100 h264_omx frame= 57 fps=0.0 q=-0.0 Lsize= 284kB time=00:00:05.60 bitrate= 415.8kbits/s dup=0 drop=109 speed= 7.3x video:283kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.363408% pi@garage-rpi:~/Videos $
camera in file out:
pi@garage-rpi:~/Videos $ ffmpeg -input_format yuyv422 -f video4linux2 -s 1280x720 -r 10 -i /dev/video0 -c:v h264_omx -r 10 -b:v 2M -an test.mp4 ffmpeg version git-2020-02-22-c116dd8 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 8 (Raspbian 8.3.0-6+rpi1) configuration: --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libmp3lame --enable-mmal --enable-indev=alsa --enable-outdev=alsa libavutil 56. 41.100 / 56. 41.100 libavcodec 58. 72.100 / 58. 72.100 libavformat 58. 39.100 / 58. 39.100 libavdevice 58. 9.103 / 58. 9.103 libavfilter 7. 76.100 / 7. 76.100 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 7448.439089, bitrate: 147456 kb/s Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1280x720, 147456 kb/s, 10 fps, 10 tbr, 1000k tbn, 1000k tbc File 'test.mp4' already exists. Overwrite? [y/N] y Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_omx)) Press [q] to stop, [?] for help [h264_omx @ 0x2e367b0] Using OMX.broadcom.video_encode Output #0, mp4, to 'test.mp4': Metadata: encoder : Lavf58.39.100 Stream #0:0: Video: h264 (h264_omx) (avc1 / 0x31637661), yuv420p, 1280x720, q=2-31, 2000 kb/s, 10 fps, 10240 tbn, 10 tbc Metadata: encoder : Lavc58.72.100 h264_omx frame= 142 fps= 13 q=-0.0 Lsize= 3477kB time=00:00:14.10 bitrate=2019.9kbits/s speed=1.26x video:3475kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.040662%
Am Do., 27. Feb. 2020 um 12:59 Uhr schrieb Carl Eugen Hoyos < ceffmpeg@gmail.com>:
Am Do., 27. Feb. 2020 um 12:09 Uhr schrieb Gerhard Dorner <gdorner.gd@gmail.com>:
ffmpeg -input_format yuyv422 -f video4linux2 -s 1280x720 -r 10 -i /dev/video0 -c:v h264_omx -r 10 -b:v 2M -an -f rtsp rtsp://localhost:80/live/stream
Is the issue you see only reproducible with device input and network output or is it also reproducible with filter (or file) input and file output?
Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
-- Freundliche Grüsse
*Gerhard Dorner*
-- Freundliche Grüsse *Gerhard Dorner*
participants (2)
-
Carl Eugen Hoyos -
Gerhard Dorner