[FFmpeg-user] Video from image scattered output

Murthy Avanithsa avsn9849625263 at gmail.com
Sat Jun 9 07:56:35 CEST 2012


On Fri, Jun 8, 2012 at 10:22 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Murthy Avanithsa <avsn9849625263 <at> gmail.com> writes:
>
> > ffmpeg -loop 1 -i 1.jpg -tune stillimage  -t 10
> > -r 29.97 -s 352x288  output.mpg
>
> Unfortunately, I do not understand "scattered" in this context,
> and your output shows nothing unexpected, so I have to guess...
>
> What is -tune stillimage supposed to do?
> (I suspect it has no effect in your command line.)
>
> Are you intentionally not specifying either a quantiser for
> constant quality (-qscale) or a bitrate (-vb)?
> Does "scattered" mean bad quality? Then this would be the
> explanation.
>
> Carl Eugen
>

Mr.Carl,

Thank you very much for your support

What I mean Scatter is exactly what you said bad quality(some checker
pixels in 2,3,4.... frames)
-*qscale 1*  worked for me.
My task is to join video and an image ,so to do this I am re-encoding video
and image to MPG and joining them using *CAT*
*command.
 *
I need to have all the videos with same bitrate which I am notable to get
with  *-qscale*


Problem: Now the problem is when i uses the same command i.e

*fmpeg -loop 1 -i 1.jpg  -t 10 -r 29.97 -s 352x288  -b:v 120000 output.mpg.
*with video bitrate I am getting the same bad quality video*.

*Here is the complete uncut output

ffmpeg -loop 1 -i JS.jpg -t 10 -r 29.97 -s 352x288 -b:v 120000 try_vb.mpg
ffmpeg version git-2012-05-13-1337c6c Copyright (c) 2000-2012 the FFmpeg
developers
  built on Jun  8 2012 10:29:17 with gcc 4.6.1
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
--enable-version3 --enable-x11grab
  libavutil      51. 50.100 / 51. 50.100
  libavcodec     54. 21.101 / 54. 21.101
  libavformat    54.  4.100 / 54.  4.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 72.105 /  2. 72.105
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 11.100 /  0. 11.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, image2, from 'JS.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj444p, 1024x768 [SAR 96:96 DAR 4:3], 25
fps, 25 tbr, 25 tbn, 25 tbc
File 'try_vb.mpg' already exists. Overwrite ? [y/N] y
w:1024 h:768 pixfmt:yuvj444p tb:1/1000000 sar:96/96 sws_param:flags=2
[buffersink @ 0xa445020] No opaque field provided
[scale @ 0xa445280] w:1024 h:768 fmt:yuvj444p sar:96/96 -> w:352 h:288
fmt:yuv420p sar:12/11 flags:0x4
[mpeg @ 0xa4412e0] VBV buffer size not set, muxing may fail
Output #0, mpeg, to 'try_vb.mpg':
  Metadata:
    encoder         : Lavf54.4.100
    Stream #0:0: Video: mpeg1video, yuv420p, 352x288 [SAR 12:11 DAR 4:3],
q=2-31, 120 kb/s, 90k tbn, 29.97 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg -> mpeg1video)
Press [q] to stop, [?] for help
frame=  299 fps= 29 q=17.6 Lsize=     564kB time=00:00:09.94 bitrate=
464.7kbits/s dup=49 drop=0
video:561kB audio:0kB global headers:0kB muxing overhead 0.596224%
mxy at mxy-Vostro-1450:~/Desktop$ ffplay  try_vb.mpg
ffplay version git-2012-05-13-1337c6c Copyright (c) 2003-2012 the FFmpeg
developers
  built on Jun  8 2012 10:29:17 with gcc 4.6.1
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
--enable-version3 --enable-x11grab
  libavutil      51. 50.100 / 51. 50.100
  libavcodec     54. 21.101 / 54. 21.101
  libavformat    54.  4.100 / 54.  4.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 72.105 /  2. 72.105
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 11.100 /  0. 11.100
  libpostproc    52.  0.100 / 52.  0.100
[mpeg @ 0x92ec7c0] max_analyze_duration 5000000 reached at 5005000
Input #0, mpeg, from 'try_vb.mpg':
  Duration: 00:00:09.64, start: 1.000000, bitrate: 479 kb/s
    Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p, 352x288 [SAR 178:163
DAR 1958:1467], 104857 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc
   4.59 A-V:  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   0/0


Thanks in advance.




> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>



-- 
Regards,
Murthy.


More information about the ffmpeg-user mailing list