iKlotho / youtube-upload

Automatically exported from code.google.com/p/youtube-upload
1 stars 0 forks source link

Issue with split_video_for_youtube.sh #136

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version: 0.7.3
File: split_video_for_youtube.sh
Distro: CentOS release 6.5 (Final)

Problem: When I attempted to execute the script, I got no output. By removing 
the "-v 1" option to up the log verbosity I received the error:

ffmpeg version 0.10.2.git Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 18 2012 09:19:05 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
  configuration: --extra-cflags=-fpic --extra-ldflags=-fpic --enable-gpl --enable-version3 --enable-nonfree --enable-libfaac --enable-libgsm --enable-libxvid --enable-libvo-amrwbenc --enable-libmp3lame --enable-libx264 --enable-libvorbis --enable-shared
  libavutil      51. 60.100 / 51. 60.100
  libavcodec     54. 29.100 / 54. 29.100
  libavformat    54. 11.100 / 54. 11.100
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 82.100 /  2. 82.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Unknown decoder 'copy'

I found by moving the input file to the front of the parameter list, it removed 
this. The man page for FFMPEG suggests there some distinction between input and 
output parameters, but doesn't seem to specify which is which. 

I changed the line in the script to this:

  ffmpeg -v 1 -i "$VIDEO" -sameq -vcodec copy -acodec copy "$@" \ 
            -ss $OFFSET -t $CHUNK_DURATION -y "$OUTPUT_FILE" </dev/null 

Which resulted in it functioning fine for me.

Thank you for this tool and script.

Original issue reported on code.google.com by webmas...@gsdca.org on 11 Feb 2014 at 2:18

GoogleCodeExporter commented 9 years ago
Mmm, the position of this -i seems wrong, check r199.

Original comment by tokland on 11 Feb 2014 at 5:50

GoogleCodeExporter commented 9 years ago

Original comment by tokland on 3 Mar 2014 at 4:06

GoogleCodeExporter commented 9 years ago

Original comment by tokland on 13 May 2014 at 8:32