Darby Vicker | 1 Jan 21:31
Picon

Problem converting a mov file

Hello,

I'm trying to convert an old mov file I got from a friend into an FLV
or mpeg4 format.  The video was generated in an old PC program (my
friend couldn't remember the name of the program).  There must be
something odd about the format of this mov file as ffmpeg, ffplay,
mplayer and vlc all report errors about the video stream.  I can play
it with quicktime on my macbook pro, which says the format is "MPEG1
Muxed".  The MAX_READ_SIZE message from the ffmpeg output below is
troubleing but I don't know what it means.  The "Stream #0.0(eng)"
line is also different from what I normally get when converting a
video.  Normally I see something like "Stream #0.0: Video:" and
"Stream #0.1: Audio:".  Any help in converting this video would be
greatly appreciated.

Thanks,
Darby

$ ffmpeg -i wedding.mov -r 30 -b 2M -acodec libmp3lame -ar 44100 wedding.flv
FFmpeg version SVN-r20988, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  built on Dec 31 2009 16:01:55 with gcc 4.4.2 20091222 (Red Hat 4.4.2-20)
  configuration: --enable-libfaac --enable-libfaad --enable-libmp3lame
--enable-gpl --enable-nonfree
  libavutil     50. 7. 0 / 50. 7. 0
  libavcodec    52.45. 0 / 52.45. 0
  libavformat   52.44. 0 / 52.44. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 2 /  0. 7. 2
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x8cf7390]MAX_READ_SIZE:5000000 reached
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'wedding.mov':
(Continue reading)

HaiTao Jiang | 2 Jan 08:14
Picon

The link error for the simple example !


Hi, I'm new one for ffmpeg;
I use the following command to compile a simple example "~/ffmpeg/ffmpeg-code/libavcodec/api-example.c"

administrator <at> ubuntu:~/ffmpeg/ffmpeg-test$ gcc api-example.c -L /usr/lib2/libavcodec.a  
/usr/lib2/libavdevice.a  /usr/lib2/libavformat.a  /usr/lib2/libavutil.a    /usr/lib2/libswscale.a -lm
/tmp/cco9hcG2.o: In function `audio_encode_example':
api-example.c:(.text+0x22): undefined reference to `avcodec_find_encoder'
api-example.c:(.text+0x64): undefined reference to `avcodec_alloc_context'
api-example.c:(.text+0x97): undefined reference to `avcodec_open'
api-example.c:(.text+0x20c): undefined reference to `avcodec_encode_audio'
api-example.c:(.text+0x26d): undefined reference to `avcodec_close'
/tmp/cco9hcG2.o: In function `audio_decode_example':
api-example.c:(.text+0x2bc): undefined reference to `av_init_packet'
api-example.c:(.text+0x2d4): undefined reference to `avcodec_find_decoder'
api-example.c:(.text+0x31c): undefined reference to `avcodec_alloc_context'
api-example.c:(.text+0x33a): undefined reference to `avcodec_open'
api-example.c:(.text+0x492): undefined reference to `avcodec_close'
api-example.c:(.text+0x4fc): undefined reference to `avcodec_decode_audio3'
/tmp/cco9hcG2.o: In function `video_encode_example':
api-example.c:(.text+0x5da): undefined reference to `avcodec_find_encoder'
api-example.c:(.text+0x61c): undefined reference to `avcodec_alloc_context'
api-example.c:(.text+0x624): undefined reference to `avcodec_alloc_frame'
api-example.c:(.text+0x689): undefined reference to `avcodec_open'
api-example.c:(.text+0x8f4): undefined reference to `avcodec_encode_video'
api-example.c:(.text+0x971): undefined reference to `avcodec_encode_video'
api-example.c:(.text+0xa29): undefined reference to `avcodec_close'
/tmp/cco9hcG2.o: In function `video_decode_example':
api-example.c:(.text+0xb22): undefined reference to `av_init_packet'
api-example.c:(.text+0xb5d): undefined reference to `avcodec_find_decoder'
(Continue reading)

T o n g | 2 Jan 16:41
Picon
Favicon

Ffmpeg and audio/video syncing

Hi, 

I am converting a flv file and experience the following as well (audio/
video out of sync). 

I can't find any explanation about how to use the -async/-vsync with -map 
to "select from which stream the timestamps should be taken".

Anyone can help?

Thanks

On Sun, 27 Dec 2009 20:55:16 +0100, Jan Stary wrote:

> the problem is in
> the video capturing - some frames being missed, making the video stream
> go "faster" than the audio stream? Does this make sense?
> 
> Could the  " -vsync parameter " option be useful here? What are the
> possible values of "parameter"? How do I specify that I want the (ok)
> audio stream to be left untouched and sync (squeeze, or, in my case,
> stretch the video stream to fit the audio)?

--

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/
hvidal | 2 Jan 16:47

Potential memory leak in ffmpeg, libavformat, etc (SORRY may be dupe)

If I find a video file that /seems/ OK, but causes
ffmpeg (and related libraries) to leak memory, should
I report this issue on this list or on developer list?

Thanks.

hv
hvidal | 2 Jan 16:50

potential bounty for a codec development

I have a customer potentially interested in posting a bounty
for the development of an ffmpeg/libavcodec/ etc. compatible
codec for a proprietary video container/codec. We are in
touch with the owner of this format, and are working to
potentially arrange specifications for the format to be
made available so we can post this bounty.

Does anybody on this list have an interest in this target?

The format in question is (if memory serves, I don't have notes
in front of me now) AVC INTRA 50 and 100.

Thanks.

hv
Rob, M0DTS | 2 Jan 17:48
Picon

