Forum archive - FFMPeg trying to add image before flv file to get 3gp




Forum Archive Home -> Video Conversion -> FFMPeg trying to add image before flv file to get 3gp



FFMPeg trying to add image before flv file to get 3gp

wingchun22 posted 2008 Jul 25 18:23
i have been trying to run the command

:
ffmpeg -r 3 -i image/3gp.png -i flvideo/8.flv -acodec libamr_nb -ab 5.9k -ac 1 -ar 8000 -vcodec h263 -s 128x96 -r 10 3gp/logotemp.3gp


but i am having problems joining the image to the front of the flv file to output a 3gp movie

it creates the file but the image shoows ok for 3 secound but the flv video only plays the sound and the video is not shown


can anyone help me with pointing out mistakes or giving the correct ffmpeg commands for this to work

search all over google, but having not luck so far sorting this issue out

thanks in advance

output
:
[root@s15 ~]# ffmpeg -r 3 -i /var/www/vhosts/site.com/httpdocs/3gp.png -i /var/www/vhosts/site.com/httpdocs/flvideo/8.flv -acodec libamr_nb -ab 5.9k -ac 1 -ar 8000 -vcodec h263 -s 128x96 -r 10 /var/www/vhosts/site.com/httpdocs/3gp/logotemp.3gp
FFmpeg version SVN-r13713, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared
  libavutil version: 49.7.0
  libavcodec version: 51.57.2
  libavformat version: 52.14.0
  libavdevice version: 52.0.0
  built on Jul 21 2008 15:01:06, gcc: 4.1.2 20070626 (Red Hat 4.1.2-14)
Input #0, image2, from '/var/www/vhosts/site.com/httpdocs/3gp.png':
  Duration: 00:00:00.33, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: png, rgb32, 128x96,  3.00 tb(r)

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001)
Input #1, flv, from '/var/www/vhosts/site.com/httpdocs/flvideo/8.flv':
  Duration: 00:00:42.50, start: 0.000000, bitrate: 64 kb/s
    Stream #1.0: Video: flv, yuv420p, 1024x576, 29.97 tb(r)
    Stream #1.1: Audio: mp3, 44100 Hz, stereo, 64 kb/s
File '/var/www/vhosts/site.com/httpdocs/3gp/logotemp.3gp' already exists. Overwrite ? [y/N] y
Output #0, 3gp, to '/var/www/vhosts/site.com/httpdocs/3gp/logotemp.3gp':
    Stream #0.0: Video: h263, yuv420p, 128x96, q=2-31, 200 kb/s, 10.00 tb(c)
    Stream #0.1: Audio: libamr_nb, 8000 Hz, mono, 5 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #1.1 -> #0.1
Press [q] to stop encoding
frame=    1 fps=  1 q=2.3 Lsize=      47kB time=0.10 bitrate=3809.8kbits/s   
video:4kB audio:33kB global headers:0kB muxing overhead 24.762903%



45tripp posted 2008 Jul 25 19:31
ffmpeg doesn't join files.


wingchun22 posted 2008 Jul 25 19:57
on the ffmpeg docs it does metion info to join flv to flv

i was trying to join a image to flv

are you sure its not possable

i have seen examples on the net where images have been joined to mp3 to produce flv files



45tripp posted 2008 Jul 25 20:24
wingchun22 :
on the ffmpeg docs it does metion info to join flv to flv


then follow the example.

wingchun22 :

are you sure its not possable


yes.

:

i have seen examples on the net where images have been joined to mp3 to produce flv files


do you mean you just want to take the audio from the flv?
that you can do.

if you mean you want to append two sections of video,
you need to incorporate more tools.
probably easiest,
create flv1 from pic and audio with ffmpeg,
merge fl1 with main flv, with flvbind or flvmerge(i think).
encode final flv to 3gp.


tripp



wingchun22 posted 2008 Jul 25 22:09
i have worked around the problem

first users upload a flv file

then i merge a flv file i have created for a logo instead of a picture in mencoder

tthen i use ffmpeg to create the 3gp video




Login/Register to our forum to be able to post here.








Slysofts AnyDVD HD removes DVD and Blu-ray encryption and region coding. More info or download trial!
About   Advertise   Forum Archive   RSS Feeds   Statistics