h.264

Where is pixel format stored in H.264 MP4 file?

|▌冷眼眸甩不掉的悲伤 提交于 2020-04-16 09:17:02
问题 I'm working on a transmuxer that will convert an H.264/AAC RTMP stream to a valid MP4 file. I'm mostly done. I'm parsing the AMF tag, reading the AVCDecoderConfigurationRecord and AACSpecificConfig, I'm generating a valid moov atom, etc. After discovering and fixing a few bugs in my code, I've got a mostly valid MP4 file. However when I attempt to read the video in ffprobe I get the following error: [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9fb4000b80] Failed to open codec in avformat_find_stream_info

I can't use libx265 or hevc with ffmpeg in nginx

我的梦境 提交于 2020-03-26 06:12:29
问题 exec_push /usr/bin/ffmpeg -re -i rtmp://10.254.20.186:1935/$app/$name ar 44100 -vcodec libx264 -g 25 -f flv rtmp://10.254.20.186/live/$name_hi; I can use this code in my nginx server. this is code running but dont run while write libx264 instead libx265. The interesting thing is that I can run the following commands on my linux computer without problems. ffmpeg -i input.mp4 -c:v libx264 -crf 28 -c:a aac -b:a 128k output.mp4 ffmpeg -i input.mp4 -c:v libx265 -crf 28 -c:a aac -b:a 128k output

I can't use libx265 or hevc with ffmpeg in nginx

北战南征 提交于 2020-03-26 06:10:09
问题 exec_push /usr/bin/ffmpeg -re -i rtmp://10.254.20.186:1935/$app/$name ar 44100 -vcodec libx264 -g 25 -f flv rtmp://10.254.20.186/live/$name_hi; I can use this code in my nginx server. this is code running but dont run while write libx264 instead libx265. The interesting thing is that I can run the following commands on my linux computer without problems. ffmpeg -i input.mp4 -c:v libx264 -crf 28 -c:a aac -b:a 128k output.mp4 ffmpeg -i input.mp4 -c:v libx265 -crf 28 -c:a aac -b:a 128k output

Android MediaCodec appears to buffer H264 frames

我只是一个虾纸丫 提交于 2020-03-20 05:00:58
问题 I'm manually reading a RTP/H264 stream and pass the H264 frames to the Android MediaCodec. I use the "markerBit" as a border for the frames. The MediaCodec is tied to a OpenGL Texture (SurfaceTexture). In general everything works fine. But the Decoder appears to buffer frames. If I put a frame in the decoder it is not rendered immediately to the texture. After I put 2-3 frames more in the decoder the first frame is rendered to the texture. I'm implementing against Android 4.4.4. private

Android MediaCodec appears to buffer H264 frames

♀尐吖头ヾ 提交于 2020-03-20 04:58:34
问题 I'm manually reading a RTP/H264 stream and pass the H264 frames to the Android MediaCodec. I use the "markerBit" as a border for the frames. The MediaCodec is tied to a OpenGL Texture (SurfaceTexture). In general everything works fine. But the Decoder appears to buffer frames. If I put a frame in the decoder it is not rendered immediately to the texture. After I put 2-3 frames more in the decoder the first frame is rendered to the texture. I'm implementing against Android 4.4.4. private

Android MediaCodec appears to buffer H264 frames

你离开我真会死。 提交于 2020-03-20 04:55:09
问题 I'm manually reading a RTP/H264 stream and pass the H264 frames to the Android MediaCodec. I use the "markerBit" as a border for the frames. The MediaCodec is tied to a OpenGL Texture (SurfaceTexture). In general everything works fine. But the Decoder appears to buffer frames. If I put a frame in the decoder it is not rendered immediately to the texture. After I put 2-3 frames more in the decoder the first frame is rendered to the texture. I'm implementing against Android 4.4.4. private

ffmpeg usage to encode a video to H264 codec format

大兔子大兔子 提交于 2020-03-17 04:04:15
问题 I have a *.mp4 video file(MPEG4 video codec) and I am trying to convert this to a H264 video codec format(raw h.264 format) using ffmpeg on Linux(Version - FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard,) using command line as shown below, ffmpeg -i input .mp4 output.h264 but I get an error saying - Unsupported codec for output stream #0.0 Then when i try this option: ffmpeg -i input .mp4 -formats h264 output.h264 it still does not work, and gives - Seems

ffmpeg usage to encode a video to H264 codec format

对着背影说爱祢 提交于 2020-03-17 04:02:20
问题 I have a *.mp4 video file(MPEG4 video codec) and I am trying to convert this to a H264 video codec format(raw h.264 format) using ffmpeg on Linux(Version - FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard,) using command line as shown below, ffmpeg -i input .mp4 output.h264 but I get an error saying - Unsupported codec for output stream #0.0 Then when i try this option: ffmpeg -i input .mp4 -formats h264 output.h264 it still does not work, and gives - Seems

ffmpeg usage to encode a video to H264 codec format

时光毁灭记忆、已成空白 提交于 2020-03-17 03:58:05
问题 I have a *.mp4 video file(MPEG4 video codec) and I am trying to convert this to a H264 video codec format(raw h.264 format) using ffmpeg on Linux(Version - FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard,) using command line as shown below, ffmpeg -i input .mp4 output.h264 but I get an error saying - Unsupported codec for output stream #0.0 Then when i try this option: ffmpeg -i input .mp4 -formats h264 output.h264 it still does not work, and gives - Seems

how to reduce MediaCodec H264 encoder latency

我的梦境 提交于 2020-02-28 07:04:58
问题 I'm trying to encode h264 into stream in real-time low latency with Android6.0's MediaCodec. There are about 6 frames latency from encoder which I wanna know how to reduce Codes are from screenrecord.cpp part codes are: while (true) { encoder->dequeueOutputBuffer(&bufIndex); } the encoder is feed by Surface of screen in 320x480 60 fps, and it outputs stream data by dequeueOutputBuffer(). There are about 6 frames feed to encoder whose data are not return immedately by dequeueOutputBuffer(). In