framerate issues

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

framerate issues

Calvin Arndt
 

ffmpeg -y -loglevel 8 -i http://10.17.24.6/mjpg/video.mjpg -filter:v
fps=fps=7 -b 1536k -filter:v scale=720:480 /DVR/Tower/05-30_09-40.avi


ffprobe /DVR/Tower/05-30_09-40.avi
ffprobe version
2.8.15-0ubuntu0.16.04.1 Copyright (c) 2007-2018 the FFmpeg developers

built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609

configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1
--build-suffix=-ffmpeg --toolchain=hardened
--libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl
--enable-shared --disable-stripping --disable-decoder=libopenjpeg
--disable-decoder=libschroedinger --enable-avresample --enable-avisynth
--enable-gnutls --enable-ladspa --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame
--enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp
--enable-libschroedinger --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora
--enable-libtwolame --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid
--enable-libzvbi --enable-openal --enable-opengl --enable-x11grab
--enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r
--enable-libx264 --enable-libopencv
 libavutil 54. 31.100 / 54. 31.100

libavcodec 56. 60.100 / 56. 60.100
 libavformat 56. 40.101 / 56. 40.101

libavdevice 56. 4.100 / 56. 4.100
 libavfilter 5. 40.101 / 5. 40.101

libavresample 2. 1. 0 / 2. 1. 0
 libswscale 3. 1.101 / 3. 1.101

libswresample 1. 2.101 / 1. 2.101
 libpostproc 53. 3.100 / 53.
3.100
Input #0, avi, from '/DVR/Tower/05-30_09-40.avi':
 Metadata:

encoder : Lavf56.40.101
 Duration: N/A, start: 0.000000, bitrate: N/A

Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p,
720x480 [SAR 32:27 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc

I
specified 7fps yet ffprobe displays 25fps. I think the actual encoding
process is only encoding 7fps because playback is time compressed.

I
know from previous experience that removing the -loglevel 8 will get
everything back to normal. Something is deeply askew here!

By the way
this report applies to both head and this old version.

--

 Calvin
Arndt
(217) 377-2979
[hidden email]
 
_______________________________________________
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: framerate issues

Moritz Barsnick
On Thu, May 30, 2019 at 10:03:35 -0500, Calvin Arndt wrote:
> ffmpeg -y -loglevel 8 -i http://10.17.24.6/mjpg/video.mjpg -filter:v
> fps=fps=7 -b 1536k -filter:v scale=720:480 /DVR/Tower/05-30_09-40.avi
[...]
> I specified 7fps yet ffprobe displays 25fps. I think the actual
> encoding process is only encoding 7fps because playback is time
> compressed.

No, 25 fps is chosen because you are misusing the command line
parameters. "-vf" or "-filter:v" is allowed only once on the command
line.

If you don't have any particular reason to stick to 2.8.5, please do
use the git HEAD version. In its default log level, it should have told
you (log message):

> Only '-vf scale=720:480' read, ignoring remaining -vf options: Use ',' to separate filters

Instead you need to do:
[...] -vf fps=fps=7,scale=720:480

> I know from previous experience that removing the -loglevel 8 will
> get everything back to normal. Something is deeply askew here!

Please show us the results of your conversion both with and without
"-loglevel 8".

> By the way this report applies to both head and this old version.

Please use head to report issues. Nobody cares about debugging a three
year (or ten month, if you will) old version. ;-)

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: framerate issues

Calvin Arndt
 

On 05/30/2019 12:30, Moritz Barsnick wrote:

> On Thu, May 30, 2019
at 10:03:35 -0500, Calvin Arndt wrote:
>
>> ffmpeg -y -loglevel 8 -i
http://10.17.24.6/mjpg/video.mjpg [1] -filter:v fps=fps=7 -b 1536k
-filter:v scale=720:480 /DVR/Tower/05-30_09-40.avi
>
> [...]
>
>> I
specified 7fps yet ffprobe displays 25fps. I think the actual encoding
process is only encoding 7fps because playback is time compressed.
>
>
No, 25 fps is chosen because you are misusing the command line
>
parameters. "-vf" or "-filter:v" is allowed only once on the command
>
line.
>
> If you don't have any particular reason to stick to 2.8.5,
please do
> use the git HEAD version. In its default log level, it
should have told
> you (log message):
> Only '-vf scale=720:480' read,
ignoring r
>
>> ps=7,scale=720:480
> d; margin-left:5px; width:100%">I
know from previous experience that removing the -loglevel 8 will get
everything back to normal. Something is deeply askew here!
>
>>
="cite" style="padding-left:5px; border-left:#1010ff 2px solid;
margin-left:5px; width:100%">By the way this report applies to bo
> his
old version.
>
> Please use head to report issues. Nobody cares about
debugging a three
> year (or ten month, if you will) old version. ;-)
>

