killkenny64 | 9 Feb 22:54
Picon
Gravatar

AVERROR code on avfilter_graph_config

When I use:

avfilter_graph_config(filter_graph, NULL)

it fails and returns -22. The documentation states that if it fails it
returns a negative AVERROR code, but I can't find documentation anywhere
that tells me what the code -22 actually means.

I can successfully parse the graph beforehand:

filter_descr = "movie=logo.png [logo];[in][logo]
overlay=10:main_h-overlay_h-10 [out]"
avfilter_graph_parse(filter_graph, filter_descr, &inputs, &outputs, NULL)

but I avfilter_graph_config does not work.

As a side note, it does work if I use 
filter_descr = "color=red <at> 0.2:720x480:10 [color]; [in][color] overlay [out]"

I have made sure that I have enabled the overlay and movie filters when I
compiled FFmpeg.

What does the return value -22 mean? For what reasons will
avfilter_graph_config fail when using that filter_desc?

Cheers,

--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/AVERROR-code-on-avfilter-graph-config-tp4374534p4374534.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
(Continue reading)

Joshua Grauman | 9 Feb 20:22
Gravatar

Splicing/Trimming video

Hello all,

I have used the following command to take video straight from my Canon 
camcorder and to cut off the front and back end of it and scale it down to 
my desired resolution. This command works great. However, now I'd like to 
'edit' the video by cutting out several portions from the *middle* of the 
video. In other words, I'd like to remove a few seconds here or there from 
the video by specifying the start and end times (or durations) I want to 
cut out. There will probably be several little sections cut out from the 
video. Any ideas on how to do this from the command-line? I'd prefer to 
cut the sections out of the Final.mp4 file with a -new- ffmpeg command, 
but if I need to go back and change my initial command that could work 
too. Thanks!

cat 00012.MTS 00013.MTS 00014.MTS | /usr/local/ffmpeg/ffmpeg -threads 4 -i 
- -ss 50 -t 2405 -vf scale=853:480,crop=640:480 -aspect 4:3 -r 30 -b 1200k 
-ab 256k Final.mp4
DerVali | 9 Feb 15:58
Picon
Favicon
Gravatar

Converting captured YUV Data to an AVI

Hey there,

currently I'm trying to create an Avi-Video out of a raw captured
YUV-Data-Stream. For capturing the Source I'm using a C++ Code Visual Studio
2010.  As the result I get the data of each frame in 8-Bit yuv422-Format [Cr
Y Cb Y]. The next step will be writing the data of each frame in some format
FFMPEG can deal with. After Capturing the whole sequence I want to use
FFMPEG to encode the raw data format to an avi-file (also yuv 4:2:2). I've
never used ffmpeg before, so I would be glad if someone could help me. Which
format shall I use to store the raw video stream?

Many Regards and thx for answers,

DerVali

--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Converting-captured-YUV-Data-to-an-AVI-tp4373124p4373124.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
Fernanda Rebelatto | 9 Feb 13:11
Picon
Gravatar

audio frequency frame by frame

Hi,

I'm new here and my questions will be simple, but  I still need help.

I need to create a spectrogram so I need to know the frequency of the
audio in each frame.

I can not find this data. Does anyone know how this could be done?

Att.,
Fernanda Rebelatto
--
Analista de Sistemas
http://www.brazip.com.br
Carl Eugen Hoyos | 9 Feb 10:38
Picon

Re: Question about x11grab and mkv files

Giorgio Vazzana <mywing81 <at> gmail.com> writes:

> ffmpeg -t 5 -f x11grab -video_size 640x480 -framerate 10 -i :0.0
> -vcodec copy  output-master-copy.mkv

Is there any application except FFmpeg that read the resulting 
(good) files?

> ffmpeg -t 5 -f x11grab -video_size 640x480 -framerate 10 -i :0.0
> -vcodec ljpeg output-master-ljpeg.mkv
> 
> Note the the same commands work fine with ffmpeg-0.10.

Yes, but in the case of -vcodec copy the resulting video 
used "room" (disc space) for transparency information 
that is not there (x11 does not export opaqueness but "0"), 
please try -vcodec rawvideo -pix_fmt bgr24.
The ljpeg encoder claims to encode transparency, but it 
actually does not...

I sent two patches to ffmpeg-devel:
The first makes ljpegenc support BGR0 and BGR24 (but removes 
BGRA which never was really supported).
The second adds tags for BGR0 etc (and RGB64), but see above, 
I wonder if any other application reads the resulting files.

> Logs are here: http://mywing.altervista.org/tmp/ffmpeg-x11grab

Please always post complete, uncut console output here, external 
resources may disappear.
(Continue reading)

Peter B. | 9 Feb 10:11

Displayed duration of MPEG wrong, up to several frames

During extensive MPEG encoding tests, I've noticed that sometimes,  
FFmpeg does not display the duration of MPEG files correctly.

I've tried ffprobe and ffmpeg:

ffmpeg version N-37610-g0349d61 Copyright (c) 2000-2012 the FFmpeg developers
   built on Feb  9 2012 09:47:14 with gcc 4.4.5

