Stefano Sabatini | 1 Jul 01:47
Picon
Favicon

Re: Copy

On date Monday 2008-06-30 11:15:11 -0700, Mailing Lists encoded:
> Hi All,
> I'm running an experiment on video quality with error introduction.  I have
> a file that tells me which frames in a video file are missing.  I'd like to
> map that file to the original video file.  In order to do that, I'd like to
> use ffmpeg to read a file and then output it frame by frame without
> encoding.  Is this possible?

Mhh, after some experimentation I came out with this:
ffmpeg -i share/multimedia/samples/movie.mpeg -vcodec rawvideo -f image2  frame-%04d.raw

ls frame*
frame-0001.raU  frame-0003.raU  frame-0005.raU  frame-0007.raU  frame-0009.raU
frame-0001.raV  frame-0003.raV  frame-0005.raV  frame-0007.raV  frame-0009.raV
frame-0001.raw  frame-0003.raw  frame-0005.raw  frame-0007.raw  frame-0009.raw
frame-0002.raU  frame-0004.raU  frame-0006.raU  frame-0008.raU  frame-0010.raU
frame-0002.raV  frame-0004.raV  frame-0006.raV  frame-0008.raV  frame-0010.raV
frame-0002.raw  frame-0004.raw  frame-0006.raw  frame-0008.raw  frame-0010.raw

though I'm not sure how to read the generated files, ffplay
unfortunately doesn't support a -vcodec option, also I don't know hot
to interpret the content of the various files (funny suffixing rule
;-)).

> Once I've done that then I'll work on adding the errors.

Another solution could be to use a lossless image format for storing the
video frames (e.g. PPM), then use some tool to process them.

HTH, regards.
(Continue reading)

Tobias Brockamp | 1 Jul 02:25
Picon
Picon

Reading Framecount from swf file

Hi,

i need the exact framecount for swf encoded files, is this possible with 
ffmpeg?
I'd also tried ffprobe but i'm only getting this output:

Duration could be useful but the values are wrong, i think it has to do 
with the framerate
The real duration should be something like 8.960000

Any ideas?

ffprobe -show_streams farm/01_huff_master_final.swf
FFprobe version SVN-r59, Copyright (c) 2007-2008 Stefano Sabatini
  libavutil version: 49.7.0
  libavcodec version: 51.57.2
  libavformat version: 52.16.0
  built on Jun 30 2008 00:17:27, gcc: 4.1.2 20061115 (prerelease) 
(Debian 4.1.1-21)
Input #0, swf, from 'farm/01_huff_master_final.swf':
  Duration: 00:02:06.77, start: 0.000000, bitrate: 79 kb/s
    Stream #0.0: Audio: mp3, 44100 Hz, stereo, 80 kb/s
    Stream #0.1: Video: flv, yuv420p, 480x360, 25.00 tb(r)
[STREAM]
codec_name=mp3
decoder_time_base=0/1
codec_type=audio
sample_rate=44100.000000
channels=2
bits_per_sample=0
(Continue reading)

Stefan de Konink | 1 Jul 04:13
Picon
Picon
Favicon

WMV -vcodec copy -acodec copy = broken on the 'target platform'