> Cheers,
> Moritz
> _______________________________________________
>
ffmpeg-user mailing list

Interesting! Thanks for the tip. ffprobe now
reports it at 7fps however it still runs way too fast.

FFmpeg/ffmpeg
-y -loglevel 8 -i http://10.17.24.6/mjpg/video.mjpg -filter:v
fps=fps=7,scale=720:480 -b 1536k /DVR/Tower/05-30_15-54.avi
[mjpeg @
0x3a66080] No JPEG data found in image
 Last message repeated 1
times
root@carndt-DX4380G:~# FFmpeg/ffmpeg
ffmpeg version
N-93742-g46f1718 Copyright (c) 2000-2019 the FFmpeg developers
 built
with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 20160609
 configuration:

 libavutil 56. 26.100 / 56. 26.100
 libavcodec 58. 52.100 / 58. 52.100

libavformat 58. 27.103 / 58. 27.103
 libavdevice 58. 7.100 / 58. 7.100

libavfilter 7. 50.100 / 7. 50.100
 libswscale 5. 4.100 / 5. 4.100

libswresample 3. 4.100 / 3. 4.100

file is 8311KB and downloadable
https://macksrecycling.net/cal/05-30_15-54.avi [3]


root@carndt-DX4380G:~# FFmpeg/ffprobe
/DVR/Tower/05-30_15-54.avi
ffprobe version N-93742-g46f1718 Copyright
(c) 2007-2019 the FFmpeg developers
 built with gcc 5.4.0 (Ubuntu
5.4.0-6ubuntu1~16.04.11) 20160609
 configuration:
 libavutil 56. 26.100
/ 56. 26.100
 libavcodec 58. 52.100 / 58. 52.100
 libavformat 58. 27.103
/ 58. 27.103
 libavdevice 58. 7.100 / 58. 7.100
 libavfilter 7. 50.100 /
7. 50.100
 libswscale 5. 4.100 / 5. 4.100
 libswresample 3. 4.100 / 3.
4.100
Input #0, avi, from '/DVR/Tower/05-30_15-54.avi':
 Metadata:

encoder : Lavf58.27.103
 Duration: 00:00:43.14, start: 0.000000,
bitrate: 1578 kb/s
 Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 /
0x34504D46), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 1580 kb/s, 7 fps, 7
tbr, 7 tbn, 7 tbc

--
 Calvin Arndt
(217)
377-2979
[hidden email]
 

Links:
------
[1]
http://10.17.24.6/mjpg/video.mjpg
[2]
mailto:[hidden email]
[3]
https://macksrecycling.net/cal/05-30_15-54.avi
_______________________________________________
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: framerate issues

Calvin Arndt
 

>> Cheers, Moritz _______________________________________________
>

> ffmpeg-user mailing list
>
> Interesting! Thanks for the tip.
ffprobe now
> reports it at 7fps however it still runs way too fast.
>

