20:27
I'm trying to concatenate two mp4 files using ffmpeg. I need this to be an automatic process hence why I chose ffmpeg. I'm converting the two files into .ts files and then concatenating them and then trying to encode that concatenated .ts file. The files are h264 and aac encoded and I'm hoping to keep the quality the same or as close to original as possible.
ffmpeg -i part1.mp4 -vcodec copy -vbsf h264_mp4toannexb -acodec copy part1.ts
ffmpeg -i part2.mp4 -vcodec copy -vbsf h264_mp4toannexb -acodec copy part2.ts
cat part1.ts part2.ts > parts.ts
ffmpeg -y -i (...)
20:27
So im trying to make a simple discord music bot, which is halted right now due to this problem. The issue is that everytime i try to play a music through youtube_dl library, it pops up with the prompt: "ffmpeg was not found".
This is the main.py
import discord
import os
import asyncio
import youtube_dl
import ffmpeg
token = 'NzY5NTUzNDcwNjAwMTE4Mjgz.G3Dzce.XYKNAyLfBPg0ug5XPKssV-9EvsFjBlCMeM43ag'
client = discord.Client()
block_words = ['foo', 'bar', 'baz', 'quux', (...)
15:55
I'm using my desktop computer to listen music either from my local collection or from my favorite radio using an mp3/128 kbps stream. Unfortunately every break in streaming (interrupting bored discussions or annoying music tracks) result in being bored with 20 to 30 seconds of ads. That's why i want to use a simple streaming server the keeps the connection to the radio station open at any time to avoid this.
First I've tried to install a script for a VLC streaming server which is started as systemd service, works fine so far, but the id3 (mp3 meta information like (...)
12:04
When I try to compile FFmpeg to WebAssebly I got wasm-ld-13: error: unknown file type: demux.o, I configure and install FFmpeg (ffmpeg-8.0) using:
emconfigure ./configure \\
--prefix=$(pwd)/installed \\
--enable-cross-compile \\
--target-os=none \\
--arch=x86 \\
--cpu=generic \\
--disable-x86asm \\
--disable-inline-asm \\
--disable-programs \\
--disable-doc \\
--disable-debug \\
--disable-network \\
--disable-autodetect
emmake make -j$(nproc)
emmake make install
And I compile my c++ code (...)
09:15
I've been using this command to convert my public rtmp audio/video stream to a local mp3 audio icecast2 stream, but I have been unable to do the same for both video and audio.
[Audio Only] (This works fine)
ffmpeg -re -i rtmp://162.142.xx.xxx:xxx/stream -vn -codec:a libmp3lame -b:a 128k -f mp3 -content_type audio/mpeg icecast://source:passwordⓐ192.168.1.xxx:80/live
I've tried to re-write in order to support video, but I keep hitting dead ends
[Audio & Video Attempt] (this does not work)
ffmpeg -re -i rtmp://162.142.xx.xxx:xxx/stream -codec:v -f mpeg4 (...)