You are not logged in.

#1 06-04-2012 18:44:19

marcvantzand
Nouveau membre
Registered: 06-03-2012
Posts: 4

opensuse 12.1 ffmpeg changed to version 54

since a few days the packman repository changed now :

libavcodec.so.54
libavcodec.so.54.23.100
libavdevice.so.54
libavdevice.so.54.0.100

as result the rpm package of ffDiaporama was deleted by that update.

compiling from source did not help much still ffDiaporama uses then libavcodec.so.53 and terminates during start up.

is it possible to compile it against the 54 version?

thanks for the good work and the development of a prefect program..

greetings
Marc vant Zand

Offline

#2 06-04-2012 22:41:59

meinereiner
Membre
From: Fulda
Registered: 03-21-2012
Posts: 72

Re: opensuse 12.1 ffmpeg changed to version 54

Hello,

I have had the same problem. But after a long search in the fine documented source code I found the place whre the code have to be changed

In the File cDeviceModelDef.h in the path /ffDiaporama/src/engine I have changed the rows in...

// LIBAV 0.8 = LIBAVUTIL from 51.22 + LIBAVCODEC from 53.35 to 54.20 + LIBAVFORMAT from 53.21 to 54.20
#elif ( ( (LIBAVUTIL_VERSION_MAJOR==51)&&(LIBAVUTIL_VERSION_MINOR>=22) ) && \
        ( ((LIBAVCODEC_VERSION_MAJOR==53)&&(LIBAVCODEC_VERSION_MINOR>=35))   || ((LIBAVCODEC_VERSION_MAJOR==54)&&(LIBAVCODEC_VERSION_MINOR<23)) ) && \
        ( ((LIBAVFORMAT_VERSION_MAJOR==53)&&(LIBAVFORMAT_VERSION_MINOR>=21)) || ((LIBAVFORMAT_VERSION_MAJOR==54)&&(LIBAVFORMAT_VERSION_MINOR<23)) ) )

then the compilation runs through an the program starts fine.

greetings

Norbert

Offline

#3 06-05-2012 07:02:08

domledom
Administrateur
Registered: 09-17-2011
Posts: 1,080

Re: opensuse 12.1 ffmpeg changed to version 54

Hello

Thank you for this information

Norbert, does this change of version solve the muxing problem of the mpg files with the AC3?

As soon as I have solved this problem of MPG file, I shall produce new packages by including this correction.


Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)

Offline

#4 06-05-2012 07:03:59

marcvantzand
Nouveau membre
Registered: 06-03-2012
Posts: 4

Re: opensuse 12.1 ffmpeg changed to version 54

Thanks after a small change it seems to work again at least it started without the "wrong libav version"

What I changed was as follows:

since the minor version is 23.100 I changed <23 to <24 and then it worked fine


// LIBAV 0.8 = LIBAVUTIL from 51.22 + LIBAVCODEC from 53.35 to 54.20 + LIBAVFORMAT from 53.21 to 54.20
#elif ( ( (LIBAVUTIL_VERSION_MAJOR==51)&&(LIBAVUTIL_VERSION_MINOR>=22) ) && \
        ( ((LIBAVCODEC_VERSION_MAJOR==53)&&(LIBAVCODEC_VERSION_MINOR>=35))   || ((LIBAVCODEC_VERSION_MAJOR==54)&&(LIBAVCODEC_VERSION_MINOR<24)) ) && \
        ( ((LIBAVFORMAT_VERSION_MAJOR==53)&&(LIBAVFORMAT_VERSION_MINOR>=21)) || ((LIBAVFORMAT_VERSION_MAJOR==54)&&(LIBAVFORMAT_VERSION_MINOR<24)) ) )

thanks for putting me on the right track.

Offline

#5 06-05-2012 07:11:23

meinereiner
Membre
From: Fulda
Registered: 03-21-2012
Posts: 72

Re: opensuse 12.1 ffmpeg changed to version 54

Hello,

so then nearly all is fine, except the bug with MPG/AC3. I wrote in my post that a compilation against ffmpeg 0.11 with the new labav don't solve the problem.

Pherhaps Marc could confirm this problem or is this a peronals problem with my machine?

Greetings

Norbert

Offline

#6 06-05-2012 08:29:56

marcvantzand
Nouveau membre
Registered: 06-03-2012
Posts: 4

Re: opensuse 12.1 ffmpeg changed to version 54

smplayer(2) does bot see any sound track in MPEG/AC3
same with vlc, kafeine ............

system:
64 bit running opensuse 12.1 - KDE

so this might be called an issue ;-)

output during rendering:


Input #1, wav, from '/home/maarten/temp.wav':                                                               
  Duration: 00:02:30.00, bitrate: 1536 kb/s
    Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
