Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
I want to change reference frame when I encode P or B frame
16 décembre 2015, par kkwI searched example C code about YUV->.MP4 encoding. I found something, but I want to change reference frame to specific frame when I encode B or P frame.
I use
avcodec_encode_video2(c, &pkt, frame, &got_packet);
function inavcodec.h
when I encode a frame.I think that reference frames exist in
AVCodeccontext
,AVFrame
orAVPacket
because when the frame is encoded, encoder needs a reference frame. But I can't found.In other words, I want to encode P or B frame using a specific frame, not using an automatically chosen frame. If anyone knows how to do this, please tell me.
-
FFMPEG Command line for producing video for Tivo S3 and S4 RSS feed functionality
16 décembre 2015, par user793586I have been trying to generate a solid video/audio ffmpeg command line configuration that will produce an HD quality video. The output needs to play on both the Tivo S3 and S4 boxes using the RSS vod feature. The following settings are required.
Video:
Multiplexer type: MPEG-4 System
Video Dimension: 1280 x 720
Aspect Ratio: 16:9
Frame Rate: 29.97fps
Interlacing: Non-Interlaced
Bite Rate Mode: VBR
Number of passes: 2
Video Bitrate: 3000 kbps
Maximum Bitrate: 8000 kbps
Profile: Main
Level: 3.2
Number of B-Pictures: 2
Audio:
Audio Stream Type: AAC
Bits / Sample: 16
Channels: Stereo
Sample Rate: 48K
Audio Bitrate: 128 kbps
-
ffmpeg resizing video puts it at wrong resolution
16 décembre 2015, par agmcleodI have a 1080p video that i'm trying to resize for an iOS app upload. So i tried scaling it to the iPhone 6 resolution of 1334x750:
ffmpeg -i WrathTrailer.mp4 -strict -2 -vf scale=1334:750 WrathTrailer1334x750.mp4
The output file comes to 1333x750. iTunes connect won't accept it. Any ideas?
-
Extract audio from Transport Stream and preserve length
15 décembre 2015, par yuiuI'm using ffmpeg to extract audio from MPEG Transport Stream file recorded by DVB-S card. The command:
ffmpeg -i video.ts -vn audio.wav
The source file seems to be corrupted. I noticed the corruption happens from time to time, especially for videos longer than 1 hour. I've got errors like these:
[mp2 @ 0x1bb5500] Header missing Error while decoding stream #0:1 [mpegts @ 0x17eaf40] Continuity check failed for pid 5261 expected 2 got 6
The problem is that the resulting
audio.wav
is shorter than the source video (40m33s and 40m59s accordingly). I'm looking for the way to preserve the original length in the resulting audio file.I tried the recent ffmpeg under Windows and avconv under Ubuntu, output format was MP3 and WAV. For every case I've got the same results.
-
ffmpeg How to Conver Video 2D to side by side [on hold]
15 décembre 2015, par Peace Michaeli want convert video from 2D to side by side using FFMPEG.i hope anyone can help me .Thank you .Sorry for my bad english