[MPlayer-users] Re: -dumpvideo: does it create raw video stream?
Nico Sabbi
nsabbi at email.it
Mon Dec 4 16:16:24 CET 2006
Enzo wrote:
>>
>>Use mencoder -of rawvideo
>>
>>
>>
>It doesn't seem to work. I think Nico's right:
>
>
yes, I'm right, but -of rawvideo _does_ work
>
>
>>yes, for some idiot reason -dumpvideo applied to avi, asf and mov
>>dumps 4 bytes (len) before every video packet.
>>It should really be removed
>>
>>
>
>If you let me know the format of the output I could write a little filter.
>
>Thank you, cheers
>
>Enzo
>
>
no need to filter anything, just:
Index: mplayer.c
===================================================================
--- mplayer.c (revisione 21098)
+++ mplayer.c (copia locale)
@@ -4314,8 +4314,6 @@
while(!ds->eof){
unsigned char* start;
int in_size=ds_get_packet(ds,&start);
- if( (demuxer->file_format==DEMUXER_TYPE_AVI ||
demuxer->file_format==DEMUXER_TYPE_ASF ||
demuxer->file_format==DEMUXER_TYPE_MOV)
- && stream_dump_type==2) fwrite(&in_size,1,4,f);
if(in_size>0) fwrite(start,in_size,1,f);
}
fclose(f);
but as I wrote mencoder -ovc copy -of rawvideo ... works equally well
More information about the MPlayer-users
mailing list