Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output file Zero Bytes (trying to make 3 second clip) #56

Open
SelfRando opened this issue Jun 4, 2017 · 1 comment
Open

Output file Zero Bytes (trying to make 3 second clip) #56

SelfRando opened this issue Jun 4, 2017 · 1 comment

Comments

@SelfRando
Copy link

The UI says that the file has been saved successfully with a size of zero bytes.
VLC gives the following details about the input file:

Stream 0:
Codec: MPEG-4 Video (mp4v)
Resolution: 1920x1080
Display Resolution:1920x1080
Frame Rate:25
Decoded Format:
Stream 1:
Type: Audio
Codec: MPEG Audio Layer 1/2 (mp4a)
Channels: Stereo
Sample rate: 48000 Hz
Bit Rate: 128kb/s

The vidcutter --debug output shows the following:
molly@molly:$ vidcutter --debug
minimum size set to: PyQt5.QtCore.QSize(900, 640) (NORMAL)
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO - VideoService: backend = "/usr/bin/ffmpeg" mediainfo = "/usr/bin/mediainfo"
2017-06-04 12:52 - vidcutter.videocutter - INFO - MPV info - cplayer: Playing: /home/molly/Videos/00004.m4v
2017-06-04 12:52 - vidcutter.videocutter - INFO - MPV info - cplayer: (+) Video --vid=1 () (mpeg4)
2017-06-04 12:52 - vidcutter.videocutter - INFO - MPV info - cplayer: (+) Audio --aid=1 --alang=und (
) (mp3)
2017-06-04 12:52 - vidcutter.videocutter - INFO - MPV info - cplayer: AO: [pulse] 48000Hz stereo 2ch s16
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO - VideoService: backend = "/usr/bin/ffmpeg" mediainfo = "/usr/bin/mediainfo"
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:00:00.000 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/TJ5170.jpg"
2017-06-04 12:52 - vidcutter.videocutter - CRITICAL - MPV error - ffmpeg/audio: mp3: Header missing
MPV error - ffmpeg/audio: mp3: Header missing2017-06-04 12:52 - vidcutter.videocutter - CRITICAL - MPV error - ad: Error decoding audio.
MPV error - ad: Error decoding audio.2017-06-04 12:52 - vidcutter.videocutter - INFO - MPV info - cplayer: VO: [opengl] 1920x1080 yuv420p
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:00:06.307 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/XM5170.jpg"
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:00:12.614 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/Lh5170.jpg"
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:00:18.921 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/nS5170.jpg"
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:00:25.228 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/kn5170.jpg"
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:00:31.535 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/Ti5170.jpg"
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:00:37.842 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/wZ5170.jpg"
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:00:44.149 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/TT5170.jpg"
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:00:50.456 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/jd5170.jpg"
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:00:56.763 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/BC5170.jpg"
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:01:03.070 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/Hf5170.jpg"
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:01:09.377 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/yJ5170.jpg"
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:01:15.684 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/FW5170.jpg"
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:01:21.991 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/wX5170.jpg"
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:01:28.298 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/Zb5170.jpg"
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:01:34.605 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/th5170.jpg"
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:01:40.912 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/PE5170.jpg"
2017-06-04 12:52 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:01:47.219 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 50x38 -y /tmp/ZK5170.jpg"
cut start position: 2000
2017-06-04 12:53 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -ss 00:00:02.640 -i "/home/molly/Videos/00004.m4v" -vframes 1 -s 100x70 -y /tmp/TJ5170.jpg"
cut end position: 5000
2017-06-04 12:53 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -i "/home/molly/Videos/00004.m4v" -ss 00:00:02.640 -t 00:00:03.000 -vcodec copy -acodec copy -scodec copy -map 0 -y "/home/molly/Videos/00004_EDIT_01.m4v""
2017-06-04 12:53 - vidcutter.videocutter - INFO - cut resulted in 0 length file, trying again without all stream mapping
2017-06-04 12:53 - vidcutter.libs.videoservice - INFO -
VideoService cmdExec: "/usr/bin/ffmpeg -i "/home/molly/Videos/00004.m4v" -ss 00:00:02.640 -t 00:00:03.000 -vcodec copy -acodec copy -y "/home/molly/Videos/00004_EDIT_01.m4v""
molly@molly:
$

If I try both of these ffmpeg commands directly I get the following:

molly@molly:$ /usr/bin/ffmpeg -i "/home/molly/Videos/00004.m4v" -ss 00:00:02.640 -t 00:00:03.000 -vcodec copy -acodec copy -scodec copy -map 0 -y "/home/molly/Videos/00004_EDIT_01.m4v"
ffmpeg version 3.2.4-1build2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (Ubuntu 6.3.0-8ubuntu1) 20170221
configuration: --prefix=/usr --extra-version=1build2 --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-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --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-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/molly/Videos/00004.m4v':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
creation_time : 2010-08-07T12:24:19.000000Z
encoder : HandBrake svn3472 2010080601
Duration: 00:01:50.93, start: 0.000000, bitrate: 18155 kb/s
Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p(bt709), 1920x1080 [SAR 1:1 DAR 16:9], 18018 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc (default)
Metadata:
creation_time : 2010-08-07T12:24:19.000000Z
Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 154 kb/s (default)
Metadata:
creation_time : 2010-08-07T12:24:19.000000Z
[ipod @ 0x556bf1e07100] Tag mp4a/0x6134706d incompatible with output codec id '86017' ([0][0][0][0])
Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing inputStream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Last message repeated 1 times
molly@molly:
$
molly@molly:~$

molly@molly:$
molly@molly:
$
molly@molly:$ /usr/bin/ffmpeg -i "/home/molly/Videos/00004.m4v" -ss 00:00:02.640 -t 00:00:03.000 -vcodec copy -acodec copy -y "/home/molly/Videos/00004_EDIT_01.m4v"
ffmpeg version 3.2.4-1build2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (Ubuntu 6.3.0-8ubuntu1) 20170221
configuration: --prefix=/usr --extra-version=1build2 --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-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --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-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/molly/Videos/00004.m4v':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
creation_time : 2010-08-07T12:24:19.000000Z
encoder : HandBrake svn3472 2010080601
Duration: 00:01:50.93, start: 0.000000, bitrate: 18155 kb/s
Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p(bt709), 1920x1080 [SAR 1:1 DAR 16:9], 18018 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc (default)
Metadata:
creation_time : 2010-08-07T12:24:19.000000Z
Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 154 kb/s (default)
Metadata:
creation_time : 2010-08-07T12:24:19.000000Z
[ipod @ 0x55cfa3dbbc00] Tag mp4a/0x6134706d incompatible with output codec id '86017' ([0][0][0][0])
Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing inputStream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Last message repeated 1 times
molly@molly:
$

@scott092707
Copy link

I have the same problem:

I just installed VidCutter and was successful in running it, loading a file to edit,
selecting the beginning and ending clipping points, and selecting a filename
under which to save the file, but there is no file. (It reported success, however:
"Your Media File is Ready!")
It shows a "0.0B" size file (but a 43 second length)

log: (whole log file attached) reports: "INFO - cut resulted in 0 length file"

I attach my terminal output as well. I imagine it is similar/identical to the log file.

I also attach the terminal output from before I invoked vidcutter with --debug.
It reported: "DtsDeviceOpen: Create File Failed".

Procedure followed:
Open Media. (it is a 6:05 length video)
Clicked on about 5:17. Clicked "Start Clip"
Clicked on about 6:00. Clicked "End Clip"
Clicked "Save Media"
Modified file name. (later, I just kept VidCutter's suggested name - same result). Clicked "Save"
(Tried with both native dialog and generic dialog)

Everything appears to work, but there is no saved clip.


scott@scott-ASUS-M2N68-AMPLUS:$ uname -a
Linux scott-ASUS-M2N68-AMPLUS 4.10.0-30-generic #34-Ubuntu SMP Mon Jul 31 19:38:17 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
scott@scott-ASUS-M2N68-AMPLUS:
$ lsb_release -dsc
Ubuntu 17.04
zesty
scott@scott-ASUS-M2N68-AMPLUS:$ echo $DESKTOP_SESSION
Lubuntu
scott@scott-ASUS-M2N68-AMPLUS:
$ vidcutter --version
VidCutter 4.0.0

Vidcutter_terminal_output.txt
Vidcutter_terminal_output_short.txt

vidcutter_log.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants