Justin Ruggles wrote:
On 01/23/2013 09:33 AM, Vladimir Pantelic wrote:
+if( p->buf[ofs] == 0xFF && p->buf[ofs + 1] == 0xD8) {
+av_log(NULL, AV_LOG_ERROR, "mjpeg_probe FFD8\n");
+return AVPROBE_SCORE_MAX;
+}
+return 0;
I have a feeling this part would lead to some false posi
On 01/23/2013 09:33 AM, Vladimir Pantelic wrote:
> +if( p->buf[ofs] == 0xFF && p->buf[ofs + 1] == 0xD8) {
> +av_log(NULL, AV_LOG_ERROR, "mjpeg_probe FFD8\n");
> +return AVPROBE_SCORE_MAX;
> +}
> +return 0;
I have a feeling this part would lead to some false positives. The
probi
Luca Barbato wrote:
On 23/01/13 15:33, Vladimir Pantelic wrote:
@@ -41,7 +43,10 @@
int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt)
pkt->pos= avio_tell(s->pb);
pkt->stream_index = 0;
+ if( s1->gen_ts )
+ pkt->pts = (av_gettime() - s1->starttime) / 1000;
+av_log(NULL, AV_LOG_ERR
On 23/01/13 15:33, Vladimir Pantelic wrote:
> @@ -41,7 +43,10 @@
>
> int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt)
> pkt->pos= avio_tell(s->pb);
> pkt->stream_index = 0;
> + if( s1->gen_ts )
> + pkt->pts = (av_gettime() - s1->starttime) / 1000;
> +av_log(NULL, AV_LOG_ERROR, "pt
I have a webcam that outputs raw MJPEG over HTTP, in fact not fully raw but as
a mime attachment like:
--Ba4oTvQMY8ew04N8dcnM
Content-Type: image/jpeg
<0xFFD8 JPEG frame>
--Ba4oTvQMY8ew04N8dcnM
Content-Type: image/jpeg
<0xFFD8 JPEG frame>
in order not to have to specify -f mjpeg, I add