Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [h.264]

Also known as MPEG-4/AVC, an advanced video encoding standard, widely used in Blu-ray and streaming video.

1
vote
0answers
13 views

Viewing H.264 bitstream in browser using ffmpeg to ffserver

This is a followup to https://raspberrypi.stackexchange.com/questions/93254/stream-usb-webcam-with-audio?noredirect=1#comment150507_93254 I, like many other brave tinkerers before me, thought it ...
0
votes
0answers
25 views

Video and Audio Sychronization issue

I am saving frames to H264 format and I saved audio to aac format. Then I concatenate of these format to creating mp4 format using ffmpeg player in android but When I concatenate Audio and Video, ...
0
votes
1answer
95 views

Most efficient way to re encode H.264 10-Bit to High profile or HEVC 10-Bit

For an odd reason my OLED TV can play HEVC 10-Bit files but only H.264 non-10-Bit. This output (video stream) from ffmpeg is played fine with HEVC 10-Bit: Stream #0:0: Video: hevc (Main 10), ...
3
votes
0answers
30 views

ffmpeg does not produce smooth videos from mkv h265

It's kind of subjective, but I'm not able to produce 100% smooth videos with ffmpeg. As input I use https://www.libde265.org/hevc-bitstreams/tos-1720x720-cfg01.mkv as a example.This is a h264 mkv ...
1
vote
1answer
145 views

FFMPEG h.264 stream to VLC from raw YUV444 produces black screen and audio noise

I am piping raw YUV444 640x480 frames to ffmpeg from inside a C++ program using stdout (Pipe format: pipe<-Y<-U<-V whole frames each). ffmpeg encodes them using h.264 and streams the video ...
0
votes
0answers
121 views

ffmpeg not generating bandwidth into my mpd file (dash)

We are developing a built-in player which streams via DASH protocol. One stop is to first convert all media sent by the user to MP4 (h264), the problem is, when ffmpeg generates the manifesto for the ...
0
votes
1answer
63 views

Deinterlacing failed when encoding a file with h264

Tried using several different h264 encoders but all of them make it have this problem where there are horizontal glitches near movement. I tried using ffmpeg but couldn't figure out how to do it ...
1
vote
1answer
272 views

How to increase video's FPS and speed correctly with ffmpeg?

I have a 5 fps video with keyint 120 2.5 hours long that I want to speed up 6 times, making its fps=30 I did it with this command that I found somewhere on this website ffmpeg -i "...local_Record....
0
votes
1answer
37 views

Decode/encode 4:2:2 with a 4:2:0 decoder/encoder

Similar to Reinterpret AVC bitstream as HEVC. Some hardware codecs support 4:2:0 for 4k but not don't support 4:2:2 even for SD, with far less data. Can you trick a codec to encode 1920x1080 4:2:2 ...
1
vote
0answers
62 views

Reinterpret AVC bitstream as HEVC

I understand HEVC to be a superset of AVC. HEVC allows more 'tools' to extract more compression out of a video sequence. Is there a tool that converts an AVC stream to HEVC, completely ignoring the ...
0
votes
3answers
73 views

Pixalation Issue in mp4

We are using below ffmpeg command for mp4 creation. output showing the pixalation. I have alter multiple parameter in command but pixalation not getting reduce. I want to kept bitrate constant to ...
1
vote
2answers
1k views

ffmpeg: how to create an interlaced h.264 video?

I would like to convert a high quality non interlaced input video into a less quality but wider distributable H.264/MP4 format. The output should have some constraints - in particular: it should be ...
0
votes
1answer
97 views

Using ffmpeg to convert file to same as another

For some background, I'm making a webpage which adjusts the playback position in an embedded video when the user scrolls, so if you scroll down, the video will advance and vice versa. This works ...
0
votes
1answer
2k views

Best settings for converting from h264 to hevc?

I'm trying to convert some of my library to HEVC to save space. The idea being I re-encode the existing media and save 20-50% file size. What would be some recommended settings for converting and ...
0
votes
1answer
212 views

VLC can but Instagram and “Gallery” cannot play my videos

I've been busy over the past few days trying to compile a timelapse from a string of images using FFMPEG. After initial issues, I've got it working and have a perfect MP4 that plays in VLC player. It ...
0
votes
0answers
27 views

ffmpeg makes mov with dropped frames [duplicate]

I had 1440 tga files and I wanted to convert them to a 24 fps mov. Here's the command I used: /usr/local/homebrew/bin/ffmpeg -y -f image2 -pattern_type glob -i '/Users/ninhenzo64/Documents/Projects/...
-2
votes
1answer
420 views

Converted MP4 video file to H.264, but there is no sound

