Comments (6)
Hi Leandro,
I think you have updated your code for FFmpeg version 4, which doesn't require av_register_all(). Unfortunately, I'm using 3.4.4 and I have added av_register_all() before av format context creation and it's working fine now.
Really appreciate your effort for making this tutorial.
from ffmpeg-libav-tutorial.
Finally I found the reason. mp4 file did't exit with docker image. There is a local mapping of file path .
can execute the script
wget -O bunny_1080p_60fps.mp4 http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_normal.mp4
ffmpeg -y -i bunny_1080p_60fps.mp4 -ss 00:01:24 -t 00:00:10 small_bunny_1080p_60fps.mp4
then make run_hello
It's work at last
from ffmpeg-libav-tutorial.
are you using the dockerized version ? if you try with make run_hello
does it work?
from ffmpeg-libav-tutorial.
@leandromoreira I am using the dockerized version. but I have the same error.Could you give me any advice? thx
docker run -w /files --rm -it -v `pwd`:/files leandromoreira/ffmpeg-devel \
gcc -L/opt/ffmpeg/lib -I/opt/ffmpeg/include/ /files/0_hello_world.c \
-lavcodec -lavformat -lavfilter -lavdevice -lswresample -lswscale -lavutil \
-o /files/build/hello
docker run -w /files --rm -it -v `pwd`:/files leandromoreira/ffmpeg-devel /files/build/hello /files/small_bunny_1080p_60fps.mp4
LOG: initializing all the containers, codecs and protocols.
LOG: opening the input file (/files/small_bunny_1080p_60fps.mp4) and loading format (container) header
LOG: ERROR could not open the file
make: *** [run_hello] Error 255
from ffmpeg-libav-tutorial.
Como posso abrir um arquivo local ao invés de usar docker?
from ffmpeg-libav-tutorial.
@hanrell mesmo usando docker você pode usar um arquivo local e mapea-lo pro docker (veja o makefile), o uso do docker é pra facilitar o desenvolvimento visto a necessidade de se ter as libs mas você pode rodar localmente dá uma olhada no makefile, ficará mais claro.
from ffmpeg-libav-tutorial.
Related Issues (20)
- Cannot build Docker image HOT 2
- How to work with rgb values instead of grayscale
- Fix no PTS and delay for realtime streaming
- Misleading tutorial example HOT 3
- Read mp4 DASH from server, decode 16 channel AAC and send to buffer
- A simple question unrelated to this nice tutorial HOT 2
- Unknown decoder 'libx264' HOT 2
- deleted
- 1Gbps means 1 billion bits HOT 1
- fatal error: libavcodec/avcodec.h: No such file or directory HOT 1
- "COM must not be in STA mode\n" HOT 3
- "Broken pipe" on av_interleaved_write_frame when used to stream HOT 2
- ffmpeg
- error in transcoding audio from mp3 to aac HOT 2
- some warnings in 0_hello_world.c
- There is not function named "av_mallocz_array" in the recent ffmpeg library
- avformat_close_input() vs avformat_free_context()
- Compiling on Windows with GCC HOT 1
- define pCodec
- Getting error when running. (Close to the end of the 0-hello-world) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffmpeg-libav-tutorial.