Simon Lord | 1 Sep 03:39
Favicon

%04d.jpg from multiple directories...

I'm not exactly sure if there's a proper term for what I'm trying to  
do, I hope so because it's driving me nuts...

1) I have two directories.
2) Directory 1 has 286 jpg images with a WAV (main clip)
3) Directory 2 has 44 jpg images with a WAV (post-roll)

The sample above is real, however, the values are hardcoded.  The  
total of frames for the main clip and the post-roll clip are variables.

For the moment I'm simply trying to get the images from both  
directories into a single mp4 using the following:

 > ffmpeg -aspect 4:3 -vframes 330 -r 15 -i images/%04d.jpg -i  
postroll/%04d.jpg output.mp

It runs fine but it completely ignores the images from the second  
directory.  In the command line I set the vframes to the total of both  
directories but the output from ffmpeg clearly says 286:

 > frame=  286 fps=237 q=7.4 Lsize=   994kB time=19.07 bitrate=  
426.9kbits/s

If someone would be so kind as to let me know where I'm going wrong  
I'd really appreciate it.  :P
Horacio Sanson | 1 Sep 07:05
Picon

Re: ffmpeg/x264 Segmentation Fault Error (2nd try)

I had this problem too but seems to be fixed... I updated to latest
git verions of X264 and FFMpeg today and I am able to encode video
using x264.

On Sun, Aug 31, 2008 at 11:24 PM, Игорь Катсон <descentspb <at> gmail.com> wrote:
> Denny Deaton пишет:
>> What version do you recommend?
>>
>> Denny
>>
>> On Aug 31, 2008, at 10:02 AM, Игорь Катсон
>> <descentspb <at> gmail.com> wrote:
>>
>>
>>> Denny Deaton пишет:
>>>
>>>> I also just updated x264, and then recompiled ffmpeg after that.
>>>> Still
>>>> getting the error.
>>>>
>>>> x264 version info:
>>>> x264 core:61 r953 3727f2b
>>>>
>>>> At this point I think I have the latest and greatest versions of
>>>> both ffmpeg
>>>> and x264.  I have no idea what else it could be.
>>>>
>>>>
>>>> Anyone?
>>>>
(Continue reading)

zhentan feng | 1 Sep 08:50
Picon

Re: Unsubscribe

Hi

2008/9/1 Jayadev_Atchula <Jayadev_Atchula <at> satyam.com>

> Please unsubscribe me from this list
>
> Thank you
>

you can log in and unsubscribe by yourself through
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
--

-- 
Best wishes~
Steve R. Bennen | 1 Sep 09:18
Picon

Forcing format, crop and aspect ratio