Probably useless bugreport, but lately I toy around again with the -ss 
options and -fslimit (because the -t option doesn't work for me, bug?).

So in the end the result is the same pretty much, when not re-encoded 
the video is not playable in Windows Media Player. It works fine in 
ffplay or mplayer, since those tools are the only ones that matter to me 
I don't really care if it gets fixed...

For the sake of completeness:

ffmpeg -fs 1400000 -ss 67 -i random.wmv -vcodec cody -acodec copy broken.asf

ffmpeg -fs 1400000 -ss 67 -i random.wmv -vcodec wmv2 -acodec wmav2 
working.asf

Stefan
Mike M | 1 Jul 06:04

Re: unable to read .ac3 file

Jeffrey Wilson wrote:
> On Jun 26, 2008, at 4:29 PM, Mike M wrote:
>> I've successfully converted several dozen .mts (AVCHD) files to mpg  
>> and
>> swf using ffmpeg and the procedure outlined here
>> http://www.olmosconsulting.com/hdr-sr1/
>>
>> $ xporthdmv -h mytest.mts 1 1 1 && mv bits0001.mpa mytest.ac3
>> $ ldecod -i bits0001.mpv -o mytest.yuv
>> $ ffmpeg -y -r 29.97 -s 1440x1080 -i mytest.yuv -i mytest.ac3 -vcodec
>> flv -r 25 -s 480x360 -acodec libmp3lame -ac 2 -ar 22050 -b 1024k
>> -loop_output 0 mytest.swf
>>
>> But now I've encountered an .ac3 file produced by xporthdmv that  
>> ffmpeg
>> is unable to read;
>>
>> $ ffmpeg -y -r 29.97 -s 1440x1080 -i mytest.yuv -i mytest.ac3 -vcodec
>> flv -r 25 -s 480x360 -acodec libmp3lame -ac 2 -ar 22050 -b 1024k
>> -loop_output 0 mytest.swf
>> FFmpeg version SVN-r13958, Copyright (c) 2000-2008 Fabrice Bellard,  
>> et al.
>>  configuration: --enable-libmp3lame --enable-libvorbis
>> --enable-liba52bin --enable-pthreads --disable-static --enable-shared
>> --enable-gpl --disable-debug
>>  libavutil version: 49.7.0
>>  libavcodec version: 51.57.2
>>  libavformat version: 52.16.0
>>  libavdevice version: 52.0.0
>>  built on Jun 25 2008 06:01:47, gcc: 4.1.2 20070925 (Red Hat 4.1.2-27)
(Continue reading)

Gravatar

Avi reader problem

Hello;

I have a AVI file generated containing mp3/div3 that, when transcoded to
mp2/ac3 mpeg container looses audio/video sync completely.

I am not decoding it directly with ffmpeg, but with the libav* libs
themselves.  Any other avi (once tested until now) work fine.

When investigating I see that the pts/dts values for video in the AVPacket,
after exactly 20 frames go to AV_NOPTS_VALUE. The first 20 video frames just
increase 1 by 1,and at 20 it jumps to AV_NOPTS_VALUE.

Does that ring a bell for anyone? I started looking at the avidec, and will
do more later today, but perhaps anyone has an idea?

Tx for any info

Erik
Julien Sav | 1 Jul 09:56
Picon

MPEG4 AVC =? H.264 ? = LOSSLESS ??


Hello,

I have read some topic about the MPEG4 AVC , its in fact the name of the h.264 codec.
Is there a lossless compression when we tape this comand ?

ffmpeg -s 720*576 -r 25 -f video4linux2 -vcodec h264 toto.mpeg ?

Can you explain to mee how to grab and write video LOSSLESSLY ?
THX.

_________________________________________________________________
Caroline vient de mettre à jour son profil Messenger ! Connectez-vous !
http://login.live.com/login.srf?wa=wsignin1.0&rpsnv=10&ct=1198837564&rver=4.0.1534.0&wp=MBI&wreply=http:%2F%2Fhome.services.spaces.live.com%2F&lc=1036&id=73625
Julien Sav | 1 Jul 09:57
Picon

difference between -vcodec and -coder


Hello,

I don't really understand the difference between -vcodec and -coder....
Can anyone explain to me ?
Thx.

_________________________________________________________________
Faites vous de nouveaux amis grâce à l'annuaire des profils Messenger !
http://home.services.spaces.live.com/search/?page=searchresults&ss=true&FormId=AdvPeopleSearch&form=SPXFRM&tp=3&sc=2&pg=0&Search.DisplayName=Nom+public&search.gender=&search.age=&Search.FirstName=Pr%C3%A9nom&Search.LastName=Nom&search.location=Lieu&search.occupation=Profession&search.interests=amis&submit=Rechercher
Benoit Fouet | 1 Jul 13:51

Re: MPEG4 AVC =? H.264 ? = LOSSLESS ??

Julien Sav wrote:
> Hello,
>
> I have read some topic about the MPEG4 AVC , its in fact the name of the h.264 codec.
> Is there a lossless compression when we tape this comand ?
>
> ffmpeg -s 720*576 -r 25 -f video4linux2 -vcodec h264 toto.mpeg ?
>
>   

this command does not work as is

> Can you explain to mee how to grab and write video LOSSLESSLY ?
>   

grab uncompressed yuv streams, but you will need a lot of space...
for example, with YUV420, you'll need 12 bits/pixel, and the example you
gave was 720x576 <at> 25 fps, that leads to approximately 14MB per second.

--

-- 
Benoit Fouet
Purple Labs S.A.
www.purplelabs.com
Nico Sabbi | 1 Jul 14:42
Picon
Favicon

Re: MPEG4 AVC =? H.264 ? = LOSSLESS ??

On Tuesday 01 July 2008 13:51:28 Benoit Fouet wrote:
> Julien Sav wrote:
> > Hello,
> >
> > I have read some topic about the MPEG4 AVC , its in fact the name
> > of the h.264 codec. Is there a lossless compression when we tape
> > this comand ?
> >
> > ffmpeg -s 720*576 -r 25 -f video4linux2 -vcodec h264 toto.mpeg ?
>
> this command does not work as is
>
> > Can you explain to mee how to grab and write video LOSSLESSLY ?
>
> grab uncompressed yuv streams,

or better: ffhuffyuv

> but you will need a lot of space... 
> for example, with YUV420, you'll need 12 bits/pixel, and the
> example you gave was 720x576 <at> 25 fps, that leads to approximately
> 14MB per second.

he probably means "how to grab and encode to H264 lossless profile".
I don't know if x264 can do it
Julien Sav | 1 Jul 14:43
Picon

Re: MPEG4 AVC =? H.264 ? = LOSSLESS ??


> this command does not work as is

Yes, it don't.

> grab uncompressed yuv streams, but you will need a lot of space...
> for example, with YUV420, you'll need 12 bits/pixel, and the example you
> gave was 720x576 <at> 25 fps, that leads to approximately 14MB per second.

Ok, space isn't a problem.

DO you thing i can stream this YUV format via RTP ???
Thx.

_________________________________________________________________
Retouchez, classez et partagez vos photos gratuitement avec le logiciel Galerie de Photos !
http://www.windowslive.fr/galerie/

Gmane