Questions tagged [h.264]
The h.264 tag has no usage guidance.
177
questions
110
votes
6
answers
260k
views
Repeat/loop Input Video with ffmpeg?
I just want to loop a mp4 video with ffmpeg and keep the current settings and codec.
For example if input.mp4 is 0:10 long, and I would want to loop it 4 times so output.mp4 is 0:40 long, how could I ...
53
votes
3
answers
167k
views
Fix bad files and streams with ffmpeg so VLC and other players would not crash
It happened me many times that I could end up in corrupted video files:
video downloaded from official sources but with torrent and for some reason not all the pieces are there in .mkv, .ts or .mp4
...
34
votes
2
answers
28k
views
MP4 / h.264 patent issues?
I know this is not a legal forum but I'm assuming this is a daily issue for most people on this site since h.264 video (AVC / MPEG4 part10) is so ubiquitous (and there is a legal tag here).
I've read ...
20
votes
4
answers
48k
views
How can I convert .MTS file (AVCHD) to .mp4 by ffmpeg without re-encoding H264 video stream?
Note: I posted same question to stackoverflow a short time before, when I have not found this comunity yet. I repost this since the question is more suitable to this community.
1. What I tried
I ...
16
votes
3
answers
59k
views
encoding 4:2:2 in 10-bit with libx264
I believe that libx264 is now capable of doing 10-bit 4:2:2 encodings, but I can't seem to get it to work. I'm using ffmpeg (info below), and I've also tried the x264 encoder directly. I've tried
...
15
votes
3
answers
17k
views
H.264 or VP9 for encoding for YouTube?
I make short films which I distribute through YouTube. I know YouTube uses VP9 for streaming, but YouTube still recommends uploading with h.264. It makes more sense to me to upload in as similar a ...
14
votes
2
answers
11k
views
Using h264 in loseless mode brings small unexpected results
I got curious on ffmpeg screen capture capabilities and started messing around with a simple realtime capture test in h264.
ffmpeg -f dshow -i video="screen-capture-recorder" -video_size 1920x1080 -...
13
votes
1
answer
16k
views
ffmpeg: explicitly tag h.264 as bt.601, rather than leaving unspecified?
I want to tag video as explicitly bt.601, rather than "unspecified". I know players typically choose bt.601 as the default for videos less than 1280 pixels wide, but I want to make it explicit that ...
10
votes
2
answers
33k
views
H.264 Max Resolution
I was trying to find the technical reasons for why H.264 is limited for 4K.
Obviously that in terms of bit-rate it becomes less efficient but the encoding itself is limited and for some reason, I ...
9
votes
1
answer
7k
views
Copying h.264 video from TS into MP4 changes frame rate and time
I have large MPEG-TS file that I am converting to MP4 using the below command. If I seek to the same time in the video in both the MP4 and the TS file, the MP4 will be a few frames behind the TS ...
8
votes
1
answer
30k
views
What CRF or settings I should choose for h265 in order to achieve a similiar quality of h264?
I'm doing some experiments with HEVC x265.
I have a raw footage and the quality of details of h264 with same CRF setting looks better than h265.
Shouldn't be the opposite?
Maybe my setup isn't the ...
7
votes
2
answers
2k
views
Converting video with different resolutions slightly affects in file size, why?
I'm converting a video with resolution 960x720p using HandBrake on Mac. When I convert two videos with exactly the same settings but with different resolutions, the file size is almost the same. ...
6
votes
2
answers
11k
views
Can H264 achieve "equivalence" with ProRes 422?
Has anyone done or seen any tests comparing Apple ProRes 422 with high-bitrate H.264?
We use 422 as a delivery format to go to DCP for theatrical versions of trailers.
The bitrate is around 150mbps.
...
6
votes
2
answers
17k
views
Adobe Premiere saves m4v instead of mp4
I have problems with my Premiere Pro. It is first time this has happened, and I cannot understand why.
I am creating a timelapse from my images. When I want to export media, I choose format H.264 (...
6
votes
1
answer
10k
views
It is better to have more B-frames or more P-frame for video streaming?
I'm trying to re-encode (H.264) some videos from my movie library in order to put them on a NAS and stream them to a smartTV through WiFi.
In order to do so, I'm using HandBrake on MacOS and – among ...
5
votes
2
answers
14k
views
How do I encode videos into h.264 at 8k resolution?
I am trying to use premiere, but I wouldn't mind switching computer programs to accomplish my goal. h.264 is an amazing codec for exporting videos, it is the fastest I've seen yet. Same exact videos ...
5
votes
2
answers
1k
views
Differences of h.264 and h.265?
What are the main differences between h.264 and h.265?
5
votes
3
answers
10k
views
Configure CQP (CRF) for h264_nvenc
Encoding on CPU can be done via:
ffmpeg -i input.mp4 -vcodec h264 -crf 23 -acodec copy h264.mp4
GPU's alternative for the codec is h264_nvenc. How can I pass the same options to it?
I googled and ...
5
votes
2
answers
9k
views
Print to file: Details of every NAL unit in raw H.264 file
I have a raw H.264 file. I would like to retrive both length and frame number of every NAL unit in this file. The result must be printed to file.
Is there any tool to do this?
I have tried using H....
5
votes
1
answer
2k
views
Are JPEG compression and H.264 intraframe compression the same process?
I was looking at how JPEG compression works, and to me it seems to be really similar to what H.264 (and other video codecs) does with its intraframe prediction step.
In both algorithms the image ...
5
votes
3
answers
10k
views
Colors look different after export
Colors look great in FCPX.
After I export (Share > Master file > H.264 Quicktime) they look a bit dull: desaturated, less vibrant. Also sort of like the wrong gamma curve - shadows are darker.
I ...
4
votes
1
answer
14k
views
ffmpeg encode in all-i mode h264 and h265 streams
Which params I can use to obtain a transcode all-i based? No B and P frames?
I know that this is not efficient for compression purposes but this is not my case now.
I guess i have to fiddle a bit ...
4
votes
2
answers
13k
views
FFMPEG: Loop video to the length of audio
E.g. if video is 1 minute, but audio is 1 hour. Make video loop throughout for 1 hour of the audio track.
I use this solution to loop image through the lenght of the audio
ffmpeg -y -loop 1 -r 6 -i ...
4
votes
2
answers
6k
views
Producing small H.264 files with Adobe Media Encoder vs ffmpeg/libx264
I am a terrible ignoramus in the subject, but the coronavirus has thrown me in the business of producing videos with my lectures. I care a bit for video quality and a bit more for small size. My ...
4
votes
3
answers
3k
views
h264 settings for large flat areas of slowly changing colour
I'm doing an animation for a projection mapping that simulates the sun casting shadows on a structure as it moves through the sky. Basically it's just big flat areas of colour that change over about ...
4
votes
1
answer
3k
views
Resuming a partially-completed encode with FFmpeg
Summary
Given a partially completed encode that:
Was encoded using h264 in the Matroska container
Was cut short by manually stopping FFmpeg by typing 'q' in the console
...what are the ways to ...
4
votes
1
answer
707
views
.mkv file not playing in HEVC/H.265 supported player
I wanted to play UHD (4k) videos in my new LeTV (Super3 X55).
So I used youtube-dl to download 4k YouTube videos (which are humongous btw) but for some reason most of them do not play.
The TV's ...
4
votes
1
answer
2k
views
What's different between Premiere's own h.264 and QT h.264 encoders?
I noticed that Premiere(CC2017) can export h.264 through its own encoder and QuickTime. Are there any / what are the differences between these two?
PP Native h.264 encoder
QT h.264 encoder
4
votes
1
answer
5k
views
How to specify CRF quality settings for different encoding software
Is there a way of specifying a quality setting for h.264 that is not software dependant?
I'm trying to help a colleague create a specification for outside contractors when they deliver video to us ...
3
votes
3
answers
4k
views
What's the difference between "visually lossless" and real lossless and what does this mean for future encodes?
In FFmpeg's H.264 Video Encoding Guide we are told:
Tip: If you're looking for an output that is roughly "visually lossless" but not technically lossless, use a -crf value of around 17 or 18 (you'...
3
votes
3
answers
978
views
Can I use h.264 codec inside .mp4 container for my website
I would like to use h.264 as the codec inside .mp4 container for my user uploaded videos for my website. But I saw somewhere that h.264 is non free. I am unsure whether I can use this technology or ...
3
votes
1
answer
3k
views
ffmpeg vf scale shifts colors to washed out
Im trying to scale video down. No matter what I do the colors are always washed up as a result.
original:
After scaling:
Code I run for it
ffmpeg -i input.mkv -vf scale=1028:-1 output.mkv
log: log
...
3
votes
1
answer
1k
views
What's special about Apple-device generated HEVC files that (apparently) x265 can't produce?
Take this file, the first 10s of Hank Green's "editing challenge". It is H264 video + AAC audio. You can take that file and import it into Final Cut Pro X (FCPX for short), and edit it to your heart's ...
3
votes
2
answers
6k
views
What is the correct format of media creation time?
I noticed my GH5 via ffprobe has metadata such as:
Metadata:
creation_time : 2018-12-31T09:17:48.000000Z
timecode : 06:19:42;19
This is actually my local time, so off that bat, ...
3
votes
1
answer
816
views
Is H.264 subject to exploits / are some H.264 codecs subject to exploits?
How safe are H.264 streams from exploits? More exactly, are the consumer-grade H.264 codes generally "safe"?
I am currently gratuitously transcoding A/V files to avoid being exposed to possible ...
3
votes
1
answer
5k
views
Intra-frame H.264 / H.265 compared to DNxHR or Prores as intermediate codecs for editing
IMPORTANT: ISSUE SOLVED (STILL A COUPLE OF QUESTIONS, THOUGH), I POSTED SOME INFO BELOW THE ORIGINAL POST AS AN UPDATE IF SOMEONE FINDS THIS USEFUL:
Quick question: what are the advantages of using ...
3
votes
3
answers
3k
views
Does HDR content have anything to do with codecs?
I am new to video codec(encoding/decoding) stuff. I am trying to understand the difference between H.264(AVC) and H.265(HEVC) HDR video content. I thought HDR video 'means' it has 10 bit color depth ...
3
votes
1
answer
5k
views
How to set ffmpeg encoding framerate?
in short: I set -r 25 , but I see in the converting process that it's fps=18. Why?
I am trying to convert a video to H.264 format using ffmpeg, and I am trying to set the framerate(out framerate) ...
3
votes
1
answer
3k
views
Is H264 an actual file format?
Is there an actual H.264 file or is it just the codec that renders the video into an .mp4 or .mov file?
For an application, I have to hand in a portfolio with videos. Their website says that, "...
3
votes
1
answer
3k
views
Record desktop at 1080p60 in high quality
I am looking to record my desktop in high quality (not nearly as lossy as H.264). I have tried OBS @ 200mbps and nVidia Shadowplay @ 50mbps and the text on my desktop is still noticibly blurry when i ...
3
votes
1
answer
606
views
How to get VLC like screen recording performance with FFmpeg?
I had initially used VLC to record the screen of computer using the following script:
/Applications/VLC.app/Contents/MacOS/VLC -I rc screen:// --sout-keep --screen-fps=7.0 --screen-index=0 --sout #...
3
votes
2
answers
5k
views
How can I generate a color-correct h264/MP4 from a DPX sequence using ffmpeg?
We are converting a sequence of DPX files into an MP4. When the artist uses Adobe Media Encoder CC to generate the video, the colors match the original DPX. When we use ffmpeg, the video has a reddish ...
3
votes
1
answer
456
views
Blocky video artifact problem on Canon 600D
When shooting video with my Canon 600D I get artefacts like the following in the pictures: (not throughout the whole video but only for a second and then its gone again, but comes back after a few ...
3
votes
1
answer
2k
views
How to manage colour in After Effects to get precisely a desired colour in h264 output
I am working on a video for the web only.
It is going to be on a webpage (never on broadcast), delivered as an h264 file.
The web page background is hex code FFF1E5 (RGB 255, 241, 229).
My background ...
3
votes
2
answers
5k
views
Black frame strobing during CC export
I have a sub-3-minute sequence in Premiere CC, containing a single 4k DCI 23.98 AVC stream from a Sony FS7, with a couple static PNGs and 29.97 Quicktime Animation lower thirds.
I need to export to ...
3
votes
2
answers
6k
views
How to set double fps for tbc option of video
I need to set tbc option for output video. For example, input video has 25 fps with 50 tbc and my encoded video has 25fps with 25 tbc. I used settb and video_track_timescale but these options did not ...
3
votes
1
answer
897
views
does h.264 have separate audio and video
We are requesting video producers to send us video and we've worded our request as below. Please tell me if our request makes sense?
"One 720 p editable file in h.264 in an mp4 or AVI container with ...
3
votes
1
answer
3k
views
Video in Sony Vegas flickers and is full of black frames
I'm trying to import some clips into a Vegas 13 project, but they "flicker": some frames are all black (even in the preview), even though the files play perfectly in mplayer and VLC.
The clips are ...
3
votes
0
answers
79
views
editing video (overlaying text) using AVfoundation is resulting weird behaviour in video
Whenever I move the pointer you can see video getting weird pixelation.
Complete video showing how it behaves in quicktime player: https://jmp.sh/TMaknmp
I am just applying overlay using ...
2
votes
1
answer
3k
views
How to convert 10-bit H.265 videos to H.264 without losing quality
I have a MPEG-H Part2/HVEC (H.265) .mkv file (Planar 4:2:0 YUV 10-bit LE).
Since my LG PF 1500 beamer does not read H.265 but H.264 I would like to convert it (HVEC -> H.264).
I think handbrake is a ...