Nux!


Home » Repos » Report a problem or request a package » ffmpeg update request
Re: ffmpeg update request [message #1071 is a reply to message #1070] Sat, 09 March 2013 07:41 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
I appreciate the truth you told me but I am always open to learn more.

I hope you can fix it as after more reading, Fedora has a 6 months update (it's why I left Ubuntu as well, I used to use LTS) and Rosa is Mandriva based.

Re: ffmpeg update request [message #1072 is a reply to message #926] Sat, 09 March 2013 09:21 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

MrNice,

This does not mean you're supposed to stop here, these challenges are part of the journey and it's what makes us learn and get better.
By all means continue reading about mock and spec files and try it out on your own. If you can come with specific problems we'll do our best to help you.

Also, it's clear to me you're really looking for something more recent and while Stella may eventually have her ffmpeg stack upgraded it may take a while to get there.
Why not look at Kororaa or Fuduntu, they seem to be reasonably modern and have a lower development pace than Fedora and Ubuntu?

Good luck.
Re: ffmpeg update request [message #1073 is a reply to message #1071] Sat, 09 March 2013 16:13 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

I'll try , one more scam to preload the libs from opt, and assign an alias ,( ffmpeg-opt 4 ex.) if I manage to fix it I'll update this post.
Re: ffmpeg update request [message #1074 is a reply to message #1073] Sat, 09 March 2013 20:00 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

LE:
http://mrb.mandrivausers.ro/MRB/stella/testing/ffmpeg-opt-1. 1.3-3/
works,
Usage:

execname-opt


where excename is ffmpeg, ffplay, ffserver, a.s.o.
Pay attention at the yum messages at the end of the install process.
No more :
/opt/usr/bin/ffmpeg


Use it as it would be ffmpeg just add "-opt" to executable name.
4 ex.
ffplay-opt $HOME/Video/NudeNux.avi



If you use ffserver remember to create a config file in /etc.

[Updated on: Sat, 09 March 2013 20:01]

Report message to a moderator

Re: ffmpeg update request [message #1075 is a reply to message #1074] Sun, 10 March 2013 11:28 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
Install seems ok:
[root@livecd ff]# yum install *.rpm
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: ftp.heanet.ie
 * elrepo: mirrors.coreix.net
 * epel: ftp.heanet.ie
 * extras: ftp.heanet.ie
 * nux-dextop: mirror.li.nux.ro
 * updates: ftp.heanet.ie
Setting up Install Process
Examining ffmpeg-opt-1.1.3-3stella.x86_64.rpm: ffmpeg-opt-1.1.3-3stella.x86_64
Marking ffmpeg-opt-1.1.3-3stella.x86_64.rpm to be installed
Examining ffmpeg-opt-devel-1.1.3-3stella.x86_64.rpm: ffmpeg-opt-devel-1.1.3-3stella.x86_64
Marking ffmpeg-opt-devel-1.1.3-3stella.x86_64.rpm to be installed
Examining ffmpeg-opt-libs-1.1.3-3stella.x86_64.rpm: ffmpeg-opt-libs-1.1.3-3stella.x86_64
Marking ffmpeg-opt-libs-1.1.3-3stella.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package ffmpeg-opt.x86_64 0:1.1.3-3stella will be installed
---> Package ffmpeg-opt-devel.x86_64 0:1.1.3-3stella will be installed
---> Package ffmpeg-opt-libs.x86_64 0:1.1.3-3stella will be installed
--> Processing Dependency: libopus.so.0()(64bit) for package: ffmpeg-opt-libs-1.1.3-3stella.x86_64
--> Running transaction check
---> Package opus.x86_64 0:1.0.2-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package      Arch   Version       Repository                              Size
================================================================================
Installing:
 ffmpeg-opt   x86_64 1.1.3-3stella /ffmpeg-opt-1.1.3-3stella.x86_64       1.2 M
 ffmpeg-opt-devel
              x86_64 1.1.3-3stella /ffmpeg-opt-devel-1.1.3-3stella.x86_64 650 k
 ffmpeg-opt-libs
              x86_64 1.1.3-3stella /ffmpeg-opt-libs-1.1.3-3stella.x86_64   50 M
Installing for dependencies:
 opus         x86_64 1.0.2-1.el6   epel                                   626 k

Transaction Summary
================================================================================
Install       4 Package(s)

Total size: 53 M
Total download size: 626 k
Installed size: 53 M
Is this ok [y/N]: y
Downloading Packages:
opus-1.0.2-1.el6.x86_64.rpm                              | 626 kB     00:01     
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
 Userid : EPEL (6) <epel@fedoraproject.org>
 Package: epel-release-6-7.noarch (@epel/$releasever)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : opus-1.0.2-1.el6.x86_64                                      1/4 
  Installing : ffmpeg-opt-libs-1.1.3-3stella.x86_64                         2/4 
  Installing : ffmpeg-opt-1.1.3-3stella.x86_64                              3/4 
#############################################
#created aliases for each exec, usage     : #
#	ffmpeg-opt			    #
#	ffprobe-opt			    #
#	ffplay-opt			    #
#	ffserver-opt			    #
#	qt-faststart-opt		    #
#############################################
  Installing : ffmpeg-opt-devel-1.1.3-3stella.x86_64                        4/4 
  Verifying  : ffmpeg-opt-1.1.3-3stella.x86_64                              1/4 
  Verifying  : ffmpeg-opt-devel-1.1.3-3stella.x86_64                        2/4 
  Verifying  : ffmpeg-opt-libs-1.1.3-3stella.x86_64                         3/4 
  Verifying  : opus-1.0.2-1.el6.x86_64                                      4/4 

Installed:
  ffmpeg-opt.x86_64 0:1.1.3-3stella                                             
  ffmpeg-opt-devel.x86_64 0:1.1.3-3stella                                       
  ffmpeg-opt-libs.x86_64 0:1.1.3-3stella                                        

Dependency Installed:
  opus.x86_64 0:1.0.2-1.el6                                                     

Complete!
[root@livecd ff]# 

But run is not good Crying or Very Sad

[centoslive@livecd ~]$ ffmpeg-opt -f alsa -i hw:0,0 -f v4l2 -channel 1 -i /dev/video0 -map 0:0 -map 1:0 -c:a pcm_s16le -c:v huffyuv test_`date +%Y%m%d_%H%M`.avi
ffmpeg version 1.1.3 Copyright (c) 2000-2013 the FFmpeg developers
  built on Mar  9 2013 19:52:38 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
  configuration: --prefix=/opt --bindir=/opt/usr/bin --datadir=/opt/usr/share/ffmpeg --incdir=/opt/usr/include/ffmpeg --libdir=/opt/usr/lib64 --mandir=/opt/usr/share/man --arch=x86_64 --optflags='-O2 -g' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/opt/usr/lib64 --enable-runtime-cpudetect
  libavutil      52. 13.100 / 52. 13.100
  libavcodec     54. 86.100 / 54. 86.100
  libavformat    54. 59.106 / 54. 59.106
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 32.100 /  3. 32.100
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
[centoslive@livecd ~]$

Nothing happened even with
[centoslive@livecd Desktop]$ ls
gnome-display-properties.desktop  Local hard drives.desktop
gnome-keyboard.desktop            Local logical volumes.desktop
liveinst.desktop                  testvideo.mpg
[centoslive@livecd Desktop]$
[centoslive@livecd Desktop]$ ffplay-opt testvideo.mpg 
ffplay version 1.1.3 Copyright (c) 2003-2013 the FFmpeg developers
  built on Mar  9 2013 19:52:38 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
  configuration: --prefix=/opt --bindir=/opt/usr/bin --datadir=/opt/usr/share/ffmpeg --incdir=/opt/usr/include/ffmpeg --libdir=/opt/usr/lib64 --mandir=/opt/usr/share/man --arch=x86_64 --optflags='-O2 -g' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/opt/usr/lib64 --enable-runtime-cpudetect
  libavutil      52. 13.100 / 52. 13.100
  libavcodec     54. 86.100 / 54. 86.100
  libavformat    54. 59.106 / 54. 59.106
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 32.100 /  3. 32.100
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Simple media player
usage: ffplay [options] input_file

An input file must be specified
Use -h to get full help or, even better, run 'man ffplay'
[centoslive@livecd Desktop]$ 

I'll install Stella in a spare HDD and try again.

Edit Sunday 10th : Exactly the same issue with an installed Stella.

[Updated on: Sun, 10 March 2013 16:28]

Report message to a moderator

Re: ffmpeg update request [message #1076 is a reply to message #1075] Sun, 10 March 2013 16:32 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

Crap
Sorry my bad, I forgot that the old rpm can not handle default unspecified triggers
just to test it until I'll fix it try to preload the libs manually .
if you have 64 bit stella (otherwise change lib64 with lib):
LD_LIBRARY_PATH=/opt/usr/lib64 /opt/usr/bin/ffplay testvideo.mpg
Re: ffmpeg update request [message #1082 is a reply to message #1076] Mon, 11 March 2013 17:54 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

Ok
http://mrb.mandrivausers.ro/MRB/stella/testing/ffmpeg-opt-la st/
this should work fine
same commands ffmpeg-opt, ffplay-opt a.s.o.index.php?t=getfile&id=81&private=0
Re: ffmpeg update request [message #1088 is a reply to message #1082] Tue, 12 March 2013 20:14 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
Super!!!

It's working fine.
Thanks a million for your very great job.

Now I hope there is no other bug as I have to add more parameters in the command.

Thank you again.
Re: ffmpeg update request [message #1089 is a reply to message #1088] Wed, 13 March 2013 02:39 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

This is 1.1.3 the last stable ffmpeg, I've tried the devel branch from git but won't build.
If this is also bugged I'm afraid that you'll have to deal with them upstream.
Re: ffmpeg update request [message #1096 is a reply to message #1089] Sat, 16 March 2013 10:12 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
Hi symbianflo,

Unfortunately I am back in this thread.
I had to fill a ticket as I got an error with the ffmpeg version you kindly built.
Please see
https://ffmpeg.org/trac/ffmpeg/ticket/2367

Can you do a rebuild with the last version (he says git head (or 1.2)) or this is too complicated?
How long it could take (not to pressure but only to have an idea if it's few days or few weeks or maybe few months)
Unfortunately changing my distribution will not fix the issue.
I'm furious I can do nothing myself.

Thanks again for your kindness.
Re: ffmpeg update request [message #1097 is a reply to message #1096] Sat, 16 March 2013 10:46 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

MrNice wrote on Sat, 16 March 2013 10:12
Hi symbianflo,

Unfortunately I am back in this thread.
I had to fill a ticket as I got an error with the ffmpeg version you kindly built.
Please see
https://ffmpeg.org/trac/ffmpeg/ticket/2367

Can you do a rebuild with the last version (he says git head (or 1.2)) or this is too complicated?
How long it could take (not to pressure but only to have an idea if it's few days or few weeks or maybe few months)
Unfortunately changing my distribution will not fix the issue.
I'm furious I can do nothing myself.

Thanks again for your kindness.


I'll try again , last week's git didn't build , if I can have a quick fix, few patches is ok , but if I have to rewrite
part of their code no can do, I'll let you know.
One more question , that you have to ask them , the master branch from their git is ok ?, Or else ask for
the branch that he mean by "git head or 1.2"
Skiddish very skiddish this ffmpeg guy, there ain't no "git head" or "1.2" branch...
so let me know the branch of their git.

LE:
right, done a quick search, nobody has ffmpeg 1.2(unstable) not even arch or sabayon that are rolling/cutting edge.

LLE:
same place also 1.2-git, rpm package made from *master branch ( since other branch they don't have in the public git-domain...)
VARNING
DUE THE FACT THAT THIS A GIT UNSTABLE AND COMES WITH NEW API BUT THEY KEPT THE %major OF THE LIBS ,YOU HAVE TO UNINSTALL 1.1.3 FIRST
yum remove ffmpeg-opt-libs

And only after install the the git version:
http://mrb.mandrivausers.ro/MRB/stella/testing/ffmpeg-opt-1. 2-git/

c ya .

[Updated on: Sat, 16 March 2013 16:35]

Report message to a moderator

Re: ffmpeg update request [message #1099 is a reply to message #1097] Sun, 17 March 2013 10:47 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
Thanks a million for the new build. I never thought you could do it so fast.
Do you think I could have a so good support with another distro? I really don't want to change it. Very Happy

This is the output:
$ ffmpeg-opt -debug 1 -f alsa -ac 2 -channel_layout stereo -i hw:0,0 -f v4l2 -channel 1 -input_format yuyv422 -i /dev/video0 -map 0:a -map 1:v -c:a pcm_s16le -c:v ffv1 /Store3/Test/T`date +%Y%m%d_%H%M`.avi
ffmpeg version N-50974-g7d15cd4 Copyright (c) 2000-2013 the FFmpeg developers
  built on Mar 16 2013 12:54:29 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
  configuration: --prefix=/opt/ffmpeg-opt/usr --enable-shared --bindir=/opt/ffmpeg-opt/usr/bin --datadir=/opt/ffmpeg-opt/usr/share/ffmpeg-opt --incdir=/opt/ffmpeg-opt/usr/include/ffmpeg-opt --libdir=/opt/ffmpeg-opt/usr/lib64 --mandir=/opt/ffmpeg-opt/usr/share/man --shlibdir=/opt/ffmpeg-opt/usr/lib64 --arch=x86_64 --optflags='-O2 -g' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --build-suffix=1 --disable-doc --enable-runtime-cpudetect
  libavutil      52. 19.100 / 52. 19.100
  libavcodec     55.  0.100 / 55.  0.100
  libavformat    55.  0.100 / 55.  0.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 45.104 /  3. 45.104
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
 matched as AVOption 'debug' with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'alsa'.
Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'.
Reading option '-channel_layout' ... matched as option 'channel_layout' (set channel layout) with argument 'stereo'.
Reading option '-i' ... matched as input file with argument 'hw:0,0'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'v4l2'.
Reading option '-channel' ... matched as AVOption 'channel' with argument '1'.
Reading option '-input_format' ... matched as AVOption 'input_format' with argument 'yuyv422'.
Reading option '-i' ... matched as input file with argument '/dev/video0'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:a'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '1:v'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'pcm_s16le'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'ffv1'.
Reading option '/Store3/Test/T20130317_1035.avi' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Successfully parsed a group of options.
Parsing a group of options: input file hw:0,0.
Applying option f (force format) with argument alsa.
Applying option ac (set number of audio channels) with argument 2.
Applying option channel_layout (set channel layout) with argument stereo.
Successfully parsed a group of options.
Opening an input file: hw:0,0.
[alsa @ 0xf24220] All info found
[alsa @ 0xf24220] Estimating duration from bitrate, this may be inaccurate
Input #0, alsa, from 'hw:0,0':
  Duration: N/A, start: 1363516517.818821, bitrate: 1536 kb/s
    Stream #0:0, 1, 1/1000000: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Successfully opened the file.
Parsing a group of options: input file /dev/video0.
Applying option f (force format) with argument v4l2.
Successfully parsed a group of options.
Opening an input file: /dev/video0.
[video4linux2,v4l2 @ 0xf45ec0] fd:6 capabilities:5020041
[video4linux2,v4l2 @ 0xf45ec0] Selecting input_channel: 1
[video4linux2,v4l2 @ 0xf45ec0] input_channel: 1, input_name: S-Video
[video4linux2,v4l2 @ 0xf45ec0] Querying the device for the current frame size
[video4linux2,v4l2 @ 0xf45ec0] Setting frame size to 720x576
[video4linux2,v4l2 @ 0xf45ec0] The V4L2 driver is using the interlaced mode
[video4linux2,v4l2 @ 0xf45ec0] Current standard: PAL, id: 255, frameperiod: 1/25
[video4linux2,v4l2 @ 0xf45ec0] All info found
[video4linux2,v4l2 @ 0xf45ec0] Estimating duration from bitrate, this may be inaccurate
Input #1, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 1363516518.313203, bitrate: 165888 kb/s
    Stream #1:0, 1, 1/1000000: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x576, 1/1000000, 165888 kb/s, 25 fps, 25 tbr, 1000k tbn, 1000k tbc
Successfully opened the file.
Parsing a group of options: output file /Store3/Test/T20130317_1035.avi.
Applying option map (set input stream mapping) with argument 0:a.
Applying option map (set input stream mapping) with argument 1:v.
Applying option c:a (codec name) with argument pcm_s16le.
Applying option c:v (codec name) with argument ffv1.
Successfully parsed a group of options.
Opening an output file: /Store3/Test/T20130317_1035.avi.
Successfully opened the file.
[abuffer @ 0xf23c40] Setting entry with key 'time_base' to value '1/48000'
[abuffer @ 0xf23c40] Setting entry with key 'sample_rate' to value '48000'
[abuffer @ 0xf23c40] Setting entry with key 'sample_fmt' to value 's16'
[abuffer @ 0xf23c40] Setting entry with key 'channel_layout' to value '0x3'
[graph 0 input from stream 0:0 @ 0xf478c0] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3
[aformat @ 0xf1c300] Setting entry with key 'sample_fmts' to value 's16'
[buffer @ 0xf2be60] Setting entry with key 'video_size' to value '720x576'
[buffer @ 0xf2be60] Setting entry with key 'pix_fmt' to value '1'
[buffer @ 0xf2be60] Setting entry with key 'time_base' to value '1/1000000'
[buffer @ 0xf2be60] Setting entry with key 'pixel_aspect' to value '0/1'
[buffer @ 0xf2be60] Setting entry with key 'sws_param' to value 'flags=2'
[buffer @ 0xf2be60] Setting entry with key 'frame_rate' to value '25/1'
[graph 1 input from stream 1:0 @ 0xf2d1c0] w:720 h:576 pixfmt:yuyv422 tb:1/1000000 fr:25/1 sar:0/1 sws_param:flags=2
[scale @ 0xf2cb80] Setting 'w' to value '0'
[scale @ 0xf2cb80] Setting 'h' to value '0'
[scale @ 0xf2cb80] Setting 'flags' to value '0x4'
[auto-inserted scaler 0 @ 0xf2d600] w:0 h:0 flags:'0x4' interl:0
[format @ 0xf2c320] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format'
[auto-inserted scaler 0 @ 0xf2d600] picking yuv422p out of 26 ref:yuyv422 alpha:0
[auto-inserted scaler 0 @ 0xf2d600] w:720 h:576 fmt:yuyv422 sar:0/1 -> w:720 h:576 fmt:yuv422p sar:0/1 flags:0x4
[ffv1 @ 0xf48ea0] detected 8 logical cores
Output #0, avi, to '/Store3/Test/T20130317_1035.avi':
  Metadata:
    ISFT            : Lavf55.0.100
    Stream #0:0, 0, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
    Stream #0:1, 0, 1/25: Video: ffv1 (FFV1 / 0x31564646), yuv422p, 720x576, 1/25, q=2-31, 200 kb/s, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le -> pcm_s16le)
  Stream #1:0 -> #0:1 (rawvideo -> ffv1)
Press [q] to stop, [?] for help
[avi @ 0xf47e00] st:0 PTS: 26591 DTS: 26591 < 26592 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 37380 DTS: 37380 < 37381 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 40322 DTS: 40322 < 40323 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 40816 DTS: 40816 < 40817 invalid, clipping
st:0 PTS: 55056 DTS: 55056 < 55057 invalid, clipping:00.97 bitrate=20603.9kbits/s    
[avi @ 0xf47e00] st:0 PTS: 55057 DTS: 55057 < 55058 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 65011 DTS: 65011 < 65012 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 68939 DTS: 68939 < 68940 invalid, clipping
st:0 PTS: 72367 DTS: 72367 < 72368 invalid, clipping:01.48 bitrate=26890.9kbits/s    
[avi @ 0xf47e00] st:0 PTS: 76291 DTS: 76291 < 76292 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 94455 DTS: 94455 < 94456 invalid, clipping
st:0 PTS: 97398 DTS: 97398 < 97399 invalid, clipping:01.99 bitrate=30015.1kbits/s    
[avi @ 0xf47e00] st:0 PTS: 97888 DTS: 97888 < 97889 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 97889 DTS: 97889 < 97890 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 111633 DTS: 111633 < 111634 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 112613 DTS: 112613 < 112614 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 112614 DTS: 112614 < 112615 invalid, clipping
st:0 PTS: 126534 DTS: 126534 < 126535 invalid, clipping.52 bitrate=31687.6kbits/s    
[avi @ 0xf47e00] st:0 PTS: 136336 DTS: 136336 < 136337 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 136825 DTS: 136825 < 136826 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 136826 DTS: 136826 < 136827 invalid, clipping
st:0 PTS: 153991 DTS: 153991 < 153992 invalid, clipping.03 bitrate=32938.0kbits/s    
[avi @ 0xf47e00] st:0 PTS: 154481 DTS: 154481 < 154482 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 154482 DTS: 154482 < 154483 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 161841 DTS: 161841 < 161842 invalid, clipping
st:0 PTS: 175482 DTS: 175482 < 175483 invalid, clipping.56 bitrate=33636.0kbits/s    
[avi @ 0xf47e00] st:0 PTS: 175972 DTS: 175972 < 175973 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 179407 DTS: 179407 < 179408 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 179408 DTS: 179408 < 179409 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 182846 DTS: 182846 < 182847 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 187064 DTS: 187064 < 187065 invalid, clipping
st:0 PTS: 197489 DTS: 197489 < 197490 invalid, clipping.07 bitrate=33975.7kbits/s    
[avi @ 0xf47e00] st:0 PTS: 200946 DTS: 200946 < 200947 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 211143 DTS: 211143 < 211144 invalid, clipping
[avi @ 0xf47e00] st:0 PTS: 218637 DTS: 218637 < 218638 invalid, clipping
st:0 PTS: 225999 DTS: 225999 < 226000 invalid, clipping.56 bitrate=34690.6kbits/s    
frame=  109 fps= 25 q=0.0 Lsize=   20561kB time=00:00:04.79 bitrate=35163.3kbits/s    
video:19630kB audio:898kB subtitle:0 global headers:0kB muxing overhead 0.157830%

The bug has been fixed in a previous version, that is good.
But there is another one leading to clipping and I have a de-synchro between video and sound.

I'll test again and go back to ffmpeg forum/dev.
If I need a new build, this should be easier for now, keep the tools aside... Rolling Eyes

Thanks again.

Re: ffmpeg update request [message #1100 is a reply to message #926] Sun, 17 March 2013 12:17 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

yeah, about being easier... You can try to rebuild my srpm, but I have to warn you that I've backported
gcc 4.8.3 and build the git ffmpeg against it , so no guarantee that you'll manage to have a clean build with my patches...
about the bug..... I wonder what excuse they'll find now ? Very Happy
About support in Stella , since for Nux this is a hobby, I do believe that he'll keep it going as long as he could ,
is nothing special, all the distros have tools ( maybe better then ours, but not so fast Wink ) to satisfy package requests.
C ya
Re: ffmpeg update request [message #1110 is a reply to message #1100] Tue, 19 March 2013 17:26 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
Hi symbianflo,

I had an answer from ffmpeg dev team.
https://ffmpeg.org/trac/ffmpeg/ticket/2367
Quote:
Hi, could you please compile current git head without "--enable-libv4l2" and test again?
I suspect this could be the problem, since I cannot reproduce the "invalid, clipping" issue here (but I have not tried with --enable-libv4l2).
libv4l2 is mostly useful with devices or webcams that support strange pixelformats, but yuyv422 is supported natively by ffmpeg.


He want more tests. If you can do it, but take your time.

Thanks.
Regards
Re: ffmpeg update request [message #1111 is a reply to message #1110] Tue, 19 March 2013 21:38 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

I'll try
LE:
http://mrb.mandrivausers.ro/MRB/stella/testing/ffmpeg-opt-1. 2-git-no-v4l2/

[Updated on: Tue, 19 March 2013 22:43]

Report message to a moderator

Re: ffmpeg update request [message #1117 is a reply to message #1111] Wed, 20 March 2013 07:46 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
I downloaded the 3 files, removed the previous ffmpeg-opt and rebuild the new version (without v4l2)

New test but still the same issue (invalid, clipping)

I don't understand the dev team request: They asked to rebuild without v4l2 but there is a call for v4l2 in my command. Moreover when I run the command I can see v4l2 seems to be used but should not be here and should have a error: missing v4l2, IMHO !?
I am totally a newbie in this field but just if you have 2 words to explain.

# ffmpeg-opt -debug 1 -f alsa -ac 2 -channel_layout stereo -i hw:0,0 -f v4l2 -channel 1 -input_format yuyv422 -i /dev/video0 -map 0:a -map 1:v -c:a pcm_s16le -c:v ffv1 /Store3/Test/T`date +%Y%m%d_%H%M`.avi
ffmpeg version N-50974-g7d15cd4 Copyright (c) 2000-2013 the FFmpeg developers
  built on Mar 19 2013 23:01:41 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3)
  configuration: --prefix=/opt/ffmpeg-opt/usr --enable-shared --bindir=/opt/ffmpeg-opt/usr/bin --datadir=/opt/ffmpeg-opt/usr/share/ffmpeg-opt --incdir=/opt/ffmpeg-opt/usr/include/ffmpeg-opt --libdir=/opt/ffmpeg-opt/usr/lib64 --mandir=/opt/ffmpeg-opt/usr/share/man --shlibdir=/opt/ffmpeg-opt/usr/lib64 --arch=x86_64 --optflags='-O2 -g' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --disable-libv4l2 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --build-suffix=1 --disable-doc --enable-runtime-cpudetect
  libavutil      52. 19.100 / 52. 19.100
  libavcodec     55.  0.100 / 55.  0.100
  libavformat    55.  0.100 / 55.  0.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 45.104 /  3. 45.104
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
 matched as AVOption 'debug' with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'alsa'.
Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'.
Reading option '-channel_layout' ... matched as option 'channel_layout' (set channel layout) with argument 'stereo'.
Reading option '-i' ... matched as input file with argument 'hw:0,0'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'v4l2'.
Reading option '-channel' ... matched as AVOption 'channel' with argument '1'.
Reading option '-input_format' ... matched as AVOption 'input_format' with argument 'yuyv422'.
Reading option '-i' ... matched as input file with argument '/dev/video0'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:a'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '1:v'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'pcm_s16le'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'ffv1'.
Reading option '/Store3/Test/T20130320_0732.avi' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Successfully parsed a group of options.
Parsing a group of options: input file hw:0,0.
Applying option f (force format) with argument alsa.
Applying option ac (set number of audio channels) with argument 2.
Applying option channel_layout (set channel layout) with argument stereo.
Successfully parsed a group of options.
Opening an input file: hw:0,0.
[alsa @ 0x16f0220] All info found
[alsa @ 0x16f0220] Estimating duration from bitrate, this may be inaccurate
Input #0, alsa, from 'hw:0,0':
  Duration: N/A, start: 1363764754.387283, bitrate: 1536 kb/s
    Stream #0:0, 1, 1/1000000: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Successfully opened the file.
Parsing a group of options: input file /dev/video0.
Applying option f (force format) with argument v4l2.
Successfully parsed a group of options.
Opening an input file: /dev/video0.
[video4linux2,v4l2 @ 0x1711ec0] fd:4 capabilities:5020041
[video4linux2,v4l2 @ 0x1711ec0] Selecting input_channel: 1
[video4linux2,v4l2 @ 0x1711ec0] input_channel: 1, input_name: S-Video
[video4linux2,v4l2 @ 0x1711ec0] Querying the device for the current frame size
[video4linux2,v4l2 @ 0x1711ec0] Setting frame size to 720x576
[video4linux2,v4l2 @ 0x1711ec0] The V4L2 driver is using the interlaced mode
[video4linux2,v4l2 @ 0x1711ec0] Current standard: PAL, id: 255, frameperiod: 1/25
[video4linux2,v4l2 @ 0x1711ec0] All info found
[video4linux2,v4l2 @ 0x1711ec0] Estimating duration from bitrate, this may be inaccurate
Input #1, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 1363764754.982879, bitrate: 165888 kb/s
    Stream #1:0, 1, 1/1000000: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 720x576, 1/1000000, 165888 kb/s, 25 fps, 25 tbr, 1000k tbn, 1000k tbc
Successfully opened the file.
Parsing a group of options: output file /Store3/Test/T20130320_0732.avi.
Applying option map (set input stream mapping) with argument 0:a.
Applying option map (set input stream mapping) with argument 1:v.
Applying option c:a (codec name) with argument pcm_s16le.
Applying option c:v (codec name) with argument ffv1.
Successfully parsed a group of options.
Opening an output file: /Store3/Test/T20130320_0732.avi.
Successfully opened the file.
[abuffer @ 0x1712fc0] Setting entry with key 'time_base' to value '1/48000'
[abuffer @ 0x1712fc0] Setting entry with key 'sample_rate' to value '48000'
[abuffer @ 0x1712fc0] Setting entry with key 'sample_fmt' to value 's16'
[abuffer @ 0x1712fc0] Setting entry with key 'channel_layout' to value '0x3'
[graph 0 input from stream 0:0 @ 0x16efc00] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3
[aformat @ 0x16e8300] Setting entry with key 'sample_fmts' to value 's16'
[buffer @ 0x16f7ec0] Setting entry with key 'video_size' to value '720x576'
[buffer @ 0x16f7ec0] Setting entry with key 'pix_fmt' to value '1'
[buffer @ 0x16f7ec0] Setting entry with key 'time_base' to value '1/1000000'
[buffer @ 0x16f7ec0] Setting entry with key 'pixel_aspect' to value '0/1'
[buffer @ 0x16f7ec0] Setting entry with key 'sws_param' to value 'flags=2'
[buffer @ 0x16f7ec0] Setting entry with key 'frame_rate' to value '25/1'
[graph 1 input from stream 1:0 @ 0x16f9320] w:720 h:576 pixfmt:yuyv422 tb:1/1000000 fr:25/1 sar:0/1 sws_param:flags=2
[scale @ 0x16f9b20] Setting 'w' to value '0'
[scale @ 0x16f9b20] Setting 'h' to value '0'
[scale @ 0x16f9b20] Setting 'flags' to value '0x4'
[auto-inserted scaler 0 @ 0x16f9a00] w:0 h:0 flags:'0x4' interl:0
[format @ 0x16f82c0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format'
[auto-inserted scaler 0 @ 0x16f9a00] picking yuv422p out of 26 ref:yuyv422 alpha:0
[auto-inserted scaler 0 @ 0x16f9a00] w:720 h:576 fmt:yuyv422 sar:0/1 -> w:720 h:576 fmt:yuv422p sar:0/1 flags:0x4
[ffv1 @ 0x1714260] detected 8 logical cores
Output #0, avi, to '/Store3/Test/T20130320_0732.avi':
  Metadata:
    ISFT            : Lavf55.0.100
    Stream #0:0, 0, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
    Stream #0:1, 0, 1/25: Video: ffv1 (FFV1 / 0x31564646), yuv422p, 720x576, 1/25, q=2-31, 200 kb/s, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le -> pcm_s16le)
  Stream #1:0 -> #0:1 (rawvideo -> ffv1)
Press [q] to stop, [?] for help
[avi @ 0x17131c0] st:0 PTS: 33256 DTS: 33256 < 33257 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 33257 DTS: 33257 < 33258 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 33258 DTS: 33258 < 33259 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 33259 DTS: 33259 < 33260 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 33260 DTS: 33260 < 33261 invalid, clipping
st:0 PTS: 102074 DTS: 102074 < 102075 invalid, clipping.62 bitrate=12958.3kbits/s    
st:0 PTS: 106940 DTS: 106940 < 106941 invalid, clipping.13 bitrate=14169.8kbits/s    
[avi @ 0x17131c0] st:0 PTS: 112789 DTS: 112789 < 112790 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 113282 DTS: 113282 < 113283 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 120598 DTS: 120598 < 120599 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 123050 DTS: 123050 < 123051 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 123536 DTS: 123536 < 123537 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 124512 DTS: 124512 < 124513 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 125485 DTS: 125485 < 125486 invalid, clipping
st:0 PTS: 132803 DTS: 132803 < 132804 invalid, clipping.63 bitrate=15269.0kbits/s    
[avi @ 0x17131c0] st:0 PTS: 132804 DTS: 132804 < 132805 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 135246 DTS: 135246 < 135247 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 136708 DTS: 136708 < 136709 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 143545 DTS: 143545 < 143546 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 144034 DTS: 144034 < 144035 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 144035 DTS: 144035 < 144036 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 144521 DTS: 144521 < 144522 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 148908 DTS: 148908 < 148909 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 148909 DTS: 148909 < 148910 invalid, clipping
st:0 PTS: 155756 DTS: 155756 < 155757 invalid, clipping.13 bitrate=15775.3kbits/s    
[avi @ 0x17131c0] st:0 PTS: 162598 DTS: 162598 < 162599 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 163090 DTS: 163090 < 163091 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 163091 DTS: 163091 < 163092 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 163577 DTS: 163577 < 163578 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 166990 DTS: 166990 < 166991 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 167475 DTS: 167475 < 167476 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 167476 DTS: 167476 < 167477 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 168449 DTS: 168449 < 168450 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 168938 DTS: 168938 < 168939 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 168939 DTS: 168939 < 168940 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 172832 DTS: 172832 < 172833 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 173324 DTS: 173324 < 173325 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 173325 DTS: 173325 < 173326 invalid, clipping
st:0 PTS: 174298 DTS: 174298 < 174299 invalid, clipping.63 bitrate=16359.7kbits/s    
[avi @ 0x17131c0] st:0 PTS: 174787 DTS: 174787 < 174788 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 174788 DTS: 174788 < 174789 invalid, clipping
[avi @ 0x17131c0] st:0 PTS: 177218 DTS: 177218 < 177219 invalid, clipping
frame=   84 fps= 25 q=0.0 Lsize=    8039kB time=00:00:03.95 bitrate=16645.1kbits/s    
video:7271kB audio:742kB subtitle:0 global headers:0kB muxing overhead 0.316930%


I'll post the new test to ffmpeg team.
Re: ffmpeg update request [message #1120 is a reply to message #1117] Wed, 20 March 2013 11:39 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

I think they mean that v4l2 is supported internally by ffmpeg and to try your command against internal v4l2
but since you still got the clipping issue , I'm afraid that is big-bug on their side...meaning upstream.
Re: ffmpeg update request [message #1200 is a reply to message #1120] Fri, 12 April 2013 21:07 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
Hi symbianflo,

I had an answer from the developer asking to open a new ticket for the bug I came across.

To start with the optimum, could you please re-build ffmpeg-opt with the last release and without v4l2, same as you did previously.
This should be in this page

http://git.videolan.org/?p=ffmpeg.git

I'll do again few tests with this new version and open the new ticket after.

Many thanks.
Re: ffmpeg update request [message #1201 is a reply to message #1200] Sat, 13 April 2013 12:20 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

I'll try this weekend , but I can not promise, I'm a bit under stress this period, but I'll try.

LE:
try this .
http://mrb.mandrivausers.ro/MRB/stella/testing/ffmpeg-opt-1. 2.99-20130513/x86_64/

[Updated on: Sat, 13 April 2013 20:50]

Report message to a moderator

Re: ffmpeg update request [message #1202 is a reply to message #1201] Sun, 14 April 2013 10:12 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
Many thanks

You are always very fast Smile

I de-installed the old, re-installed the new, and tried a test, working but still with the clipping error.
I'll open a new ticket and let you know later.

Have a good day.
Re: ffmpeg update request [message #1207 is a reply to message #1202] Wed, 17 April 2013 10:06 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
Hi symbianflo,

I have a question regarding your last rebuild.

Till the previous rebuilt (with and without v4l2 option) I used the command like:
ffmpeg-opt -debug 1 -f alsa -ac 2 -channel_layout stereo -i hw:0,0 -f v4l2 -channel 1 -input_format yuyv422 -i /dev/video0 -map 0:a -map 1:v -c:a pcm_s16le -c:v ffv1 /Store3/Test/T`date +%Y%m%d_%H%M`.mkv

Note the file name.
I got a file with the date like : T20130317_2119.mkv

With your last rebuilt with the same command I get the file name : T.mkv
There is no date.
Did you change something in the last rebuild?
Could you confirm this last rebuild is without v4l2

Many thanks.
Re: ffmpeg update request [message #1208 is a reply to message #926] Wed, 17 April 2013 11:28 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

If you do a `yum downgrade ffmpeg-opt` do you get the desired result?
What happens when you do this in a shell, does it return what it should?
echo `date +%Y%m%d_%H%M`
Re: ffmpeg update request [message #1210 is a reply to message #1208] Wed, 17 April 2013 15:36 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
echo `date +%Y%m%d_%H%M`
bash: /bin/date: cannot execute binary file


and
yum downgrade ffmpeg-opt
returns
Nothing to do

Nota: I removed the previous ffmpeg-opt before installing the new one.

If this is not related to ffmpeg-opt, I'll use another file naming, but I'd be interested to know what is the problem.
Re: ffmpeg update request [message #1211 is a reply to message #1207] Wed, 17 April 2013 17:50 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

MrNice wrote on Wed, 17 April 2013 09:06
Hi symbianflo,

I have a question regarding your last rebuild.

Till the previous rebuilt (with and without v4l2 option) I used the command like:
ffmpeg-opt -debug 1 -f alsa -ac 2 -channel_layout stereo -i hw:0,0 -f v4l2 -channel 1 -input_format yuyv422 -i /dev/video0 -map 0:a -map 1:v -c:a pcm_s16le -c:v ffv1 /Store3/Test/T`date +%Y%m%d_%H%M`.mkv

Note the file name.
I got a file with the date like : T20130317_2119.mkv

With your last rebuilt with the same command I get the file name : T.mkv
There is no date.
Did you change something in the last rebuild?
Could you confirm this last rebuild is without v4l2

Many thanks.



.
./configure \
    --prefix=/opt/ffmpeg-opt/usr \
    --enable-shared \
    --bindir=/opt/ffmpeg-opt/usr/bin \
    --datadir=/opt/ffmpeg-opt/usr/share/%{name} \
    --incdir=/opt/ffmpeg-opt/usr/include/%{name} \
%ifarch %{ix86}
    --libdir=/opt/ffmpeg-opt/usr/lib \
%else
    --libdir=/opt/ffmpeg-opt/usr/lib64 \
%endif
    --mandir=/opt/ffmpeg-opt/usr/share/man \
%ifarch %{ix86}
    --shlibdir=/opt/ffmpeg-opt/usr/lib \
%else
    --shlibdir=/opt/ffmpeg-opt/usr/lib64 \
%endif
    --arch=%{_target_cpu} \
    --optflags="$RPM_OPT_FLAGS" \
    %{?_with_amr:--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3} \
    --enable-bzlib \
    %{!?_with_crystalhd:--disable-crystalhd} \
    %{!?_without_frei0r:--enable-frei0r} \
    --enable-gnutls \
    --enable-libass \
    %{!?_without_cdio:--enable-libcdio} \
    %{!?_without_celt:--enable-libcelt} \
    --enable-libdc1394 \
    %{?_with_dirac:--enable-libdirac} \
    %{?_with_faac:--enable-libfaac --enable-nonfree} \
    %{!?_with_jack:--disable-indev=jack} \
    --enable-libfreetype \
    --enable-libgsm \
    --enable-libmp3lame \
    %{!?_without_openal:--enable-openal} \
    %{!?_without_opencv:--enable-libopencv} \
    --enable-libopenjpeg \
    --enable-libopus \
    %{!?_without_pulse:--enable-libpulse} \
    %{?_with_rtmp:--enable-librtmp} \
    --enable-libschroedinger \
    --enable-libspeex \
    --enable-libtheora \
    --enable-libvorbis \
    %{!?_without_vpx:--enable-libvpx} \
    %{!?_without_x264:--enable-libx264} \
    [u]--disable-libv4l2 \[/u]
    --enable-libxvid \
    --enable-x11grab \
    --enable-avfilter \
    --enable-postproc \
    --enable-pthreads \
    --disable-static \
    --enable-shared \
    --enable-gpl \
    --disable-debug \
    --disable-stripping\
%if 0%{?ffmpegsuffix:1}
    --build-suffix=%{ffmpegsuffix} \
    --disable-doc \
%ifarch %{ix86}
    --cpu=%{_target_cpu} \
%else %{ix86} x86_64
    --enable-runtime-cpudetect 
%endif
%endif



this is the configure part from my spec, also the srpm is reachable there:

http://mrb.mandrivausers.ro/MRB/stella/testing/ffmpeg-opt-1. 2.99-20130513/srpm/ffmpeg-opt-1.2.99-20130513stella.src.rpm
but since you can not execute date , is not my fault or ffmpeg's fault , bin/date is not required to run or to build ffmpeg.
If you don't trust me just download the srpm end explode it to wherever you want and reach the spec file.
If you run ffmpeg-opt with no arguments you'll see that v4l2 is disabled .

[Updated on: Wed, 17 April 2013 17:53]

Report message to a moderator

Re: ffmpeg update request [message #1212 is a reply to message #1210] Wed, 17 April 2013 18:10 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

[quote title=MrNice wrote on Wed, 17 April 2013 14:36]
echo `date +%Y%m%d_%H%M`
bash: /bin/date: cannot execute binary file


There's your problem! This is what I get on my pc:

$ echo `date +%Y%m%d_%H%M`
20130417_1809


What is "ls -al /bin/date" returning?
Re: ffmpeg update request [message #1213 is a reply to message #1211] Wed, 17 April 2013 18:32 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
There is no offence at all in my questions, as I told you previously, I am a newbie and I know only a little and be sure, I trust you.

So, now I learned how to check whether v4l2 is present or not. I didn't think to read thoroughly the configuration.
I was not sure but now I know that "date" is not part and not linked with ffmpeg.

=> I should have something changed in my Stella install but I don't know what, maybe when it was upgraded to 6.4 automatically.

Sorry for disturbing you, I'll let you know about ffmpeg as soon I'll get an answer from the dev team.


@ nux
ls -al /bin/date
-rwxr-xr-x. 1 root root 55672 Apr  4 09:01 /bin/date

[Updated on: Wed, 17 April 2013 18:35]

Report message to a moderator

Re: ffmpeg update request [message #1214 is a reply to message #926] Wed, 17 April 2013 18:52 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1659
Registered: January 2012
Senior Member
Administrator

Here's the output on my system:
ls -al /bin/date
-rwxr-xr-x. 1 root root 59488 Apr  4 09:01 /bin/date


The fact "date" command is not working is a bit worrying, have you done anything as root lately that may expain the damage to date?
Can you execute "date" without any parameters? What's happening?

I would try reinstalling the package that provides this command:
yum reinstall coreutils
Re: ffmpeg update request [message #1215 is a reply to message #1214] Wed, 17 April 2013 19:01 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
Ah, ah ! Very Happy

# yum reinstall coreutils

...

# date
Wed Apr 17 18:56:54 IST 2013

# echo `date +%Y%m%d_%H%M`
20130417_1857


I don't know why it was not working but now it's fixed

Many thanks.
Re: ffmpeg update request [message #1216 is a reply to message #1213] Wed, 17 April 2013 19:10 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

MrNice wrote on Wed, 17 April 2013 17:32
There is no offence at all in my questions, as I told you previously, I am a newbie and I know only a little and be sure, I trust you.

So, now I learned how to check whether v4l2 is present or not. I didn't think to read thoroughly the configuration.
I was not sure but now I know that "date" is not part and not linked with ffmpeg.

=> I should have something changed in my Stella install but I don't know what, maybe when it was upgraded to 6.4 automatically.

Sorry for disturbing you, I'll let you know about ffmpeg as soon I'll get an answer from the dev team.


@ nux
ls -al /bin/date
-rwxr-xr-x. 1 root root 55672 Apr  4 09:01 /bin/date



Is no offence m8, just justify that ffmpeg-opt is without v4l2, and the date is external problem,of ffmpeg-opt, and as nux said that your date executable is
a bit foggy it is a reason to worry about it .
So for each build I make I provide the srpm also , my " if you don't trust me" it was intended as "download the srpm and check" it might be that I'm wrong nobody is perfect Very Happy
(exept Nux ghghghgh )

So ffmpeg-opt the only part of the hosting system touched is /opt/ffmpeg-opt nothing else even in sbin/ld is hardcoded as /opt/ffpmeg-opt
you might say even that's out of rpm tree , (exept the ld part)
If I where you, I would try to reinstall coreutils , but first make a backup of what you needed most since you can boot the system.



Re: ffmpeg update request [message #1285 is a reply to message #1216] Sun, 19 May 2013 14:51 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
Hi symbianflo,

Long time I was not here, but nothing fixed. Still trying to find why I have distortions in the recorded audio files.
I didn't have any answer in the bugtrac for 3 weeks but I had on yesterday Smile

The developer ask me to try ffmpeg version 35fd812.
I tried to find where it is but I even don't know what this version is or where to find this ref, so I unfortunately can't help you more.
So could you build it as usual (ffmpeg-opt)?

Have a good day.
Re: ffmpeg update request [message #1286 is a reply to message #1285] Sun, 19 May 2013 20:18 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

yeah right , after a search all I can find is this:
https://bitbucket.org/tran_c/ffmpeg/src/35fd81224aa8/libavde vice/alsa-audio-common.c
dated 2009 already merged in the main trunk since ffmpeg 0.9
so I'm sorry but if they don't give you a link I can't do miracles....
Re: ffmpeg update request [message #1287 is a reply to message #926] Sun, 19 May 2013 22:18 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
Sorry for my ignorance but I just find out that git is a software for version control.
I don't know if you have it with the corresponding repository.
This is my question and answer here
https://ffmpeg.org/trac/ffmpeg/ticket/2504#comment:12
Quote:
Changed 33 minutes ago by MrNice

Hi cehoyos,

The guy in charge of package/rebuild ask me to get a link to the 35fd812 version.
Hi can't find it.
Could you, please provide it?
Thanks.
===========================

comment:13 Changed 19 minutes ago by cehoyos

$ git checkout 35fd812

Can you go further?
Re: ffmpeg update request [message #1288 is a reply to message #1287] Mon, 20 May 2013 08:51 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

ahahahahahaha , this is a branch , not a version m8 ....
a git has several branches , you switch between branches with checkout ...
I'll see what I can do .

LE:
Nope I'm sorry no can do , I should start rewriting ffmpeg.c because:
ffmpeg/libavformat/framehook.h:25:2: warning: #warning VHOOK is deprecated. Please help finishing libavfilter instead of wasting your time writing new filters for this crappy filter system.

friendly output I might say....
Beside this deprecated hook this branch ain't got no external support , kind of bare-bone config:
External library support:
  --enable-avisynth        enable reading of AVISynth script files [no]
  --enable-libamr-nb       enable libamr-nb floating point audio codec [no]
  --enable-libamr-wb       enable libamr-wb floating point audio codec [no]
  --enable-libdc1394       enable IIDC-1394 grabbing using libdc1394
                           and libraw1394 [no]
  --enable-libdirac        enable Dirac support via libdirac [no]
  --enable-libfaac         enable FAAC support via libfaac [no]
  --enable-libfaad         enable FAAD support via libfaad [no]
  --enable-libfaadbin      open libfaad.so.0 at runtime [no]
  --enable-libgsm          enable GSM support via libgsm [no]
  --enable-libmp3lame      enable MP3 encoding via libmp3lame [no]
  --enable-libnut          enable NUT (de)muxing via libnut,
                           native (de)muxer exists [no]
  --enable-libschroedinger enable Dirac support via libschroedinger [no]
  --enable-libspeex        enable Speex decoding via libspeex [no]
  --enable-libtheora       enable Theora encoding via libtheora [no]
  --enable-libvorbis       enable Vorbis encoding via libvorbis,
                           native implementation exists [no]
  --enable-libx264         enable H.264 encoding via x264 [no]
  --enable-libxvid         enable Xvid encoding via xvidcore,
                           native MPEG-4/Xvid encoder exists [no]
  --enable-mlib            enable Sun medialib [no]

and since all external libs are flagged [NO] by default and hardcoded eventually you'll
have only ffmpeg purebred...

So I'm sorry it won't build ....

If you'll need the debug output of this build :
h-errno -fno-signed-zeros      -fPIC -DPIC -c -o ffmpeg.o /media/home/symbianflo/rpmbuild/BUILD/ffmpeg/ffmpeg.c
make: *** No rule to make target `"/media/home/symbianflo/rpmbuild/BUILD/ffmpeg"/version.sh', needed by `version.h'.  Stop.
make: *** Waiting for unfinished jobs....
In file included from /media/home/symbianflo/rpmbuild/BUILD/ffmpeg/ffmpeg.c:37:
/media/home/symbianflo/rpmbuild/BUILD/ffmpeg/libavformat/framehook.h:25:2: warning: #warning VHOOK is deprecated. Please help finishing libavfilter instead of wasting your time writing new filters for this crappy filter system.
/media/home/symbianflo/rpmbuild/BUILD/ffmpeg/ffmpeg.c: In function 'output_packet':
/media/home/symbianflo/rpmbuild/BUILD/ffmpeg/ffmpeg.c:776: warning: dereferencing pointer 'picture2' does break strict-aliasing rules
/media/home/symbianflo/rpmbuild/BUILD/ffmpeg/ffmpeg.c:1306: note: initialized from here



I'm afraid you'll have to live with this...
sorry

[Updated on: Mon, 20 May 2013 11:19]

Report message to a moderator

Re: ffmpeg update request [message #1289 is a reply to message #926] Mon, 20 May 2013 16:32 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
"The Go-Between" is back Wink
Quote:
Changed 3 hours ago by cehoyos

Please tell him to always run $ make distclean before building a package.
comment:16
Changed 3 hours ago by cehoyos

And while you are at it: Please test ./configure && make - some of the configure options you are using look suspicious to me.

You will understand, I don't.
If you want, the full thread, I provided the link in the previous post.

Let me know.
Re: ffmpeg update request [message #1290 is a reply to message #1289] Mon, 20 May 2013 17:52 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

ok , with make distclean this is the exit:
Makefile:1: config.mak: No such file or directory
libavdevice/Makefile:1: libavdevice/../config.mak: No such file or directory
libavformat/Makefile:1: libavformat/../config.mak: No such file or directory
libavcodec/Makefile:1: libavcodec/../config.mak: No such file or directory
libavutil/Makefile:1: libavutil/../config.mak: No such file or directory
> vhook/watermark.d
> vhook/null.d
> vhook/fish.d
> libavutil/utils.d
> libavutil/tree.d
> libavutil/string.d
> libavutil/sha1.d
> libavutil/rc4.d
> libavutil/rational.d
> libavutil/random.d
> libavutil/mem.d
> libavutil/md5.d
> libavutil/mathematics.d
> libavutil/lzo.d
> libavutil/log.d
> libavutil/lls.d
> libavutil/lfg.d
> libavutil/intfloat_readwrite.d
> libavutil/fifo.d
> libavutil/des.d
> libavutil/crc.d
> libavutil/base64.d
> libavutil/aes.d
> libavutil/adler32.d
make: *** No rule to make target `libavutil/../config.mak'.  Stop.
make: *** Waiting for unfinished jobs....
error: Bad exit status from /media/home/symbianflo/rpmbuild/tmp/rpm-tmp.OjvEpM (%build)


and about strange configure of mine , here is the spec.file :
http://mrb.mandrivausers.ro/MRB/stella/testing/ffmpeg-opt-no vfl-git.spec

(so he can check how strange is my configure)
and also here is the build log with "make distclean":
http://mrb.mandrivausers.ro/MRB/stella/testing/ffmpeg-build

And now , if the mister developer sir will do the developing as strange as I'm doing the packaging we didn't
have this discuss , for sure...

All other ffmeg builds that I've done until now in the past 10 years went fine and his branch don't , you do the math,
Of course that if I would have to port this on an official repo for extended use I might lost a day in fixing it
but please understand me , I can not afford a day lost to fix one build for one person...
sorry



Re: ffmpeg update request [message #1291 is a reply to message #926] Mon, 20 May 2013 18:40 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
I understand you, you are very responsive and I thank you for all you do.

On the other hand, it is hard to get an answer from bugtrack, so I try to keep him warm...
BTW I don't know why he want to try this branch and I proposed to try another one.

We will see
Re: ffmpeg update request [message #1292 is a reply to message #1291] Mon, 20 May 2013 20:12 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

The ffmpeg guys have to realize that from win and mac users they won't have feedback, testing,bug-report,feature req. a.s.o
and they should change this attitude vs linux...
So no wonder that each 3 weeks or so, you got an answer...
Re: ffmpeg update request [message #1293 is a reply to message #926] Tue, 21 May 2013 10:08 Go to previous messageGo to next message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
The answer:
Quote:
Changed 11 hours ago by cehoyos

Sorry for not testing this myself, the commit I mentioned is broken, the subsequent one f2f35d3 works!
Navigate to http://git.videolan.org/?p=ffmpeg.git;a=snapshot;h=f2f35d3;sf=tgz and accept the tarball for download, then execute the following commands:

$ tar xf ffmpeg-f2f35d3.tar.gz
$ cd ffmpeg-f2f35d3/
$ ./configure && make ffmpeg

The resulting file ffmpeg is a standalone executable that you do not have to install but can either run from the build directory or wherever you want to copy it.


Let me know whether I have to do it myself or you have to do something.

Edit: I tried to make it but got the error "gcc is unable to create an executable file." Confused
Waiting for your advice.

[Updated on: Tue, 21 May 2013 10:43]

Report message to a moderator

Re: ffmpeg update request [message #1294 is a reply to message #1293] Tue, 21 May 2013 13:24 Go to previous messageGo to next message
symbianflo is currently offline  symbianflo
Messages: 176
Registered: January 2012
Location: italy
Senior Member

MrNice wrote on Tue, 21 May 2013 09:08
The answer:
Quote:
Changed 11 hours ago by cehoyos

Sorry for not testing this myself, the commit I mentioned is broken, the subsequent one f2f35d3 works!
Navigate to http://git.videolan.org/?p=ffmpeg.git;a=snapshot;h=f2f35d3;sf=tgz and accept the tarball for download, then execute the following commands:

$ tar xf ffmpeg-f2f35d3.tar.gz
$ cd ffmpeg-f2f35d3/
$ ./configure && make ffmpeg

The resulting file ffmpeg is a standalone executable that you do not have to install but can either run from the build directory or wherever you want to copy it.


Let me know whether I have to do it myself or you have to do something.

Edit: I tried to make it but got the error "gcc is unable to create an executable file." Confused
Waiting for your advice.


Don't tell me ... So I ain't got nil suspicious configure options on my attempt ?
And his git is fucked up? Can this be true ?
ahahahahahaha
Ok m8 I'll give this git a spin to , but please tell him no more rat-pooping me with
suspect config crap.
I'll let you know.

LE:

http://mrb.mandrivausers.ro/MRB/stella/testing/ffmpeg-opt-1. 2.99-20130521_f2f35d3stella/

Here you have it , you should know that it generates 2 executable per name, so you have ffmpeg-opt and ffmpeg-opt_g
ffplay-opt and ffplay-opt_g, ffserver and ffserver_g , no ffprobe at all, so
you should deal with this , I don't know the diffs between them and NOT TESTED
c u m8


LE:
looking at the build looks that name_g ain't no stripped so you shouldn't use it , use ffmpeg-opt or ffplay-opt, or ffserver-opt as you done it before.
if he needs debug :
http://mrb.mandrivausers.ro/MRB/stella/testing/ffmpeg-opt-1. 2.99-20130521_f2f35d3stella/new-git-exit



[Updated on: Tue, 21 May 2013 15:07]

Report message to a moderator

Re: ffmpeg update request [message #1295 is a reply to message #926] Tue, 21 May 2013 21:31 Go to previous messageGo to previous message
MrNice is currently offline  MrNice
Messages: 108
Registered: December 2012
Location: Ireland
Senior Member
I installed and did a test.
Now audio is good.
cehoyos answer is:
Quote:
Then please use git bisect to find the change introducing the problem.

git bisect sometimes doesn't work well with FFmpeg, I will help you if necessary.
...

Keywords regression added
Priority changed from normal to important
Version changed from unspecified to git-master

We did a good step

LE:
Just wandering if he is not the best guy to find the change introducing the problem?

[Updated on: Tue, 21 May 2013 21:33]

Report message to a moderator

Previous Topic: New Package
Next Topic: 4kdownload
Goto Forum:
  


Current Time: Tue Jun 25 10:52:37 BST 2019

Total time taken to generate the page: 0.02678 seconds