Hi *,
I am trying to convert a bunch of .ts files recorded by my DVB-S2 receiver to an mpeg file and get a segfault.
The input files have h264 format for the video stream, two mp2 and one ac3 audio streams.
I configured Mpeg2 (ff) as Video Ouput, MP2 (lav) as Audio Ouput and MPEG TS Muxer (ff) as Output Format.
I get:
Segfault
at line 0, file ??ADM_backTrack
av_freep
av_packet_free_side_data
av_packet_unref
avcodec_encode_video2
ADM_coreVideoEncoderFFmpeg::encodeWrapper(AVFrame*, ADMBitstream*)
ADM_ffMpeg2Encoder::encode(ADMBitstream*)
ADM_videoStreamProcess::getPacket(ADMBitstream*)
muxerFFmpeg::saveLoop(char const*)
admSaver::save()
A_Save(char const*)
A_SaveWrapper(char const*)
ADM_QT4_fileSel::GUI_FileSelWriteExtension(char const*, char const*, void (*)(char const*))
HandleAction_Save(Action)
HandleAction(Action)
QMetaObject::activate(QObject*, int, int, void**)
MainWindow::actionSignal(Action)
MainWindow::searchToolBar(QAction*)
QMetaObject::activate(QObject*, int, int, void**)
QToolBar::actionTriggered(QAction*)
QMetaObject::activate(QObject*, int, int, void**)
QToolButton::triggered(QAction*)
QMetaObject::activate(QObject*, int, int, void**)
QAction::triggered(bool)
QAction::activate(QAction::ActionEvent)
QAbstractButton::mouseReleaseEvent(QMouseEvent*)
QToolButton::mouseReleaseEvent(QMouseEvent*)
QWidget::event(QEvent*)
My system is openSuSE Leap 42.1 with all hotfixes and updates.
avidemux version is:
Name : avidemux3
Version : 2.6.13
Release : 1.2
Architecture: x86_64
Install Date: Di 30 Aug 2016 10:09:34 CEST
Group : Productivity/Multimedia/Video/Editors and Convertors
Size : 13212123
License : GPL-2.0
Signature : RSA/SHA1, So 28 Aug 2016 19:30:07 CEST, Key ID 45a1d0671abd1afb
Source RPM : avidemux3-2.6.13-1.2.src.rpm
Build Date : So 28 Aug 2016 16:08:03 CEST
Build Host : swkj02.site
Relocations : (not relocatable)
Packager : packman@links2linux.de
Vendor : http://packman.links2linux.de
URL : http://avidemux.sourceforge.net/
Am I doing something wrong here or is it a bug in avidemux?
Thx and bye.
Michael.
A Ts that causes the problem would help
Hi,
ok, any special place to upload it?
Or just dropbox?
Bye.
Michael.
dropbox, mega ..
Quote from: mean on September 06, 2016, 02:58:38 PM
dropbox, mega ..
what address should have access to the shared Dropbox folder?
None, create a link [share] next to file. Provide that link. like in this posting : http://avidemux.org/smif/index.php/topic,17019.msg76799.html#msg76799.
Hi,
thx for this hint.
I tried that yesterday, but on a first look it seemed to be impossible with the free version of a Dropbox account.
Tried it again today and it worked:
The link is https://www.dropbox.com/s/c7lkklzf6a8u28i/00001.ts?dl=0 (https://www.dropbox.com/s/c7lkklzf6a8u28i/00001.ts?dl=0)
Bye.
Michael.
That is a bloody 2 GB download!
Record 1 minute and upload that.
What is your recording hardware and recording source DVB-T / DVB-T2 / DVB-C / DVB-C2 / DVB-S / DVB-S2
Quote from: Jan Gruuthuse on September 07, 2016, 12:20:43 PM
That is a bloody 2 GB download!
Record 1 minute and upload that.
What is your recording hardware and recording source DVB-T / DVB-T2 / DVB-C / DVB-C2 / DVB-S / DVB-S2
ok, I can do that - but this is the recording that caused the crash.
I use a bunch of Terratec cards for recording:
2 x TT Budget S2-3200
2 x TT Premium S2-6400
The problematic recording is from a DVB-S2 channel.
Bye.
Michael.
einsfestivalHD is now ONE ard.de
try re-muxing the video with mkvtoolnix gui https://mkvtoolnix.download
It is not clear to me if this is related: probably dev(s) have a better insight:
*********** BACKTRACK **************
/usr/lib/libADM_core6.so(ADM_backTrack+0x60) [0x7f293db8d010]:0:<ADM_backTrack>:-2
/usr/lib/libADM_coreVideoEncoder6.so(_ZN20ADM_coreVideoEncoder22getRealPtsFromInternalEmPmS0_+0xc0) [0x7f293c454ef0]:1:<ADM_coreVideoEncoder::getRealPtsFromInternal(unsigned long, unsigned long*, unsigned long*)>:0
/usr/lib/libADM_coreVideoEncoder6.so(_ZN26ADM_coreVideoEncoderFFmpeg10postEncodeEP12ADMBitstreamj+0x15c) [0x7f293c45830c]:2:<ADM_coreVideoEncoderFFmpeg::postEncode(ADMBitstream*, unsigned int)>:0
/usr/lib/ADM_plugins6//videoEncoders/libADM_ve_ffMpeg2.so(_ZN18ADM_ffMpeg2Encoder6encodeEP12ADMBitstream+0xd8) [0x7f2909bbc388]:3:<ADM_ffMpeg2Encoder::encode(ADMBitstream*)>:0
/usr/bin/avidemux3_qt4(_ZN22ADM_videoStreamProcess9getPacketEP12ADMBitstream+0x12) [0x449c32]:4:<ADM_videoStreamProcess::getPacket(ADMBitstream*)>:0
/usr/lib/libADM_coreMuxer6.so(_ZN11muxerFFmpeg8saveLoopEPKc+0x19c) [0x7f293cd34c2c]:5:<muxerFFmpeg::saveLoop(char const*)>:0
/usr/bin/avidemux3_qt4(_ZN8admSaver4saveEv+0x170) [0x447670]:6:<admSaver::save()>:0
/usr/bin/avidemux3_qt4(_Z6A_SavePKc+0x29) [0x447769]:7:<A_Save(char const*)>:0
/usr/bin/avidemux3_qt4(_Z13A_SaveWrapperPKc+0x10) [0x445290]:8:<A_SaveWrapper(char const*)>:0
/usr/bin/avidemux3_qt4(_ZN15ADM_QT4_fileSel25GUI_FileSelWriteExtensionEPKcS1_PFvS1_E+0x1b) [0x4928db]:9:<ADM_QT4_fileSel::GUI_FileSelWriteExtension(char const*, char const*, void (*)(char const*))>:0
/usr/bin/avidemux3_qt4(_Z17HandleAction_Save6Action+0x24e) [0x4466ae]:10:<HandleAction_Save(Action)>:0
/usr/bin/avidemux3_qt4(_Z12HandleAction6Action+0xb33) [0x442a73]:11:<HandleAction(Action)>:0
/usr/bin/avidemux3_qt4() [0x493139]:12:</usr/bin/avidemux3_qt4() [0x493139]>:0
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2da) [0x7f293b01987a]:13:<QMetaObject::activate(QObject*, QMetaObject const*, int, void**)>:0
/usr/bin/avidemux3_qt4(_ZN10MainWindow12actionSignalE6Action+0x2c) [0x49350c]:14:<MainWindow::actionSignal(Action)>:0
/usr/bin/avidemux3_qt4(_ZN10MainWindow13searchToolBarEP7QAction+0x93) [0x47b9a3]:15:<MainWindow::searchToolBar(QAction*)>:0
/usr/bin/avidemux3_qt4() [0x49339b]:16:</usr/bin/avidemux3_qt4() [0x49339b]>:0
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2da) [0x7f293b01987a]:17:<QMetaObject::activate(QObject*, QMetaObject const*, int, void**)>:0
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN8QToolBar15actionTriggeredEP7QAction+0x2f) [0x7f293b9978af]:18:<QToolBar::actionTriggered(QAction*)>:0
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x62b5c4) [0x7f293b9985c4]:19:<>:-2
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2da) [0x7f293b01987a]:20:<QMetaObject::activate(QObject*, QMetaObject const*, int, void**)>:0
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN11QToolButton9triggeredEP7QAction+0x2f) [0x7f293b99f92f]:21:<QToolButton::triggered(QAction*)>:0
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x633621) [0x7f293b9a0621]:22:<>:-2
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x2da) [0x7f293b01987a]:23:<QMetaObject::activate(QObject*, QMetaObject const*, int, void**)>:0
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN7QAction9triggeredEb+0x32) [0x7f293b530a62]:24:<QAction::triggered(bool)>:0
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN7QAction8activateENS_11ActionEventE+0x63) [0x7f293b532433]:25:<QAction::activate(QAction::ActionEvent)>:0
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x57cb92) [0x7f293b8e9b92]:26:<>:-2
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN15QAbstractButton17mouseReleaseEventEP11QMouseEvent+0x6c) [0x7f293b8e9cbc]:27:<QAbstractButton::mouseReleaseEvent(QMouseEvent*)>:0
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN11QToolButton17mouseReleaseEventEP11QMouseEvent+0xa) [0x7f293b9a0aca]:28:<QToolButton::mouseReleaseEvent(QMouseEvent*)>:0
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0xaca) [0x7f293b58651a]:29:<QWidget::event(QEvent*)>:0
*********** BACKTRACK **************
Crash Dump for Crash
Assert failed :0
at line 143, file /home/jan/avidemux2/avidemux_core/ADM_coreVideoEncoder/src/ADM_coreVideoEncoder.cppADM_backTrack
ADM_coreVideoEncoder::getRealPtsFromInternal(unsigned long, unsigned long*, unsigned long*)
ADM_coreVideoEncoderFFmpeg::postEncode(ADMBitstream*, unsigned int)
ADM_ffMpeg2Encoder::encode(ADMBitstream*)
ADM_videoStreamProcess::getPacket(ADMBitstream*)
muxerFFmpeg::saveLoop(char const*)
admSaver::save()
A_Save(char const*)
A_SaveWrapper(char const*)
ADM_QT4_fileSel::GUI_FileSelWriteExtension(char const*, char const*, void (*)(char const*))
HandleAction_Save(Action)
HandleAction(Action)
/usr/bin/avidemux3_qt4() [0x493139]
QMetaObject::activate(QObject*, QMetaObject const*, int, void**)
MainWindow::actionSignal(Action)
MainWindow::searchToolBar(QAction*)
/usr/bin/avidemux3_qt4() [0x49339b]
QMetaObject::activate(QObject*, QMetaObject const*, int, void**)
QToolBar::actionTriggered(QAction*)
QMetaObject::activate(QObject*, QMetaObject const*, int, void**)
QToolButton::triggered(QAction*)
QMetaObject::activate(QObject*, QMetaObject const*, int, void**)
QAction::triggered(bool)
QAction::activate(QAction::ActionEvent)
QAbstractButton::mouseReleaseEvent(QMouseEvent*)
QToolButton::mouseReleaseEvent(QMouseEvent*)
QWidget::event(QEvent*)
with test video
Video Output: Mpeg2 (ff)
Audio Output: MP2 (lav)
Test Video:
Files (88.5 MB total) 20160907 1443 - ONE HD - testone.ts
Will be deleted on 14 September, 2016
Download link https://we.tl/QrHZYzDq3V
Quote from: Jan Gruuthuse on September 07, 2016, 12:40:52 PM
einsfestivalHD is now ONE ard.de
yes, I know - was that just a hint or is there any connection to my problem?
Quote from: Jan Gruuthuse on September 07, 2016, 12:40:52 PM
try re-muxing the video with mkvtoolnix gui https://mkvtoolnix.download
Did it - no errors or warnings occured.
think this one is for developer(s) to look at.
All tests result in crash.
1st signs of problem:
QuotePercent:85
[adm_lavLogCallback] [lavc] rc buffer underflow
[adm_lavLogCallback] [lavc] max bitrate possibly too small or try trellis with large lmax or increase qmax
Percent:85
ending with:
QuotePercent:98
[DecodeNextPicture] getFrame failed for frame 2991
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 2992
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 2993
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 2994
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 2995
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 2996
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 2997
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 2998
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 2999
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 3000
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 3001
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 3002
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 3003
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 3004
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 3005
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 3006
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 3007
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 3008
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 3009
[nextPictureInternal] Next picture failed
[DecodeNextPicture] getFrame failed for frame 3010
[nextPictureInternal] Next picture failed
[nextPictureInternal] nextPictureInternal Failed
[nextPictureInternal] while looking for 60178122 us, 60178 ms
ReadIndex:2974, WriteIndex:2982
Edcache content[0]: PTS : 00:01:00,078 60078 ms
Edcache content[1]: PTS : 00:01:00,098 60098 ms
Edcache content[2]: PTS : 00:01:00,118 60118 ms
Edcache content[3]: PTS : 00:01:00,138 60138 ms
Edcache content[4]: PTS : 00:01:00,158 60158 ms
Edcache content[5]: PTS : 00:01:00,178 60178 ms
Edcache content[6]: PTS : 00:01:00,038 60038 ms
Edcache content[7]: PTS : 00:01:00,058 60058 ms
[nextPicture] Cannot get next picture. Last segment
[getNextFrameAs] [Bridge] Base did not get an image
[runAction] Video Thread, no more data
[runAction] Exiting video thread loop
[getNextFrameAs] Audio thread stopped, no more data
[ff] Cannot get next image
[encode] [ffMpeg2] Popping delayed bframes (22928)
Percent:99
[getNextFrameAs] Audio thread stopped, no more data
[ff] Cannot get next image
[encode] [ffMpeg2] Popping delayed bframes (10160)
[getNextFrameAs] Audio thread stopped, no more data
[ff] Cannot get next image
[encodeWrapper] Encoder produced no data
[encode] [ffMpeg2] Popping delayed bframes (0)
[getRealPtsFromInternal] Cannot find PTS : 3012
Saving crash file to /home/jan/.avidemux6/crash.py
Scripting video streams
Scripting segments
Scripting markers
Scripting post-processing
Scripting video encoder
Scripting video filters
Scripting audio tracks
Scripting muxer
Hi,
thx for analyzing this problem.
Do I have to write a bug report? Or do you talk to some developer?
Bye.
Michael.
The mpeg2 encoder default settings are for DVD
You are using FullHD, so either :
* Resize it to DVD style (i.e. 720*576 or similar)
* Increase the buffer size / max bitrate of the mpeg2 encoder, multiply everything by 3 or 4
I've started the encoding, so far so good
(The mpeg2 encoder was broken in 2.6.13, you *must* use a nightly)
Quote from: mean on September 07, 2016, 02:42:56 PM
I've started the encoding, so far so good
(The mpeg2 encoder was broken in 2.6.13, you *must* use a nightly)
I already had a look for nightly builds, but on sourceforge I could not find one for linux, only for windows and mac.
Where do I have to look?
Thx and bye.
Michael.
see if universal app works on your OpenSuze http://www.avidemux.org/nightly/appImage/
Quote from: Jan Gruuthuse on September 07, 2016, 03:51:18 PM
see if universal app works on your OpenSuze http://www.avidemux.org/nightly/appImage/
doesn't seem so:
[UI_RunApp] Load default settings if any...
[UI_RunApp] [autoUpdate]Current date 5 , last check = 0
[save] Saving prefs to /home/user/.avidemux6/config3.tmp
Saving crash file to /home/user/.avidemux6/crash.py
*********** BACKTRACK **************
/tmp/.mount_nPY4iz/AppRun: line 7: 4048 Segmentation fault (core dumped) ${HERE}/usr/bin/avidemux3_portable $@
/home/user/temp
Or is there something special I should do besides downloading and running?
Bye.
Michael.
Quote from: nobanzai on September 07, 2016, 02:57:28 PM
I already had a look for nightly builds, but on sourceforge I could not find one for linux, only for windows and mac.
Where do I have to look?
You could build Avidemux yourself.
# zypper si -d avidemux3
Clone the repository, patch bootStrap.bash (https://github.com/mean00/avidemux2/blob/master/bootStrap.bash#L52) to change the prefix to /usr/local (/usr/local/lib64 or /usr/local/lib must be in your search path for libs then) and build Avidemux by running
bash bootStrap.bash --rebuild
Then copy the content of install/usr/local as root over your /usr/local directory and you're done.
I hoped to avoid building it myself, but if it is the only way ...
Thx for your answer.
Quote from: nobanzai on September 07, 2016, 05:18:37 PM
I hoped to avoid building it myself, but if it is the only way ...
Why? This is the best way by far.
By the way, could you please reveal the reason to reencode h264 in a HD resolution as mpeg2? Making a video DVD? It is such an awful waste of storage and loss of quality.
PS: If you run into problems while trying to build Avidemux, questions are welcome.
Quote from: eumagga0x2a on September 07, 2016, 05:46:58 PM
Quote from: nobanzai on September 07, 2016, 05:18:37 PM
I hoped to avoid building it myself, but if it is the only way ...
Why? This is the best way by far.
I know, but in most cases it is not done with just building, but one has to install a bunch of devel packages, libs and so on.
And this is something, I try to avoid - you can just call me lazy :)
Quote from: eumagga0x2a on September 07, 2016, 05:46:58 PM
By the way, could you please reveal the reason to reencode h264 in a HD resolution as mpeg2? Making a video DVD? It is such an awful waste of storage and loss of quality.
I have a few relatives living far away, who are only capable of playing video DVDs.
Sometimes they want me to record some tv broadcast and send them the DVD.
Quote from: eumagga0x2a on September 07, 2016, 05:46:58 PM
PS: If you run into problems while trying to build Avidemux, questions are welcome.
Thx for your offer!
I hope, I don't need your help, but one never knows.
Bye.
Michael.
Quote from: eumagga0x2a on September 07, 2016, 05:46:58 PM
PS: If you run into problems while trying to build Avidemux, questions are welcome.
where can I find the git repo for avidemux3 - the link you had in your answer points to avidemux2.
I couldn't find the repo searching via google, too.
Thx and bye.
Michael.
this is the current git branch for avidemux3 (avidemux 2.6.13.* ): https://github.com/mean00/avidemux2 . This avidemux2 is folder / location that is all.
Quote from: Jan Gruuthuse on September 08, 2016, 11:44:15 AM
this is the current git branch for avidemux3 (avidemux 2.6.13.* ): https://github.com/mean00/avidemux2 . This avidemux2 is folder / location that is all.
ic - thx.
I'm a bit confused, because I couldn't find a _qt5 subdir.
Is avidemux3_qt5 from a different repo? Or am I just blind?
Qt4 & Qt5 shares the same source code
just run boostrap.bash the default are good enough
Quote from: mean on September 08, 2016, 01:09:13 PM
Qt4 & Qt5 shares the same source code
just run boostrap.bash the default are good enough
thx!
Hi,
thx to all who helpfully answered my question.
I rebuilt the latest snapshot from the git repo without any problem - and: No more crashes in the mpeg2 video converter.
Bye.
Michael.