{"action":"closed","issue":{"url":"https://api.github.com/repos/nergdron/dve/issues/3","labels_url":"https://api.github.com/repos/nergdron/dve/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/nergdron/dve/issues/3/comments","events_url":"https://api.github.com/repos/nergdron/dve/issues/3/events","html_url":"https://github.com/nergdron/dve/issues/3","id":103979152,"number":3,"title":"Multiple minor issues","user":{"login":"DavidVentura","id":3650670,"avatar_url":"https://avatars.githubusercontent.com/u/3650670?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidVentura","html_url":"https://github.com/DavidVentura","followers_url":"https://api.github.com/users/DavidVentura/followers","following_url":"https://api.github.com/users/DavidVentura/following{/other_user}","gists_url":"https://api.github.com/users/DavidVentura/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidVentura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidVentura/subscriptions","organizations_url":"https://api.github.com/users/DavidVentura/orgs","repos_url":"https://api.github.com/users/DavidVentura/repos","events_url":"https://api.github.com/users/DavidVentura/events{/privacy}","received_events_url":"https://api.github.com/users/DavidVentura/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nergdron/dve/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/nergdron/dve/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"nergdron","id":292681,"avatar_url":"https://avatars.githubusercontent.com/u/292681?v=3","gravatar_id":"","url":"https://api.github.com/users/nergdron","html_url":"https://github.com/nergdron","followers_url":"https://api.github.com/users/nergdron/followers","following_url":"https://api.github.com/users/nergdron/following{/other_user}","gists_url":"https://api.github.com/users/nergdron/gists{/gist_id}","starred_url":"https://api.github.com/users/nergdron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nergdron/subscriptions","organizations_url":"https://api.github.com/users/nergdron/orgs","repos_url":"https://api.github.com/users/nergdron/repos","events_url":"https://api.github.com/users/nergdron/events{/privacy}","received_events_url":"https://api.github.com/users/nergdron/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-08-31T03:34:26Z","updated_at":"2015-09-01T03:06:08Z","closed_at":"2015-09-01T03:06:08Z","body":"Hi\r\n\r\nI don't want to create a PR because most of my code is specific to what I need so I'll detail here what I think you should change.\r\n\r\n* set the -e flag for bash, if you have an error, you don't want to continue encoding on broken/incomplete files.\r\n* Use the \"local\" server defined by GNU Parallel \":\" [Link] (http://www.gnu.org/software/parallel/parallel_tutorial.html#Remote-execution)\r\n* Don't force the same absolute path for ffmpeg on every server; trust $PATH to be right. My servers have correctly set their $PATH, but some have ffmpeg on /usr/bin, some on /usr/local/bin, etc. The checkpath function forces them to run the on the exact same path.\r\n* create proper PTS on AVI files [Info] (https://trac.ffmpeg.org/ticket/3339) [More info] (https://trac.ffmpeg.org/ticket/1552), and check for errors when generating the segments. ffmpeg may exit with non-zero status and may not generate the requested output files.\r\n\r\n```bash\r\nif [[ \"$1\" == *\".AVI\" ]]; then\r\n       $ENCPATH -fflags +genpts -i \"$1\"  -map 0 -codec copy -f segment -segment_time $LEN -segment_format matroska -v ${VERBOSE} \"${OUTDIR}/chunk-%03d.orig\"\r\nelse\r\n       $ENCPATH -i \"$1\"  -map 0 -codec copy -f segment -segment_time $LEN -segment_format matroska -v ${VERBOSE} \"${OUTDIR}/chunk-%03d.orig\"\r\nfi\r\n\r\n#also check for errors here\r\nif [ $? -ne 0 ]; then\r\n       echo \"Error creating chunks \"\r\n       exit\r\nfi\r\n```\r\n\r\n\r\n\r\nThat's it\r\n\r\nEdit: You can look at my fork if you want, it has these changes"}}