> FFmpeg/ffmpeg
> -y -loglevel 8 -i http://10.17.24.6/mjpg/video.mjpg
-filter:v
> fps=fps=7,scale=720:480 -b 1536k
/DVR/Tower/05-30_15-54.avi
> [mjpeg @
> 0x3a66080] No JPEG data found in
image
> Last message repeated 1
> times
> root@carndt-DX4380G:~#
FFmpeg/ffmpeg
> ffmpeg version
> N-93742-g46f1718 Copyright (c)
2000-2019 the FFmpeg developers
> built
> with gcc 5.4.0 (Ubuntu
5.4.0-6ubuntu1~16.04.11) 20160609
> configuration:
>
> libavutil 56.
26.100 / 56. 26.100
> libavcodec 58. 52.100 / 58. 52.100
>
>
libavformat 58. 27.103 / 58. 27.103
> libavdevice 58. 7.100 / 58.
7.100
>
> libavfilter 7. 50.100 / 7. 50.100
> libswscale 5. 4.100 / 5.
4.100
>
> libswresample 3. 4.100 / 3. 4.100
>
> file is 8311KB and
downloadable
> https://macksrecycling.net/cal/05-30_15-54.avi [3]
>
>
root@carndt-DX4380G:~# FFmpeg/ffprobe
> /DVR/Tower/05-30_15-54.avi
>
ffprobe version N-93742-g46f1718 Copyright
> (c) 2007-2019 the FFmpeg
developers
> built with gcc 5.4.0 (Ubuntu
> 5.4.0-6ubuntu1~16.04.11)
20160609
> configuration:
> libavutil 56. 26.100
> / 56. 26.100
>
libavcodec 58. 52.100 / 58. 52.100
> libavformat 58. 27.103
> / 58.
27.103
> libavdevice 58. 7.100 / 58. 7.100
> libavfilter 7. 50.100 /
>
7. 50.100
> libswscale 5. 4.100 / 5. 4.100
> libswresample 3. 4.100 /
3.
> 4.100
> Input #0, avi, from '/DVR/Tower/05-30_15-54.avi':
>
Metadata:
>
> encoder : Lavf58.27.103
> Duration: 00:00:43.14, start:
0.000000,
> bitrate: 1578 kb/s
> Stream #0:0: Video: mpeg4 (Simple
Profile) (FMP4 /
> 0x34504D46), yuv420p, 720x480 [SAR 32:27 DAR 16:9],
1580 kb/s, 7 fps, 7
> tbr, 7 tbn, 7 tbc
>
> --
> Calvin Arndt
>
(217)
> 377-2979
> [hidden email]

Here is without -loglevel


https://macksrecycling.net/cal/05-30_16-21.avi

root@carndt-DX4380G:~#
FFmpeg/ffmpeg -y -i http://10.17.24.6/mjpg/video.mjpg -filter:v
fps=fps=7,scale=720:480 -b 1536k /DVR/Tower/05-30_16-21.avi
ffmpeg
version N-93742-g46f1718 Copyright (c) 2000-2019 the FFmpeg developers

built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.11) 20160609

configuration:
 libavutil 56. 26.100 / 56. 26.100
 libavcodec 58.
52.100 / 58. 52.100
 libavformat 58. 27.103 / 58. 27.103
 libavdevice
58. 7.100 / 58. 7.100
 libavfilter 7. 50.100 / 7. 50.100
 libswscale 5.
4.100 / 5. 4.100
 libswresample 3. 4.100 / 3. 4.100
Input #0, mpjpeg,
from 'http://Viewer:ax10P@ss@10.17.24.6/mjpg/video.mjpg':
 Duration:
N/A, bitrate: N/A
 Stream #0:0: Video: mjpeg (Baseline), yuvj420p(pc,
bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn,
25 tbc
Please use -b:a or -b:v, -b is ambiguous
Stream mapping:
 Stream
#0:0 -> #0:0 (mjpeg (native) -> mpeg4 (native))
Press [q] to stop, [?]
for help
[swscaler @ 0x40ecbc0] deprecated pixel format used, make sure
you did set range correctly
Output #0, avi, to
'/DVR/Tower/05-30_16-21.avi':
 Metadata:
 ISFT : Lavf58.27.103
 Stream
#0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x480 [SAR 32:27 DAR
16:9], q=2-31, 1536 kb/s, 7 fps, 7 tbn, 7 tbc
 Metadata:
 encoder :
Lavc58.52.100 mpeg4
 Side data:
 cpb: bitrate max/min/avg: 0/0/1536000
