Categories
User Help

Animated thumbnails for a video using FFmpeg 4.2.x

I’m looking to accomplish as described in the accepted answer of this question. However, the command above no longer works in ffmpeg version 4.2.2. I’ve updated the command to use the new format for applying multiple filters (comma separation), but getting the warning “Output file is empty, nothing was encoded” and there is no output. […]

Categories
User Help

ffmpeg take channels 7+8 and make a stereo

I have a 8 audio track mov file which I want to encode to mp4 using ffmpeg BUT take the tracks 7+8 and put them as stereo with 320k and 48KHz to that mp4. My line is this: ffmpeg -i %source% -map 0:0 -map 0:7 -map 0:8 -c:a:0 aac -ab:1 320k -ar:1 48000 -ac:1 2 […]

Categories
User Help

Ffmpeg is vertically flipping a video that doesn’t have rotate in the metadata and the ffmpeg command does not have transpose

I have a video that plays fine in Quicktime. When run through FFMPEG, ffmpeg is flipping it vertically. However, my command does not include a flip command: /usr/local/bin/ffmpeg -safe 0 -f concat -i concat.txt -i videogettingflipped.MOV -filter_complex “[1]scale=1280:-2,pad=1280:1280:0:280[1v];[1v][0]overlay=0:0 ” -aspect 1:1 -c:v libx264 -profile:v baseline -pix_fmt yuv420p -level 3.1 -map 1:a -c:a aac -b:a 128k […]

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
Linux Mastering Development Ubuntu

VLC won’t play video from /tmp directory

I have a video located at /tmp/example.mp4. When I try to play it with VLC I get the following error: Your input can’t be opened: VLC is unable to open the MRL ‘file:///tmp/example.mp4’. Check the log for details. When I check the log it contains the following error-level entry: filesystem error: cannot open file /tmp/example.mp4 […]

Categories
Mastering Development User Help

FFMPEG: Error splitting the input into NAL units / Timestamps are unset in a packet for stream 0 when changing from avi to mp4

I am trying to change the container of a video acquired from an NVR using ffmpeg, but the output video is not playable by VLC or QuickTime. The output video stays still. In detail, using the following command: ffmpeg -i input.avi -c:v copy output.mp4 I get the following error and warning messages: ffmpeg version 4.2.2 […]

Categories
Mastering Development User Help

FFMPEG keeps converting without stopping when using HStack to combine a gif with an video while also using a scale2ref filter

I am trying to combine/merge a gif/image with a video to output a video that has both in one frame. For that purpose i’m using FFMPEG on nodejs. The filter I am using is Hstack and since the content can be dynamically sized so I am resizing the gif based on the parameters of video […]

Categories
Development User Help

1 input, multiple streams, 2 outputs

I am having an issue with creating 2 outputs from the same file using filters. I have verified all filters are available on my machine. What I am trying to do is: use only 1 input split my video stream file into 2 create a 1920×1080 for 1 video stream create a 1080×1920 for 1 […]

Categories
Development User Help

Scrambled mp4 videos due to inproper use of id3v2 – how to fix?

I used id3v2 with this command for i in *.mp4; do id3v2 –artist “Artist Name” “$i”; done with the intention to populate the otherwise empty tag fields of some mp4 videos in a folder. It worked with the mp3 files but it rendered the videos unplayable. Using a simple ffmpeg -i unplayable.mp4 restored.mp4 returned [mov,mp4,m4a,3gp,3g2,mj2 […]

Categories
Development User Help

ffmpeg loudnorm filter for short media

I am trying to use ffmpeg to determine the overall media volume. I use only one pass : ffmpeg -i C:\Users\User\Desktop\test.mp4 -af loudnorm=I=-23:tp=-1:LRA=15:print_format=json -f null – Out: C:\Users\User\Desktop\ffmpeg-4.2.1-win64-static\bin>ffmpeg -i C:\Users\User\Desktop\test.mp4 -af loudnorm=I=-23:tp=-1:LRA=15:print_format=json -f null – ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 9.1.1 (GCC) 20190807 configuration: –enable-gpl –enable-version3 –enable-sdl2 –enable-fontconfig […]