luismanolo | 1 Mar 10:49
Picon

Video Audio sync problem

Hello.
Sorry about my english.
I want to mix two streams, one wav audio and a AVCHD video converted to a
pipe input, but the video is shorter than the audio. The audio stream have
the correct time.
I don`t know how to use the -vsync and -map parameters.

The command are:

mkfifo -
ffmpeg -y -i video_in.MTS  -an -pix_fmt yuv420p -f rawvideo - |
    ffmpeg -y -i audio_in.wav -r 60000/1001 -deinterlace -s 1920x1080
-pix_fmt yuv420p -f rawvideo -i -
    -r 60000/1001 -s 1280x720 -vcodec mpeg4 -sameq -shortest -f mov
    -acodec libfaac -ac 2 -ab 128k -ar 48000     file_out.mov

Many thanks.

--

-- 
http://vimeo.com/luismanolo
http://delasonsierra.blogspot.com
http://www.logrobomberos.com
belcampo | 1 Mar 14:48
Picon

Re: Video Audio sync problem

 > Hello.
 > Sorry about my english.
 > I want to mix two streams, one wav audio and a AVCHD video converted
 > to a pipe input, but the video is shorter than the audio. The audio > 
 > stream have the correct time.
 > I don`t know how to use the -vsync and -map parameters.
 >
 > The command are:
 >
 > mkfifo -
 > ffmpeg -y -i video_in.MTS  -an -pix_fmt yuv420p -f rawvideo - |
 >     ffmpeg -y -i audio_in.wav -r 60000/1001 -deinterlace -s 1920x1080
 > -pix_fmt yuv420p -f rawvideo -i -
 >     -r 60000/1001 -s 1280x720 -vcodec mpeg4 -sameq -shortest -f mov
 >     -acodec libfaac -ac 2 -ab 128k -ar 48000     file_out.mov
 >
 > Many thanks.
Here you can read how-to
http://howto-pages.org/ffmpeg/#delay
Christian Ebert | 1 Mar 16:11
X-Face
Picon
Gravatar

strange h264 framerate diagnostics

Hi,

Here, even with explicit "-r 25" (shouldn't be needed, as source
is 25fps) and following sample cmdline:

$ ffmpeg -i test.mov -vcodec libx264 -vpre normal \
-acodec libfaac -ac 1 -ar 22050 -ac 1 -ab 40k -r 25 -y test.mp4

a check gives codec frame rate differs from container frame rate!

$ ffmpeg -i test.mp4
FFmpeg version SVN-r17657, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-nonfree --disable-network --disable-ffserver
--disable-vhook --disable-ffplay --enable-shared --enable-pthreads --enable-postproc
--enable-swscale --enable-libfaad --enable-libfaac --enable-libx264 --enable-libxvid
--enable-libmp3lame --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.30. 1 / 52.30. 1
  libavdevice   52. 1. 0 / 52. 1. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Feb 28 2009 15:04:37, gcc: 4.0.1 (Apple Inc. build 5490)

Seems stream 0 codec frame rate differs from container frame rate: 25.00 (25/1) -> 12.50 (25/2)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Duration: 00:04:22.04, start: 0.000000, bitrate: 243 kb/s
    Stream #0.0(eng): Video: h264, yuv420p, 720x576, 12.50 tbr, 25 tbn, 25 tbc
    Stream #0.1(eng): Audio: aac, 22050 Hz, mono, s16
At least one output file must be specified
(Continue reading)

luismanolo | 1 Mar 17:50
Picon

Re: Video Audio sync problem

Many thanks, but the problem is that the video are 2 min. 32 sec. and the
audio are 2 min. 57 sec.

the video are shorter than de audio. And the audio have the correct size.

thanks.

2009/3/1 belcampo <belcampo <at> zonnet.nl>