Here are 2 example files:

1)  
http://download.das-werkstatt.com/pb/mthk/examples/mpeg-duration/vx-04810_00_k01.mpg
Duration: 338 frames = 13,52 sec
FFmpeg says: 13,52 sec (4 frames difference)

2)  
http://download.das-werkstatt.com/pb/mthk/examples/mpeg-duration/v-10942_00_k01.mpg
Duration: 400 frames = 16,00 sec
FFmpeg says: 15,96 sec (1 frame difference)

I've verified their correct length with Avidemux [1] and GSpot [2].

Unfortunately, a duration-mismatch of up-to several frames makes it  
currently impossible to use FFmpeg as transcoding verification tool :(

If anyone could provide me information about why this is happening, or  
how to fix it, I'd be very very grateful.

Thanks in advance,
Pb
(Continue reading)

Paul Salman | 9 Feb 08:28
Picon
Gravatar

SMPTE 302m (unknown codec s302m)


Hi,
I have a stream that has what I believe is dolby e audio, and I was wondering if I could get some help in getting
the audio out of the transport stream.

Here is what the file looks like:

Duration: 00:00:30.11, start: 0.246800, bitrate: 44254 kb/s
 Program 1
 Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p
 Stream #0:1[0x33]: Audio: s302m (BSSD / 0x44535342), 48000 Hz, stereo, s32, 2304 kb/s

I tried several combinations of audio codecs pcm_s24le/ pcm_s32le with no luck so far. Trying -acodec
s302m I get an "unknown codec s302m" error message.

Any help is appreciated.

Thanks,
 		 	   		   		 	   		  
Giorgio Vazzana | 7 Feb 18:39
Picon

Question about x11grab and mkv files

Hello,

when using the following commands with ffmpeg-master I get either an
output file I cannot play back with ffplay or an error:

ffmpeg -t 5 -f x11grab -video_size 640x480 -framerate 10 -i :0.0
-vcodec copy  output-master-copy.mkv
ffmpeg -t 5 -f x11grab -video_size 640x480 -framerate 10 -i :0.0
-vcodec ljpeg output-master-ljpeg.mkv

Note the the same commands work fine with ffmpeg-0.10.
Logs are here: http://mywing.altervista.org/tmp/ffmpeg-x11grab
The only difference I could spot was the pixel format: bgra for
ffmpeg-0.10 and bgr0 for ffmpeg-master.
Is this a regression or a known behavior? I'm not subscribed to the
list, please CC me in replies, thanks.
Regards,

Giorgio Vazzana
Denis | 8 Feb 21:24
Picon

avio_open_dyn_buf versus avio_open


"avio_open" function is used to manage a file. Someone can explain to me which 
is the right use of "avio_open_dyn_buf" function and which are the cases on 
that this function must to be used?

Thanks a lot. Denis.

--

-- 
www.denisgottardello.it
Skype: mrdebug
Videosurveillance and home automation! 
http://www.denisgottardello.it/DomusBoss/DomusBossIndice.php
Dave Lakers | 8 Feb 20:45
Picon
Gravatar

ffmpeg + dvdauthor incorrect aspect ratio conversion

Hi all

I am trying to create a DVD using DVDAuthor and without any DVDAuthor GUIs
because I am automating the  DVD production process without GUI
intervention. Everything seems to be going well and we are nearly done apart
from the screen resolution of the DVD when its played on a DVD player. The
sides and top are cutoff from the DVD image. 

If anyone can help it would be appreciated, we’re trying to distribute
thousands of free educational dvds to kids in poor countries. Heres the full
story....

I have two files which are in MP4 (640x360 in 16:9 and 1280x720) format
which I first convert to MPEG using ffmpeg.

ffmpeg -i video1. mp4 -target pal-dvd -ar 48000 -y video1.mpeg

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video1.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2011-07-16 13:33:56
  Duration: 00:17:38.64, start: 0.000000, bitrate: 125 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 /
0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 58 kb/s, 14.99 fps, 14.99
tbr, 59956 tbn, 29.98 tbc
    Metadata:
      creation_time   : 2011-07-16 13:33:56
      handler_name    :
(Continue reading)

tovis | 8 Feb 18:46
Picon
Favicon
Gravatar

RTSP grab from IP camera using ffmpeg

Hi everybody!
After, that I have to manage configure/compile/install latest git version
of ffmpeg - thanks to Carl Eugen Hoyos - I have try to put it on work.
I need to grab and make a snapshot from rtsp stream, coming from IP camera.
(Later I have used openRTSP, make a clip for 1-3 sec and get one frame
using ffmpeg)
At first I have tried this command, simply grab stream to a file:

$ ffmpeg -i rtsp://user:password <at> 172.16.3.2/mjpeg -an clip.mjpeg >log 2>&1

but I have a lot of error messages and nothing in the clip - log at
http://pastebin.com/uGhNJnTi

Could some one help what could be wrong?

Sincerely
  tovis

Gmane