I am totally nob to FFMPEG. I am trying to generate mp4 video file by merging mp3 and png image.
When i try converting png image into mp4 it works ffmpeg -r 1/5.544000 -i 1.png -qscale 2 1.mp4
But when i add mp3 audio file then it fails ffmpeg -r 1/5.544000 -i 1.png -i 1.mp3 -qscale 2 1.mp4
Following is the error that i get: No pixel format specified, yuv444p for H.264 encoding chosen. Use -pix_fmt yuv420p for compatibility with outdated media players. [libx264 ⓐ 0x1475be0] using SAR=1/1 [libx264 ⓐ 0x1475be0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 `[libx264 ⓐ 0x1475be0] (...)
i am trying to convert an avi file to mp4 then copy it to more versions currently i convert all of them at once but that take more time ffmpeg -i input \\ -s 1280x720 -acodec … -vcodec … output1 \\ -s 640x480 -acodec … -vcodec … output2 \\ -s 320x240 -acodec … -vcodec … output3
i need something like this ffmpeg -i input \\ -s 1280x720 -acodec … -vcodec … output1 \\ (convert this first when finish copy) -c:a copy -s 640x480 -acodec … -vcodec … output2 \\ -c:a copy -s 320x240 -acodec … -vcodec … output3
i found this command on ffmpeg website ffmpeg -i input1 -acodec … -vcodec … -f mpegts - | \\ ffmpeg -f (...)
We've asked a freelancer to build a video encoder with FFMPeg for iOS but there is a bug and the freelancer is no longer available. I very inexperienced in FFMpeg and video encoding and am trying to debug this error.
From what I understand, we're attempting to create an output file and create a header for it however, avformat_write_header is always less than zero. If I comment it out, it does not work - (BOOL) writeHeaderWithError:(NSError *__autoreleasing *)error AVDictionary *options = NULL; // Write header for output file int writeHeaderValue = (...)
I am using FFMPEG to encode live video. If I can't keep up with the live encoding, I need to drop frames. Currently, I just skip the encoding of a raw frame, and the PTS for the next frame is the same. Meaning, even if there is a skipped frame, the pts is always 1,2,3,4,5,6....
This causes the playback of the file to skip ahead in time. Instead, I would like to add blank frames to the muxed file. I tried making PTS indicate a skipped frame by setting it to 1,2,4,5,8,...., but the FFMPEG h264 encoders depend on PTS being consecutive.
How do I pass empty data to my mp4/container, (...)