Josh Millstein | 1 Jun 01:23

Converting Image file to video

Hello,

I'm trying to convert one image to a mov video file that lasts 4 seconds.  I
have done the following

ffmpeg -r 1 -vframes 4 -i Picture.jpg -i Picture.jpg -i Picture.jpg -i
Picture.jpg -s 400x300 test.mov

The video that is created only lasts one second.  Can anybody help me here.

Thanks,
Josh
Víctor Paesa | 1 Jun 10:33

Re: Converting Image file to video

Hi,

> I'm trying to convert one image to a mov video file that lasts 4 seconds.
> I
> have done the following
>
> ffmpeg -r 1 -vframes 4 -i Picture.jpg -i Picture.jpg -i Picture.jpg -i
> Picture.jpg -s 400x300 test.mov
>
> The video that is created only lasts one second.  Can anybody help me
> here.

Sounds like you should read entry 1.2 in ffmpeg's FAQ.

Regards,
Víctor
Benoit Fouet | 1 Jun 11:24

Re: Converting Image file to video

Víctor Paesa wrote:
> Hi,
>
>   
>> I'm trying to convert one image to a mov video file that lasts 4 seconds.
>> I
>> have done the following
>>
>> ffmpeg -r 1 -vframes 4 -i Picture.jpg -i Picture.jpg -i Picture.jpg -i
>> Picture.jpg -s 400x300 test.mov
>>
>> The video that is created only lasts one second.  Can anybody help me
>> here.
>>     
>
> Sounds like you should read entry 1.2 in ffmpeg's FAQ.
>   

or try the -loop_input option

Ben
--

-- 
Purple Labs S.A.
www.purplelabs.com
Marc Noirot | 1 Jun 14:13
Picon

Re: invalid WMV muxing

Sorry, my bad.

I tried to remux the following file, http://noirotm.free.fr/test.avi 
into a WMV file, using the latest ffmpeg version (r9166).

The resulting file, http://noirotm.free.fr/test9166.wmv doesn't play in 
any player except those using libavformat (i tested VLC and mplayer).

The command line i used is the following:
ffmpeg -i test.avi -acodec copy -vcodec copy -y test9166.wmv

The output I got from ffmpeg is the following:
FFmpeg version SVN-r9166, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-pp --enable-gpl --enable-libmp3lame
  libavutil version: 49.4.0
  libavcodec version: 51.40.4
  libavformat version: 51.12.1
  built on Jun  1 2007 11:49:45, gcc: 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Input #0, avi, from 'test.avi':
  Duration: 00:00:33.8, start: 0.000000, bitrate: 836 kb/s
  Stream #0.0: Video: wmv2, yuv420p, 352x240, 29.97 fps(r)
  Stream #0.1: Audio: mp3, 22050 Hz, mono, 64 kb/s
Output #0, asf, to 'test9661.wmv':
  Stream #0.0: Video: wmv2, yuv420p, 352x240, q=2-31, 29.97 fps(c)
  Stream #0.1: Audio: mp3, 22050 Hz, mono, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 1012 fps=  0 q=4.3 Lsize=    3473kB time=33.8 bitrate= 
(Continue reading)

Doug L | 1 Jun 16:42
Picon
Favicon

AAC Decoder produces garbled audio.

I've created a simple audio transcoder using libavformat/codec. When I try to transcode an
  Mp2 -> Mp2, I get perfect results. However, I'm having trouble when trying to go from Mp4-
  AAC to Mp2-Audio. I've noticed that the audio comes out a bit garbled and even sounds as if
  it might be slowed down a bit. I can keep the audio in sync by setting the pts of the mp2
  packets but it seems to me there has to be a better solution. I've searched the message
  board a bit and found someone with a similar problem about a year and a half ago but his
  issue was never resolved either. Is this a failing with FAAD?

  Any hints/clues/help would be greatly appreciated. I can upload a couple before and after
  samples if anyone things it would help.

  Thanks.  

       
---------------------------------
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. 
Benoit Fouet | 1 Jun 16:59

Re: AAC Decoder produces garbled audio.

Hi,

please don't post your message over and over again to get it answered,
this is definitely not the right way to go...

Doug L wrote:
> I've created a simple audio transcoder using libavformat/codec. When I try to transcode an
>   Mp2 -> Mp2, I get perfect results. However, I'm having trouble when trying to go from Mp4-
>   AAC to Mp2-Audio. I've noticed that the audio comes out a bit garbled and even sounds as if
>   it might be slowed down a bit. I can keep the audio in sync by setting the pts of the mp2
>   packets but it seems to me there has to be a better solution. I've searched the message
>   board a bit and found someone with a similar problem about a year and a half ago but his
>   issue was never resolved either. Is this a failing with FAAD?
>    
>   Any hints/clues/help would be greatly appreciated. I can upload a couple before and after
>   samples if anyone things it would help.
>   

have to tried with the ffmpeg binary ?
have you got the same problem ?
have you posted the output of such a command ?

please do it, and come back back with information we can use

Thanks,

Ben
--

-- 
Purple Labs S.A.
www.purplelabs.com
(Continue reading)