> > Hello.
> > Sorry about my english.
> > I want to mix two streams, one wav audio and a AVCHD video converted
> > to a pipe input, but the video is shorter than the audio. The audio > >
> stream have the correct time.
> > I don`t know how to use the -vsync and -map parameters.
> >
> > The command are:
> >
> > mkfifo -
> > ffmpeg -y -i video_in.MTS  -an -pix_fmt yuv420p -f rawvideo - |
> >     ffmpeg -y -i audio_in.wav -r 60000/1001 -deinterlace -s 1920x1080
> > -pix_fmt yuv420p -f rawvideo -i -
> >     -r 60000/1001 -s 1280x720 -vcodec mpeg4 -sameq -shortest -f mov
> >     -acodec libfaac -ac 2 -ab 128k -ar 48000     file_out.mov
> >
> > Many thanks.
> Here you can read how-to
> http://howto-pages.org/ffmpeg/#delay
>

(Continue reading)

Naz | 2 Mar 05:03
Favicon

ffserver dies on stream request

Hi all,
I am pushing video from ffmpeg here at home to a ffserver instance 
running on a remote machine. I have been able to do it in the past, 
however, when I upgraded to the current git (as of about 48 hours ago) 
it stopped working. What now happens is that the server starts but 
consumes 100% of CPU. I read in issue 855 that deleting /tmp/feed1.ffm 
solves this, so I tried that, and it does.

After deleting the feed file, ffserver starts, and accepts a connection 
from ffmpeg and ffmpeg seems to report that it is streaming as normal, 
outputting bitrate and timestamp progress to stdout.

However, soon after a client attempts to connect via HTTP, ffserver's 
CPU shoots back up to 100%. If I kill ffserver before this, I don't have 
to delete the feed file. I've let ffserver run for some minutes without 
attempting a client connection, and it has not occurred before I made 
the attempt. This leads me to believe that the corruption in the feed 
file occurs when a connection is attempted from a client.

My ffserver.conf is below. I've attempted this with only one of the 
streams enabled at a time, commenting out all the others as you can see. 
Any help on this would be appreciated.

=== ffserver.conf ===

Port 8090
BindAddress 0.0.0.0
MaxClients 100
MaxBandwidth 1000
CustomLog -
(Continue reading)

Dan Cavallaro | 2 Mar 05:35
Picon

Title slug stretched out, and audio/video are out of sync

Part of what I do at work involves taking DVDs of lectures that we get
from various universities, and then I import the DVD into Ulead
VideoStudio, trim the ends if necessary, and add a 10-second title
slug before the video starts, then export to MPEG-2, where we
transcode to various formats.

We've been using watch folders with a Procoder back-end for a while,
but it's been pretty finicky so we're looking into other methods. I've
been experimenting with ffmpeg, because it does all of the different
conversions that we need. As an experiment, I tried transcoding one of
our MPEG-2s to h.264 MP4. Something really strange happened though -
the audio and video were out of sync, but in a weird way. The title
slug at the beginning lasted for 18 seconds instead of 10, and then
the audio and video were consistently out of sync for 8 seconds for
the entire duration of the video.

I then added the "-async 2" option, and now the audio and video are
synced properly, but the title slug is still 18 seconds instead of 10
seconds. How could ffmpeg just stretch the title slug and nothing
else?

The command line options I'm using are:

ffmpeg -i input.mpg -vcodec libx264 -b 302k -acodec libfaac -ac 1 -ar
44100 -ab 48k -r 29.97 -s 320x240 -async 2 output.mp4

Thanks,
Dan
Prabhu R | 2 Mar 07:02
Picon

Streaming from file

Hi friends,

              Is streaming from file is really supported in ffsever? If
yes..can i have a sample conf for streaming an mpeg file?

Prabhu R
Naz | 2 Mar 07:31
Favicon

Re: Streaming from file

Hi there,
Last I heard, it was broken. However, you can feed ffserver using ffmpeg 
from a file, which effectively is the same thing, it's just that ffmpeg 
is reading the file and giving it to ffserver to stream. I've done this 
in the past, but there appears to be a problem with the latest ffserver 
that I am trying to resolve. Check my other recent post in this list for 
the ffserver.conf that I am using.
- Naz

Prabhu R wrote:
> Hi friends,
>
>               Is streaming from file is really supported in ffsever? If
> yes..can i have a sample conf for streaming an mpeg file?
>
> Prabhu R
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user <at> mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
>   

--

-- 
السلام عليكم

Web:  www.mrnaz.com
Ph:   +61 400 460 662

_______________________________________________
ffmpeg-user mailing list
(Continue reading)

Víctor Paesa | 2 Mar 09:10

Re: Video Audio sync problem

Hi,

luismanolo said:
> Many thanks, but the problem is that the video are 2 min. 32 sec. and
> the audio are 2 min. 57 sec.
>
> the video are shorter than de audio. And the audio have the correct
> size.

Please follow the mail conventions in http://www.ffmpeg.org/contact.html
(notice the top-posting item).

> 2009/3/1 belcampo <belcampo <at> zonnet.nl>
>
>> > Hello.
>> > Sorry about my english.
>> > I want to mix two streams, one wav audio and a AVCHD video converted
>> to a pipe input, but the video is shorter than the audio. The audio
>> > >
>> stream have the correct time.
>> > I don`t know how to use the -vsync and -map parameters.
>> >
>> > The command are:
>> >
>> > mkfifo -
>> > ffmpeg -y -i video_in.MTS  -an -pix_fmt yuv420p -f rawvideo - |
>> >     ffmpeg -y -i audio_in.wav -r 60000/1001 -deinterlace -s
>> 1920x1080
>> > -pix_fmt yuv420p -f rawvideo -i -
>> >     -r 60000/1001 -s 1280x720 -vcodec mpeg4 -sameq -shortest -f mov
(Continue reading)

Prabhu R | 2 Mar 09:34
Picon

Re: Streaming from file

Prabhu R wrote:
> Hi friends,
>
>               Is streaming from file is really supported in ffsever? If
> yes..can i have a sample conf for streaming an mpeg file?
>
> Prabhu R

On Mon, Mar 2, 2009 at 12:01 PM, Naz <lists <at> mrnaz.com> wrote:

> Hi there,
> Last I heard, it was broken. However, you can feed ffserver using ffmpeg
> from a file, which effectively is the same thing, it's just that ffmpeg
> is reading the file and giving it to ffserver to stream. I've done this
> in the past, but there appears to be a problem with the latest ffserver
> that I am trying to resolve. Check my other recent post in this list for
> the ffserver.conf that I am using.
> - Naz
>

Thanks for your reply Naz, but i could not find your recent post....Also is
it possible to run ffserver in windows?

Prabhu R

Gmane