I have an MP4 video file. I'm turning this into H.264. After converting, the video looks good, but there is no sound. Can you help me? ffmpeg -i input.mp4 -vcodec libx264 -acodec aac output.h264
0
votes
0answers
315 views

ffmpeg curd_dts always invalid when StreamId is 0x11

I want to generate a mpeg Transport Stream with stream_id 0:0x11 like so: ffmpeg.exe -i foo.avi -codec libx264 -streamid 0:0x11 baa.ts The resulting ts file has invalid macroblocks in every P and I ...
0
votes
1answer
238 views

FFmpeg video encoder example code is not working

I am using ffmpeg in ubuntu. Its version and other things are shown below: ffmpeg -h encoder=h264 ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-...
0
votes
1answer
55 views

Why does the -to option sometimes behave differently?

Two different videos are giving me troubles when coming up with code to cut them at a given time, because the same code does not clip the videos in the same way when processed through the same ffmpeg ...
0
votes
1answer
264 views

Why ffmpeg increases file size?

I'm trying to encode the video in the same quality in the same format, but the output file is several times larger than the input file. Whyis it happens? I want to fix the encoding errors, but I can ...
0
votes
0answers
44 views

FFMPEG how to control number of i-frames in encoded video? [duplicate]

I want to re-encode a video using H264, and I want to control the number of i-frames contained in the re-encoded video. I've tried the following. ffmpeg -i video.mp4 -y -c:v libx264 -crf 21 -...
5
votes
1answer
219 views

Properly fix videos which were encoded with old version of x264

Due to a bug in old versions of x264, h.264 video streams with the following three properties: encoded with x264 build 150 or earlier using 4:4:4 chroma subsampling bitstream contains no x264 version ...
14
votes
2answers
20k views

Best settings for FFMpeg with NVENC

I'm using my FFMPEG with the suport of my GPU (NVENC) to convert files from my satelite receiver (SD, mpeg2 .TS-Files) into h264 .mp4-files Here is the line i'm using ffmpeg -i "e:\input.ts" -vcodec ...
0
votes
1answer
39 views

Using mediainfo/MOVmediaedit to mimic GoPro video format

GoPro has cool "quick edit" video editor, called Quik Desktop. It'll only import videos generated with GP's own cameras. As long as I use GP's camera's Quik is fabulous. However, sometimes I want to ...
0
votes
1answer
2k views

How to convert raw 264 file to MP4 provided by Luowice IP camera?

I recently bought an IP camera by Luowice, model LWS-R8-2MP. The camera provides a function where a video is uploaded to a FTP server when motion is detected. The camera uploads .264 files. My plan is ...
0
votes
0answers
424 views

How to convert AVI-XVid to AVI-H264

I have a number of AVI movies with CoDec XVid-Mpeg-4; my Sony TV (KDL50W805C) will not play these. Other AVI movies with CoDec x264vfw-H264-Mpeg4-AVC are accepted and play perfectly. Can I convert ...
0
votes
1answer
432 views

What is wrong with my ffmpeg command?

I use this command to try to transcode a video file (video h264 high 10 to h264 high and copy all the rest) but it keeps giving me the error Unable to find a suitable output format for 'copy' copy: ...
0
votes
0answers
804 views

Application streaming with H.264/H.265 in realtime to browser clients

I am trying to build a solution which streams the visual content of a windows application (built with Unity 2017) to browser clients. Those applications provide high quality content which needs to be ...
1
vote
1answer
470 views

iSpy produces 10x larger video files after VGA upgrade

I have a small HP server (ProLiant MicroServer Gen8) and I use it to make surveillance camera recordings. The on-board graphics were quite weak, so I added a GeForce GT730 and installed the latest ...
0
votes
1answer
346 views

ffmpeg encoding options to maximise Windows 7 compatibility?

I'd like to encode a few short (e.g. 30 seconds-ish) video clips with a goal of maximising their out-of-the-box compatibility with Windows 7. Specifically, what ffmpeg encoding parameters should I ...
2
votes
0answers
243 views

Why is the first frame timestamp 0.066667 and not 0?

I have a stream of TGA files created on disk and I programmaticaly build a h264 video using the x264vfw codec. Options CRT 23, medium preset, Fast Decode, keyint 30 (video is 60 fps), no cut scenes, ...
0
votes
1answer
37 views

MP4 video working on desktop, not on mobile

I embedded a video in the following URL: https://www.speurtochten.nl/over-ons/ I made it with Premiere Pro CC, exported it as H.264. The code I use in WordPress: [video src="https://speurtochten.nl/...
0
votes
0answers
59 views

How to add trackcreatedate metatag to mp4 h265