I've been Googling questions in order to understand some basic parameter settings and I haven't been able
to find a clear answer.  (Actually, some more advanced settings make sense to me thanks to the link provided
by Stefano Sabatini http://thread.gmane.org/gmane.comp.video.ffmpeg.user/16235/focus=16283 )
I am deciding between a few different scenarios.  My problems are as follows.  With a Player screen size at 576
x 432, which is 4:3, I will have source video uploaded in different aspect ratios. 

1. If I use -s 576x432 will that force it?  What will happen if I use the -s but I don't use the -aspect parameter?
2. If I use -aspect 4:3, what will happen to a source video file with a 16:9 aspect ratio?  Will it
automatically scale to 576 x 324 (16:9) because 576 is the defining dimension?
3. What if I want the screen size to be 576 x 432, regardless of the source aspect ratio, but I want both 16:9 and
4:3 sizes to fully fit in the 4:3 screen.  Do I cropleft and cropright for the 16:9, but leave the 4:3?  I want
the ouput to show the "middle" of 16:9 and the 4:3.   Can both be done?

Regards,
Steve

_________________________________________________________________
See what people are saying about Windows Live.  Check out featured posts.
http://www.windowslive.com/connect?ocid=TXT_TAGLM_WL_connect2_082008
Craig Whitmore | 1 Sep 09:23
Picon
Favicon

Re: Forcing format, crop and aspect ratio

On Mon, 2008-09-01 at 07:18 +0000, Steve R. Bennen wrote:
> I've been Googling questions in order to understand some basic parameter settings and I haven't been able
to find a clear answer.  (Actually, some more advanced settings make sense to me thanks to the link provided
by Stefano Sabatini http://thread.gmane.org/gmane.comp.video.ffmpeg.user/16235/focus=16283 )
> I am deciding between a few different scenarios.  My problems are as follows.  With a Player screen size at
576 x 432, which is 4:3, I will have source video uploaded in different aspect ratios. 
> 
> 1. If I use -s 576x432 will that force it?  What will happen if I use the -s but I don't use the -aspect parameter?
> 2. If I use -aspect 4:3, what will happen to a source video file with a 16:9 aspect ratio?  Will it
automatically scale to 576 x 324 (16:9) because 576 is the defining dimension?
> 3. What if I want the screen size to be 576 x 432, regardless of the source aspect ratio, but I want both 16:9
and 4:3 sizes to fully fit in the 4:3 screen.  Do I cropleft and cropright for the 16:9, but leave the 4:3?  I
want the ouput to show the "middle" of 16:9 and the 4:3.   Can both be done?
> 

What I do is test if its 16x9 and then --padtop 60 --padbottom 60 and it
will add the black bars top and bottom for you and make it look correct.
Stefano Sabatini | 1 Sep 09:39
Picon
Favicon

Re: %04d.jpg from multiple directories...

On date Sunday 2008-08-31 21:39:30 -0400, Simon Lord encoded:
> I'm not exactly sure if there's a proper term for what I'm trying to  
> do, I hope so because it's driving me nuts...
> 
> 1) I have two directories.
> 2) Directory 1 has 286 jpg images with a WAV (main clip)
> 3) Directory 2 has 44 jpg images with a WAV (post-roll)
> 
> The sample above is real, however, the values are hardcoded.  The  
> total of frames for the main clip and the post-roll clip are variables.
> 
> For the moment I'm simply trying to get the images from both  
> directories into a single mp4 using the following:
> 
>  > ffmpeg -aspect 4:3 -vframes 330 -r 15 -i images/%04d.jpg -i  
> postroll/%04d.jpg output.mp
> 
> It runs fine but it completely ignores the images from the second  
> directory.  In the command line I set the vframes to the total of both  
> directories but the output from ffmpeg clearly says 286:
> 
>  > frame=  286 fps=237 q=7.4 Lsize=   994kB time=19.07 bitrate=  
> 426.9kbits/s
> 
> If someone would be so kind as to let me know where I'm going wrong  
> I'd really appreciate it.  :P

Yes this is because the second -i command tells to create another
stream in parallel, which then isn't added to final output because it
only contains just one video stream. You could use -newvideo, but
(Continue reading)

Brunner Ádám | 1 Sep 09:48
Picon

Duration is N/A in demuxed video's video stream

Hi,

I've got a video file, with these informations provided by FFmpeg:
/usr/bin/ffmpeg -i original.mpg
FFmpeg version SVN-r13582, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: ...
libavutil version: 49.7.0
libavcodec version: 51.58.0
libavformat version: 52.16.0
libavdevice version: 52.0.0
libavfilter version: 0.0.0
built on Jul  7 2008 21:21:16, gcc: 4.3.1
Input #0, mpeg, from 'original.mpg':
Duration: 00:01:47.23, start: 2.099989, bitrate: 4219 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 
4:3], 4000 kb/s, 29.97 tb(r)
Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, stereo, 192 kb/s

when I've extracted the video stream from a video file with command:
/usr/bin/ffmpeg -i original.mpg -an -vcodec copy -y video.original.mpg

