summaryrefslogtreecommitdiff
path: root/rotord/src/libavwrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/libavwrapper.cpp')
-rw-r--r--rotord/src/libavwrapper.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/rotord/src/libavwrapper.cpp b/rotord/src/libavwrapper.cpp
index d09b7dc..13e151c 100644
--- a/rotord/src/libavwrapper.cpp
+++ b/rotord/src/libavwrapper.cpp
@@ -195,8 +195,19 @@ bool libav::exporter::record(std::string filename){
}
}
+ ///
+ /// trying to change the moov atom 170913
+
+ //MOVMuxContext *mov = oc->priv_data;
+ //mov->flags |= FF_MOV_FLAG_FRAGMENT;
+ //AVDictionary* options;
+ //av_dict_set(&options, "vprofile", "baseline", 0);
+
+ ///
+ ///
+
// Write the stream header, if any. //
- int ret = avformat_write_header(oc, NULL);
+ int ret = avformat_write_header(oc, NULL); //&options); //
if (ret < 0) {
//std::cerr <<"Error occurred when opening output file:" << av_err2str(ret) << std::endl;
return false;
@@ -351,6 +362,7 @@ AVStream* libav::exporter::add_stream(AVFormatContext *oc, AVCodec **codec,enum
// * the motion of the chroma plane does not match the luma plane. //
c->mb_decision = 2;
}
+
break;
default:
@@ -371,7 +383,7 @@ void libav::exporter::open_video(AVFormatContext *oc, AVCodec *codec, AVStream *
// open the codec //
mutex.lock();
- ret = avcodec_open2(c, codec, NULL);
+ ret = avcodec_open2(c, codec, NULL); //OPTIONS CAN GO HERE
mutex.unlock();
if (ret < 0) {
//fprintf(stderr, "Could not open video codec: %s\n", av_err2str(ret));
@@ -405,6 +417,8 @@ void libav::exporter::open_video(AVFormatContext *oc, AVCodec *codec, AVStream *
}
}
+
+
// copy data and linesize picture pointers to frame //
*((AVPicture *)frame) = dst_picture;