Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpegTransocodeDemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
崔华根
ffmpegTransocodeDemo
Commits
3de6ae86
Commit
3de6ae86
authored
Jul 04, 2024
by
崔华根
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
bdfcce0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
main.cpp
main.cpp
+0
-24
No files found.
main.cpp
deleted
100644 → 0
View file @
bdfcce0d
#include <iostream>
extern
"C"
{
#include <libavformat/avformat.h>
}
#include <string>
int
main
()
{
std
::
cout
<<
"Hello, World!"
<<
std
::
endl
;
AVFormatContext
*
pFormatContext
=
avformat_alloc_context
();
std
::
string
path
=
"/Users/gengen/Downloads/material-design/m1.mp4"
;
if
(
avformat_open_input
(
&
pFormatContext
,
path
.
data
(),
NULL
,
NULL
)
!=
0
)
{
std
::
cout
<<
"open error"
<<
std
::
endl
;
return
-
1
;
// Couldn't open file
}
if
(
avformat_find_stream_info
(
pFormatContext
,
NULL
)
<
0
)
{
return
-
1
;
// Couldn't find stream information
}
av_dump_format
(
pFormatContext
,
0
,
path
.
data
(),
0
);
// avformat_close_input(&pFormatContext);
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment