This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/csv" | |
"flag" | |
"fmt" | |
"os" | |
"os/exec" | |
"path/filepath" | |
"strconv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* One-off IVF concat */ | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <libavutil/intreadwrite.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vimeo@vimeo-dev:~/crav1e/c-examples$ git diff | |
diff --git a/c-examples/simple_encoding.c b/c-examples/simple_encoding.c | |
index 0a11d54..68621b4 100644 | |
--- a/c-examples/simple_encoding.c | |
+++ b/c-examples/simple_encoding.c | |
@@ -38,6 +38,8 @@ int main(int argc, char **argv) | |
goto clean; | |
} | |
+ rav1e_config_parse(rac, "low_latency", "true"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
General: | |
* I assume enum vals are guaranteed by rust/c stuff? | |
* You need to document how to call the send/recieve and how to drain them, etc. How to loop properly, and if they can be called concurrently, etc. | |
line 43: No alt-ref / invisible? Or "multiple" if bundled? Does it matter? I'm not sure. | |
line 85: Mention allocation maybe? Does instatiation imply allocation? I'm legitimately not sure. | |
line 88/98/etc: Are configs and contexts reference counted? It's really weird to "unref" a config or context to me... Don't you just free it? If they /are/ reference counted... to what end? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <libavutil/frame.h> | |
#include <libavutil/avutil.h> | |
#include <libavformat/avformat.h> | |
#include <libavcodec/avcodec.h> | |
#define INFILE "test.webm" | |
#define OUTFILE "test_yuv420p_1920x1080.yuv" | |
#define TRACK 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 49fe0ce6217dd23956032c33c3985456af0d73b3 Mon Sep 17 00:00:00 2001 | |
From: Derek Buitenhuis <[email protected]> | |
Date: Tue, 27 Mar 2018 17:32:55 +0100 | |
Subject: [PATCH] avcodec/avutil: Add timeline side data | |
Signed-off-by: Derek Buitenhuis <[email protected]> | |
--- | |
libavcodec/avcodec.h | 9 ++++ | |
libavutil/timeline.h | 125 +++++++++++++++++++++++++++++++++++++++++++++++++++ | |
2 files changed, 134 insertions(+) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"codec_type": "video", | |
"stream_index": 1, | |
"pts": 0, | |
"pts_time": "0.000000", | |
"dts": -21, | |
"dts_time": "-0.035000", | |
"duration": 20, | |
"duration_time": "0.033333", | |
"size": "229363", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -537,6 +537,13 @@ bool FFMS_VideoSource::DecodePacket(AVPacket *Packet) { | |
if (!(Packet->flags & AV_PKT_FLAG_DISCARD)) | |
DelayCounter++; | |
} | |
+ { | |
+ AVFrame *t = av_frame_alloc(); | |
+ int SA = avcodec_receive_frame(CodecContext, t); | |
+ printf("SA = %d\n", SA); | |
+ av_frame_free(&t); | |
+ } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit c870059ddb2131e6bf20c89b164aa69e5531c0e8 | |
Author: Derek Buitenhuis <[email protected]> | |
Date: Fri Mar 23 20:34:21 2018 +0000 | |
videosource: Do not increment the delay counter when packets are marked as DISCARD | |
They do not count towards the codec delay, and are used to signal, for example, | |
edit list edits. | |
Signed-off-by: Derek Buitenhuis <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
daemon404@bbvm:~/dev/f/ffmpeg/tests/data/fate$ grep Seg *.err | |
h264-conformance-caba1_sva_b.err:Segmentation fault | |
h264-conformance-cabac_mot_fld0_full.err:Segmentation fault | |
h264-conformance-cama1_toshiba_b.err:Segmentation fault | |
h264-conformance-capcm1_sand_e.err:Segmentation fault | |
h264-conformance-capcmnl1_sand_e.err:Segmentation fault | |
h264-conformance-cvbs3_sony_c.err:Segmentation fault | |
h264-conformance-frext-hpcv_brcm_a.err:Segmentation fault | |
h264-conformance-frext-hpcvfl_bcrm_a.err:Segmentation fault | |
h264-conformance-nrf_mw_e.err:Segmentation fault |