News:

--

Main Menu

How to cut DVB-S2 recording in TS format?

Started by M-Reimer, July 31, 2016, 03:45:04 PM

Previous topic - Next topic

M-Reimer

I would like to cut a DVB-S2 recording. All I have is a bit TS file. I can open this with avidemux-gtk and the video stream plays, but without any audio. In the "Main Track" menu, no entries can be selected and if I open File -> Properties, there is no entry for Audio.

So for some reason the audio data is not detected.

I also tried to cut MPEG2 TS. This seems to work, but I can't choose two audio streams from the TS file. How to do this?

eumagga0x2a

avidemux-gtk is long dead. Please use avidemux-qt from 2.6.10 on.

M-Reimer

Thank you for your reply.

Compiling the latest release failed for me...


cd /home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/buildCore/ADM_coreUtils/src && /usr/bin/c++   -DADM_coreUtils6_EXPORTS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/buildCore/config -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_core/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreAudioFilter/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreAudioParser/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreAudio/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreAudioDevice/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreAudioEncoder/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreDemuxer/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreDemuxer/include/unix -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreDemuxerMpeg/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreImage/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreMuxer/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreScript/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreUI/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreUtils/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreVideoEncoder/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreVideoFilter/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreVideoCodec/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreImageLoader/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/../avidemux_core/ADM_coreJobs/include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/buildCore/ffmpeg/source -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/buildCore/ffmpeg/build -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/ADM_coreUtils/src/../include -I/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/ADM_coreUtils/src/Source  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fmessage-length=0 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -fPIC   -Werror=attributes -o CMakeFiles/ADM_coreUtils6.dir/prefs.cpp.o -c /home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/ADM_coreUtils/src/prefs.cpp
In file included from /home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/ADM_coreUtils/src/prefs.cpp:51:0:
/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/avidemux_core/ADM_coreUtils/src/prefs2_pref.h:60:1: error: narrowing conversion of ââ,¬Ëœ4294967295lââ,¬â,,¢ from ââ,¬Ëœlong intââ,¬â,,¢ to ââ,¬Ëœfloatââ,¬â,,¢ inside { } [-Wnarrowing]
};
^
make[2]: *** [ADM_coreUtils/src/CMakeFiles/ADM_coreUtils6.dir/build.make:474: ADM_coreUtils/src/CMakeFiles/ADM_coreUtils6.dir/prefs.cpp.o] Error 1
make[2]: Leaving directory '/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/buildCore'
make[1]: *** [CMakeFiles/Makefile2:1434: ADM_coreUtils/src/CMakeFiles/ADM_coreUtils6.dir/all] Error 2
make[1]: Leaving directory '/home/manuel/tmp/pkgbuild/avidemux-2.6/src/avidemux_2.6.12/buildCore'
make: *** [Makefile:131: all] Error 2


How to fix this?

eumagga0x2a

What distribution are you using? You might want to look at the patches in https://pkgs.rpmfusion.org/cgit/free/avidemux.git/tree/. You will need at least avidemux-2.6.12-narrowing.patch and avidemux-2.6.12-gcc6.patch. Applying avidemux-2.6.12-qt.patch won't harm too.

If you want qt5 instead of qt4, go for the current git master.

zakk

You can do it with Project X. It won't even need to index the file.

eumagga0x2a

DVB-S2 comprises presumably h264 encoded HD video which Project-X doesn't support.

M-Reimer

And the next problem...


#####################################
Plugins Configure Started
#####################################

CMake Error at CMakeLists.txt:24 (include):
  include could not find load file:

    /home/manuel/tmp/pkgbuild/avidemux-git/src/avidemux/avidemux/commonCmakeApplication.cmake


-- CMAKE_INSTALL_PREFIX: /usr
-- AVIDEMUX_INSTALL_DIR: /usr
-- FAKEROOT                   : /home/manuel/tmp/pkgbuild/avidemux-git/src/fakeroot/
-- AVIDEMUX_BIN_DIR           : /usr/bin
-- AVIDEMUX_LIB_DIR           : /usr/lib
-- AVIDEMUX_INCLUDE_DIR       : /usr/include
-- AVIDEMUX_SEARCH_INCLUDE_DIR: /home/manuel/tmp/pkgbuild/avidemux-git/src/fakeroot//usr/include
-- AVIDEMUX_SEARCH_LIB_DIR    : /home/manuel/tmp/pkgbuild/avidemux-git/src/fakeroot//usr/lib
-- Plugin UI : COMMON

CMake Error at CMakeLists.txt:116 (APPEND_SUMMARY_LIST):
  Unknown CMake command "APPEND_SUMMARY_LIST".