ffmpeg and pipe output

Hi All

It's my first post here after spending a lot of time hunting on the web
to find a solution to my problem, i did not find a solution.

I'm trying to use ffmpeg to output to a pipe..

I'm trying to send video elementry stream to a program called
esvideo2pes which is part of the OpenCaster DVB package.

ffmpeg hangs when i try to do this and does not start encoding.

Script is something like this:

#

mkfifo /tmp/video.es

fmpeg -i /dev/video0 -deinterlace  -an -vcodec mpeg2video -f mpeg2video
-bf 2 -b 1450k -maxrate 1450k -minrate 1450k  -bufsize
1024k  /tmp/video.es &

esvideo2pes /tmp/video.es > video.pes

etc
etc

I hope someone can point me in the right direction, eventually i would
like to generate both audio and video elementry streams at once and send
them to fifo's for further processing but we better get one working
(Continue reading)

Kevin Oberman | 2 Jan 18:30

Re: Ffmpeg and audio/video syncing

It makes if hard to follow the thread.
> Why not?
> > Please don't top post.

> From: T o n g <mlist4suntong <at> yahoo.com>
> Date: Sat, 2 Jan 2010 15:41:14 +0000 (UTC)
> Sender: ffmpeg-user-bounces <at> mplayerhq.hu
> 
> On Sun, 27 Dec 2009 20:55:16 +0100, Jan Stary wrote:
> 
> > the problem is in
> > the video capturing - some frames being missed, making the video stream
> > go "faster" than the audio stream? Does this make sense?
> > 
> > Could the  " -vsync parameter " option be useful here? What are the
> > possible values of "parameter"? How do I specify that I want the (ok)
> > audio stream to be left untouched and sync (squeeze, or, in my case,
> > stretch the video stream to fit the audio)?
> 
> Hi, 
> 
> I am converting a flv file and experience the following as well (audio/
> video out of sync). 
> 
> I can't find any explanation about how to use the -async/-vsync with -map 
> to "select from which stream the timestamps should be taken".
> 
> Anyone can help?

Like the original poster, I'd love some explanation of the -vsync
(Continue reading)

Jan Stary | 2 Jan 19:13
Picon

Re: ffmpeg and pipe output

On Jan 02 16:48:04, Rob, M0DTS wrote:
> Hi All
> 
> It's my first post here after spending a lot of time hunting on the web
> to find a solution to my problem, i did not find a solution.
> 
> I'm trying to use ffmpeg to output to a pipe..
> 
> I'm trying to send video elementry stream to a program called
> esvideo2pes which is part of the OpenCaster DVB package.
> 
> ffmpeg hangs when i try to do this and does not start encoding.
> 
> Script is something like this:
> 

Give us the exact command line.

> #
> 
> mkfifo /tmp/video.es
> 
> fmpeg -i /dev/video0 -deinterlace  -an -vcodec mpeg2video -f mpeg2video
> -bf 2 -b 1450k -maxrate 1450k -minrate 1450k  -bufsize
> 1024k  /tmp/video.es &

There's no "fmpeg", and you don't even specify a format, framerate,
or size for the /dev/video input, so this cannot work (pipes or not);
or this is not your commandline.

(Continue reading)

Rob, M0DTS | 2 Jan 19:33
Picon

Re: ffmpeg and pipe output

On Sat, 2010-01-02 at 19:13 +0100, Jan Stary wrote:
> On Jan 02 16:48:04, Rob, M0DTS wrote:
> > Hi All
> > 
> > It's my first post here after spending a lot of time hunting on the web
> > to find a solution to my problem, i did not find a solution.
> > 
> > I'm trying to use ffmpeg to output to a pipe..
> > 
> > I'm trying to send video elementry stream to a program called
> > esvideo2pes which is part of the OpenCaster DVB package.
> > 
> > ffmpeg hangs when i try to do this and does not start encoding.
> > 
> > Script is something like this:
> > 
> 
> Give us the exact command line.
> 
> > #
> > 
> > mkfifo /tmp/video.es
> > 
> > fmpeg -i /dev/video0 -deinterlace  -an -vcodec mpeg2video -f mpeg2video
> > -bf 2 -b 1450k -maxrate 1450k -minrate 1450k  -bufsize
> > 1024k  /tmp/video.es &
> 
> There's no "fmpeg", and you don't even specify a format, framerate,
> or size for the /dev/video input, so this cannot work (pipes or not);
> or this is not your commandline.
(Continue reading)

belcampo | 2 Jan 19:43
Picon

Re: ffmpeg and pipe output

Rob, M0DTS wrote:
> Hi All
> 
> It's my first post here after spending a lot of time hunting on the web
> to find a solution to my problem, i did not find a solution.
> 
> I'm trying to use ffmpeg to output to a pipe..
> 
> I'm trying to send video elementry stream to a program called
> esvideo2pes which is part of the OpenCaster DVB package.
> 
> ffmpeg hangs when i try to do this and does not start encoding.
> 
> Script is something like this:
> 
> 
> #
> 
> mkfifo /tmp/video.es
> 
> fmpeg -i /dev/video0 -deinterlace  -an -vcodec mpeg2video -f mpeg2video
> -bf 2 -b 1450k -maxrate 1450k -minrate 1450k  -bufsize
> 1024k  /tmp/video.es &
> 
> esvideo2pes /tmp/video.es > video.pes
Your source is DVB, which is ts, and as I understand you want it to be a 
pes ? Is that right ?
In the meantime you want to lower the bitrate to 1450k, which for mpeg2 
is very low and quality will be low as a result. Is that what you want?
ffmpeg -formats gives among others
(Continue reading)


Gmane