I have a cliped i converted from h264 to h265, the clip is 40 minutes long. At the moment it doesnt have any metadata like quick time createdate or trackcreatedate, the only metadata present on the ...
0
votes
1answer
1k views

FFMPEG HLS - Create playlist only or predict segment times before encoding

I'm using ffmpeg to create a video transcoding on demand system that serves the media through the HLS format. Right now I can transcode the video and serve them as they are encoded, but I can't use ...
0
votes
2answers
873 views

FFMPEG encoding issue with “mp42” video (conversion to H264 mp4)

I am having problems encoding an "mp42" file to mp4 (H264) with the encoding options: -vcodec libx264 -bufsize 32M -b:v 2800k -maxrate 3800k -g 63 -vf "scale=1280:720" -acodec aac -ab 192k -ar 44100 -...
0
votes
2answers
98 views

How to change audio track order on a .ts video

When watching a .ts file, by default, video players like ᴠʟᴄ or Windows media use the first audio channel as the the default audio channel. In my case, I want to switch the default channel to my ...
0
votes
0answers
102 views

How do I maintain sharpness when scaling down Mp4 H264 video on browser?

I managed to create a sharp video after doing a lot of research. However, now my problem is when scaling down in the browser. I am trying to do something similar to this:https://framer.com/features/...
1
vote
1answer
326 views

Can ffmpeg losslessly downgrade H.264 level from 4.1 to 4?

I have some .mkv files with h.264 video streams. When I performed the original encoding I limited the decoder level to 4.1 for compatibility with a Samsung SmartTV. Now I'm having issues with a ...
1
vote
0answers
425 views

Why a MP4 H.264 video looks fuzzy on Google Chrome but sharp on Firefox?

This is the file I am trying to open directly into Chrome (It happens on websites but it seems the problem is with the rendering engine) http://wikisend.com/download/914020/pipe-handbreak.mp4 It ...
3
votes
1answer
9k views

ffmpeg warning: “Timestamps are unset in a packet” when converting H264 to mp4

I am getting the following warning message when executing ffmpeg: [mp4 @ 00000000025c00a0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. ...
0
votes
1answer
2k views

Decrypt or decode ultraviolet videos [closed]

I was on Vudu because I have some Ultraviolet movies in my collection and I saw you could download them from their site for offline usage. The files on the computer from that download are an h264-...
1
vote
1answer
96 views

Reduce h264 mp4 video size without recoding (like dvdshrink used to do this for DVDs)

I have a large bunch of MP4 files which I need to reduce in size to roughly half. I can recode them all of course, but I remember having used dvdshrink quite some time ago which had an option to ...
0
votes
0answers
377 views

H264 to MP4 with Bframe play back and forth on google chrome[ffmpeg]

I want to generate a mp4 container with h264 encoded file. H264 file contains [I P B B][P B B][P B B][P B B] frames. when I generate a mp4 file with FFmpeg, It works well with FFplay as well as VLC ...
-1
votes
1answer
2k views

Does Windows 7 Windows Media Player support H.264 mp4 files with variable frame rate?

I think the title says it all. I have a .flv file I am transcoding to h.264 mp4 file. The source uses a variable framerate. Transcoding the file to an .mp4 file with constant framerate generates a ...
1
vote
1answer
1k views

What is the FFmpeg parameters for encode video which looks like the specifications?

Is there anyway to encode video by these specifications? (Main & level 3.1 & ReFrames: 3 frames & Chroma subsampling: 4:2:0 , ... ) FFmpeg: Stream #0:0: Video: h264 (Main), yuv420p(...
0
votes
1answer
93 views

How can I create a graphic representation of frames in an encoded video?

ffprobe is great but I couldn't get it to show a 1-liner info of each frame, let alone a graphic representation. Is there some software that can either take the json output of ffprobe and show it ...
0
votes
0answers
579 views

FFmpeg+NVENC encoding: strange aspect ratio

My source video is MPEG-2, 720x576, DAR=16:9. Using FFmpeg and the h264_nvenc encoder, I convert it to H.264. The problem: The output AR is strange/wrong/incosistent. Command line: >ffmpeg -i "d:\...
0
votes
1answer
2k views

Video cut with missing frames in FFmpeg

I have tried every possible command to cut a portion (1-3 mins) of an H.264 mp4 video but it comes out good & bad. My video is 29.97 FPS, 1080p, ~80 minutes, ~3.5 GB, and at ~6200 KB/s bitrate. ...
0
votes
0answers
199 views

Unable to extract h264 video from MKV

I'm asking this here because I was unable to find a better StackExchange site for it. Correct me if I'm wrong. The problem I'm facing is with a particular MKV file. It has a video stream (h264) that ...