Hao Chi Kiang | 1 Aug 05:07
Picon

Is it possible to make a 25min stream synchronize with a 30min audio forcibly.

Hi,

I have a 25 minute yuv video and 30 minutes pcm audio file.
I want to make the video run slowly to synchronize with the audio.
Change the fps of input file maybe work,
but I don't want to calculate fps every time.
(I want to write a script).
Can I do that with ffmpeg?

Thanks in advance !

----
woodykiang <at> gmail.com
Tom Sparks | 1 Aug 05:58
Picon

Unsupported codec two video streams??

how do I map stream #0.1 to #0.0 for output?
ffmpeg -i dvgrab-014.ogv -target pal-vcd 
dvgrab-014.mpg

[theora @ 0xb7ec2ac8]Theora bitstream version 30201
[theora @ 0xb7ec2ac8]584 bits left in packet 81
[theora @ 0xb7ec2ac8]7 bits left in packet 82
Input #0, ogg, from 'dvgrab-014.ogv':
  Duration: 00:04:09.0, start: 0.182000, bitrate: 1415
kb/s
  Stream #0.0: Video: 0x0000, 1000000.00 fps(r)
  Stream #0.1: Video: theora, yuv420p, 720x576, 25.00
fps(r)
  Stream #0.2: Audio: vorbis, 32000 Hz, stereo, 180
kb/s
PIX_FMT_YUV420P will be used as an intermediate format
for rescaling
Output #0, vcd, to 'dvgrab-014.mpg':
  Stream #0.0: Video: mpeg1video, yuv420p, 352x288,
q=2-31, 1150 kb/s,
25.00 fps(c)
  Stream #0.1: Audio: mp2, 44100 Hz, stereo, 224 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.2 -> #0.1
Unsupported codec (id=0) for input stream #0.0

      Find a better answer, faster with the new Yahoo!7 Search. www.yahoo7.com.au/search
Stefano Sabatini | 1 Aug 09:13
X-Face
Picon
Favicon

Re: Unsupported codec two video streams??

On date Friday 2008-08-01 13:58:30 +1000, Tom Sparks encoded:
> how do I map stream #0.1 to #0.0 for output?
> ffmpeg -i dvgrab-014.ogv -target pal-vcd 
> dvgrab-014.mpg
> 
> [theora @ 0xb7ec2ac8]Theora bitstream version 30201
> [theora @ 0xb7ec2ac8]584 bits left in packet 81
> [theora @ 0xb7ec2ac8]7 bits left in packet 82
> Input #0, ogg, from 'dvgrab-014.ogv':
>   Duration: 00:04:09.0, start: 0.182000, bitrate: 1415
> kb/s
>   Stream #0.0: Video: 0x0000, 1000000.00 fps(r)
>   Stream #0.1: Video: theora, yuv420p, 720x576, 25.00
> fps(r)
>   Stream #0.2: Audio: vorbis, 32000 Hz, stereo, 180
> kb/s
> PIX_FMT_YUV420P will be used as an intermediate format
> for rescaling
> Output #0, vcd, to 'dvgrab-014.mpg':
>   Stream #0.0: Video: mpeg1video, yuv420p, 352x288,
> q=2-31, 1150 kb/s,
> 25.00 fps(c)
>   Stream #0.1: Audio: mp2, 44100 Hz, stereo, 224 kb/s
> Stream mapping:
>   Stream #0.0 -> #0.0
>   Stream #0.2 -> #0.1
> Unsupported codec (id=0) for input stream #0.0

Did you tried -map 0.1:0.0?

(Continue reading)

Michel Bardiaux | 1 Aug 14:20
Picon

Re: Is it possible to make a 25min stream synchronize with a 30min audio forcibly.

Hao Chi Kiang <Woody> wrote:
> Hi,
> 
> I have a 25 minute yuv video and 30 minutes pcm audio file.
> I want to make the video run slowly to synchronize with the audio.
> Change the fps of input file maybe work,
> but I don't want to calculate fps every time.
> (I want to write a script).
> Can I do that with ffmpeg?
> 
ffmpeg accepts a fraction for -r. So, assuming your video is 25 minutes 
at 25 fps, you will need -r 625/30 -i ... -r 25 ...

The rest, that is how to compute 25 times 25, is about scripting, not 
about ffmpeg, so it's off-topic. (Hint: tcsh supports integer 
arithmetic, maybe other shells too; or use dc)

--

-- 
Michel Bardiaux
http://www.mediaxim.com/
Michel Bardiaux | 1 Aug 14:24
Picon

Re: [libav-user] decoding wav

Jarek M wrote:
> Hi. 

Please don't top-post.

> Thanks for a prompt reply; 

This one has not been prompt. I wont apologize: I *needed* a vacation in 
a place far from any computer... (Because of the delay I am Cc-ing you 
as a heads-up; please respond only on-list).

> in that case, what is the format of  a ringin.wav file present in Microsoft Windows? 
> It's located in Windows\Media directory

The format of a wav file is ... the WAV format!

> I'm trying to test ffmpeg decoder and I'm having trouble decoding wavs and mp3s

The usual mantra: post your command line and the complete output 
messages. Help us to help you!

