Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Avidemux

  1. #11
    Join Date
    Dec 2006
    Beans
    7,034

    Re: Avidemux

    If you keen to come to grips with FFmpeg you could do worse than move on from the rather old and intentionally crippled version you have. Perhaps try this version

    Compile FFmpeg on Ubuntu
    https://ffmpeg.org/trac/ffmpeg/wiki/...mpilationGuide

    and hopefully things will be a little smoother .
    You think that's air you're breathing now?

  2. #12
    Join Date
    Jul 2012
    Location
    EU - Slovenia
    Beans
    65
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Avidemux

    Quote Originally Posted by andrew.46 View Post
    If you keen to come to grips with FFmpeg you could do worse than move on from the rather old and intentionally crippled version you have. Perhaps try this version

    Compile FFmpeg on Ubuntu
    https://ffmpeg.org/trac/ffmpeg/wiki/...mpilationGuide

    and hopefully things will be a little smoother .
    Actually I don't care what software to use. Just want to convert to playable file for my player.

    For removing commercials the avidemux is nice. Easy seek and cut. And if I save with AV copy stream is super fast. Sadly I cant use it to do all the job.

    If I install 2.5.x version I have DIVX option. But I really can't solve audio sync problem. At beginning the audio is out of sync for some random time from 0 to aprox 2 seconds. And when some cutting is done the audio sync just get worse and worse. I spend few days to solve that and read forums post but without success. In avidemux 2.6 the audio sync seems perfect. But there are no (right) divx options. (sadly same version for windows have it)

    So what I can do?

  3. #13
    Join Date
    Apr 2009
    Location
    Aotearoha
    Beans
    2,661
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Avidemux

    Some of us do care about the s/w we use & go to some effort to understand how to use it..

    As Andrew suggested..Your ffmpeg is the *buntu package avconv from libav project.
    You could use the real ffmpeg from Jon Serverisson's PPA & install libavc*-extra packages.

    Now can see your recordings are H264 (mpe4/10AVC)..
    AFAIK Avidemux2.5 makes a mess of H264 files..

    A quick expt with latest Avidemux2.6 suggests no interlace encoding support with H264 or mpeg4-asp..that's really bad for TV recordings.
    Could use this version to make a cut-list of timecodes..
    Or cut at keyframes with avidemux2.6 & save as an mpeg or mkv container file. Makes sense to leave video as H264 (lossless copy).

    Then use ffmpeg to convert to XVid with -c:v libxvid into your avi container.

    ffmpeg -i input.mpg -c:a libmp3lame -c:v libxvid -mbd rd -vtag xvid -flags +ilme+ildct+mv4+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 out.avi
    (assumes libxvid & libmp3lame support)

    You can also keyframe cut using the ffmpeg -segment option.
    Can cut with mkvmerge -split using the cut timecodes.(mkv out only)
    Can record/edit/cut from mythtv & use MythCutKey.sh/lossless_cut.py user jobs.
    MythTV can DLNA serve or HLS/airplay stream recordings transcoded to XVid etc.

    The audio sync problem with aviddemux2.5 could possibly be fixed by pre-processing with ffmpeg to a constant bitrate video & audio (do not use avi container).

    avi files are a disaster for modern video codecs, out-of-order frames & variable bit rate encoding; have no PTS timing information.

    You could look into DNLA & bypass burning a disk entirely..
    DLNA server, client, render controller..
    Last edited by BicyclerBoy; November 16th, 2012 at 09:28 PM.

  4. #14
    Join Date
    Dec 2006
    Beans
    7,034

    Re: Avidemux

    Quote Originally Posted by BicyclerBoy View Post
    Then use ffmpeg to convert to XVid with -c:v libxvid into your avi container.
    Or perhaps:

    Code:
    -c:v mpeg4 -vtag XVID
    I will have to admit that I have experimented with both and I could not see much of a difference so eventually I settled on this. Interested to hear your thoughts...
    You think that's air you're breathing now?

  5. #15
    Join Date
    Jul 2012
    Location
    EU - Slovenia
    Beans
    65
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Avidemux

    Well I see codec (libxvid) installed but ffmpeg say no.

    Code:
    slavko@ePodstresnik:~/DVB_RECORDS$ ffmpeg -i test.mp4 -c:a libmp3lame -c:v libxvid -mbd rd -vtag xvid -flags +ilme+ildct+mv4+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 out.avi
    ffmpeg version 0.10.6-6:0.10.6-0ubuntu0jon1~precise1 Copyright (c) 2000-2012 the FFmpeg developers
      built on Nov 12 2012 13:11:38 with gcc 4.6.3
      configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.10.6-0ubuntu0jon1~precise1' --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
      libavutil      51. 35.100 / 51. 35.100
      libavcodec     53. 61.100 / 53. 61.100
      libavformat    53. 32.100 / 53. 32.100
      libavdevice    53.  4.100 / 53.  4.100
      libavfilter     2. 61.100 /  2. 61.100
      libswscale      2.  1.100 /  2.  1.100
      libswresample   0.  6.100 /  0.  6.100
      libpostproc    52.  0.100 / 52.  0.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1cdc680] multiple edit list entries, a/v desync might occur, patch welcome
        Last message repeated 1 times
    [h264 @ 0x1cf28c0] Missing reference picture
        Last message repeated 1 times
    [h264 @ 0x1cf28c0] Increasing reorder buffer to 1
    [h264 @ 0x1cf28c0] Missing reference picture
        Last message repeated 1 times
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        encoder         : Lavf54.29.104
      Duration: 00:00:51.26, start: 0.120000, bitrate: 1704 kb/s
        Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 16:11 DAR 20:11], 1505 kb/s, 25.03 fps, 50 tbr, 50k tbn, 50 tbc
        Metadata:
          handler_name    : VideoHandler
        Stream #0:1(und): Audio: mp2 (mp4a / 0x6134706D), 48000 Hz, 2 channels, s16, 192 kb/s
        Metadata:
          handler_name    : 
    Unknown encoder 'libxvid'
    slavko@ePodstresnik:~/DVB_RECORDS$

    at least second suggestion works but in report the some audio overhead is reported

    Code:
    slavko@ePodstresnik:~/DVB_RECORDS$ ffmpeg -i test.mp4 -c:a libmp3lame -c:v mpeg4 -vtag XVID -mbd rd -vtag xvid -flags +ilme+ildct+mv4+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 out.avi
    ffmpeg version 0.10.6-6:0.10.6-0ubuntu0jon1~precise1 Copyright (c) 2000-2012 the FFmpeg developers
      built on Nov 12 2012 13:11:38 with gcc 4.6.3
      configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.10.6-0ubuntu0jon1~precise1' --libdir=/usr/lib/x86_64-linux-gnu --disable-stripping --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
      libavutil      51. 35.100 / 51. 35.100
      libavcodec     53. 61.100 / 53. 61.100
      libavformat    53. 32.100 / 53. 32.100
      libavdevice    53.  4.100 / 53.  4.100
      libavfilter     2. 61.100 /  2. 61.100
      libswscale      2.  1.100 /  2.  1.100
      libswresample   0.  6.100 /  0.  6.100
      libpostproc    52.  0.100 / 52.  0.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x936680] multiple edit list entries, a/v desync might occur, patch welcome
        Last message repeated 1 times
    [h264 @ 0x94c8c0] Missing reference picture
        Last message repeated 1 times
    [h264 @ 0x94c8c0] Increasing reorder buffer to 1
    [h264 @ 0x94c8c0] Missing reference picture
        Last message repeated 1 times
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        encoder         : Lavf54.29.104
      Duration: 00:00:51.26, start: 0.120000, bitrate: 1704 kb/s
        Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 16:11 DAR 20:11], 1505 kb/s, 25.03 fps, 50 tbr, 50k tbn, 50 tbc
        Metadata:
          handler_name    : VideoHandler
        Stream #0:1(und): Audio: mp2 (mp4a / 0x6134706D), 48000 Hz, 2 channels, s16, 192 kb/s
        Metadata:
          handler_name    : 
    [buffer @ 0x94df20] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:16/11 sws_param:
    Output #0, avi, to 'out.avi':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        ISFT            : Lavf53.32.100
        Stream #0:0(und): Video: mpeg4 (hq) (xvid / 0x64697678), yuv420p, 720x576 [SAR 16:11 DAR 20:11], q=2-31, 200 kb/s, 50 tbn, 50 tbc
        Metadata:
          handler_name    : VideoHandler
        Stream #0:1(und): Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, 2 channels, s16, 128 kb/s
        Metadata:
          handler_name    : 
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 -> mpeg4)
      Stream #0:1 -> #0:1 (mp2 -> libmp3lame)
    Press [q] to stop, [?] for help
    [h264 @ 0xa577c0] Missing reference picture
        Last message repeated 1 times
    [h264 @ 0xa57ca0] Missing reference picture
        Last message repeated 1 times
    frame=   49 fps=  0 q=31.0 size=     150kB time=00:00:01.94 bitrate= 633.2kbits/frame=  104 fps=103 q=31.0 size=     235kB time=00:00:04.14 bitrate= 465.2kbits/frame=  157 fps=104 q=31.0 size=     325kB time=00:00:06.26 bitrate= 425.7kbits/frame=  210 fps=104 q=31.0 size=     401kB time=00:00:08.38 bitrate= 392.4kbits/frame=  261 fps=104 q=31.0 size=     474kB time=00:00:10.42 bitrate= 372.3kbits/frame=  313 fps=104 q=31.0 size=     562kB time=00:00:12.50 bitrate= 368.5kbits/frame=  368 fps=104 q=31.0 size=     656kB time=00:00:14.70 bitrate= 365.5kbits/frame=  418 fps=104 q=31.0 size=     739kB time=00:00:16.70 bitrate= 362.4kbits/frame=  473 fps=105 q=31.0 size=     824kB time=00:00:18.90 bitrate= 357.2kbits/frame=  526 fps=105 q=31.0 size=     911kB time=00:00:21.02 bitrate= 355.0kbits/frame=  581 fps=105 q=31.0 size=     977kB time=00:00:23.22 bitrate= 344.6kbits/frame=  631 fps=105 q=31.0 size=    1074kB time=00:00:25.22 bitrate= 348.9kbits/frame=  679 fps=104 q=31.0 size=    1171kB time=00:00:27.14 bitrate= 353.4kbits/frame=  728 fps=103 q=31.0 size=    1258kB time=00:00:29.10 bitrate= 354.1kbits/frame=  780 fps=103 q=31.0 size=    1340kB time=00:00:31.18 bitrate= 352.1kbits/frame=  831 fps=103 q=31.0 size=    1427kB time=00:00:33.22 bitrate= 351.9kbits/frame=  884 fps=103 q=31.0 size=    1520kB time=00:00:35.34 bitrate= 352.3kbits/frame=  933 fps=103 q=31.0 size=    1600kB time=00:00:37.30 bitrate= 351.3kbits/frame=  982 fps=103 q=31.0 size=    1692kB time=00:00:39.26 bitrate= 353.0kbits/frame= 1031 fps=102 q=31.0 size=    1769kB time=00:00:41.22 bitrate= 351.6kbits/frame= 1084 fps=103 q=31.0 size=    1851kB time=00:00:43.34 bitrate= 349.8kbits/frame= 1131 fps=102 q=31.0 size=    1948kB time=00:00:45.22 bitrate= 353.0kbits/frame= 1183 fps=102 q=31.0 size=    2034kB time=00:00:47.30 bitrate= 352.3kbits/frame= 1227 fps=102 q=31.0 size=    2113kB time=00:00:49.06 bitrate= 352.8kbits/frame= 1273 fps=101 q=31.0 size=    2195kB time=00:00:50.90 bitrate= 353.3kbits/frame= 1281 fps=101 q=31.0 Lsize=    2283kB time=00:00:51.16 bitrate= 365.5kbits/s    
    video:1363kB audio:800kB global headers:0kB muxing overhead 5.566534%
    slavko@ePodstresnik:~/DVB_RECORDS$
    The second one does produce output but is SOO low quality and it's 50 FPS but source is 25. And my player refuse anything above 29.97 (by spec)

  6. #16
    Join Date
    Dec 2006
    Beans
    7,034

    Re: Avidemux

    For the second example perhaps modify your commandline to something like the following:

    Code:
    ffmpeg -i test.mp4 \
           -c:a libmp3lame -q:a 3 \
           -c:v mpeg4 -vtag XVID -q:v 5 -mbd rd -flags +ilme+ildct+mv4+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 \
           out.avi
    Perhaps add in -r 25 to reduce the fps of the output file but this is not the best thing to do, I would recommend compiling a newer version that hopefully would not have the odd effect of reportedly doubling the output fps. This copy of FFmpeg is from a PPA?
    Last edited by andrew.46; November 17th, 2012 at 11:50 AM.
    You think that's air you're breathing now?

  7. #17
    Join Date
    Apr 2009
    Location
    Aotearoha
    Beans
    2,661
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Avidemux

    You look to now be using Jon Severinsson's ffmpeg ppa.

    I would (using synaptic) install all the lib*-extras packages..this gives you the un-stripped packages..

    The cmd line I suggested were just a starting point & not setup to "configure" the libxvid encoder..

    ffmpeg is not too good at interlaced encoding except from progessive or frame rate doubled source (de-interlaced).
    It is possible you may need to use a de-iterlacing filter between the H264 decode & mpeg4 encode (interlaced).

  8. #18
    Join Date
    Jul 2012
    Location
    EU - Slovenia
    Beans
    65
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Avidemux

    This seems to be little TO frustrated to make it work. Seems that it's time to find some hardware solution.

  9. #19
    Join Date
    Apr 2009
    Location
    Aotearoha
    Beans
    2,661
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Avidemux

    Plug PC into your TV or try to use DLNA.

    If you must have a consumer box under your TV then look at the new BD player with WiFiDirect etc..

    Beware all that proprietary stuff is not designed to work with other brands or open solutions.

    The new Samsung TVs can now be hacked to run open source apps which work directly with your server.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •