Re: [Libav-user] Why video plays faster after conversion in spite of same FPS?

2012-06-21 Thread amir . rouhi
For playback i use ffplay or SMplayer, both shows the same, a faster playing video. The encoding command is as bellow: ffmpeg -i C:\r.mp4 -an -vcodec libx264 -threads 0 -f h264 -g 0 C:\r.264 On 21 June 2012 20:22, Alex Cohn alexc...@netvision.net.il wrote: On Thu, Jun 21, 2012 at 4:32 AM,

[Libav-user] How to create a video stream without IDR slices?

2012-06-19 Thread amir . rouhi
Hi I have a TRECVID database of short videos. I want to convert all of the videos to H.264 AVC format with: 1- Not any IDR slices. 2- 1 second interval between I slices. Would you let me know how can i achieve this by FFMPEG? Amir ___ Libav-user mailing

Re: [Libav-user] How to create a video stream without IDR slices?

2012-06-19 Thread amir . rouhi
i have written a code for intra frame extraction out of stream, and the code just work on i slices, IDR slices made some errors with my code. BTW ffmpeg by proper vcodec can encode h264.avc. are you sure it cant? I will check intra-refresh for that purpose. thanks. On 19 June 2012 17:14, Carl

Re: [Libav-user] How to create a video stream without IDR slices?

2012-06-19 Thread amir . rouhi
what about fixed rate i-frame interval? do you have any idea? for example i want to generate a stream with one i-frame in every 1 second. I have not worked with x264. can you give me more info about how to use it? or whats the difference of x264 and FFmpeg for converting a video to h.264 avc?

Re: [Libav-user] ffmpeg and JM I_Frame nonconformity

2012-05-24 Thread amir . rouhi
Oh, Thanks Alex, In the FFMPEG DOCUMENTATION says the format of usage should be: ‘-force_key_frames[:stream_specifier] time[,time...] (*output,per-stream*) so for example i should write: ffmpeg -f image2 -r 0.1 -i C:\test%1d.bmp -an -vcodec libx264 -threads 0 -f h264 -r 0.5 -force_key_frames

[Libav-user] ffmpeg and JM I_Frame nonconformity

2012-05-22 Thread amir . rouhi
I have noticed that the I-Frames in a pure h264 video created by ffmpeg is not same as what JM detect as I-Frame in the same video. In JM software s_type=2 means I_Frame. the number of s_types frames are always lower than what ffmpeg shows. What is your advice? Amir

[Libav-user] Double frame rate after conversion

2012-05-16 Thread amir . rouhi
Hi I convert a mpeg1 video mpeg4/ AVC by the below command but i dont know why the visual frame rate become double after conversion (fps in both are same but tbr will be twice as the original video) ffmpeg -i C:\Video\TrecVid-Video\2\1.mpg -r 25 -an -vcodec libx264 -threads 0 -f h264 -r 25 -g 0

Re: [Libav-user] Double frame rate after conversion

2012-05-16 Thread amir . rouhi
Knowing that what is tbr exactly, can not solve the problem. the frame rate are same technically, when you compare the information by ffmpeg. The fact is that the transformed video, after using vcodec libx264, is twice faster as the original video. when i compare the information of bot video i

Re: [Libav-user] Double frame rate after conversion

2012-05-16 Thread amir . rouhi
I usually use SMPlayer, but even ffplay shows the same behavior (the speed is twice so the time length is half). my version of VLC can not play .264 files, may be i need to install a patch or upgrade it. On 17 May 2012 04:38, Alex Cohn alexc...@netvision.net.il wrote: On May 16, 2012 1:45 PM,

Re: [Libav-user] Extracted I-Frames seems not correct, Why?

2012-05-16 Thread amir . rouhi
I am confusing guys, i encountered a new problem in regard with adaptive and fixed rate I-Frames by ffmpeg under windows. it is as below: first i convert the original video (mpeg1) to the pure h.264 format by below command for adaptive I-Frame rate: ffmpeg -i C:\1.mpg -r 25 -an -vcodec libx264