buffer size: 0 vbv_delay: -1
[mjpeg @ 0x401b300] dht: len 179 is too
largee=00:00:00.57 bitrate=3750.6kbits/s speed=0.51x
[mjpeg @
0x401b300] huffman table decode error
Error while decoding stream #0:0:
Invalid data found when processing input
[mjpeg @ 0x401b300] overread 8=
262kB time=00:00:00.85 bitrate=2500.4kbits/s speed=0.52x
[mjpeg @
0x401b300] EOI missing, emulating
[mjpeg @ 0x401b300] overread 8= 774kB
time=00:00:03.85 bitrate=1643.1kbits/s speed=0.51x
[mjpeg @ 0x401b300]
EOI missing, emulating
[mjpeg @ 0x401b300] dht: len 179 is too
largee=00:00:04.71 bitrate=1789.2kbits/s speed=0.515x
[mjpeg @
0x401b300] huffman table decode error
Error while decoding stream #0:0:
Invalid data found when processing input
[mjpeg @ 0x401b300] dht: len
179 is too largee=00:00:05.28 bitrate=1595.7kbits/s speed=0.519x
[mjpeg
@ 0x401b300] huffman table decode error
Error while decoding stream
#0:0: Invalid data found when processing input
[mjpeg @ 0x401b300] dht:
len 29 is too large
[mjpeg @ 0x401b300] huffman table decode error
Error
while decoding stream #0:0: Invalid data found when processing
input
[mjpeg @ 0x401b300] overread 8
[mjpeg @ 0x401b300] EOI missing,
emulating
[mjpeg @ 0x401b300] dqt: len 46976 is too large00:00:05.85
bitrate=1798.1kbits/s speed=0.521x
Error while decoding stream #0:0:
Invalid data found when processing input
[mjpeg @ 0x401b300] overread 8=
1286kB time=00:00:06.14 bitrate=1714.5kbits/s speed=0.522x
[mjpeg @
0x401b300] EOI missing, emulating
[mjpeg @ 0x401b300] dht: len 179 is
too largee=00:00:06.57 bitrate=1602.7kbits/s speed=0.511x
[mjpeg @
0x401b300] huffman table decode error
Error while decoding stream #0:0:
Invalid data found when processing input
[mjpeg @ 0x401b300] overread 8=
1542kB time=00:00:07.14 bitrate=1768.1kbits/s speed=0.513x
[mjpeg @
0x401b300] EOI missing, emulating
[mjpeg @ 0x401b300] dqt: len 65 is too
largeme=00:00:07.71 bitrate=1637.1kbits/s speed=0.513x
Error while
decoding stream #0:0: Invalid data found when processing input
[mjpeg @
0x401b300] overread 8= 1542kB time=00:00:08.00 bitrate=1578.6kbits/s
speed=0.514x
[mjpeg @ 0x401b300] EOI missing, emulating
[mjpeg @
0x401b300] dqt: len 65 is too large
Error while decoding stream #0:0:
Invalid data found when processing input
[mjpeg @ 0x401b300] overread 8=
1542kB time=00:00:08.14 bitrate=1550.9kbits/s speed=0.505x
[mjpeg @
0x401b300] EOI missing, emulating
[mjpeg @ 0x401b300] overread 8
[mjpeg
@ 0x401b300] EOI missing, emulating
[mjpeg @ 0x401b300] bits 36 is
invalid2kB time=00:00:08.57 bitrate=1473.4kbits/s speed=0.515x
Error
while decoding stream #0:0: Invalid data found when processing
input
[mjpeg @ 0x401b300] dqt: len 36125 is too large00:00:08.85
bitrate=1662.6kbits/s speed=0.514x
Error while decoding stream #0:0:
Invalid data found when processing input
[mjpeg @ 0x401b300] dht: len
179 is too largee=00:00:09.28 bitrate=1585.9kbits/s speed=0.509x
[mjpeg
@ 0x401b300] huffman table decode error
Error while decoding stream
#0:0: Invalid data found when processing input
[mjpeg @ 0x401b300] dht:
len 179 is too largee=00:00:09.85 bitrate=1494.0kbits/s speed=0.509x

[mjpeg @ 0x401b300] huffman table decode error
Error while decoding
stream #0:0: Invalid data found when processing input
[mjpeg @
0x401b300] overread 8
[mjpeg @ 0x401b300] EOI missing, emulating
[mjpeg
@ 0x401b300] error count: 712054kB time=00:00:10.57
bitrate=1591.4kbits/s speed=0.504x
[mjpeg @ 0x401b300] error y=0
x=3
[mjpeg @ 0x401b300] overread 8= 2054kB time=00:00:11.14
bitrate=1509.8kbits/s speed=0.506x
[mjpeg @ 0x401b300] EOI missing,
emulating
[mjpeg @ 0x401b300] unable to decode APP fields: Invalid data
found when processing input
[mjpeg @ 0x401b300] overread 8= 2310kB
time=00:00:11.71 bitrate=1615.2kbits/s speed=0.508x
[mjpeg @ 0x401b300]
EOI missing, emulating
[mjpeg @ 0x401b300] overread 7= 2310kB
time=00:00:12.00 bitrate=1576.7kbits/s speed=0.508x
[mjpeg @ 0x401b300]
EOI missing, emulating
[mjpeg @ 0x401b300] overread 8= 2566kB
time=00:00:12.57 bitrate=1671.9kbits/s speed=0.509x
[mjpeg @ 0x401b300]
EOI missing, emulating
[mjpeg @ 0x401b300] mjpeg: unsupported coding
type (c6).14 bitrate=1599.2kbits/s speed=0.509x
[mjpeg @ 0x401b300]
overread 8= 2566kB time=00:00:13.42 bitrate=1565.1kbits/s speed=0.51x