-- Configuring incomplete, errors occurred!
See also "/home/manuel/tmp/pkgbuild/avidemux-git/src/build_core_plugins/CMakeFiles/CMakeOutput.log".


GIT-Version this time.

eumagga0x2a

Bad timing.

git checkout 918d05a77880543321bb92e03d58d762cf3a43e9

and you go.

Jan Gruuthuse

Quote from: zakk on August 01, 2016, 07:49:00 AM
You can do it with Project X. It won't even need to index the file.
Quote from: eumagga0x2a on August 01, 2016, 08:07:21 AM
DVB-S2 comprises presumably h264 encoded HD video which Project-X doesn't support.
Avidemux Wiki: Out of dates / Do not use

eumagga0x2a

Which cmake version do you have? Starting with 2.8.7 you don't need fakeroot, and 2.8.7 is ancient.

M-Reimer


$ cmake --version
cmake version 3.6.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).


I compile using this script: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=avidemux-git
It is meant to create three packages.

Jan Gruuthuse

#11
Commit causes problems: bbd7d73    [build] modular (as indicated by eumagga0x2a)
Commit  should build 918d05a    [i18n] More german translation by eumagga0x2a  (as indicated) previous postings

from within source folder (downloaded by git):
switch git to previous commit:
git checkout   918d05a
git reset --hard  918d05a


when commits are fine again switch back to master:
git checkout master
git reset --hard master

M-Reimer

Thank you. This helped a bit, but I still can't cut my DVB-S2 recording.

On console, I get:


  [getCompressedPicture]  Frame 363981978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:03,979
  [getCompressedPicture]  Frame 364001978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:03,999
  [getCompressedPicture]  Frame 364021978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,019
  [getCompressedPicture]  Frame 364041978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,039
  [getCompressedPicture]  Frame 364061978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,059
  [getCompressedPicture]  Frame 364081978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,079
  [getCompressedPicture]  Frame 364101978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,099
  [getCompressedPicture]  Frame 364121978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,119
  [getCompressedPicture]  Frame 364141978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,139
  [getCompressedPicture]  Frame 364161978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,159
  [getCompressedPicture]  Frame 364181978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,179
  [getCompressedPicture]  Frame 364201978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,199
  [getCompressedPicture]  Frame 364221978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,219
  [getCompressedPicture]  Frame 364241978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,239
  [getCompressedPicture]  Frame 364261978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,259
  [getCompressedPicture]  Frame 364281978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,279
  [getCompressedPicture]  Frame 364301978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,299
  [getCompressedPicture]  Frame 364321978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,319
  [getCompressedPicture]  Frame 364341978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,339
  [getCompressedPicture]  Frame 364361978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,359
  [getCompressedPicture]  Frame 364381978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,379
  [getCompressedPicture]  Frame 364401978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,399
  [getCompressedPicture]  Frame 364421978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,419
  [getCompressedPicture]  Frame 364441978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,439
  [getCompressedPicture]  Frame 364461978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,459
  [getCompressedPicture]  Frame 364481978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,479
  [getCompressedPicture]  Frame 364501978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,499
  [getCompressedPicture]  Frame 364521978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,519
  [getCompressedPicture]  Frame 364541978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,539
  [getCompressedPicture]  Frame 364561978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,559
  [getCompressedPicture]  Frame 364581978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,579
  [getCompressedPicture]  Frame 364601978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,599
  [getCompressedPicture]  Frame 364621978 DTS is going back in time :  [getCompressedPicture]  expected:353:08:30,319   [getCompressedPicture]  got:00:06:04,619
  [switchToNextSegment]  This is the last segment (0)
  [getCompressedPicture]  Cannot update to new segment
  [getPacket]   Get packet failed   [saveLoop]  [FF] Wrote 2 frames, nb audio streams 3
  [saveLoop]  [FF] Found 0 missing PTS / 2 total frames
  [close]  [Mkv] Closing
  [~ADM_videoStreamCopyFromAnnexB]  Destroying AnnexB to iso filtet
  [~DIA_encodingQt4]  Destroying encoding qt4
  [~DIA_encodingBase]  DiaEncodingBase: Destroying


Then a message pops up telling me that the resulting video is too short.

M-Reimer

In another forum thread, I found out that using MP4v2 Muxer might help: http://avidemux.org/smif/index.php/topic,10853.15.html

I tried that but it only saves a 8.2K file which doesn't contain any video.

eumagga0x2a

Does this issue affect all DVB-S2 recordings from your source or only one particular? You did allow Avidemux to index the stream, didn't you? When cutting the stream in chunks with split, dd, whatever, do different chunks exhibit the same pattern?

I'm of no help what concerns hard internal problems of Avidemux, unfortunately.