> I'm using the latest ffmpeg, compiled under msys
> Regards
> Jarek Myszewski
> 
> 
> Dnia 8 lipca 2008 13:54 Michel Bardiaux <mbardiaux <at> mediaxim.be> napisał(a):
> 
>> Jarek M wrote:
>>> Hi. I was wondering what is the codec ID (in enum CodecID in
(Continue reading)

Hao Chi Kiang | 1 Aug 15:10
Picon

Re: Is it possible to make a 25min stream synchronize with a 30min audio forcibly.

2008/8/1 Michel Bardiaux <mbardiaux <at> mediaxim.be>:

> ffmpeg accepts a fraction for -r. So, assuming your video is 25 minutes
> at 25 fps, you will need -r 625/30 -i ... -r 25 ...
>
> The rest, that is how to compute 25 times 25, is about scripting, not
> about ffmpeg, so it's off-topic. (Hint: tcsh supports integer
> arithmetic, maybe other shells too; or use dc)

I used mplayer to get the length and framerate of video
and tried this method. It work well :-)
Now I am finding some fast way to get these information.

Thanks for your good idea!
Stefano Sabatini | 1 Aug 16:02
X-Face
Picon
Favicon

Re: Is it possible to make a 25min stream synchronize with a 30min audio forcibly.

On date Friday 2008-08-01 06:10:02 -0700, Hao Chi Kiang <Woody> encoded:
> 2008/8/1 Michel Bardiaux <mbardiaux <at> mediaxim.be>:
> 
> > ffmpeg accepts a fraction for -r. So, assuming your video is 25 minutes
> > at 25 fps, you will need -r 625/30 -i ... -r 25 ...
> >
> > The rest, that is how to compute 25 times 25, is about scripting, not
> > about ffmpeg, so it's off-topic. (Hint: tcsh supports integer
> > arithmetic, maybe other shells too; or use dc)
> 
> 
> I used mplayer to get the length and framerate of video
> and tried this method. It work well :-)
> Now I am finding some fast way to get these information.

ffprobe -show_files -show_streams INPUT

Regards.
--

-- 
ffmpeg-user random tip #7
If you're asking about problems with an ffmpeg tool, *always* post the 
command you're using and the complete output.
Andrew Wason | 1 Aug 17:21
Gravatar

Re: ffmpeg encoding corrupt AAC

Andrew Wason <rectalogic <at> rectalogic.com> writes:
> 
> I'm having problems where ffmpeg seems to be encoding corrupt AAC
> using libfaac with some inputs.

It looks like this is an faac bug, not related to ffmpeg. I can reproduce with
faac alone. I filed a bug with them.

https://sourceforge.net/tracker/?func=detail&atid=100704&aid=2032899&group_id=704

Andrew
AJ Coon | 1 Aug 18:18
Picon

Problems Converting Quicktime .mov to PS3 .mp4

Hello,

I am new to ffmpeg.  I started using it because I want to be able to
convert 1080p movies in Quicktime format into mp4, so that I can watch
them on my PS3.  I had a nearly successful first attempt at using this
program, something I attribute to your documentation.

The video quality of the mp4 is good.  The only problem I see with it
is that the image appears "stretched".  Usually cinematic widescreen
viewed in 1080p has a "letterbox" appearance (black bars across top
and bottom).  The video I converted, however, took up the whole
screen, and again appeared "stretched".  I could live with this,
though I'd like to know what I did wrong.

The audio is a different story though.  The first 10 seconds seem
great, but then all of a sudden the sound stops.  If I stop the clip
(not pause, but stop), and then start it up again then I can hear the
sound again, with varying degrees of sustain.  Sometimes it will come
back for the rest of the playback, sometimes only a few seconds.  Odd.

So, if anyone has the time to help me out I'd appreciate it.  My
source file is here:
http://pdl.warnerbros.com/wbmovies/halfbloodprince/teaser/HP6_1080.mov
 It's just a movie trailer, so not that big  :-)  The console output
from my ffpeg is below.  Thanks in advance!

-Aaron

C:\Documents and Settings\AJ Coon>"C:\Program Files\Red Kawa\Video
Converter\Tools\FFmpeg\ffmpeg.exe" -y -i "C:\Documents and Settings\AJ
(Continue reading)

Andrew Sak | 1 Aug 08:14
Picon
Favicon

Converting from RGB24 to 8bit Grayscale

I'm attempting to convert from an RGB24 to 8bpp grayscale image, code as follows:

    convert_ctx = sws_getContext(pCodecCtx->width, 
           pCodecCtx->height, pCodecCtx->pix_fmt /* input format */,
           pCodecCtx->width, pCodecCtx->height, PIX_FMT_RGB24 /* output format ? */,
           0, NULL, NULL, NULL);

    sws_scale(convert_ctx,
         pFrame->data, pFrame->linesize,
         0, pCodecCtx->height, /* src slice */
         pFrameRGB->data, pFrameRGB->linesize);

My problem is that with the above parameters my nice color image becomes a vertically squeezed grayscale
(by 1/3). Can someone share what are the right parameters to use to get a correctly sized grayscale image? I
tried playing around with some of the filter parameters, but couldn't get the right result.

Any help appreciated.

Andrew Sak
andrew_wm_sak <at> yahoo.com
Penang, Malaysia

      

Gmane