[mjpeg @ 0x401b300] EOI missing, emulating
[mjpeg @ 0x401b300] dqt: len
65 is too largeme=00:00:15.00 bitrate=1541.0kbits/s speed=0.508x
Error
while decoding stream #0:0: Invalid data found when processing
input
[mjpeg @ 0x401b300] unable to decode APP fields: Invalid data
found when processing input509x
[mjpeg @ 0x401b300] dqt: len 65 is too
largeme=00:00:17.00 bitrate=1483.1kbits/s speed=0.51x
Error while
decoding stream #0:0: Invalid data found when processing input
[mjpeg @
0x401b300] dqt: len 65 is too largeme=00:00:17.28 bitrate=1579.9kbits/s
speed=0.51x
Error while decoding stream #0:0: Invalid data found when
processing input
Error while decoding stream #0:0: Operation not
permitted
[mjpeg @ 0x401b300] dqt: len 65 is too large
Error while
decoding stream #0:0: Invalid data found when processing input
[mjpeg @
0x401b300] dqt: len 65 is too large
Error while decoding stream #0:0:
Invalid data found when processing input
[mjpeg @ 0x401b300] dht: len
179 is too largee=00:00:17.57 bitrate=1554.2kbits/s speed=0.51x
[mjpeg
@ 0x401b300] huffman table decode error
Error while decoding stream
#0:0: Invalid data found when processing input
[mjpeg @ 0x401b300] dqt:
len 65 is too large
Error while decoding stream #0:0: Invalid data found
when processing input
[mjpeg @ 0x401b300] dqt: len 2133 is too
large=00:00:17.85 bitrate=1529.3kbits/s speed=0.51x
Error while
decoding stream #0:0: Invalid data found when processing input
[mjpeg @
0x401b300] mjpeg: unsupported coding type (ce).00 bitrate=1575.2kbits/s
speed=0.508x
[mjpeg @ 0x401b300] overread 8= 3846kB time=00:00:20.28
bitrate=1553.0kbits/s speed=0.508x
[mjpeg @ 0x401b300] EOI missing,
emulating
[mjpeg @ 0x401b300] dht: len 179 is too largee=00:00:21.14
bitrate=1589.2kbits/s speed=0.509x
[mjpeg @ 0x401b300] huffman table
decode error
Error while decoding stream #0:0: Invalid data found when
processing input
[mjpeg @ 0x401b300] dqt: len 65 is too
largeme=00:00:21.42 bitrate=1568.0kbits/s speed=0.509x
Error while
decoding stream #0:0: Invalid data found when processing input
[mjpeg @
0x401b300] dqt: len 65 is too large
Error while decoding stream #0:0:
Invalid data found when processing input
[mjpeg @ 0x401b300] dqt: len 65
is too largeme=00:00:21.71 bitrate=1547.4kbits/s speed=0.509x
Error
while decoding stream #0:0: Invalid data found when processing
input
[mjpeg @ 0x401b300] dqt: len 65 is too largeme=00:00:23.14
bitrate=1542.5kbits/s speed=0.51x
Error while decoding stream #0:0:
Invalid data found when processing input
[mjpeg @ 0x401b300] dqt: len
253 is too large
Error while decoding stream #0:0: Invalid data found
when processing input
[mjpeg @ 0x401b300] dqt: len 65 is too
largeme=00:00:24.57 bitrate=1538.2kbits/s speed=0.511x
Error while
decoding stream #0:0: Invalid data found when processing input
[mjpeg @
0x401b300] dqt: len 65 is too largeme=00:00:24.85 bitrate=1520.5kbits/s
speed=0.511x
Error while decoding stream #0:0: Invalid data found when
processing input
[mjpeg @ 0x401b300] overread 8= 4614kB time=00:00:25.14
bitrate=1503.2kbits/s speed=0.511x
[mjpeg @ 0x401b300] EOI missing,
emulating
[mjpeg @ 0x401b300] dht: len 179 is too largee=00:00:26.00
bitrate=1534.3kbits/s speed=0.512x
[mjpeg @ 0x401b300] huffman table
decode error
Error while decoding stream #0:0: Invalid data found when
processing input
[mjpeg @ 0x401b300] overread 8= 5382kB time=00:00:28.85
bitrate=1527.7kbits/s speed=0.514x
[mjpeg @ 0x401b300] EOI missing,
emulating
[mjpeg @ 0x401b300] dht: len 179 is too largee=00:00:31.57
bitrate=1529.2kbits/s speed=0.518x
[mjpeg @ 0x401b300] huffman table
decode error
Error while decoding stream #0:0: Invalid data found when
processing input
[mjpeg @ 0x401b300] dht: len 179 is too
largee=00:00:32.57 bitrate=1546.7kbits/s speed=0.515x
[mjpeg @
0x401b300] huffman table decode error
Error while decoding stream #0:0:
Invalid data found when processing input
[mjpeg @ 0x401b300] unable to
decode APP fields: Invalid data found when processing input516x
[mjpeg
@ 0x401b300] EOI missing, emulating
[mjpeg @ 0x401b300] unable to decode
APP fields: Invalid data found when processing input517x
[mjpeg @
0x401b300] dht: len 179 is too largee=00:00:36.57 bitrate=1549.5kbits/s
speed=0.518x
[mjpeg @ 0x401b300] huffman table decode error
Error while
decoding stream #0:0: Invalid data found when processing input
[mjpeg @
0x401b300] dht: len 29 is too large
[mjpeg @ 0x401b300] huffman table
decode error
Error while decoding stream #0:0: Invalid data found when
processing input
[mjpeg @ 0x401b300] overread 8
[mjpeg @ 0x401b300] EOI
missing, emulating
[mjpeg @ 0x401b300] overread 8= 6918kB
time=00:00:36.85 bitrate=1537.5kbits/s speed=0.518x
[mjpeg @ 0x401b300]
EOI missing, emulating
[mjpeg @ 0x401b300] overread 8
[mjpeg @
0x401b300] EOI missing, emulating
[mjpeg @ 0x401b300] overread 8= 6918kB
time=00:00:37.42 bitrate=1514.1kbits/s speed=0.518x
[mjpeg @ 0x401b300]
EOI missing, emulating
[mjpeg @ 0x401b300] dqt: len 65 is too
largeme=00:00:38.71 bitrate=1517.9kbits/s speed=0.52x
Error while
decoding stream #0:0: Invalid data found when processing input
[mjpeg @
0x401b300] overread 8= 7430kB time=00:00:39.00 bitrate=1560.6kbits/s
speed=0.52x
[mjpeg @ 0x401b300] EOI missing, emulating
[mjpeg @
0x401b300] overread 8= 7942kB time=00:00:42.42 bitrate=1533.3kbits/s
speed=0.522x
[mjpeg @ 0x401b300] EOI missing, emulating
frame= 304
fps=3.7 q=3.8 Lsize= 8339kB time=00:00:43.42 bitrate=1572.9kbits/s
speed=0.522x
video:8326kB audio:0kB subtitle:0kB other streams:0kB
global headers:0kB muxing overhead: 0.154946%
root@carndt-DX4380G:~#


