Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
User interface and Usability / Ouput Keyframes
« Last post by hansolocambo on September 22, 2018, 07:04:57 AM »
Hi  ;)

In order to trim and output a lossless (copy) video, it's better to cut on keyframes to avoid pixels corruption.

In most mp4 videos downloaded here and there, if I press Up / Down in Avidemux to jump from keyframe to keyframe, they're often set every 10 seconds or so. But in some other videos I downloaded, keyframe was set every 1 or 2 seconds. Which is VERY ! convenient when it comes to cutting/trimming precisely (without re-encoding).

Is it possible in Avidemux to change the original video keyframing without changing codec/compression, etc. ?
This way one could set a new keyframing (which would suppose a re-encoding I guess) before lossless-ly trimming videos.

I'm aware that playing with I-Frames options in the ouput configuration is what I want, but after reading a few articles about I-frames, GOP, and so on, I'm still a bit lost.

Could someone please explain simply  :-\  how to use Gop Size and I-frame Threshold options and what those really mean ?

Thanks !
22
User interface and Usability / Bitrate similar to original video after compression
« Last post by hansolocambo on September 22, 2018, 06:56:11 AM »
Hi there,

** In Avidemux, when converting a video, what I usually do is : open the video in (the amazing) PotPlayer. Browse through the video quickly to get visually (Ctrl+F1) an idea of the average bitrate. Then in Avidemux, in the codec configuration (x265), I choose : Rate Control / Encoding Mode : Average Bitrate (Two Pass) and I set what I "feel" is the average Bitrate manually. I manage to get excellent results after a few tests but I often feel like I'm fumbling in the dark. Especially in some videos where the Bitrate range varies a lot depending on what's on screen.



** Whereas in Pavtube (that I'd never use anymore !) there is an option, when choosing the Output codec, to define manually the Bitrate, same as Avidemux, but one can also choose as a Bitrate : "original". Which means, and it works pretty well, that Pavtube will compress the video while keeping for each frame a kbps similar to the one of the original input.



Is there a way in Avidemux's Rate Control (Enconding Modes) to do something similar to this "original" Bitrate in Pavtube ?

In other words, when it comes to the output video Bitrate : I don't really want to always have to choose, I'd love it if Avidemux could estimate it for me ;)
23
06b813b            [appImage] Skip probing fontconfig version if ADM_APPIMAGE_USE_SYSTEM_FONT_LIBS is set
ubuntu Bionic Beaver 18.04.1 LTS 64 bit x86 SMP, QT5, x265 version 2.6: avidemux 2.7.1 180922-64bit 18.04.1 Bionic with x265 version 2.6
24
Main version 2.6 / Re: avidemux works fine but trying the same with ffmpeg don't
« Last post by eumagga0x2a on September 22, 2018, 05:47:01 AM »
I'm sorry, please provide a sample of the original source transport stream, not a remuxed one.

Code: [Select]
dd if=/path/to/source of=/path/to/sample bs=1M count=300
25
Main version 2.6 / Re: avidemux works fine but trying the same with ffmpeg don't
« Last post by manbau00 on September 21, 2018, 08:43:40 PM »
Here is the sample. It is cut and stream copied into MpegTS container with avidemux.

https://secure.edolos.com/owncloud/public.php?service=files&t=2e80c8a8130b3a97c2b84bffa32155f8

Regards
Manfred
26
Main version 2.6 / Re: avidemux works fine but trying the same with ffmpeg don't
« Last post by eumagga0x2a on September 21, 2018, 08:19:03 PM »
Could you please provide a sample?

The PTS check and reconstruction is done by ADM_Composer::checkForValidPts, called from ADM_Composer::addFile. I doubt that this matches your experience when loading these streams in Avidemux.

No, bash scripting can't accomplish this task :-)
27
Main version 2.6 / Re: avidemux works fine but trying the same with ffmpeg don't
« Last post by manbau00 on September 21, 2018, 07:41:31 PM »
Mostly often the files are from DVB-S2 streams stored with mythtv.

Is it possible to do the restoration of the presentation timestamps with some bash scripting? Where can I find the code fragment which do the trick in the source code in avidemux?
28
Main version 2.6 / Re: avidemux works fine but trying the same with ffmpeg don't
« Last post by eumagga0x2a on September 21, 2018, 03:46:14 PM »
Which application is responsible for generating a transport stream with a H.264 video without valid PTS? For this specific case, you can't do anything useful with ffmpeg (Avidemux offers a time-consuming workaround which might be able to restore presentation timestamps).

This is true that handling large video files with Avidemux over a slow network connection is no fun.
29
Main version 2.6 / Re: avidemux works fine but trying the same with ffmpeg don't
« Last post by manbau00 on September 21, 2018, 02:42:21 PM »
Hi!

Ad performance (network data transfer rate) issue,  I want to do the conversation on the file server on which the files are stored. But on this machine I will do as less package installation as possible. So hopefully I have not to use a remote machine with avidemux installed to do the conversation because that needs a lot of time for transferring data.

Ad ffmpeg error,

# ffmpeg -i Test.mpg -map 0 -c copy Test.mkv                                               

ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, mpegts, from 'Test.mpg':
  Duration: 02:05:36.08, start: 0.028789, bitrate: 8515 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0:1[0x101](deu): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 448 kb/s
    Stream #0:2[0x102](mis): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 448 kb/s
Output #0, matroska, to 'Test.mkv':
  Metadata:
    encoder         : Lavf57.83.100
    Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 50 fps, 50 tbr, 1k tbn, 90k tbc
    Stream #0:1(deu): Audio: ac3 ([0]
  • [0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s

    Stream #0:2(mis): Audio: ac3 ([0]
  • [0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s

Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x5634dbae5cc0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[matroska @ 0x5634dbae5cc0] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument
frame=    2 fps=0.0 q=-1.0 Lsize=     165kB time=00:00:00.00 bitrate=450074.7kbits/s speed=0.539x
video:171kB audio:4kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!


The same happens with (-fflags +genpts)


# ffmpeg -fflags +genpts -i Test.mpg -map 0 -c copy Test.mkv

ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, mpegts, from 'Test.mpg':
  Duration: 02:05:36.08, start: 0.028789, bitrate: 8515 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0:1[0x101](deu): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 448 kb/s
    Stream #0:2[0x102](mis): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 448 kb/s
File 'Test.mkv' already exists. Overwrite ? [y/N] y
Output #0, matroska, to 'Test.mkv':
  Metadata:
    encoder         : Lavf57.83.100
    Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 50 fps, 50 tbr, 1k tbn, 90k tbc
    Stream #0:1(deu): Audio: ac3 ([0]
  • [0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s

    Stream #0:2(mis): Audio: ac3 ([0]
  • [0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s

Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x5623633b4c60] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[matroska @ 0x5623633b4c60] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument
frame=    2 fps=0.0 q=-1.0 Lsize=     165kB time=00:00:00.00 bitrate=450074.7kbits/s speed=0.956x
video:171kB audio:4kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!

Regards

Manfred
30
Main version 2.6 / Re: avidemux works fine but trying the same with ffmpeg don't
« Last post by eumagga0x2a on September 21, 2018, 02:07:17 PM »
I have to resize a lot of  *.ts by repacking them to *.mkv. While everything works fine with avidemux with GUI, when trying to use ffmpeg on the command line because of performance issue, I got errors.

Please specify what is the performance issue you experience with Avidemux and what are the error messages from ffmpeg verbatim.
Pages: 1 2 [3] 4 5 ... 10