Input #2, ffmetadata, from '/home/maarten/TAG.txt':
  Metadata:
    title           : my_girl
    artist          : Maarten
    album           :
    comment         :
    date            : 2012
    composer        : ffDiaporama 1.3 beta 1
    creation_time   : 2012-06-05 10:31:51
  Duration: 00:02:26.00, start: 0.000000, bitrate: 0 kb/s
    Chapter #2.0: start 0.000000, end 146.000000
    Metadata:
      TITLE           : Title
ret 1, stream_spec 1
[buffer @ 0x6c13c0] w:640 h:360 pixfmt:rgb24 tb:1/25 sar:0/1 sws_param:flags=2
[buffersink @ 0x6dfd20] No opaque field provided
[format @ 0x643b20] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'format'
[scale @ 0x63d9c0] w:640 h:360 fmt:rgb24 sar:0/1 -> w:640 h:360 fmt:yuv420p sar:0/1 flags:0x4
[mpeg @ 0x6eb880] VBV buffer size not set, muxing may fail
Output #0, mpeg, to '/home/maarten/my_girl.mpg':                                                           
  Metadata:
    encoder         : Lavf54.6.100
    Stream #0:0: Video: mpeg2video, yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=2-31, 3000 kb/s, 90k tbn, 25 tbc
    Stream #0:1(und): Audio: ac3, 48000 Hz, stereo, s16, 160 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (ppm -> mpeg2video)
  Stream #1:0 -> #0:1 (pcm_s16le -> ac3_fixed)

Offline

#7 06-06-2012 07:07:58

domledom
Administrateur
Registered: 09-17-2011
Posts: 1,080

Re: opensuse 12.1 ffmpeg changed to version 54

Hello

I upgrade my opensuse system and i found :
libavutil      51. 54.100 / 51. 54.100
libavcodec     54. 23.100 / 54. 23.100
libavformat    54.  6.100 / 54.  6.100
libavdevice    54.  0.100 / 54.  0.100
libavfilter     2. 77.100 /  2. 77.100
libswscale      2.  1.100 /  2.  1.100
libswresample   0. 15.100 /  0. 15.100
libpostproc    52.  0.100 / 52.  0.100

so, only the test on LIBAVCODEC version must be change :
#elif ( ( (LIBAVUTIL_VERSION_MAJOR==51)&&(LIBAVUTIL_VERSION_MINOR>=22) ) && \
        ( ((LIBAVCODEC_VERSION_MAJOR==53)&&(LIBAVCODEC_VERSION_MINOR>=35))   || ((LIBAVCODEC_VERSION_MAJOR==54)&&(LIBAVCODEC_VERSION_MINOR<24)) ) && \
        ( ((LIBAVFORMAT_VERSION_MAJOR==53)&&(LIBAVFORMAT_VERSION_MINOR>=21)) || ((LIBAVFORMAT_VERSION_MAJOR==54)&&(LIBAVFORMAT_VERSION_MINOR<20)) ) )

Regarding AC3 trouble : It's possible that the problem was with VLC and other ffmpeg based reader.

I make tests and mpg files was correctly read with gstreamer but incorrectly read with vlc (no sound)
Note that I make tests with the 2 codec versions : ac3_fixed version and ac3 (float) version of the codec.
(Note : ac3_fixed is defined on lines 248, 258, 259 and 262 of the cDeviceModelDef.cpp file.)
Using ac3_fixed instead of ac3 codec, this message appears when rendering : Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt'

I don't have time this morning, but next evening, i will try to read rendered files with a multimedia gateway (Western Digital-HDTV) and an ADSL box (unfortunately, I don't have anymore a DVD/DIVX player to try)


Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)

Offline

#8 06-06-2012 09:24:45

meinereiner
Membre
From: Fulda
Registered: 03-21-2012
Posts: 72

Re: opensuse 12.1 ffmpeg changed to version 54

See here in the old post for the AC3-Problem

http://ffdiaporama.tuxfamily.org/Forum/ … php?id=242

Offline

#9 06-06-2012 17:51:13

marcvantzand
Nouveau membre
Registered: 06-03-2012
Posts: 4

Re: opensuse 12.1 ffmpeg changed to version 54

Strangely enough, VLC does not produce sound with MPEG/ AC3 but it can stream it, convert it to MPEG 2 / MPGA (TS) WITH sound, WINFF can play it without any problem at all.

"Regarding AC3 trouble : It's possible that the problem was with VLC and other ffmpeg based reader." is not entirely the case.

just as information

greetings Marc.

Offline

#10 06-07-2012 07:00:18

domledom
Administrateur
Registered: 09-17-2011
Posts: 1,080

Re: opensuse 12.1 ffmpeg changed to version 54

Hello Marc,

Please, we continue to this post http://ffdiaporama.tuxfamily.org/Forum/ … php?id=242


Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)

Offline

Board footer