--

 Calvin Arndt
(217) 377-2979
[hidden email]
 
_______________________________________________
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: framerate issues

Moritz Barsnick
In reply to this post by Calvin Arndt
On Thu, May 30, 2019 at 16:17:14 -0500, Calvin Arndt wrote:
> Interesting! Thanks for the tip. ffprobe now
> reports it at 7fps however it still runs way too fast.

I'm missing the complete output of your conversion command with a sane
loglevel, but I can guess what happens:

Your input provides an "mpjpeg" stream, which is "multipart-replace".
It sends one JPEG image after another, at *some* frame rate, but
without timestamps. ffmpeg assumes (a default of) 25 fps input, when in
reality it's something else, or even something varying. This assumption
speeds up the resulting video.

If you happen to know the real, exact input framerate, it is best to
specify that using the input option "-r". ffmpeg, as said, can only
guess for some types of streams.

If you do not know the exact input framerate, or it can vary, I believe
the best way to overcome the missing timestamp and fps issue is to tell
the input "-use_wallclock_as_timestamps 1". This will give the incoming
images a timstamp when they arrive (skewed against what the sender
would have stamped them, but much better than nothing). The fps filter
will ensure that you get constant framerate output by adding or
dropping frames to achieve perfectly aligned 7 fps.

(I can replicate this issue - I have an mpjpeg stream which switches
between 1 and 5 fps. ffmpeg cannot know the fps, and the varying frame
rate makes the output look peculiar if ffmpeg assumes CFR.)

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