Difference between revisions of "Video Processing Tools"
From NMSL
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
== FFprobe SVN r92 == | == FFprobe SVN r92 == | ||
+ | |||
+ | *Check out the code | ||
+ | <code><pre> | ||
+ | svn co https://ffprobe.svn.sourceforge.net/svnroot/ffprobe/trunk/ | ||
+ | </pre></code> | ||
+ | * build and install FFprobe | ||
+ | <code><pre> | ||
+ | make | ||
+ | sudo make install | ||
+ | </pre></code> | ||
+ | *use FFprobe to get information about the streams. The command below will show the frame type and its order in the stream | ||
+ | <code><pre> | ||
+ | ffprobe -show_frames -pretty /home/rch3/Videos/BG_11369.mpg | grep 'pict_type\|coded_picture_number' | ||
+ | </pre></code> | ||
== I-Frame Extractor == | == I-Frame Extractor == | ||
− | *You will need these | + | *You will need these FFmpeg static libraries: |
**[https://cs-nsl-svn.cs.surrey.sfu.ca/cssvn/nsl-members/harvey/thesis/VideoCopyDetection/ffmpeg_static_libraries/libavformat.a libavformat.a] | **[https://cs-nsl-svn.cs.surrey.sfu.ca/cssvn/nsl-members/harvey/thesis/VideoCopyDetection/ffmpeg_static_libraries/libavformat.a libavformat.a] | ||
− | |||
**[https://cs-nsl-svn.cs.surrey.sfu.ca/cssvn/nsl-members/harvey/thesis/VideoCopyDetection/ffmpeg_static_libraries/libavdevice.a libavdevice.a] | **[https://cs-nsl-svn.cs.surrey.sfu.ca/cssvn/nsl-members/harvey/thesis/VideoCopyDetection/ffmpeg_static_libraries/libavdevice.a libavdevice.a] | ||
− | |||
**[https://cs-nsl-svn.cs.surrey.sfu.ca/cssvn/nsl-members/harvey/thesis/VideoCopyDetection/ffmpeg_static_libraries/libavcodec.a libavcodec.a] | **[https://cs-nsl-svn.cs.surrey.sfu.ca/cssvn/nsl-members/harvey/thesis/VideoCopyDetection/ffmpeg_static_libraries/libavcodec.a libavcodec.a] | ||
− | |||
**[https://cs-nsl-svn.cs.surrey.sfu.ca/cssvn/nsl-members/harvey/thesis/VideoCopyDetection/ffmpeg_static_libraries/libswscale.a libswscale.a] | **[https://cs-nsl-svn.cs.surrey.sfu.ca/cssvn/nsl-members/harvey/thesis/VideoCopyDetection/ffmpeg_static_libraries/libswscale.a libswscale.a] | ||
− | |||
**[https://cs-nsl-svn.cs.surrey.sfu.ca/cssvn/nsl-members/harvey/thesis/VideoCopyDetection/ffmpeg_static_libraries/libavutil.a libavutil.a] | **[https://cs-nsl-svn.cs.surrey.sfu.ca/cssvn/nsl-members/harvey/thesis/VideoCopyDetection/ffmpeg_static_libraries/libavutil.a libavutil.a] | ||
− | + | * Here is the source code: [https://cs-nsl-svn.cs.surrey.sfu.ca/cssvn/nsl-members/harvey/thesis/VideoCopyDetection/Source%20Code/I-FrameExtractor.c I-FrameExtractor.c] | |
− | * [https://cs-nsl-svn.cs.surrey.sfu.ca/cssvn/nsl-members/harvey/thesis/VideoCopyDetection/Source%20Code/ | ||
*Compile: | *Compile: | ||
<code><pre> | <code><pre> | ||
− | gcc -o extractor I-FrameExtractor.c | + | gcc -o extractor I-FrameExtractor.c path_to_library_folder/libavformat.a path_to_library_folder/libavdevice.a path_to_library_folder/libavcodec.a path_to_library_folder/libswscale.a path_to_library_folder/libavutil.a -lm -lpthread -lfaac -lz -lmp3lame -lopencore-amrnb -lopencore-amrwb -lvorbis -lvpx -lx264 -ltheoradec -ltheoraenc -lvorbisenc -lxvidcore -lbz2 -lasound -ljack -lgdk-x11-2.0 -w |
</pre></code> | </pre></code> |
Latest revision as of 18:25, 8 March 2011
FFmpeg
FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec - the leading audio/video codec library
FFprobe SVN r92
- Check out the code
svn co https://ffprobe.svn.sourceforge.net/svnroot/ffprobe/trunk/
- build and install FFprobe
make
sudo make install
- use FFprobe to get information about the streams. The command below will show the frame type and its order in the stream
ffprobe -show_frames -pretty /home/rch3/Videos/BG_11369.mpg | grep 'pict_type\|coded_picture_number'
I-Frame Extractor
- You will need these FFmpeg static libraries:
- Here is the source code: I-FrameExtractor.c
- Compile:
gcc -o extractor I-FrameExtractor.c path_to_library_folder/libavformat.a path_to_library_folder/libavdevice.a path_to_library_folder/libavcodec.a path_to_library_folder/libswscale.a path_to_library_folder/libavutil.a -lm -lpthread -lfaac -lz -lmp3lame -lopencore-amrnb -lopencore-amrwb -lvorbis -lvpx -lx264 -ltheoradec -ltheoraenc -lvorbisenc -lxvidcore -lbz2 -lasound -ljack -lgdk-x11-2.0 -w