Skip to main content

New answers tagged

0 votes
Accepted

FFmpeg Could not write header (incorrect codec parameters ?): Invalid data found when processing input

Thank you for providing the source.Without, it's very likely, I couldn't have done it. Extract video: ffmpeg -i in.mkv -c copy -an -tag:v hvc1 -pix_fmt yuv420p out.ts Extract audio: ffmpeg -i in.mkv -...
JayCravens's user avatar
0 votes

Gray frames appear sometimes when chapters change in trans coding of 4k Blu-ray

I switched to using Jellyfin's version of FFmpeg
Nathan Cloutier's user avatar
0 votes

FFmpeg MP4 command not working as expected

Part of your problem is that you have your commands in the wrong order. As a starting point, you should group your options into input -> processing -> output. There are exeptions to this and as ...
PANICresponse's user avatar
0 votes

The quality and size of the frame are the same, but the weight is different

Have you tried direct stream -c copy? ffmpeg -re -f mpegts -hide_banner -y -i /144.mp4 -c copy -map v:0 -vf scale=144:-1 -map 0:a \ -init_seg_name "init-\$RepresentationID\$.\$ext\$" \ ...
JayCravens's user avatar
0 votes

ffmpeg - concatenating identical audio-only files results in "non-montonic DTS" warning

Change the container to matroska first, setting the TS to zero. for file in *.mp4; do filename="${file%.*}"; ffmpeg -i "$filename".mp4 -c copy -avoid_negative_ts make_zero "$...
JayCravens's user avatar
1 vote

How to download part of a video?

This question was asked around 7.5 years ago, but here is a solution from Unix stack exchange: Acquire the video's URL, then run this command from your command-line (terminal, cmd, etc.). Make sure ...
OverShifted's user avatar
2 votes
Accepted

The proper way to limit framerate when recording screen on macOS

From the log, it is apparent that initially not enough frames are received for ffmpeg to detect input framerate. That's ok, you can just use pass through input frames without any adjustment. ffmpeg -f ...
Gyan's user avatar
  • 37.1k
0 votes

How can I concatenate videos that don't always have audio using ffmpeg?

add silence #!/bin/bash cd /tmp if [ ! -f sample0.mp4 ]; then #create test files for i in 0 2; do ffmpeg -lavfi "testsrc2,sine=440" -t 2 "sample${i}.mp4" -v 16 ...
Баяр Гончикжапов's user avatar
0 votes
Accepted

FFMPEG segment_times arg makes command too long

You'll have to perform this task in stages. Instead of creating all segments in one command, do it piecemeal. Let's say you have 15 segment split points s1..s15. ffmpeg -copyts -i input.mkv -map 0 -c ...
Gyan's user avatar
  • 37.1k
0 votes

Can I make ffmpeg stop if integrity check encounters an error?

Neither "-err_detect explode" nor "-xerror" alone worked for me with both flags resulting in ffmpeg taking about a minute and a half to process my manually corrupted test file that ...
Eric Pruitt's user avatar
0 votes

FFmpeg -ss option and keyframes

does "seek point" means "keyframe" Generally. Some formats (like MP4) contain a list of seek points for each stream. Others dont, but ffmpeg will try to parse packet headers and ...
Gyan's user avatar
  • 37.1k
1 vote
Accepted

Ffmpeg image parameter for YouTube

The following command will produce a video output that can be uploaded to youtube. Because it is -crf 0 it is effectively lossless, and would match the quality output of a lossless PNG. ffmpeg -f ...
Sark's user avatar
  • 454
0 votes

How to download videos from Microsoft's Learn site for offline viewing

You can use this script. It downloads videos from Microsoft Learn in their original quality without re-encoding. https://github.com/loglux/LearnVideoDownloader
Simulacra's user avatar
1 vote
Accepted

How do you create an ffmpeg lossless image without re-encoding?

PNG is a lossless format, it requires no additional parameters to ensure lossless encoding. Assumed quality parameters for PNG output with other programs are simply compression settings. You can ...
Sark's user avatar
  • 454
0 votes

How can I make three 10TB external hard drives act as one 30TB hard drive?

Windows 10 and Windows 11 have a built-in feature called Storage Spaces. It is a virtual raid-like system. You plug in the drives and then add them to a pool and set up a volume on it. I think ...
Yorik's user avatar
  • 4,672
0 votes

How can I make three 10TB external hard drives act as one 30TB hard drive?

https://www.microchip.com/en-us/products/storage/adaptec-smartraid-raid-adapters For example here: Each connector of the 6 black connectors you see here supports 4 SATA devices, as this will allow ...
cybernard's user avatar
  • 14.2k
1 vote

How can I make three 10TB external hard drives act as one 30TB hard drive?

You can link three drives into one virtual drive by setting them up as a RAID 0 array. However, be aware that a RAID 0 array has no redundancy. It spreads the data across all of the drives. This ...
Michael Anthony Abril's user avatar
1 vote
Accepted

What a correct playlist.m3u8 should contain, or should look like?

You might be able to get away with: ffmpeg -f mpegts -i segment%03d_1_av.ts -codec copy -map 0:0 -map 0:1 output.mkv Otherwise... playlist.m3u #EXTM3U #EXT-X-PLAYLIST-TYPE:EVENT #EXT-X-VERSION:4 #EXT-...
JayCravens's user avatar
1 vote
Accepted

How to solve a final pb when merging a series of .ts file with concat command of FFmpeg?

It looks like windows has given you one final hurdle. Note the error message says "unknown keyword ' file'". See the initial space? That space can't be seen in notepad when looking at "...
pjc50's user avatar
  • 6,146
1 vote

Make Plex use TVDB "Alternate Order" for TV series, combining segments into a single episode

As of the 1.40.4 PlexMediaServer beta, you can finally select Alternate as an option. (Metadata) Add support for additional TVDB episode orderings on TV Show preferences. Requires metadata refresh. (...
Chew's user avatar
  • 11
0 votes

FFmpeg incorrect colourspace with hardcoded subtitles

Roughly 1.5 years later I'm revisiting this issue to state that as of FFmpeg 7.0.1 I no longer have this particular problem. I've tested it with the same file, and while the problem still persisted in ...
YTZ's user avatar
  • 305
0 votes
Accepted

Windows 10 - Movies&TV app doesn't play videos, Groove doesn't play music

I know this is really late, but I figured for posterity, I shouls link the answer with some context. Unable to find my own post anymore, I ended up making a new (more detailed one) regarding this ...
Knight's user avatar
  • 3
1 vote
Accepted

To cut and download part of video from vk.com

yt-dlp uses ffmpeg behind the scenes for you, and provides the --download-sections ... argument for exactly this purpose. --download-sections REGEX: Download only chapters that match the regular ...
Attie's user avatar
  • 20.2k
0 votes

Extracting frame timestamp (PTS) and seting it as a file name

ffmpeg -i rtsp://localhost:8554/mystream -vf "select=not(mod(n\,10)),showinfo" -vsync vfr -frame_pts true frame_%04d_%010d.jpeg This worked for me !.
Abdullah Farweez's user avatar
0 votes

Windows 7 PC going to sleep while streaming video in web browser

I have had this problem, suddenly, too on my Windows 7 OS partition. It seems to have happened after an unconsented windows update. I have update disabled in services (checked to be sure in registry ...
M Gossage's user avatar

Top 50 recent answers are included