Skip to content

Commit

Permalink
Rework ffprobe into simple_ffprobe
Browse files Browse the repository at this point in the history
- Simplify ffprobe logic into a simple program that gather and print a media file metadata
  • Loading branch information
HeavenVolkoff committed Apr 5, 2024
1 parent 462e8ee commit efe2b47
Show file tree
Hide file tree
Showing 8 changed files with 344 additions and 6,447 deletions.
2 changes: 1 addition & 1 deletion crates/ffmpeg/fftools/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ dkms.conf

# End of https://www.toptal.com/developers/gitignore/api/c

ffprobe
simple_ffprobe
20 changes: 7 additions & 13 deletions crates/ffmpeg/fftools/Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
# Makefile for compiling ffprobe
# Makefile for compiling simple_ffprobe
TARGET = simple_ffprobe
SRCS = $(TARGET).c
OBJS = $(SRCS:.c=.o)

# Compiler and flags
# Compiler flags
CC = clang
CFLAGS = -std=c17 -Wall -I../../../apps/.deps/include

# Source files
SRCS = cmdutils.c opt_common.c ffprobe.c

# Object files
OBJS = $(SRCS:.c=.o)

# Output binary
TARGET = ffprobe

# Linker flags for system libraries
LDFLAGS = -L../../../apps/.deps/libs -lm -lswresample -lavformat -lavutil -lswscale -lavcodec -lavfilter -lavdevice
# Linker flags
LDFLAGS = -L../../../apps/.deps/libs -lm -lavformat -lavutil -lavcodec

all: $(TARGET)

Expand Down
Loading

0 comments on commit efe2b47

Please sign in to comment.