Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:
project-root/
├── cmd/
│ ├── your-app-name/
│ │ ├── main.go # Application entry point
│ │ └── ... # Other application-specific filesTo convert audio mp3 to MP4 by ffmpeg, use the following command
ffmpeg -f lavfi -i color=c=black:s=1280x720:r=5 -i audio.mp3 -crf 0 -c:a copy -shortest output.mp4
This generates mp4 formatted video with blank black background with the color source filter instead of using an image.
Since it is just black video this is one case with lossless mode (-crf 0) will have a smaller file size than the default lossy mode.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "HMyClass.h" | |
| #include <stdio.h> | |
| void my_eh( const char * error_message, void * unused) | |
| { | |
| printf("my_eh: %s\n", error_message); | |
| } | |
| int main() | |
| { |