Re: [Libav-user] Extracted I-Frames seems not correct, Why?

2012-05-16 Thread amir . rouhi
OMG, when i check the I-Frames by JM software, that software shows only 3 I-Frames. how this is possible? please help me to understand where is my problem? On 17 May 2012 12:05, amir.ro...@rmit.edu.au wrote: I am confusing guys, i encountered a new problem in regard with adaptive and fixed

Re: [Libav-user] Extracted I-Frames seems not correct, Why?

2012-05-15 Thread amir . rouhi
Hi Carl I dont want to report a bug, i just want to know where is my problem? and by the wayif i should not top-post here, then how can i explain my problem to you experts? Thanks On 15 May 2012 15:46, Carl Eugen Hoyos ceho...@ag.or.at wrote: amir.rouhi@... writes: Would you explain how can

[Libav-user] Extracted I-Frames seems not correct, Why?

2012-05-10 Thread amir . rouhi
Hi to ffmpeg seniors and experts I am using windows platform and I have created a series of video in pure format of *.264 from raw format by the below command: ffmpeg -f rawvideo -pix_fmt yuv420p -s 360x240 -i C:\1.yuv -an -vcodec libx264 -threads 0 -s 360x240 -f h264 C:\1.264 I want to extract

[Libav-user] 4x4 Intra Prediction modes

2012-03-27 Thread amir . rouhi
I am looking a way to heap up all the 4x4 intra prediction modes of a video stream in a separate file. I could do this in JM software just by adding some fprintf function in the proper place of the code. but i am interested to implement it in FFMPEG. Do you have any idea for this?

Re: [Libav-user] Enquiry about I-Frame rate

2012-03-07 Thread amir . rouhi
Is there anyone to be able to answer my question? On 15 February 2012 16:43, amir.ro...@rmit.edu.au wrote: The scenario is that, I have an .mpg video file. When I extract the I-Frames from this file by below command: ffmpeg -i D:\test\1.mpg -vsync 0 -vf select=eq(pict_type\, PICT_TYPE_I)

[Libav-user] A very general question

2012-02-23 Thread amir . rouhi
When somebody ask a question and don't receive any response...what does it mean? ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

Re: [Libav-user] A very general question

2012-02-23 Thread amir . rouhi
Whats is that? C-C-C-C-COMBO BREAKER i have no idea toward this On 24 February 2012 12:15, Peter Enerccio enerc...@gmail.com wrote: C-C-C-C-COMBO BREAKER 2012/2/24 amir.ro...@rmit.edu.au When somebody ask a question and don't receive any response...what does it mean?

[Libav-user] Need your advice in video format conversion by ffmpeg

2012-02-19 Thread amir . rouhi
I want to know that the below command convert the input .mpg format video to a pure h264 (MPEG4/AVC) with non-static I-Frame rate? ffmpeg -i D:\test\1.mpg -vcodec libx264 -g 0 d:\Test\1new.mp4 as can be seen i used -vcodec libx264 for h264 format and -g 0 for non static I-Frame rate. is that

[Libav-user] How to convert a video format to h264 MPEG4/AVC with non-static I-Frame Rate?

2012-02-15 Thread amir . rouhi
I want to know that the below command convert the input .mpg format video to a pure h264 (MPEG4/AVC) with non-static I-Frame rate? ffmpeg -i D:\test\1.mpg -vcodec libx264 -g 0 d:\Test\1new.mp4 as can be seen i used -vcodec libx264 for h264 format and -g 0 for non static I-Frame rate. is that

Re: [Libav-user] Whats wrong with this select filter?

2012-02-14 Thread amir . rouhi
In windows the problem is still as before which is very wired. i checked bellow command with different combination of single quote and double quote, but always errors were there: ffmpeg -i D:\test\1.mpg -vf select='eq(pict_type\,I)' -f image2 d:\Test\IFrames\I-Frm-%03d.jpeg The problem is

Re: [Libav-user] Whats wrong with this select filter?

2012-02-13 Thread amir . rouhi
When i removed the single quotes and put double quotes instead, i get bellow errors. BTW i am using FFMPEG on windows with win xp platform. does it make any causes for such errors? ffmpeg -i D:\test\1.mpg -vf select=eq(pict_type\,I) -f image2 d:\Test\IFrames\I-Frm-%03d.jpeg [select @ 01E5F940]

[Libav-user] Can ffmpeg extract I-Frames from a video stream?

2012-02-09 Thread amir . rouhi
I know that ffmpeg is enable to extract images at any desired time interval from a video stream. i.e the below command: ffmpeg -i test.avi -r 1 -s WxH -f image2 test-%03d.jpeg extract 1 second image interval from test.avi. But i dont know how to change this command to extract just I-Frames from

[Libav-user] Do You know how can i access the intra prediction codes in the compressed file?

2011-12-06 Thread amir . rouhi
Hi Guys I want to count the different intra prediction codes (9 modes) of I-Frames in the compressed file of any AVC MPEG-4 video. Do you have any idea to help me how can i pars them? Thanks for your guidance Amir ___ Libav-user mailing list

[Libav-user] Which function does Intra frame prediction

2011-09-18 Thread amir . rouhi
Would you please help me to find below questions? 1-Which ffmpeg function does intra frame prediction? 2-how can i use this function in my C program in windows? Thanks Amir ___ Libav-user mailing list Libav-user@ffmpeg.org

[Libav-user] How to decode Bitstream in H.264?

2011-09-12 Thread amir . rouhi
Is there anybody to help me in decoding the Intra Frame Prediction modes in I-Frames? I have studied the H.264 reference standard (chapter 9) but still unable to extract the intra frame prediction modes(0 to 8 for 4x4 blocks or 0 to 3 for 16x16 blocks). I know they stored in Golomb code format. Do

[Libav-user] What does it mean: max_analyse_duration 5000000 reached at 5005000

2011-08-07 Thread amir . rouhi
Hi When i want to use ffmpeg for extracting raw images from some video stream with 1 second iterval i use the below command: d:\\ffmpeg -i D:\\myvideo1.mp4 -r 1 -f image2 -s 80x60 -pix_fmt yuv420p d:\\myVideoImages\\myvideoImg-%03d.y i use above command line in my c program by system() function. I

Re: [Libav-user] 转发: ask for help

2011-07-07 Thread Amir Rouhi-Rmit
Please let me know which compiler do u use? On Wed, Jul 6, 2011 at 10:58 AM, 勃 王 wb4...@yahoo.com.cn wrote: Hello, I'm a new user of FFMPEG. It's a such strong program. When I use it, I meet a problem. I want to create a file with H264(video encoder) and MP3(audio encoder) using C

Re: [Libav-user] How can i get just basic info from an input video file by ffmpeg?

2011-07-06 Thread Amir Rouhi-Rmit
at 11:15 PM, Amir Rouhi-Rmit amir.ro...@rmit.edu.au wrote: Please help me, I use DEV c++ compiler in windows platform. I build a project in this compiler and add utils.c (with al its headers and functions) to the project, but when i want to compile the program, it does not recognise all

Re: [Libav-user] How can i get just basic info from an input video file by ffmpeg?

2011-07-06 Thread Amir Rouhi-Rmit
dont use any ffmpeg functions directly in my code, i just call the ffmpeg.exe with my desired switches. On Wed, Jul 6, 2011 at 4:38 PM, Matthew Einhorn moiein2...@gmail.comwrote: On Wed, Jul 6, 2011 at 2:16 AM, Amir Rouhi-Rmit amir.ro...@rmit.edu.au wrote: I am using DEV C++ developer under

Re: [Libav-user] How can i get just basic info from an input video file by ffmpeg?

2011-07-06 Thread Amir Rouhi-Rmit
that depend on those libraries for each program. . Do i have to use 32 bit build(shared) then? Or i should use static one? On Wed, Jul 6, 2011 at 4:38 PM, Matthew Einhorn moiein2...@gmail.comwrote: On Wed, Jul 6, 2011 at 2:16 AM, Amir Rouhi-Rmit amir.ro...@rmit.edu.au wrote: I am using DEV C

Re: [Libav-user] How can i get just basic info from an input video file by ffmpeg?

2011-07-06 Thread Amir Rouhi-Rmit
? and then add appropriate header in my C codes and then call functions? is that correct? Thanks On Wed, Jul 6, 2011 at 4:38 PM, Matthew Einhorn moiein2...@gmail.comwrote: On Wed, Jul 6, 2011 at 2:16 AM, Amir Rouhi-Rmit amir.ro...@rmit.edu.au wrote: I am using DEV C++ developer under windows. Here i

Re: [Libav-user] How can i get just basic info from an input video file by ffmpeg?

2011-07-05 Thread Amir Rouhi-Rmit
there are some functions that can do this for me too) On Tue, Jul 5, 2011 at 3:25 PM, Clément Bœsch ubi...@gmail.com wrote: On Tue, Jul 05, 2011 at 02:13:14PM +1000, Amir Rouhi-Rmit wrote: Hellow everybody How can i get the basic info of any video file which i need by ffmpeg? the information i need

Re: [Libav-user] How can i get just basic info from an input video file by ffmpeg?

2011-07-05 Thread Amir Rouhi-Rmit
. It seems that i have a problem in including new library files or in linking. Even i add the libavecodec path for new header files location but still does not recognise them. On Tue, Jul 5, 2011 at 4:37 PM, Clément Bœsch ubi...@gmail.com wrote: On Tue, Jul 05, 2011 at 04:27:16PM +1000, Amir Rouhi-Rmit

Re: [Libav-user] How can i extract Y plane from any frame in video

2011-07-04 Thread Amir Rouhi-Rmit
ffmpeg -codecs does not work on ffmpeg in windows. BTW whats the difference between yuv420 and yuvj420P among different vcodec? On Sat, Jul 2, 2011 at 11:45 PM, Alex Cohn alexc...@netvision.net.ilwrote: On Wednesday, June 29, 2011, Amir Rouhi-Rmit amir.ro...@rmit.edu.au wrote: For generating

[Libav-user] How to change bit depth in -pix_fmt?

2011-07-04 Thread Amir Rouhi-Rmit
Hi everybody I know that i can use -pix_fmt for desire pixel format in output. When i list the different switches for this parameter i can see many formats such as yuv420p and yuvj420p. First i would be pleased if somebody explain whats the difference between these two format? secondly how can i

[Libav-user] How can i get just basic info from an input video file by ffmpeg?

2011-07-04 Thread Amir Rouhi-Rmit
Hellow everybody How can i get the basic info of any video file which i need by ffmpeg? the information i need i just frame size and length of video. using below command seems not standard: ffmpeg -i path of input video BTW is there any function in ffmpeg to call it in my c program to get my

Re: [Libav-user] How to use ffmpeg functions in c

2011-06-30 Thread Amir Rouhi-Rmit
, Saurabh Gandhi saurabh...@gmail.comwrote: OpenCV provides wrappers to FFMPEG API. You can use that: opencv.willowgarage.com -- Regards, Saurabh Gandhi On Thu, Jun 30, 2011 at 8:30 AM, Amir Rouhi-Rmit amir.ro...@rmit.edu.auwrote: Hi I need your experience regarding FFMPEG . I want

Re: [Libav-user] How can i extract Y plane from any frame in video

2011-06-27 Thread Amir Rouhi-Rmit
The problem still exist in opening YUV generated files. All i do is as below please follow and inform me why i cant view the yuv files. 1- i convert a video to yuv images (1 image per second) as below: ffmpeg -i c:\test\animals.wmv -r 1 -f image2 -s 320x240 -pix_fmt yuvj420p c:\test\Img-%03d.yuv

Re: [Libav-user] How can i extract Y plane from any frame in video