Cool Druker | 1 Jun 17:15
Picon

Re: Regarding image conversion to Mpeg format

Hi,

I tried following your instruction of *DONT TOP-POST* in this mail, please
let me know if this is the correct way. Please pardon me if I am wront this
time also.

Query 1: Regarding -padtop
It takes values in even numbers so if my image is of 511 X 412 format, how
can i make an MPEG using ffmpeg , which can be playable as normal as other
files with even width/height.

I/P command : ffmpeg -f image2 -loop_input -t 10 -padtop 1 -i img1.bmp
my1.mpg
O/P : Top pad size must be a multiple of 2

Query 2:
Using ffmpeg i need to give input an image file. Can it be possible that i
give input to ffmpeg a buffer that contains image or bitmap handle of the
image HBITMAP, and get MPEG converted.

Regards,
-Cool

On 5/31/07, Michel Bardiaux <mbardiaux <at> mediaxim.be> wrote:

> Cool Druker wrote:
> > Thanks,
>
> Once more, with feeling: *DONT TOP-POST*.
>
(Continue reading)

Godwin Stewart | 1 Jun 17:26
Picon

Re: Regarding image conversion to Mpeg format

On Fri, 1 Jun 2007 20:45:00 +0530, "Cool Druker"
<cool.druker <at> gmail.com> wrote:

> I tried following your instruction of *DONT TOP-POST* in this mail,
> please let me know if this is the correct way. Please pardon me if I
> am wront this time also.

You're doing it deliberately, right?

If not then you obviously know neither what top-posting is nor how to
find out what it is and why it's bad on a search engine.

--

-- 
G. Stewart - gstewart <at> lamproie.eu
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user <at> mplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Andrey Fursenko | 1 Jun 17:56
Picon

Re: Minimum possible bitrate

Hello, Andrey.

You wrote 31 мая 2007 г., 9:50:40:

> Hello, Michel.

> You wrote 30 мая 2007 г., 18:02:46:

>> Andrey Fursenko wrote:
>>> Hello.
>>> 
>>>   Would you, please, tell me how can I calculate minimum bitrate for
>>>   2-pass encoding, to do not get message "too low bitrate..."

>> There is no such message in the source code. You should post a complete
>> command line, with its complete output messages - by copy/paste.

>> Don't paraphrase. Don't force us to *guess* what you mean.

>> Greetings,

> Ok. I mean libavcodec/ratecontrol.c, line 945,
> and message: "[lavc rc] Error: bitrate too low for this video "with these parameters.\n");

> Here's example. (ffmpeg r9017)

>  Input file :
>   Seems stream 0 codec frame rate differs from container frame
> rate: 30000.00 (30000/1) -> 25.00 (25/1)
>   Input #0, avi, from 'levski.avi':
(Continue reading)

Mike Richards | 1 Jun 18:15
Picon

Error compiling latest ffmpeg svn

I checked out ffmpeg from svn this morning and I'm getting the
following error during compilation:

gcc -L"/tmp/ffmpeg"/libavformat -L"/tmp/ffmpeg"/libavcodec
-L"/tmp/ffmpeg"/libavutil -Wl,--warn-common  -pthread -rdynamic
-export-dynamic -Wl,--as-needed
-Wl,-rpath-link,"/tmp/ffmpeg"/libavcodec
-Wl,-rpath-link,"/tmp/ffmpeg"/libavformat
-Wl,-rpath-link,"/tmp/ffmpeg"/libavutil -g -o ffmpeg_g ffmpeg.o
cmdutils.o -lavformat -lavcodec -lavutil -lm -lz -lmp3lame -lm
-lxvidcore -lx264 -lfaac -lfaad -ldl
ffmpeg.o: In function `opt_default':
/tmp/ffmpeg/ffmpeg.c:3531: undefined reference to `av_find_opt'
/tmp/ffmpeg/ffmpeg.c:3531: undefined reference to `av_find_opt'
/tmp/ffmpeg/ffmpeg.c:3531: undefined reference to `av_find_opt'
/tmp/ffmpeg/ffmpeg.c:3531: undefined reference to `av_find_opt'
ffmpeg.o: In function `opt_new_subtitle_stream':
/tmp/ffmpeg/ffmpeg.c:2941: undefined reference to
`avcodec_get_context_defaults2'
ffmpeg.o: In function `new_audio_stream':
/tmp/ffmpeg/ffmpeg.c:2866: undefined reference to
`avcodec_get_context_defaults2'
ffmpeg.o: In function `new_video_stream':
/tmp/ffmpeg/ffmpeg.c:2709: undefined reference to
`avcodec_get_context_defaults2'
ffmpeg.o: In function `list_pix_fmts':
/tmp/ffmpeg/ffmpeg.c:2251: undefined reference to `avcodec_pix_fmt_string'
/tmp/ffmpeg/ffmpeg.c:2251: undefined reference to `avcodec_pix_fmt_string'
ffmpeg.o: In function `do_video_out':
/tmp/ffmpeg/ffmpeg.c:751: undefined reference to `av_picture_pad'
(Continue reading)


Gmane