GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
|
#include <gpac/download.h>
#include <gpac/network.h>
#include <gpac/scene_manager.h>
#include <gpac/media_tools.h>
#include <gpac/ietf.h>
#include <gpac/ismacryp.h>
#include <gpac/constants.h>
#include <gpac/internal/mpd.h>
#include <time.h>
Data Structures | |
struct | itunes_tag |
struct | SDPLine |
struct | MetaAction |
struct | TSELAction |
struct | TrackAction |
Macros | |
#define | BUFFSIZE 8192 |
#define | BASE_PAYT 96 |
#define | CHECK_NEXT_ARG if (i+1==(u32)argc) { fprintf(stderr, "Missing arg - please check usage\n"); MP4BOX_EXIT_WITH_CODE(1); } |
#define | MP4BOX_EXIT_WITH_CODE(__ret_code) |
Enumerations | |
enum | { GF_ISOM_CONV_TYPE_ISMA = 1, GF_ISOM_CONV_TYPE_ISMA_EX, GF_ISOM_CONV_TYPE_3GPP, GF_ISOM_CONV_TYPE_IPOD, GF_ISOM_CONV_TYPE_PSP } |
Functions | |
void | convert_file_info (char *inName, u32 trackID) |
GF_Err | import_file (GF_ISOFile *dest, char *inName, u32 import_flags, Double force_fps, u32 frames_per_sample) |
GF_Err | split_isomedia_file (GF_ISOFile *mp4, Double split_dur, u32 split_size_kb, char *inName, Double interleaving_time, Double chunk_start, Bool adjust_split_end, char *outName, const char *tmpdir) |
GF_Err | cat_isomedia_file (GF_ISOFile *mp4, char *fileName, u32 import_flags, Double force_fps, u32 frames_per_sample, char *tmp_dir, Bool force_cat, Bool align_timelines, Bool allow_add_in_command) |
GF_Err | EncodeFile (char *in, GF_ISOFile *mp4, GF_SMEncodeOptions *opts, FILE *logs) |
GF_Err | EncodeFileChunk (char *chunkFile, char *bifs, char *inputContext, char *outputContext, const char *tmpdir) |
GF_ISOFile * | package_file (char *file_name, char *fcc, const char *tmpdir, Bool make_wgt) |
GF_Err | dump_cover_art (GF_ISOFile *file, char *inName) |
GF_Err | dump_chapters (GF_ISOFile *file, char *inName, Bool dump_ogg) |
u32 | id3_get_genre_tag (const char *name) |
GF_Err | dump_file_text (char *file, char *inName, u32 dump_mode, Bool do_log) |
void | dump_scene_stats (char *file, char *inName, u32 stat_level) |
void | PrintNode (const char *name, u32 graph_type) |
void | PrintBuiltInNodes (u32 graph_type) |
void | dump_isom_xml (GF_ISOFile *file, char *inName) |
void | dump_file_rtp (GF_ISOFile *file, char *inName) |
void | DumpSDP (GF_ISOFile *file, char *inName) |
void | dump_file_timestamps (GF_ISOFile *file, char *inName) |
void | dump_file_nal (GF_ISOFile *file, u32 trackID, char *inName) |
void | dump_file_ismacryp (GF_ISOFile *file, char *inName) |
void | dump_timed_text_track (GF_ISOFile *file, u32 trackID, char *inName, Bool is_convert, u32 dump_type) |
void | DumpTrackInfo (GF_ISOFile *file, u32 trackID, Bool full_dump) |
void | DumpMovieInfo (GF_ISOFile *file) |
void | PrintLanguages () |
const char * | GetLanguageCode (char *lang) |
void | dump_mpeg2_ts (char *mpeg2ts_file, char *pes_out_name, Bool prog_num) |
void | PrintStreamerUsage () |
int | stream_file_rtp (int argc, char **argv) |
int | live_session (int argc, char **argv) |
void | PrintLiveUsage () |
u32 | grab_live_m2ts (const char *grab_m2ts, const char *outName) |
int | mp4boxTerminal (int argc, char **argv) |
void | PrintVersion () |
void | PrintGeneralUsage () |
void | PrintDASHUsage () |
void | PrintFormats () |
void | PrintImportUsage () |
void | PrintEncodeUsage () |
void | PrintEncryptUsage () |
void | PrintHintUsage () |
void | PrintExtractUsage () |
void | PrintDumpUsage () |
void | PrintMetaUsage () |
void | PrintSWFUsage () |
void | PrintUsage () |
void | scene_coding_log (void *cbk, u32 log_level, u32 log_tool, const char *fmt, va_list vlist) |
void | SetupClockReferences (GF_ISOFile *file) |
GF_Err | HintFile (GF_ISOFile *file, u32 MTUSize, u32 max_ptime, u32 rtp_rate, u32 base_flags, Bool copy_data, Bool interleave, Bool regular_iod, Bool single_group) |
static void | check_media_profile (GF_ISOFile *file, u32 track) |
void | remove_systems_tracks (GF_ISOFile *file) |
u32 | get_file_type_by_ext (char *inName) |
static Bool | can_convert_to_isma (GF_ISOFile *file) |
static void | progress_quiet (const void *cbck, const char *title, u64 done, u64 total) |
static Bool | parse_meta_args (MetaAction *meta, u32 act_type, char *opts) |
static Bool | parse_tsel_args (TSELAction **__tsel_list, char *opts, u32 *nb_tsel_act) |
GF_DashSegmenterInput * | set_dash_input (GF_DashSegmenterInput *dash_inputs, char *name, u32 *nb_dash_inputs) |
static GF_Err | parse_track_action_params (char *string, TrackAction *action) |
static u32 | create_new_track_action (char *string, TrackAction **actions, u32 *nb_track_act, u32 dump_type) |
static void | on_gpac_log (void *cbk, u32 ll, u32 lm, const char *fmt, va_list list) |
int | mp4boxMain (int argc, char **argv) |
int | main (int argc, char **argv) |
Variables | |
u32 | quiet = 0 |
Bool | dvbhdemux =0 |
Bool | keep_sys_tracks = 0 |
u32 | swf_flags = 0 |
Float | swf_flatten_angle = 0 |
s32 | laser_resolution = 0 |
static const itunes_tag | itags [] |
u32 | nb_itunes_tags = sizeof(itags) / sizeof(itunes_tag) |
struct itunes_tag |
struct SDPLine |
struct MetaAction |
struct TSELAction |
struct TrackAction |
#define BUFFSIZE 8192 |
#define BASE_PAYT 96 |
#define CHECK_NEXT_ARG if (i+1==(u32)argc) { fprintf(stderr, "Missing arg - please check usage\n"); MP4BOX_EXIT_WITH_CODE(1); } |
#define MP4BOX_EXIT_WITH_CODE | ( | __ret_code | ) |
anonymous enum |
void convert_file_info | ( | char * | inName, |
u32 | trackID | ||
) |
GF_Err import_file | ( | GF_ISOFile * | dest, |
char * | inName, | ||
u32 | import_flags, | ||
Double | force_fps, | ||
u32 | frames_per_sample | ||
) |
GF_Err split_isomedia_file | ( | GF_ISOFile * | mp4, |
Double | split_dur, | ||
u32 | split_size_kb, | ||
char * | inName, | ||
Double | interleaving_time, | ||
Double | chunk_start, | ||
Bool | adjust_split_end, | ||
char * | outName, | ||
const char * | tmpdir | ||
) |
GF_Err cat_isomedia_file | ( | GF_ISOFile * | mp4, |
char * | fileName, | ||
u32 | import_flags, | ||
Double | force_fps, | ||
u32 | frames_per_sample, | ||
char * | tmp_dir, | ||
Bool | force_cat, | ||
Bool | align_timelines, | ||
Bool | allow_add_in_command | ||
) |
GF_Err EncodeFile | ( | char * | in, |
GF_ISOFile * | mp4, | ||
GF_SMEncodeOptions * | opts, | ||
FILE * | logs | ||
) |
GF_Err EncodeFileChunk | ( | char * | chunkFile, |
char * | bifs, | ||
char * | inputContext, | ||
char * | outputContext, | ||
const char * | tmpdir | ||
) |
chunkFile | BT chunk to be encoded |
bifs | output file name for the BIFS data |
inputContext | initial BT upon which the chunk is based (shall not be NULL) |
outputContext,: | file name to dump the context after applying the new chunk to the input context can be NULL, without .bt |
tmpdir | can be NULL |
GF_ISOFile* package_file | ( | char * | file_name, |
char * | fcc, | ||
const char * | tmpdir, | ||
Bool | make_wgt | ||
) |
GF_Err dump_cover_art | ( | GF_ISOFile * | file, |
char * | inName | ||
) |
u32 id3_get_genre_tag | ( | const char * | name | ) |
void dump_scene_stats | ( | char * | file, |
char * | inName, | ||
u32 | stat_level | ||
) |
void PrintNode | ( | const char * | name, |
u32 | graph_type | ||
) |
void PrintBuiltInNodes | ( | u32 | graph_type | ) |
void dump_isom_xml | ( | GF_ISOFile * | file, |
char * | inName | ||
) |
void dump_file_rtp | ( | GF_ISOFile * | file, |
char * | inName | ||
) |
void DumpSDP | ( | GF_ISOFile * | file, |
char * | inName | ||
) |
void dump_file_timestamps | ( | GF_ISOFile * | file, |
char * | inName | ||
) |
void dump_file_nal | ( | GF_ISOFile * | file, |
u32 | trackID, | ||
char * | inName | ||
) |
void dump_file_ismacryp | ( | GF_ISOFile * | file, |
char * | inName | ||
) |
void dump_timed_text_track | ( | GF_ISOFile * | file, |
u32 | trackID, | ||
char * | inName, | ||
Bool | is_convert, | ||
u32 | dump_type | ||
) |
void DumpMovieInfo | ( | GF_ISOFile * | file | ) |
void PrintLanguages | ( | ) |
const char* GetLanguageCode | ( | char * | lang | ) |
void dump_mpeg2_ts | ( | char * | mpeg2ts_file, |
char * | pes_out_name, | ||
Bool | prog_num | ||
) |
void PrintStreamerUsage | ( | ) |
int stream_file_rtp | ( | int | argc, |
char ** | argv | ||
) |
int live_session | ( | int | argc, |
char ** | argv | ||
) |
void PrintLiveUsage | ( | ) |
u32 grab_live_m2ts | ( | const char * | grab_m2ts, |
const char * | outName | ||
) |
defined(GPAC_DISABLE_STREAMING) && !defined(GPAC_DISABLE_SENG)
int mp4boxTerminal | ( | int | argc, |
char ** | argv | ||
) |
void PrintVersion | ( | ) |
void PrintGeneralUsage | ( | ) |
void PrintDASHUsage | ( | ) |
void PrintFormats | ( | ) |
void PrintImportUsage | ( | ) |
void PrintEncodeUsage | ( | ) |
void PrintEncryptUsage | ( | ) |
void PrintHintUsage | ( | ) |
void PrintExtractUsage | ( | ) |
void PrintDumpUsage | ( | ) |
void PrintMetaUsage | ( | ) |
void PrintSWFUsage | ( | ) |
void PrintUsage | ( | ) |
void SetupClockReferences | ( | GF_ISOFile * | file | ) |
GF_Err HintFile | ( | GF_ISOFile * | file, |
u32 | MTUSize, | ||
u32 | max_ptime, | ||
u32 | rtp_rate, | ||
u32 | base_flags, | ||
Bool | copy_data, | ||
Bool | interleave, | ||
Bool | regular_iod, | ||
Bool | single_group | ||
) |
|
static |
void remove_systems_tracks | ( | GF_ISOFile * | file | ) |
u32 get_file_type_by_ext | ( | char * | inName | ) |
defined(GPAC_DISABLE_ISOM_WRITE) && !defined(GPAC_DISABLE_AV_PARSERS)
|
static |
|
static |
|
static |
GF_DashSegmenterInput* set_dash_input | ( | GF_DashSegmenterInput * | dash_inputs, |
char * | name, | ||
u32 * | nb_dash_inputs | ||
) |
|
static |
|
static |
int mp4boxMain | ( | int | argc, |
char ** | argv | ||
) |
defined(GPAC_DISABLE_MEDIA_EXPORT) && !defined(GPAC_DISABLE_MEDIA_IMPORT
defined(GPAC_DISABLE_ISOM_HINTING) && !defined(GPAC_DISABLE_SENG)
int main | ( | int | argc, |
char ** | argv | ||
) |
u32 quiet = 0 |
Bool dvbhdemux =0 |
Bool keep_sys_tracks = 0 |
u32 swf_flags = 0 |
Float swf_flatten_angle = 0 |
s32 laser_resolution = 0 |
|
static |
u32 nb_itunes_tags = sizeof(itags) / sizeof(itunes_tag) |