2011-06-26 Thread Amir Rouhi-Rmit
will be half-width and half-height. Maybe you should post to ffmpeg-user? Sincerely, Alex On Friday, June 17, 2011, Amir Rouhi-Rmit amir.ro...@rmit.edu.au wrote: Thanks alot, The Y plane is quite satisfactory. but for Cb and Cr planes separately in different images cant i use: ffmpeg -i

[Libav-user] How can i extract Y plane from any frame in video

2011-06-16 Thread Amir Rouhi-Rmit
I know that i can extract images of a video by ffmpeg as can be seen in below command: ffmpeg -i input.avi -r 1 -s WxH -f image2 Img-%03d.jpeg But what i want is a separated Y plane and cb and cr plane. can i i achieve this by ffmpeg? if yes pleas let me now how and if no do you suggest any idea?

Re: [Libav-user] How can i extract Y plane from any frame in video

2011-06-16 Thread Amir Rouhi-Rmit
:41 PM, Alex Cohn alexc...@netvision.net.ilwrote: You can use ffmpeg -i input.avi -r 1 -s WxH -pix_fmt yuvj420p Img-%03d.yuv to produce YCbCr files. Or -pix_fmt gray if you want the Y plane only. Enjoy, Alex On Thu, Jun 16, 2011 at 09:02, Amir Rouhi-Rmit amir.ro...@rmit.edu.au wrote: I

[Libav-user] How? Accessing Intra Frame Prediction In Compressed h.264 file

2011-06-16 Thread Amir Rouhi-Rmit
Is there anybody to give me advice regarding how can i extract intra frame prediction modes from compressed h.264 file? my mean is the 9 mode of 4x4 blocks and 4 mode of 16x16 blocks. I know they are stored in golomb code. The I-Frame header and prefix is 0x 00 00 01 65 and after this bitstream

Re: [Libav-user] How can we extract frames from a video stream in MPEG-4 AVC format

2011-04-07 Thread Amir Rouhi-Rmit
at 7:26 PM, Amir Rouhi-Rmit amir.ro...@rmit.edu.auwrote: Hi Grzegorz Thanks for introducing the useful links, it takes a little time to see weather it useful for my purpose (extracting frames) or not. regarding using sws_scale, i just wanted to know does it convert the MPEG-4 format to raw

Re: [Libav-user] How can we extract frames from a video stream in MPEG-4 AVC format

2011-04-07 Thread Amir Rouhi-Rmit
Hi Carson My goal is extracting Frames from MPEG-4 AVC video in form of I-Frames. To achieving my goal, I currently uses JM software ( Opensource MPEG-4 AVC software from ITU-T). This software input is raw video format in YUV or RGB. That’s why I need this type of video. When I input a raw

Re: [Libav-user] How can we extract frames from a video stream in MPEG-4 AVC format

2011-04-07 Thread Amir Rouhi-Rmit
Hi Spencer Thanks for your nice guidance. It was usefull to get some idea, But as i am interested to work on video processing in compressed domain, accessing the i-frames should be achievable even with different speeds. I dont focous on special time of video then extract the frames. no, I just

[Libav-user] Parsing MPEG4 AVC video, Whats the hex starting bitstream of video NAL units

2011-04-07 Thread Amir Rouhi-Rmit
Hi to all Encoding and Decoding MPEG4- AVC experts I am trying to analyse MPEG4-AVC video in compressed domain by opening the video file in binary mode and read the bits inside. As you know , the structure of MPEG-4 AVC video format is based on NAL(Network Abstraction Layer) units stream which

Re: [Libav-user] How can we extract frames from a video stream in MPEG-4 AVC format

2011-04-06 Thread Amir Rouhi-Rmit
There are also two guides that I know: http://www.inb.uni-luebeck.de/~boehme/using_libavcodec.html (very outdated) http://dranger.com/ffmpeg/tutorial01.html (little outdated) To convert AVFrame from YUV to RGB you need to use sws_scale. Regards Grzegorz Sz. 2011/4/7 Amir Rouhi-Rmit amir.ro