Re: [Mlt-devel] [PATCH] keep origin audio samples freq if audio_index=all is used

2013-07-23 Thread Maksym Veremeyenko
04.07.13 22:16, Dan Dennedy написав(ла):
 On Thu, Jul 4, 2013 at 4:35 AM, Maksym Veremeyenkove...@m1stereo.tv  wrote:
 Hi,

 if option audio_index=all is specified for producer avformat it do not
 update samplerate. as result playback 44100 audio track is going faster and
 audio resampler do not activated.

 attached patch should fix this behavior

 This change contradicts the determination of frequency that appears
 earlier in the function:

 if ( self-audio_index == INT_MAX )
 ...
  *frequency = FFMAX( self-max_frequency, *frequency );

 Elsewhere, self-max_frequency is set to the highest sample rate while
 enumerating audio tracks. Perhaps the more correct change is to change
 that line to simply:
 *frequency = self-max_frequency;

 Can you test how that change works for you?

it works


-- 

Maksym Veremeyenko

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel


Re: [Mlt-devel] Delete segments from input video file, output to another file

2013-07-23 Thread Carl Karsten
On Tue, Jul 23, 2013 at 9:59 AM, James Board jpboa...@yahoo.com wrote:
 Anyway, what is 'shotcut'?

http://www.shotcut.org/

There is also

http://www.openshotvideo.com/

-- 
Carl K

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel


Re: [Mlt-devel] Delete segments from input video file, output to another file

2013-07-23 Thread Brian Matherly
 I'm a new melt user.  I want to do something simple.  I'd like to take

 an existing avi file (in a raw format: no inter-frame compression like
 mpeg) and delete some segments.  I tried a simple command like this

     melt InFile.avi in=80 out=120 -consumer avformat:OutFile.avi

 My intent was that only frames 80 to 120 will be in the output
 file OutFile.avi.  But when I view OutFile.avi, all frames are the same
 as frame 80 in the input file.  So this did not
work.

 How can I correctly use melt to delete segments from an AVI file?

That is correct, but probably your AVI is not seekable or readable by
libavformat or MLT, or the particular version of libavformat your MLT
build is using requires some more avformat encoding parameters to be
set. I suggest that you use Shotcut to get acquainted with MLT and try
some things out. Look at the XML it generates. See if it can play and
seek on the file you are trying to read.

Thanks for your help.  The AVI file was generated by mencoder, so if
melt uses the same libraries that mencoder uses, then it should be
readable?  DOes that make sense?  Anyway, what is 'shotcut'? 
Did you mean 'shortcut'?  I searched on the MLT documentation 
page http://www.mltframework.org/bin/view/MLT/Documentation
for either and it didn't find anything. 
Thanks.


Shotcut is essentially a GUI wrapper around the MLT library. I think the reason 
that Dan suggested that you look at it is because sometimes it can be easier to 
discover things by visual inspection and clicking around until you achieve 
your desired result.

Another thing you can try is to use melt without specifying the consumer. If 
you do that, melt automatically selects the SDL consumer and the result is 
displayed on your screen. This way you can immediately see the result without 
opening the file in an player each time.

mencoder and mlt both use libavcodec under the hood to provide codec support. 
Just because libavcodec can encode a particular codec does not necessarily mean 
it can decode it. You would have to check the codec support for the particular 
codec you are using. As an experiment, it would be interesting to use a more 
common codec to see if you can achieve the desired result. For example, use 
mencoder to encode the video as mpeg2 and see if it works with melt the way you 
want.


~BM


--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel


Re: [Mlt-devel] Delete segments from input video file, output to another file

2013-07-23 Thread Brian Matherly
I

tried about 10 different video formats and could not get melt to
work correctly with any of them.  When I try to extract my video segment
melt doesn't print any errors, and when I try to play the extracted
segment, it shows the first image in the segment, which is the
proper image.  So, I think melt must understand that format.  But
the problem is that all of the extracted frames are the same as that
first frame.


does melt play the file correctly if you don't try to extract a segment? Try:
# melt inputfile.AVI
It should play correctly.


Many of the input formats I tried  were raw formats were each frame was
stored whole and the pixels were in a YUV or RGB format.  I was
thinking that would be the lowest common denominator and should
work with anything.  I also tried mpeg2 formats as well.


The raw formats can be tricky because sometimes, depending on the container, 
you have to specify the pixel format as a command line parameter. That's why I 
suggested mpeg2.


If I try to play the file to the screen without specifying a consumer,
melt usually displays a single image, then no other.  However, in the
xterm where I ran melt, it displays successive frame numbers as
if
everything is playing normally.


Sanity check: Does your file play properly with mplayer, vlc and ffplay?


If you can provide a simple ffmpeg command to convert my video
to a format that melt supports, please send it to me.  Or, if you can
let me know which format melt supports, that would be good.


I would expect this to work:

# ffmpeg -i inputfile test.mpg
# mlt test.mpg


I'd rather not spend however much time building a complex
GUI based on MLT if MLT doesn't support any of the formats
that my video is in.


There are precompiled binarys for all major platforms available here (look at 
the downloads section on the right):
http://www.shotcut.org/


~BM

--
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
___
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel