Print stderr in ffmpeg.log (#67)

pull/144/head
AlexPresso 3 years ago committed by GitHub
parent d3b11b1726
commit e2696e47c5

@ -35,11 +35,11 @@ A clear and concise description of what the bug is.
- Copy paste those lines in a new [gist](https://gist.github.com/) - Copy paste those lines in a new [gist](https://gist.github.com/)
- Add the gist link to the issue - Add the gist link to the issue
## `ffmpeg-FFMxxxx.stderr` (containing chunks transcoding operations) ## `ffmpeg-xxxx.stderr` (containing chunks transcoding operations)
- When you ran `ls -al | grep ffmpeg` you should have seen another file that looks like `ffmpeg-FFMxxxx.stderr` - When you ran `ls -al | grep ffmpeg` you should have seen another file that looks like `ffmpeg-xxxx.stderr` in case of error, the file may not be there, in that specific case, you can ignore these steps.
- Type `tail -100 ffmpeg-FFMxxxx.stderr` (replacing the filename by the correct one) - Type `tail -100 ffmpeg-xxxx.stderr` (replacing the filename by the correct one)
- Copy paste those lines in a new [gist](https://gist.github.com/) - Copy paste those lines in a new [gist](https://gist.github.com/)
- Type `head -300 ffmpeg-FFMxxxx.stderr` (replacing the filename by the correct one) - Type `head -300 ffmpeg-xxxx.stderr` (replacing the filename by the correct one)
- Copy paste those lines in another new [gist](https://gist.github.com/) - Copy paste those lines in another new [gist](https://gist.github.com/)
- Copy paste all the gists links in the issue - Copy paste all the gists links in the issue

@ -24,7 +24,10 @@ function info() {
} }
function handle_error() { function handle_error() {
log "ERROR" "Error on line $(caller)" log "ERROR" "An error occurred, here is the $stderrfile content: "
newline
cat "$stderrfile" >> $logfile
newline
errcode=1 errcode=1
endprocess endprocess
} }

Loading…
Cancel
Save