Generated ffplay gives segmentation fault when executed on beagleboard

GDB is available in all the feeds for beagleboard.

Hi,
When i run opkg install gdb,it was downloading the older version of
gdb from feeds,but that older version was not available in the
feed....but the new gdb version was available....

Hi,

I built the ffmpeg image using the following command line option:

./configure --arch=arm --target-os=linux --enable-cross-compile --cross-prefix=arm-none-linux-gnueabi- --cc=arm-none-linux-gnueabi-gcc --enable-gpl --enable-avfilter --enable-pthreads --enable-postproc --enable-avfilter-lavf --enable-filter=drawtext --enable-static --enable-swscale --enable-debug --disable-shared

I generated the ffmpeg image, but while executing it on Beagle Board i got the following error:

root@beagleboard:/# ./ffmpeg -i foreman.yuv out.mpg
FFmpeg version 0.6.2, Copyright © 2000-2010 the FFmpeg developers
built on Aug 11 2011 22:43:13 with gcc 4.2.3
configuration: --arch=arm --target-os=linux --enable-cross-compile --cross-pr=
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
picture size invalid (0x0)
Last message repeated 1 times
[rawvideo @ 0xac6c50]Could not find codec parameters (Video: rawvideo, yuv420p)
[rawvideo @ 0xac6c50]Estimating duration from bitrate, this may be inaccurate
foreman.yuv: could not find codec parameters

Wht could be the meaning of "could not find codec parameters "…?

Thanks,
Rajiv.

Rajiv Biswas wrote:

Hi,

I built the ffmpeg image using the following command line option:

./configure --arch=arm --target-os=linux --enable-cross-compile --cross-prefix=arm-none-linux-gnueabi-
--cc=arm-none-linux-gnueabi-gcc --enable-gpl --enable-avfilter --enable-pthreads --enable-postproc
--enable-avfilter-lavf --enable-filter=drawtext --enable-static --enable-swscale --enable-debug --disable-shared

I generated the ffmpeg image, but while executing it on Beagle Board i got the following error:

root@beagleboard:/# ./ffmpeg -i foreman.yuv out.mpg
FFmpeg version 0.6.2, Copyright (c) 2000-2010 the FFmpeg developers
   built on Aug 11 2011 22:43:13 with gcc 4.2.3
   configuration: --arch=arm --target-os=linux --enable-cross-compile --cross-pr=
   libavutil 50.15. 1 / 50.15. 1
   libavcodec 52.72. 2 / 52.72. 2
   libavformat 52.64. 2 / 52.64. 2
   libavdevice 52. 2. 0 / 52. 2. 0
   libavfilter 1.19. 0 / 1.19. 0
   libswscale 0.11. 0 / 0.11. 0
   libpostproc 51. 2. 0 / 51. 2. 0
picture size invalid (0x0)
     Last message repeated 1 times
[rawvideo @ 0xac6c50]Could not find codec parameters (Video: rawvideo, yuv420p)
[rawvideo @ 0xac6c50]Estimating duration from bitrate, this may be inaccurate
foreman.yuv: could not find codec parameters

Wht could be the meaning of "could not find codec parameters "..?

does "./ffmpeg -i foreman.yuv out.mpg" work on your PC?

No, after building the FFMPEG binary image, using arm cross-compile toolchain,
i flashed it to my sd card, and while executing it through the board console, using the
command line,

root@beagleboard:/# ./ffmpeg -i foreman.yuv out.mpg

I am encountering the error:

picture size invalid (0x0)
Last message repeated 1 times
[rawvideo @ 0xac6c50]Could not find codec parameters (Video: rawvideo, yuv420p)
[rawvideo @ 0xac6c50]Estimating duration from bitrate, this may be inaccurate
foreman.yuv: could not find codec parameters

Are any arguments required, or is the command line fine…?

Thanks,
Rajiv.

Rajiv Biswas wrote:

No, after building the FFMPEG binary image, using arm cross-compile toolchain,
i flashed it to my sd card, and while executing it through the board console, using the
command line,
root@beagleboard:/# ./ffmpeg -i foreman.yuv out.mpg

I am encountering the error:
picture size invalid (0x0)
     Last message repeated 1 times
[rawvideo @ 0xac6c50]Could not find codec parameters (Video: rawvideo, yuv420p)
[rawvideo @ 0xac6c50]Estimating duration from bitrate, this may be inaccurate
foreman.yuv: could not find codec parameters
Are any arguments required, or is the command line fine...?

1) before running it on the beagleboard, please go test that 1st on your PC

2) do 1) first

Danke…I will firstly check tht.

Guten Tag,
Rajiv.

Hi,

Yep, it worked for the x86 built image, and after tht i tried the same with the ARM
built image on the Board and yeah it worked.
The command should be:

root@beagleboard:/# ./ffmpeg -s 352x288 -ar 128000 -i in.yuv out.mp4

FFmpeg version 0.6.2, Copyright © 2000-2010 the FFmpeg developers
built on Aug 11 2011 22:43:13 with gcc 4.2.3
configuration: --arch=arm --target-os=linux --enable-cross-compile --cross-pr=
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
[rawvideo @ 0xac6c50]Estimating duration from bitrate, this may be inaccurate
Input #0, rawvideo, from ‘in.yuv’:
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0.0: Video: rawvideo, yuv420p, 352x288, 25 tbr, 25 tbn, 25 tbc
Output #0, mp4, to ‘out.mp4’:
Metadata:
encoder : Lavf52.64.2
Stream #0.0: Video: mpeg4, yuv420p, 352x288, q=2-31, 200 kb/s, 25 tbn, 25 tc
Stream mapping:
Stream #0.0 → #0.0
Press [q] to stop encoding
frame= 300 fps= 52 q=13.8 Lsize= 434kB time=12.00 bitrate= 296.0kbits/s
video:430kB audio:0kB global headers:0kB muxing overhead 0.738766%

Hence, i gave the input as ‘in.yuv’ raw video and ffmpeg generated the encoded output as
‘out.mp4’.

However, i tried to generate a ‘.264’ encoded output, but i got the following error:

root@beagleboard:/# ./ffmpeg -s 352x288 -ar 128000 -i in.yuv out.264

FFmpeg version 0.6.2, Copyright © 2000-2010 the FFmpeg developers
built on Aug 11 2011 22:43:13 with gcc 4.2.3
configuration: --arch=arm --target-os=linux --enable-cross-compile --cross-pr=
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
[rawvideo @ 0xac6c50]Estimating duration from bitrate, this may be inaccurate
Input #0, rawvideo, from ‘in.yuv’:
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0.0: Video: rawvideo, yuv420p, 352x288, 25 tbr, 25 tbn, 25 tbc
Unable to find a suitable output format for ‘out.264’

Does FFmpeg support ‘.264’ format ? (“Unable to find a suitable output format for ‘out.264’”)

Danken du und Guten Tag,
Rajiv.