saloromer / ffmbc

Automatically exported from code.google.com/p/ffmbc
0 stars 0 forks source link

'Unsupported frame rate' produced for -r of fractional / non int values #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. ffmpeg -i quantelIMX50.mxf -r 1/10 -s 172*96 -an thumbnails/Quantel%05d.jpg

What is the expected output? What do you see instead?

execution, and the creation of stills at a rate of less than 1 per second.
instead, the following error is produced 'Unsupported frame rate' .

What version of the product are you using? On what operating system?

FFmbc-0.4-rc1 & FFmbc-0.3 on Ubuntu 10.4 & 9.10

Please provide any additional information below:

A value of 1 is accepted, but not 0.1 or 1/10. 

The FFmpeg documentation suggests fractional values are an accepted input. 

`-r fps' Set frame rate (Hz value, fraction or abbreviation), (default = 25). - 

http://ffmpeg.org/ffmpeg-doc.html

chris@athena:~/Videos/Sample Media Formats/IMX50 MXF/Quantel MXF$ ffmpeg -i 
quantelIMX50.mxf -r 1/10 -s 172*96 -an thumbnails/Quantel%05d.jpg
FFmpeg version FFmbc-0.4-rc1, Copyright (c) 2000-2010 the FFmpeg developers
  built on May  2 2010 20:35:51 with gcc 4.4.3
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --
enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libopencore-amrnb 
--enable-
libopencore-amrwb --enable-libx264 --enable-libxvid --enable-x11grab 
--enable-avfilter --
enable-avfilter-lavf --enable-libtheora --enable-libschroedinger
  libavutil     50.14. 0 / 50.14. 0
  libavcodec    52.66. 0 / 52.66. 0
  libavformat   52.60. 0 / 52.60. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.18. 0 /  1.18. 0
  libswscale     0.10. 0 /  0.10. 0
Input #0, mxf, from 'quantelIMX50.mxf':
  Duration: 00:00:30.00, start: 0.000000, bitrate: 62568 kb/s
    Stream #0.0(und): Video: mpeg2video, yuv422p, 720x608 [PAR 152:135 DAR 4:3], tbc 2/50, 
50000 kb/s, fps 25.000
    Stream #0.1(und): Audio: pcm_s16le, 48000 Hz, 4 channels, s16, 3072 kb/s
Unsupported frame rate

This commandline executes successfully against the current git version of 
FFmpeg...

chris@athena:~/Videos/Sample Media Formats/IMX50 MXF/Quantel MXF$ ffmpeg -i 
quantelIMX50.mxf -croptop 32 -r 1/10 -s 172*96 -an thumbnails/Quantel%05d.jpg
FFmpeg version git-ff7705f, Copyright (c) 2000-2010 the FFmpeg developers
  built on May  2 2010 15:14:30 with gcc 4.4.3
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --
enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libxvid 
--
enable-x11grab --enable-avfilter --enable-avfilter-lavf --enable-libtheora 
--enable-
libschroedinger
  libavutil     50.15. 0 / 50.15. 0
  libavcodec    52.66. 0 / 52.66. 0
  libavformat   52.62. 0 / 52.62. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.10. 0 /  0.10. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[mxf @ 0xa8e5420]MAX_READ_SIZE:5000000 reached
Input #0, mxf, from 'quantelIMX50.mxf':
  Duration: 00:00:30.00, start: 0.000000, bitrate: 62568 kb/s
    Stream #0.0: Video: mpeg2video, yuv422p, 720x608 [PAR 152:135 DAR 4:3], 50000 kb/s, 25 
fps, 25 tbr, 25 tbn, 50 tbc
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, 4 channels, s16, 3072 kb/s
Output #0, image2, to 'thumbnails/Quantel%05d.jpg':
  Metadata:
    encoder         : Lavf52.62.0
    Stream #0.0: Video: mjpeg, yuvj420p, 172x96 [PAR 32:43 DAR 4:3], q=2-31, 200 kb/s, 90k 
tbn, 0.10 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=    2 fps=  0 q=1.6 size=      -0kB time=20.00 bitrate=  -0.0kbits/s 
dup=0frame=    2 
fps=  2 q=1.6 size=      -0kB time=20.00 bitrate=  -0.0kbits/s dup=0frame=    2 
fps=  1 q=1.6 
size=      -0kB time=20.00 bitrate=  -0.0kbits/s dup=0frame=    2 fps=  1 q=1.6 
size=      -0kB 
time=20.00 bitrate=  -0.0kbits/s dup=0frame=    2 fps=  1 q=1.6 size=      -0kB 
time=20.00 
bitrate=  -0.0kbits/s dup=0frame=    2 fps=  1 q=1.6 size=      -0kB time=20.00 
bitrate=  -
0.0kbits/s dup=0frame=    2 fps=  1 q=1.6 size=      -0kB time=20.00 bitrate=  
-0.0kbits/s 
dup=0frame=    2 fps=  0 q=1.6 size=      -0kB time=20.00 bitrate=  -0.0kbits/s 
dup=0frame=    
3 fps=  1 q=1.6 size=      -0kB time=30.00 bitrate=  -0.0kbits/s dup=0frame=    
3 fps=  1 q=1.6 
size=      -0kB time=30.00 bitrate=  -0.0kbits/s dup=0frame=    3 fps=  1 q=1.6 
size=      -0kB 
time=30.00 bitrate=  -0.0kbits/s dup=0frame=    3 fps=  0 q=1.6 size=      -0kB 
time=30.00 
bitrate=  -0.0kbits/s dup=0frame=    3 fps=  0 q=1.6 size=      -0kB time=30.00 
bitrate=  -
0.0kbits/s dup=0frame=    3 fps=  0 q=1.6 size=      -0kB time=30.00 bitrate=  
-0.0kbits/s 
dup=0frame=    3 fps=  0 q=1.6 size=      -0kB time=30.00 bitrate=  -0.0kbits/s 
dup=0frame=    
3 fps=  0 q=1.6 size=      -0kB time=30.00 bitrate=  -0.0kbits/s dup=0frame=    
4 fps=  0 q=1.6 
size=      -0kB time=40.00 bitrate=  -0.0kbits/s dup=0frame=    4 fps=  0 q=1.6 
size=      -0kB 
time=40.00 bitrate=  -0.0kbits/s dup=0frame=    4 fps=  0 q=1.6 size=      -0kB 
time=40.00 
bitrate=  -0.0kbits/s dup=0frame=    4 fps=  0 q=1.6 size=      -0kB time=40.00 
bitrate=  -
0.0kbits/s dup=0frame=    4 fps=  0 q=1.6 size=      -0kB time=40.00 bitrate=  
-0.0kbits/s 
dup=0frame=    4 fps=  0 q=1.6 size=      -0kB time=40.00 bitrate=  -0.0kbits/s 
dup=0frame=    
4 fps=  0 q=1.6 size=      -0kB time=40.00 bitrate=  -0.0kbits/s dup=0frame=    
5 fps=  0 q=1.6 
size=      -0kB time=50.00 bitrate=  -0.0kbits/s dup=0frame=    5 fps=  0 q=1.6 
Lsize=      -0kB 
time=50.00 bitrate=  -0.0kbits/s dup=0 drop=745    
video:12kB audio:0kB global headers:0kB muxing overhead -100.176452%

Original issue reported on code.google.com by Chris.at...@gmail.com on 2 May 2010 at 8:21

GoogleCodeExporter commented 8 years ago
10 fps is not supported like the process says. I'm not sure what should be 
written to be more clear.
Btw ffmpeg output is not wanted when reporting bugs, output of ffmbc is 
required however.

Original comment by baptiste...@gmail.com on 3 May 2010 at 5:28

GoogleCodeExporter commented 8 years ago
Well 0.10 fps or other wierd values.

Original comment by baptiste...@gmail.com on 3 May 2010 at 5:38

GoogleCodeExporter commented 8 years ago
The error is clear, its just that the documentation suggests -r accepts 
fractional values, and the functionality is 
useful for producing thumbnails from video streams.  Is it the intention that 
this functionality is to be dropped 
from FFmbc ?

Original comment by Chris.at...@gmail.com on 3 May 2010 at 3:30

GoogleCodeExporter commented 8 years ago
Well, I don't really have interest in supporting it currently, this is some 
burden, and not really broadcast oriented.
Was that working in previous ffmbc versions ?

Original comment by baptiste...@gmail.com on 3 May 2010 at 5:31

GoogleCodeExporter commented 8 years ago
I've only tried the command against FFmbc 0.3 & 0.4rc1, but can try against 
older versions if desired.

Im just embarking on a little project to create a transcode manager front end, 
like digital rapids - transcode 
manager / Rhozet carbon server style for FFmpeg/FFmbc.  With the intention 
being to create an open source 
tool to build scaleable transcode farms.  The big benefit with using FFmbc was 
the range of broadcast centric 
formats it currently supports, allowing native format export from an edit 
environment.

The fractional frame support would have made thumbnail generation much simpler, 
until I can teach myself 
sufficient C to write some kind of scene detect mechanism to generate proper 
keyframes.  

Original comment by Chris.at...@gmail.com on 3 May 2010 at 9:59