Categories
User Help

Failed to open segment when utilizing m3u8 file with FFmpeg

I’m attempting to replicate the “Replay Buffer” feature of OBS, or at least something similar, with FFmpeg. It would seem segmentation and a m3u8 segment list file would be the way of getting something like this to work, but when I try to use the resulting m3u8 file in FFplay or FFmpeg it just throws […]

Categories
User Help

AC3 TrueHD/7.1 Atmos Has No Sound

My previous 7.1 question went unsolved, so I tried to map the audio streams this time. I am now getting the 5.1 at least, but the AC3 TrueHD/7.1 Atmos channel is empty. I mapped the video and two audio channels I wanted and chose to copy each of them, then I brought up the results […]

Categories
User Help

AC3 TrueHD/7.1 Atmos Has No Sound

My previous 7.1 question went unsolved, so I tried to map the audio streams this time. I am now getting the 5.1 at least, but the AC3 TrueHD/7.1 Atmos channel is empty. I mapped the video and two audio channels I wanted and chose to copy each of them, then I brought up the results […]

Categories
User Help

ffmpeg does not stram audio from rtsp to youtube

I use my Raspberry 3 to stream my rtsp camera to youtube. But I don’t have audio in the youtube stream… ffmpeg -thread_queue_size 512 -re -f lavfi -i anullsrc -rtsp_transport udp \ -thread_queue_size 512k -i rtsp://admin:@192.168.1.31:554/0/av0 \ -framerate 13 -bufsize 4096k -b:v 2000k -threads 4 \ -q:v 3 -c:v h264_omx -bf 2 -r 25 -strict […]

Categories
Mastering Development User Help

mp4 to m3u8 wrong duration

My problem is m3u8 file has wrong duration and thats video stream has no fps. final.mp4 and test.m3u8 have different duration. How can i fix it? Source file: Input #0, matroska,webm, from ‘panasonic.mkv’: Metadata: ENCODER : Lavf57.66.105 Duration: 00:00:46.12, start: 0.000000, bitrate: 4548 kb/s Stream #0:0: Video: h264 (High), yuv420p(top coded first (swapped)), 1920×1080 [SAR […]

Categories
Development User Help

Why does ffmpeg record the wrong FPS when recording an rtsp feed?

I am using a Raspberry Pi 3B+ to record video from a ActiA31 security camera (connected vie a power-over-ethernet router). The camera is set to record at 29.97 fps. The command I am using is sudo /usr/local/bin/ffmpeg -i rtsp://username:pwd@IPaddress -t 10 -vcodec copy -acodec copy outputfile.mp4 The video does record, but the metadata of the […]

Categories
Development Linux

st: 1 edit list: 1 Missing key frame while searching for timestamp: 0 from file created with ffmpeg

I have created a new mp4 file by using concat on my mp4s with this: ffmpeg -protocol_whitelist file,tcp,http,pipe -f concat -i – -c copy ${videoName%/}.mp4 I then, want to reduce the file size of the newly created file with: ffmpeg -i “$file” -s 1280×720 -c:a copy “$videoName” But I am presented with hutber@hutber:/mnt/googledrive/Winchmore Hill/1920/Week_14_6-2_W/Clips$ sd […]

Categories
Development

Dealing with problems in FLAC audio files with ffmpeg

I have gotten a set of FLAC (audio) files from a friend. I copied them to my Sonos music library, and got set to enjoy a nice album. Unfortunately, Sonos would not play the files. As a result I have been getting to know ffmpeg. Sonos’ complaint with the FLAC files was that it was […]

Categories
Development Linux

Cut dvbsub from MPEG-TS with ffmpeg

I have a bunch of MPEG-TS files, originally created by a hardware TV-recorder. ffprobe lists their content like so: Input #0, mpegts, from ‘recording.ts’: Duration: 02:14:57.67, start: 87544.254878, bitrate: 4386 kb/s Program 12003 […] Program 12060 Stream #0:0[0xa7]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720×576 [SAR 64:45 DAR 16:9], 25 fps, 25 […]

Categories
Development

PyQt-thread. Get dynamically output

I use PyQt-thread for parallel conversion of mp3 files to aac via ffmpeg. Here is my code: class SubprocessThread(QThread): signal = pyqtSignal(‘PyQt_PyObject’) def __init__(self, command, args): QThread.__init__(self) self.command = command self.args = args def __del__(self): self.wait() def run(self): output = subprocess.check_output(‘{0} {1}’.format(self.command, self.args), shell=True).split() self.signal.emit(output) And here is example of usage: threads = [] for […]