and retrieved the information again, I got this:
/usr/bin/ffmpeg -i original.mpg
...
Input #0, mpeg, from 'video.original.mpg':
Duration: N/A, start: 0.524000, bitrate: N/A
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 
4:3], 4000 kb/s, 29.97 tb(r)

Why FFmpeg can't get the duration of the video stream, or how can I get 
(Continue reading)

Steve R. Bennen | 1 Sep 10:11
Picon

Re: Forcing format, crop and aspect ratio


> From: lennon <at> orcon.net.nz
> To: ffmpeg-user <at> mplayerhq.hu
> Date: Mon, 1 Sep 2008 19:23:05 +1200
> Subject: Re: [FFmpeg-user] Forcing format, crop and aspect ratio
> 
> On Mon, 2008-09-01 at 07:18 +0000, Steve R. Bennen wrote:
> > I've been Googling questions in order to understand some basic parameter settings and I haven't been
able to find a clear answer.  (Actually, some more advanced settings make sense to me thanks to the link
provided by Stefano Sabatini
http://thread.gmane.org/gmane.comp.video.ffmpeg.user/16235/focus=16283 )
> > I am deciding between a few different scenarios.  My problems are as follows.  With a Player screen size at
576 x 432, which is 4:3, I will have source video uploaded in different aspect ratios. 
> > 
> > 1. If I use -s 576x432 will that force it?  What will happen if I use the -s but I don't use the -aspect parameter?
> > 2. If I use -aspect 4:3, what will happen to a source video file with a 16:9 aspect ratio?  Will it
automatically scale to 576 x 324 (16:9) because 576 is the defining dimension?
> > 3. What if I want the screen size to be 576 x 432, regardless of the source aspect ratio, but I want both 16:9
and 4:3 sizes to fully fit in the 4:3 screen.  Do I cropleft and cropright for the 16:9, but leave the 4:3?  I
want the ouput to show the "middle" of 16:9 and the 4:3.   Can both be done?
> > 
> 
> 
> What I do is test if its 16x9 and then --padtop 60 --padbottom 60 and it
> will add the black bars top and bottom for you and make it look correct.
> 

Thanks, Craig, but I will have user-generated videos of all different sizes and aspect ratios being
uploaded for encoding.  If I knew it was 16x9, I would definitely try your suggestion.  I am trying to
understand how FFmpeg handles different variations.  My first two questions may be asking the same
(Continue reading)

Godwin Stewart | 1 Sep 12:08
Picon

Re: Unsubscribe

On Mon, 1 Sep 2008 10:51:54 +0530, Jayadev_Atchula
<Jayadev_Atchula <at> satyam.com> wrote:

> Please unsubscribe me from this list

You were able to subscribe yourself so you should also be able to
unsubscribe yourself.

--

-- 
G. Stewart - gstewart <at> lamproie.eu
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user <at> mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Nicolas Krieger | 1 Sep 13:20
Picon

Re: How to add a new stream

2008/8/28, Nicolas Krieger <khenyh <at> gmail.com>:
>
>
>
> 2008/8/26, Stefano Sabatini <stefano.sabatini-lala <at> poste.it>:
>>
>> On date Tuesday 2008-08-26 12:37:27 +0000, Nicolas Krieger encoded:
>>
>> > Hi,
>> > I first tried to write a little programm to do what I want to do, but
>> maybe
>> > it is possible to do this with ffmpeg executable.
>> > My problem is :
>> > I have got a programm that records video screens. The problem is that
>> when
>> > the programm crashes, there is not time information in the file. I've
>> tried
>> > ffmpeg -i source.avi dest.avi, but the avi file contains two video
>> streams
>> > and one audio stream. And the result of this command is a file with
>> correct
>> > duration, but one video stream is missing.
>> > Is there any option to set ?
>>
>>
>> ffmpeg -i source.avi dest.avi -newvideo
>>
>> will add to dest.avi the second video stream found in the input
>> streams list.
>
(Continue reading)


Gmane